Modding Help Adding Weapon Colors Crashes Game

Discussion in 'Starbound Modding' started by royal_fish, Aug 6, 2019.

  1. royal_fish

    royal_fish Phantasmal Quasar

    I made two simple patch files for ranged.weaponcolors and melee.weaponcolors. When the game loads, it will either crash, or it will go in and everyone's weapon has turned into a matter manipulator holding a "perfectly generic item." The log file says it could not read the JSON assets, but it doesn't tell me what is wrong. Usually I just forgot to put a bracket or quotations somewhere, but that's not the case here. I'm uploading the mod and below is a sampling of text that repeats. Any help would be appreciated

    [11:39:23.344] [Error] Could not instantiate item '[swtjc_ewg_npcsawedoffshotgun, 1, {}]'. (LuaException) Error code 2, [string "/items/buildscripts/buildweapon.lua"]:105: (AssetException) Error loading asset /items/active/weapons/colors/ranged.weaponcolors
    [0] 13f6aa7f3
    [1] 13f6a957e
    [2] 13f6b577a
    [3] 13f6c1f92
    [4] 13f6c3a89
    [5] 13fd2f4c6
    [6] 13fd229ee
    [7] 13fd257a6
    [8] 13fd23334
    [9] 13fd22fa2
    [10] 13fd214d3
    [11] 13fd2ae39
    [12] 13fd21a5f
    [13] 13fd24f10
    [14] 13fd238eb
    [15] 13fd2e3fb
    [16] 13f6778fd
    [17] 13f676c97
    [18] 13f603378
    [19] 13f61c121
    [20] 13f602e83
    [21] 13f60365b
    [22] 13f603090
    [23] 13f5f9614
    [24] 13f67ec40
    [25] 13f82673a
    [26] 13f827a4d
    [27] 13f827f28
    [28] 13f834726
    [29] 13f83429c
    [30] 13f912257
    [31] 13f90e9aa
    [32] 13fc2959e
    [33] 13fc351ef
    [34] 13fc4a57b
    [35] 13fc4a08b
    [36] 13f6a737e
    [37] 770f556d BaseThreadInitThunk
    [38] 7735385d RtlUserThreadStart
    stack traceback:
    [C]: in ?
    [C]: in field 'assetJson'
    [string "/items/buildscripts/buildweapon.lua"]:105: in function <[string "/items/buildscripts/buildweapon.lua"]:7>
    [11:39:23.431] [Error] Exception caught loading asset: /items/active/weapons/colors/melee.weaponcolors, (AssetException) Could not read JSON asset /items/active/weapons/colors/melee.weaponcolors
    [0] 13f6aa7f3
    [1] 13f6a957e
    [2] 13f6a9668
    [3] 13f6b8ed0
    [4] 13ffb1ed1
    [5] 7fefa9ac220 _C_specific_handler
    [6] 7fefa9a29b2 _FrameUnwindFilter
    [7] 7736bad3 RtlRestoreContext
    [8] 13f6bb762
    [9] 13f6b8beb
    [10] 13f6c4cad
    [11] 13f6c3e03
    [12] 13f6bfd8f
    [13] 13f6c1ecb
    [14] 13f6c3a89
    [15] 13fd2f4c6
    [16] 13fd229ee
    [17] 13fd257a6
    [18] 13fd23334
    [19] 13fd22fa2
    [20] 13fd214d3
    [21] 13fd2ae39
    [22] 13fd21a5f
    [23] 13fd24f10
    [24] 13fd238eb
    [25] 13fd2e3fb
    [26] 13f6778fd
    [27] 13f676c97
    [28] 13f603378
    [29] 13f61c121
    [30] 13f602e83
    [31] 13f60365b
    [32] 13f603090
    [33] 13f5f9614
    [34] 13f67ec40
    [35] 13f82673a
    [36] 13f827a4d
    [37] 13f827f28
    [38] 13f834726
    [39] 13f83429c
    [40] 13f912257
    [41] 13f90e9aa
    [42] 13fc2959e
    [43] 13fc351ef
    [44] 13fc4a57b
    [45] 13fc4a08b
    [46] 13f6a737e
    [47] 770f556d BaseThreadInitThunk
    [48] 7735385d RtlUserThreadStart
    Caused by: (JsonParsingException) Cannot parse json file: /items/active/weapons/colors/melee.weaponcolors
     

    Attached Files:

    • mod.zip
      File size:
      8.1 KB
      Views:
      1
  2. matthew57778

    matthew57778 Phantasmal Quasar

    You need to do the patch operation to do this.
    below is a attached documentation on what i mean.
     

    Attached Files:

Share This Page