Jump to content

Cave Server crashes when Depth Worm attack warnings happen


Electroely
  • Fixed

When it's time for depth worms to start making their warning sounds, the caves server crashes.

[00:15:27]: pushing event	wormwarning_lvl4	winona	nil	
[00:15:27]: houndwarningtype	nil	
[00:15:27]: [string "scripts/prefabs/player_classified.lua"]:15: calling 'set_local' on bad self (number expected, got nil)
[00:15:29]: pushing event	wormwarning_lvl4	winona	nil	
[00:15:29]: houndwarningtype	nil	
[00:15:29]: [string "scripts/prefabs/player_classified.lua"]:15: calling 'set_local' on bad self (number expected, got nil)
LUA ERROR stack traceback:
=[C]:-1 in (method) set_local (C) <-1--1>
scripts/prefabs/player_classified.lua:15 in (upvalue) SetDirty (Lua) <13-17>
   netvar = net_tinybyte (1BE04E20)
   val = nil
scripts/prefabs/player_classified.lua:148 in (local) fn (Lua) <146-149>
   parent = 112074 - winona (valid:true)
   houndwarningtype = nil

This crash happens because the custom hounded spawn data for caves (declared in prefabs/cave.lua) was never updated to be compatible with the new method of doing hound wave sounds. (HOUNDWARNINGTYPE table declared in constants.lua doesn't include a value at index wormwarning_lvl4)


Steps to Reproduce
Wait for a depths worm attack in the caves (this crash did happen to me on a regular world, but for the purpose of getting server logs I used console commands to skip time)
  • Like 2
  • Thanks 1
  • Haha 2
  • Sad 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Yes I meet the same error.

[00:01:33]: pushing event	wormwarning_lvl4	wathgrithr	nil	
[00:01:33]: houndwarningtype	nil	
[00:01:33]: [string "scripts/prefabs/player_classified.lua"]:15: calling 'set_local' on bad self (number expected, got nil)
LUA ERROR stack traceback:
=[C]:-1 in (method) set_local (C) <-1--1>
scripts/prefabs/player_classified.lua:15 in (upvalue) SetDirty (Lua) <13-17>
   netvar = net_tinybyte (0x28f44620)
   val = nil
scripts/prefabs/player_classified.lua:148 in (local) fn (Lua) <146-149>
   parent = 113823 - wathgrithr (valid:true)
   houndwarningtype = nil

 

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...