I made a .object (Json) and ran it through JSONLint and it didn't have any errors, but when I run it in Starbound, the game crashes and I get this error in the log: Error: Exception raised during Root finishLoad: (ObjectException) Error loading object '/objects/crafting/craftingtable.object': (JsonException) Improper Conversion to int from string why is it trying to convert a string to an integer? Here is my code: Code: { "objectName" : "craftingtable", "rarity" : "Common", "printable" : false, "description" : "Now I can craft items!", "shortdescription" : "Crafting Table", "subtitle" : "It's a crafting table!", "race" : "generic", "category" : "Crafting", "price" : "100", "inventoryIcon" : "craftingtable.png", "orientations" : [ { "duelImage" : "craftingtable.png", "imagePosition" : [-16, 0], "frames" : 1, "animationCycle" : 1.0, "spaceScan" : 0.1, "anchors" : [ "bottom" ], "collision" : "platform" } ] }
Oh thx missed that! now my mod is giving me the error: Improper conversion to Json array from object. what does that mean?
Use Starbound.log instead of relying solely on error windows. Error windows won't explain nearly as much. http://community.playstarbound.com/...ors-fixing-most-problems-yourself-v1-1.69198/
That error was from starbound.log. I already read that article. Also, there are error windows? I've never had one pop up. The error was a product of my .object script and the code is at the top of the discussion.
You can use this site to check for json syntax errors. http://jsonlint.com Granted it doesn't catch the "100" error...
Case not closed... I made a .recipe for my crafting table, but the game crashes and the starbound.log says: Caused by: (JsonParsingException) Error parsing json: expected JSON object or array at top level at 1:1 I think it has to the bracket at 1:1 (that's the only thing there) but I closed it at 11:1 so it shouldn't give me errors. I also ran it through JSONLint and it said it was fine. Here is my code: Code: { "input" : [ { "item" : "darkwoodmaterial", "count" : 15 }, { "item" : "titaniumbar", "count" : 3 } ], "output" : { "item" : "craftingtable", "count" : 1 }, "groups" : [ "roboticcraftingtable" ] }
I have no idea what is causing it but I'm getting a parsing error: Caused by: (JsonParsingException) Error parsing json: bad string, should be '"' at 30:1 in this code: Code: { "objectName" : "ippipe", "printable" : false, "rarity" : "Common", "description" : "A pipe!", "shortdescription" : "Pipe", "race" : "generic", "category" : "pipes", "price" : 100, "apexDescription" : "Pipes", "avianDescription" : "Pipes", "floranDescription" : "Pipes", "glitchDescription" : "Pipes", "humanDescription" : "Pipes", "hylotlDescription" : "Pipes", "novakidDescription" : "Pipes", "inventoryIcon" : "ippipeicon.png", "orientations" : [ { "dualImage" : "ippipe.png:<color>", "imagePosition" : [-4, 4], "frames" : 1, "animationCycle" : 1.0, "spaceScan" : 0.1, "anchors" : [ "background" ] } ] } The very last line is 30, and there isn't, even a string there!
"category": "pipes", Is that a valid catagory? Not sure how strict the game is on this. Ive seen it complain about similar issues where the JSON is valid, but one of the values wasn't as far as the game was concerned.