Modding Help Problem with a gun mod.

Discussion in 'Starbound Modding' started by Spriters, Dec 24, 2013.

  1. Spriters

    Spriters Lucky Number 13

    Hi , i'm testing modding and I want to make a gun , i work every day ( not the whole day x) ) on it, because it keep not working...
    Today i said " That's it , I need help ! " .
    So ...
    Here is the error :

    Code:
    Error: Could not instantiate item '[xraygun, 1, {}]'. ItemException: No such item 'xraygun'
      ... (4)
      0045EE66 (E:/Steamworks/Starbound/git/starbound/source/frontend/StarCraftingInterface.cpp:341)
      00460352 (E:/Steamworks/Starbound/git/starbound/source/frontend/StarCraftingInterface.cpp:113)
      ... (2)
      0042BF9B (E:/Steamworks/Starbound/git/starbound/source/frontend/StarMainInterface.cpp:796)
      00404ED0 (E:/Steamworks/Starbound/git/starbound/source/core/StarAny.hpp:488)
      00407337 (E:/Steamworks/Starbound/git/starbound/source/client/StarClientApplication.cpp:368)
      0040A214 (E:/Steamworks/Starbound/git/starbound/source/application/StarApplicationBase.cpp:199)
      00407C30 (E:/Steamworks/Starbound/git/starbound/source/client/main.cpp:48)
      004DBBD1 (c:\SDL-1.2.15/./src/main/win32/SDL_win32_main.c:318)
    "No such item"
    I don't understand ... I won't show up all the code that I tested, I give you directly all the stuff :(
    Thanks in advance if you help me :)



    Link : https://copy.com/RCQkERJfKTtM

    PS: Sorry for my horrible english , it isn't my native language.
     
  2. Westeller

    Westeller Space Penguin Leader

    Code:
    Error: Could not load /xraygun/items/guns/xraygun.gun asset, attempting to use default.
    AssetException: Could not read variant asset /xraygun/items/guns/xraygun.gun
    caused by: JsonParsingException: Cannot parse json file: /xraygun/items/guns/xraygun.gun
    caused by: JsonParsingException: Error parsing json: bad object, should be '}' or ',' at 5:3
      00998EA8 (E:/Steamworks/Starbound/git/starbound/source/core/StarVariant.hpp:15)
      007E3A22 (E:/Steamworks/Starbound/git/starbound/source/core/StarVariant.cpp:159)
      004EB403 (E:/Steamworks/Starbound/git/starbound/source/game/StarAssets.cpp:609)
      004EB77C (E:/Steamworks/Starbound/git/starbound/source/core/StarVariant.hpp:27)
      004E3FEF (E:/Steamworks/Starbound/git/starbound/source/game/StarAssets.cpp:1016)
      ... (3)
      004F02E1 (E:/Steamworks/Starbound/git/starbound/source/game/StarAssets.cpp:737)
      009681DC (E:/Steamworks/Starbound/git/starbound/source/core/StarThread_windows.cpp:74)
      7516336A
      77029F72
      77029F45
    
    You're missing a few commas in your .gun file.
    Five, that I see offhand.

    You can find them yourself (learning experience!) or just copy and paste this fixed version:


    Code:
    {
      "itemName" : "xraygun",
      "inventoryIcon" : "revolvericon.png",
      "description" : "New toy !",
      "shortdescription" : "xRay Gun",
      "dropCollision" : [-8.0, -3.0, 8.0, 3.0],
      "maxStack" : 1,
      "level" : 10,
      "rarity" : "Rare",
      "inspectionKind" : "gun",
      "image" : "revolver.png",
      "recoilTime" : 0.1,
      "handPosition" : [-5.5, -3],
      "firePosition" : [12, 3],
      "classMultiplier" : 0.4,
     
      "fireTime" : 0.5,
      "twoHanded" : false,
    
      "projectileType" : "xraygunprojectile",
      "projectile" : {
       
       "power" : 25,
       "speed" : 60,
      "color" : [10, 255, 10]
      },
    
      "muzzleEffect" : {
      "animation" : "/animations/muzzleflash/xRayGun/xRayGun.animation",
      "fireSound" : [ { "file" : "/sfx/xRayGunSound.wav" } ]
      }
    }
    
    
     

Share This Page