Starbound

Starbound

Self Damage Fix
24 Comments
Gorigo 28 Apr @ 5:18am 
seems like it
Gorigo 26 Apr @ 1:38pm 
is it will fix random dying monster when you install suppers combat overhaul?
FelmastProMcLane  [author] 17 Dec, 2024 @ 10:39am 
:steamhappy:
Lukiwarble 17 Dec, 2024 @ 10:24am 
thanks for fixing the errors
Lukiwarble 17 Dec, 2024 @ 10:10am 
i dont know what that error is related to but they're working now
Lukiwarble 17 Dec, 2024 @ 10:10am 
yes
FelmastProMcLane  [author] 17 Dec, 2024 @ 10:01am 
Can they be killed?
Lukiwarble 17 Dec, 2024 @ 9:59am 
at least now they no longer die on spawn
Lukiwarble 17 Dec, 2024 @ 9:58am 
[Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/monsters/monster.lua"]:103: attempt to index a nil value (field 'damageTaken')
stack traceback:
[C]: in metamethod 'index'
[string "/monsters/monster.lua"]:103: in function <[string "/monsters/monster.lua"]:101>
FelmastProMcLane  [author] 17 Dec, 2024 @ 9:50am 
Ok, it's advancing, it no longer crashed by the previous errors, just needed to apply the fix to a couple of other "randomseeds".

You may get a similar error if using "BL2 shields", or maybe not.

Changes applied.
Lukiwarble 17 Dec, 2024 @ 9:26am 
[Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/monsters/monster_bl3health.lua"]:117: bad argument #1 to 'randomseed' (number has no integer representation)
stack traceback:
[C]: in ?
[C]: in function 'math.randomseed'
[string "/monsters/monster_bl3health.lua"]:117: in global 'selfdamagemccfix_update'
[string "/monsters/selfdamagemccfix.lua"]:31: in function <[string "/monsters/selfdamagemccfix.lua"]:21>
FelmastProMcLane  [author] 17 Dec, 2024 @ 9:16am 
Another change, now?
Lukiwarble 17 Dec, 2024 @ 9:14am 
[Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/monsters/monster.lua"]:103: attempt to index a nil value (field 'damageTaken')
stack traceback:
[C]: in metamethod 'index'
[string "/monsters/monster.lua"]:103: in function <[string "/monsters/monster.lua"]:101>
Lukiwarble 17 Dec, 2024 @ 9:14am 
this one also came up
[Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/stats/effects/randgenblshield/types/tedioret..."]:44: bad argument #1 to 'randomseed' (number has no integer representation)
stack traceback:
[C]: in ?
[C]: in function 'math.randomseed'
[string "/stats/effects/randgenblshield/types/tedioret..."]:44: in global 'initialize'
[string "/scripts/randgenblshieldsutil.lua"]:151: in global 'updateData'
[string "/stats/effects/randgenblshield/types/type_com..."]:22: in global 'orig_turret_update'
[string "/stats/effects/randgenblshield/types/tedioret..."]:11: in function <[string "/stats/effects/randgenblshield/types/tedioret..."]:10>
Lukiwarble 17 Dec, 2024 @ 9:13am 
[Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/monsters/monster_bl3health.lua"]:117: bad argument #1 to 'randomseed' (number has no integer representation)
stack traceback:
[C]: in ?
[C]: in function 'math.randomseed'
[string "/monsters/monster_bl3health.lua"]:117: in global 'selfdamagemccfix_update'
[string "/monsters/selfdamagemccfix.lua"]:22: in function <[string "/monsters/selfdamagemccfix.lua"]:21>
Lukiwarble 17 Dec, 2024 @ 9:13am 
almost there it seems
FelmastProMcLane  [author] 17 Dec, 2024 @ 9:00am 
"randomseed" error should've been fixed, I don't know why it's happening.

But now is even brute-forcier.
Lukiwarble 17 Dec, 2024 @ 8:45am 
[0] 0x7ff7ba9c1e13
[1] 0x7ff7ba9c08bc
[2] 0x7ff7bab09a99
[3] 0x7ff7bb2537f6
[4] 0x7ff7baa2f186
[5] 0x7ff7bb104b15
[6] 0x7ff7bb1060ca
[7] 0x7ff7bac3978b
[8] 0x7ff7bb038a72
[9] 0x7ff7baf08edb
[10] 0x7ff7bb09c264
[11] 0x7ff7bb086238
[12] 0x7ff7bb083a0a
[13] 0x7ff7bb086f15
[14] 0x7ff7baf256de
[15] 0x7ff7baf2d0bf
[16] 0x7ff7baf2c9ad
[17] 0x7ff7ba9bf1bc
[18] 0x7fffe933259d BaseThreadInitThunk
[19] 0x7fffeaceaf38 RtlUserThreadStart
[13:44:18.792] [Info] Brute Forced Solution
Lukiwarble 17 Dec, 2024 @ 8:45am 
[Error] Exception while calling script init: (LuaException) Error code 2, [string "/monsters/monster_bl3health.lua"]:15: bad argument #1 to 'randomseed' (number has no integer representation)
stack traceback:
[C]: in ?
[C]: in function 'math.randomseed'
[string "/monsters/monster_bl3health.lua"]:15: in upvalue 'orig_enhelem_init'
[string "/stats/enhancedElementals_primary.lua"]:3: in upvalue 'orig_bl3mayhem_init'
[string "/monsters/monster_bl3mayhem.lua"]:3: in upvalue 'selfdamagemccfix_init'
[string "/monsters/selfdamagemccfix.lua"]:3: in global 'init'
[string "/stats/custom_monster_script_loader.lua"]:16: in global 'monsterLoaderShared'
[string "/stats/custom_monster_script_loader.lua"]:2: in global 'loadMonsterCompatSpawning'
[string "/monsters/monster.lua"]:98: in function <[string "/monsters/monster.lua"]:15>
FelmastProMcLane  [author] 17 Dec, 2024 @ 8:04am 
Added a change to this, when spawning a monster, it should put a text in the log saying "Brute Forced Solution", if it doesn't, there is a mod loading after "Monster Compatibility Loader".
Lukiwarble 17 Dec, 2024 @ 7:39am 
[Error] Exception while calling script init: (LuaException) Error code 2, [string "/monsters/monster_bl3health.lua"]:15: bad argument #1 to 'randomseed' (number has no integer representation)
stack traceback:
[C]: in ?
[C]: in function 'math.randomseed'
[string "/monsters/monster_bl3health.lua"]:15: in upvalue 'orig_enhelem_init'
[string "/stats/enhancedElementals_primary.lua"]:3: in upvalue 'orig_bl3mayhem_init'
[string "/monsters/monster_bl3mayhem.lua"]:3: in upvalue 'selfdamagemccfix_init'
[string "/monsters/selfdamagemccfix.lua"]:3: in global 'init'
[string "/stats/custom_monster_script_loader.lua"]:16: in global 'monsterLoaderShared'
[string "/stats/custom_monster_script_loader.lua"]:2: in global 'loadMonsterCompatSpawning'
[string "/monsters/monster.lua"]:98: in function <[string "/monsters/monster.lua"]:15>
Lukiwarble 17 Dec, 2024 @ 7:39am 
[Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/monsters/monster.lua"]:103: attempt to index a nil value (field 'damageTaken')
stack traceback:
[C]: in metamethod 'index'
[string "/monsters/monster.lua"]:103: in function <[string "/monsters/monster.lua"]:101>
Lukiwarble 17 Dec, 2024 @ 7:38am 
and its still happening
Lukiwarble 17 Dec, 2024 @ 7:38am 
might as well mention at this point, i'm using xsb2 which uses a newer version of lua