Modding Help Modding Guns and fireTime

Discussion in 'Starbound Modding' started by DSMatticus, Dec 23, 2015.

  1. DSMatticus

    DSMatticus Scruffy Nerf-Herder

    So, in my attempt to mod in some new guns with altabilities, I have encountered a really weird problem that I do not understand. As a base, I've copied the novatier10rifle and its .png file into my mod (and renamed them). Since that's a nonrandom weapon which already has an altfire ability, I thought it'd be a good template to start from.

    So at first it works fine, but then I started changing the stats and Starbould would have none of it, crashing every time I tried to open it. So I went back to square one and changed each value one by one on its own to figure out what was causing the problem (the log is not helpful at all, relevant portion posted below in the spoiler), and I discovered that lowering the firetime to below 1.0 (even to say, .99) on its own was enough to cause the game to explode.

    Here is the portion of the log that describes the error:
    Code:
    [14:27:02.193] Error: Exception raised during Root finishLoad: (ItemException) Could not load item asset /items/weapons/ranged2h/dsmrifle.activeitem
    [0] 140093e13
    [1] 1400907a8
    [2] 1400908d8
    [3] 13fc6b250
    [4] 14027107c
    [5] 1401e0bb0
    [6] 1401ddba4
    [7] 77b1d351 RtlRestoreContext
    [8] 13fc64ac3
    [9] 13fc660bf
    [10] 13fc61c71
    [11] 13fa6d395
    [12] 13fa6a51a
    [13] 13fa65af2
    [14] 13fa683e0
    [15] 13fa693d9
    [16] 13fa68dec
    [17] 13fa6846e
    [18] 13fa6833e
    [19] 13fa732a2
    [20] 1400f91aa
    [21] 1400f8be1
    [22] 1400a849d
    [23] 778c5a4d BaseThreadInitThunk
    [24] 77afb831 RtlUserThreadStart
    Caused by: (AssetException) Error loading asset /items/weapons/ranged2h/dsmrifle.activeitem
    [0] 140093e13
    [1] 1400907a8
    [2] 13faeb435
    [3] 13fae8046
    [4] 13fae2e74
    [5] 13fadf5f6
    [6] 13fc64ac3
    [7] 13fc660bf
    [8] 13fc61c71
    [9] 13fa6d395
    [10] 13fa6a51a
    [11] 13fa65af2
    [12] 13fa683e0
    [13] 13fa693d9
    [14] 13fa68dec
    [15] 13fa6846e
    [16] 13fa6833e
    [17] 13fa732a2
    [18] 1400f91aa
    [19] 1400f8be1
    [20] 1400a849d
    [21] 778c5a4d BaseThreadInitThunk
    [22] 77afb831 RtlUserThreadStart
    [14:27:05.352] Info: Renderer destroyed
    [14:27:05.472] Info: Shutting down Star::Root
    [14:27:05.527] Error: Fatal Exception caught: (StarException) An error occurred during loading: (ItemException) Could not load item asset /items/weapons/ranged2h/dsmrifle.activeitem
    Caused by: (AssetException) Error loading asset /items/weapons/ranged2h/dsmrifle.activeitem


    So, two questions:
    1) Does anyone else have any idea what's going on in this specific instance?
    2) Has anyone else found any better existing items to use as templates when creating new guns with altfire abilities?
     
  2. lazarus78

    lazarus78 The Waste of Time

    Best Answer
    Did you put in ".99" or "0.99"? The latter is correct syntax.

    If you have the correct value, then please post the entire json for the weapon.
     
  3. DSMatticus

    DSMatticus Scruffy Nerf-Herder

    Hah, that was it. I had no idea the syntax cared about leading zeroes - apparently I've been getting it right by accident all along. It's always the dumbest, simplest little things.

    Well, thanks.
     
    lazarus78 likes this.

Share This Page