Modding Help help needed all in one .celestial

Discussion in 'Starbound Modding' started by Shamyi, Dec 29, 2013.

  1. Shamyi

    Shamyi Big Damn Hero

    so far I've got the item in game and craftable but I'm guessing there's an issue with the .celestial because as is on use the item crashes the game and unlocks nothing.


    Code:
    {
      "itemName" : "ultiengine",
      "rarity" : "Legendary",
      "inventoryIcon" : "tier2engine.png",
      "image" : "tier2engine.png",
    
      "shortdescription" : "Ultimate Starmap Upgrade",
      "description" : "I can use this to upgrade my ships engine, allowing flight into all the sectors!",
    
      // Remember you can override this with parameters, no need for more than one
      // unlock item
      "sectorUnlock" :[
    
      "beta",
      "gamma",
      "delta",
      "sectorx"
    
      ],
    
      "tierRecipesUnlock" :[
    
      "tier2",
      "tier3",
      "tier4",
      "level32",
      "level33",
      "level34",
      "level35",
      "level36",
      "level37"
    
    ],
    
      "unlockMessage" : "Starmap Updated. New data has been uploaded to your ships navigation systems."
    }
    
     
  2. Nightmares

    Nightmares Scruffy Nerf-Herder

    What's the error you're getting? anything in the starbound log?
     
  3. Shamyi

    Shamyi Big Damn Hero

    Error: MapException: Key '["beta","gamma","delta","sectorx"]' not found in OrderedMap::get()

    guessing something is wrong with how my parameter is set up but then I've tried every formatting I can think of so not sure what else to try.
     
  4. Technius

    Technius Starship Captain

    I think sectorUnlock is a string, not an array. It's probably not possible to unlock multiple sectors at the same time.
     
  5. Shamyi

    Shamyi Big Damn Hero

    was thinking the same but then that comment about no need for more than one unlock item implies that it should be possible
     
  6. Nightmares

    Nightmares Scruffy Nerf-Herder

    try

    Code:
      "sectorUnlock" :[
    
    [ "beta"],
      ["gamma"],
    [ "delta"],
    [ "sectorx"]
    
      ],
     
  7. Shamyi

    Shamyi Big Damn Hero

    seems this produces close to the same error :/

    Error: MapException: Key '[["beta"],["gamma"],["delta"],["sectorx"]]' not found in OrderedMap::get()
     
  8. Nightmares

    Nightmares Scruffy Nerf-Herder

    It's because the source code doesn't expect to iterate through an array when it reads the sector unlock section. It just wants a string that it can match in a map. I don't think it will work, but maybe try multiple sectorUnlocks; one for each sector
     
  9. Shamyi

    Shamyi Big Damn Hero

    tried that before :/

    it may just not be possible, it would make sense that the game wouldn't
    expect multiple sector unlocks at once.. still that comment about
    not needing multiple upgrades... why devs whyy.... D:

    well I'll keep looking into it and post back in case anyone else is looking for similar stuff
     
  10. Kyrosiris

    Kyrosiris Scruffy Nerf-Herder

    Seriously dumb question, but are the unlocks retroactive? That is, does unlocking Sector X give you the whole lot of them?
     
  11. Shamyi

    Shamyi Big Damn Hero

    nope :/
     
  12. Nightmares

    Nightmares Scruffy Nerf-Herder

    Do the recipe tiers unlock?
     
  13. Shamyi

    Shamyi Big Damn Hero

    nope, game crashes and then nothing was unlocked upon checking back.
    at this point it seems the game just doesn't like how it is formatted but then
    any format other then the one in the 1st post and your suggestion in the
    6th and I end up with a perfectly generic item so not sure really.
     
  14. Nightmares

    Nightmares Scruffy Nerf-Herder

    That's a shame. I can't even think of a work around.
     
  15. Big J Money

    Big J Money Scruffy Nerf-Herder

    I am looking into this too.

    Here's the workaround I'll be looking at somewhat soonish: put everything in the Beta sector. That way when the beta sector is unlocked, you effectively have unlocked everything. Should be able to rename the beta sector as well.
     
  16. Shamyi

    Shamyi Big Damn Hero

    seems like that would work :D

    for the recipe unlock structure it should be easy enough to
    add a new entry to the player.config with all recipes in it and call on that

    not really sure where the sector unlocks are handled or if they are even more
    then just the game calling on the sector with no file in between
     

Share This Page