Jump to content

There is a bug in 'scripts/prefabs/worm_boss_util.lua'


nknkk1
  • Fixed

[00:01:35]: [string "scripts/prefabs/worm_boss_util.lua"]:353: attempt to index field 'head' (a nil value)
LUA ERROR stack traceback:
scripts/prefabs/worm_boss_util.lua:353 in (upvalue) CollectThingsToEat (Lua) <326-392>
   inst = 100710 - worm_boss (valid:true)
   source = 100982 - worm_boss_dirt (valid:true)
   pt = (-36.34, 0.00, -10.35)
   ents = table: 000000000A96BD20
   ate = true
   calories = 0
   _ = 6
   ent = 100642 - bushhat (valid:true)
scripts/prefabs/worm_boss_util.lua:427 in (field) EmergeHead (Lua) <416-510>
   inst = 100710 - worm_boss (valid:true)
   chunk = table: 0000000010D77180
   instant = nil
   ate_on_emerge = false
   isdead = false
scripts/prefabs/worm_boss.lua:1006 in (upvalue) Dirt_EmergeHead (Lua) <1001-1009>
   inst = 100982 - worm_boss_dirt (valid:true)
scripts/prefabs/worm_boss.lua:1032 in (local) fn (Lua) <1011-1041>
   inst = 100982 - worm_boss_dirt (valid:true)
scripts/entityscript.lua:1215 in (method) PushEvent (Lua) <1202-1229>
   self (valid:true) =
      GUID = 100982
      Transform = Transform (0000000035CB36C0)
      inlimbo = false
      actionreplica = table: 0000000010D622D0
      event_listening = table: 000000000D0D7F70
      dirt_playanimation = function - scripts/prefabs/worm_boss.lua:1080
      actioncomponents = table: 0000000010D62190
      lower_components_shadow = table: 0000000010D61FB0
      entity = Entity (0000000035681840)
      AnimState = AnimState (0000000035CB3C90)
      prefab = worm_boss_dirt
      nameoverride = worm_boss
      pendingtasks = table: 000000000A96AFB0
      Network = Network (0000000035CB3570)
      Physics = Physics (0000000035CB3810)
      worm = 100710 - worm_boss (valid:true)
      chunk = table: 0000000010D77180
      SoundEmitter = SoundEmitter (0000000035CB3720)
      nameold = MISSING NAME
      name = MISSING NAME 100 / 100
      spawntime = 62.300003249198
      event_listeners = table: 000000000D0D86A0
      replica = table: 0000000010D62460
      scrapbook_proxy = worm_boss
      components = table: 0000000010D61D80
      persists = false
   event = animover
   data = nil
   listeners = table: 000000000D0D9F00
   tocall = table: 000000000A96AAB0
   i = 1
   fn = function - scripts/prefabs/worm_boss.lua:1011
scripts/mainfunctions.lua:523 in () ? (Lua) <520-525>
   guid = 100982
   event = animover
   data = nil
   inst = 100982 - worm_boss_dirt (valid:true)

[00:01:35]: [string "scripts/prefabs/worm_boss_util.lua"]:353: attempt to index field 'head' (a nil value)
LUA ERROR stack traceback:
    scripts/prefabs/worm_boss_util.lua:353 in (upvalue) CollectThingsToEat (Lua) <326-392>
    scripts/prefabs/worm_boss_util.lua:427 in (field) EmergeHead (Lua) <416-510>
    scripts/prefabs/worm_boss.lua:1006 in (upvalue) Dirt_EmergeHead (Lua) <1001-1009>
    scripts/prefabs/worm_boss.lua:1032 in (local) fn (Lua) <1011-1041>
    scripts/entityscript.lua:1215 in (method) PushEvent (Lua) <1202-1229>
    scripts/mainfunctions.lua:523 in () ? (Lua) <520-525>


Steps to Reproduce

There is a bug triggered when consuming a specific item. There is no check for nil at line 353.

Additionally, if the player is swallowed by the worm but relinquishes control on the client side, when the worm spits the player out, it will cause the player to be deleted.




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.


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...