Modding Help just wondering

Discussion in 'Starbound Modding' started by gmod, Feb 5, 2014.

  1. gmod

    gmod Subatomic Cosmonaut

    I'm making a mod that adds armors and other things to starbound I've only finished the helmet and I want to make it a a furnace for easy testing but for some reason it just gives me a generic item, can someone help? here is the helmet file and recipe file

    crafting:
    {
    "input" : [
    { "item" : "ardiumbar", "count" : 25 }
    ],
    "output" : {
    "item" : "ardiumarmorhead",
    "count" : 1
    },
    "groups" : [ "stonefurnace", "all" ]
    }


    item:

    "itemName" : "Ardiumhelm",
    "inventoryIcon" : "icons.png:head",
    "dropCollision" : [-4.0, -3.0, 4.0, 3.0],
    "maxStack" : 1,
    "rarity" : "Rare",
    "description" : "Ardium helm visor's are dark and suspicious.",
    "shortdescription" : "Ardium helm",
    "inspectionKind" : "armor",

    "maleFrames" : "head.png",
    "femaleFrames" : "head.png",
    "mask" : "mask.png",

    "statusEffects" : [
    {
    "kind" : "ColdProtection",
    "amount" : "100"
    },

    {
    "kind" : "Protection",
    "level" : 31,
    "amount" : 39
    },

    {
    "kind" : "energyincrease",
    "amount" : 135
    }


    anyone know whats wrong?
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

  3. gmod

    gmod Subatomic Cosmonaut

    I didn't see anything that helped,
     
  4. The | Suit

    The | Suit Agent S. Forum Moderator

    Mmm you should read it again,
    Read the 5th point on "Things to Keep in mind"

    Look at your code.
     
  5. gmod

    gmod Subatomic Cosmonaut

    the cold protection line?

    why would that stop me from making it?
     
  6. The | Suit

    The | Suit Agent S. Forum Moderator

    You have the number in quotes - first of all.
    So even if you do make it - it won't appear.

    Also you never mentioned about having a player.config
    which is required to even know the reciepe.
     
  7. gmod

    gmod Subatomic Cosmonaut

    its crafted in a furnace
     
  8. gmod

    gmod Subatomic Cosmonaut

    I removed the quotes and it still just shows up as a perfect generic item
     
  9. The | Suit

    The | Suit Agent S. Forum Moderator

    Check your starbond.log it will give you an error.
    That is by far the simplest way.
    ===
    just post it here
     
  10. gmod

    gmod Subatomic Cosmonaut

    Error: Could not instantiate item '[ardiumarmorhead, 1, {}]'. ItemException: No such item 'ardiumarmorhead'
    ... (3)
    005D424D (/Users/builder/starbound-slave/releasebuilder-windows/build/source/game/StarRecipeDatabase.cpp:33)
    ... (2)
    004FDAFE (/Users/builder/starbound-slave/releasebuilder-windows/build/source/game/StarRoot.cpp:209)
    0040494C (/Users/builder/starbound-slave/releasebuilder-windows/build/source/client/StarClientApplication.cpp:305)
    0098243C (/Users/builder/starbound-slave/releasebuilder-windows/build/source/core/StarThread_windows.cpp:74)
    7593495D KERNEL32.DLL
    775398EE ntdll.dll
    775398C4 ntdll.dll
     
  11. The | Suit

    The | Suit Agent S. Forum Moderator

    Code:
    Error: Could not instantiate item '[ardiumarmorhead, 1, {}]'. ItemException: No such item 'ardiumarmorhead'
    The game is looking for 'ardiumarmorhead
    your item "itemName" : "Ardiumhelm",

    capiitilzation and naming is very important. Always use lowercase.
    Short description = ingame name

    ====
    even file names are extremely important
    all the items file names associated should keep the same format
     
  12. gmod

    gmod Subatomic Cosmonaut

    the file name for the item is ardiumarmorhead I should change it to Ardiumhelm?
     
  13. The | Suit

    The | Suit Agent S. Forum Moderator

    doesn't matter - keep it lower case, and same name. So you can avoid future conflicts like this.
    its not just file name you neeed to fix. you have to choose 1 name for the id.
    computer won't know adriumhelmet and adriumarmorhead are the same
     
  14. gmod

    gmod Subatomic Cosmonaut

    ok thanks
     
  15. gmod

    gmod Subatomic Cosmonaut

    when I put the name of the item in my recipe should i put head at the end?
     
  16. The | Suit

    The | Suit Agent S. Forum Moderator

    though it doesn't matter so much
    if your planning on making a full armor set - then using head will make it easier to identify
    extension head in the filename matters though.
     
    Aurorialis likes this.
  17. gmod

    gmod Subatomic Cosmonaut

    so I should write ardiuhelm.head in the filename for the item and in the item file then crafting I should put ardiumhelmhead?


    EDIT: its still just giving me a generic item
     
    Last edited: Feb 5, 2014
  18. TheLoneGamer

    TheLoneGamer Scruffy Nerf-Herder

    You still have syntax errors in your json. Any of those causes the game to treat the item as if it doesn't exist. I've managed to fix it up...
    Code:
    {
    "itemName" : "Ardiumhelm",
    "inventoryIcon" : "icons.png:head",
    "dropCollision" : [-4.0, -3.0, 4.0, 3.0],
    "maxStack" : 1,
    "rarity" : "Rare",
    "description" : "Ardium helm visor's are dark and suspicious.",
    "shortdescription" : "Ardium helm",
    "inspectionKind" : "armor",
    
    "maleFrames" : "head.png",
    "femaleFrames" : "head.png",
    "mask" : "mask.png",
    
    "statusEffects" : [
    {
    "kind" : "ColdProtection",
    "amount" : 100
    },
    
    {
    "kind" : "Protection",
    "level" : 31,
    "amount" : 39
    },
    
    {
    "kind" : "energyincrease",
    "amount" : 135
    } ]
    }
    
    
    From what you posted above, the file didn't start with a { and ended with a }. Also when you used "statusEffects", there was no closing ], which also counted as an error. One big help is putting your code into a json editor. It should catch most of the syntax errors, except for quotes around numbers and around true and false. It also won't help if the itemName doesn't match the crafting recipe output. Make sure those two are the same or the game will think it spawned an invalid item. So if you use ardiuhelm for the itemName, the crafting output also needs to be ardiuhelm.
     
  19. gmod

    gmod Subatomic Cosmonaut

    ok thanks
     
  20. Tairuse

    Tairuse Subatomic Cosmonaut

    If it doesn't work yet let me know and I will fixit I up for you and send a folder for ya
     
    gmod likes this.

Share This Page