1.0 I did not get my gold bar

Discussion in 'Bugs' started by Mikel, Oct 26, 2016.

  1. Mikel

    Mikel Waiting On Paperwork From The Ministry. Forever.

    For reaching a population of 30...
     
    Exile likes this.
  2. dbaumgart

    dbaumgart Art Director Staff Member

    Did your colony start offset from the center of the map? If you don't have an airship mast, the gold bar will default to around the center of the map.

    I'll fix this to drop at your starting pos by default if not airship mast exists.
     
    Exile likes this.
  3. Mikel

    Mikel Waiting On Paperwork From The Ministry. Forever.

    That is likely the issue.
     
    Exile likes this.
  4. Mikel

    Mikel Waiting On Paperwork From The Ministry. Forever.

    However, I would have expected it to at least appear in my inventory... unless it was snatched by bandits immediately upon spawning.
     
    Exile likes this.
  5. dbaumgart

    dbaumgart Art Director Staff Member

    Now that *should* work, the code should indeed do "claimItem" for anything spawned from an airdrop crate.
     
    Exile likes this.
  6. Naffarin

    Naffarin Bureaucrat-Inspector Exemplar of The Empire

    Can confirm bug and my colony is in the middle of the map...i suspect that the alert generated by
    Code:
    send("rendCommandManager",
                        "odinRendererFYIMessage",
                        "ui\\commodityIcons.xml", -- iconskin
                        "gold_ingots_icon", -- icon
                        "Praise from the Ministry", -- header text
                        "A letter from the Ministry: Congratulations on meeting or exceeding thirty colonists living in your settlement! \z
                        We present you with this commemorative bar of gold as a material \z
                        trophy of this tremendous accomplishment. We expect a detailed series of reports on how you prevented all your colonists from going wild and running off into the hills.", -- tooltip string
                        "Left-click to read more, Right-click to dismiss.", -- action string
                        "over_30chars", -- alert type (for stacking)
                        "ui\\eventart\\cityOfIndustry.png", -- imagename for bg
                        "high", -- importance: low / high / critical
                        nil, -- state.renderHandle, -- object ID
                        90 * 1000, -- duration in ms
                        0, -- "snooze" time if triggered multiple times in rapid succession
                        nil)
    
    should return "next" afterwards as it is an alert not a dialog returning anything
     
    Exile likes this.
  7. dbaumgart

    dbaumgart Art Director Staff Member

    Oh jeez, that's a great catch. Thank you!
     
    Exile likes this.
  8. Naffarin

    Naffarin Bureaucrat-Inspector Exemplar of The Empire

    BTW the reward for reaching 70 drops brass cogs
    Code:
    local handle = query( "scriptManager", "scriptCreateGameObjectRequest",
                                  "airdropcrate",
                                  {legacyString = "Airdrop Crate",
                                entityName="brass_cogs",
                                entityType="item",
                            })[1]
    [code]
    but the alert text promises a rare painting
     
    Exile likes this.
  9. Naffarin

    Naffarin Bureaucrat-Inspector Exemplar of The Empire

    1.0c still drops brass cogs when reaching 70 colonists instead of the promised rare painting of the dialog
     
    Exile likes this.
  10. dbaumgart

    dbaumgart Art Director Staff Member

    Thanks, logged as OC-5920 and should be easy to fix for 1.0D.
     
    Exile likes this.