Jump to content

Crash when submerged Wormwood Carrats reach end of life


Popian
  • Fixed

[string "scripts/prefabs/carrat.lua"]:465: attempt to index field 'lootdropper' (a nil value)
LUA ERROR stack traceback:
scripts/prefabs/carrat.lua:465 in (upvalue) finish_transformed_life (Lua) <460-471>
   inst = 112333 - carrat (valid:true)
   ix = -157.44000244141
   iy = 0
   iz = 69.805999755859
   carrot = 139142 - carrot (valid:true)
scripts/prefabs/carrat.lua:475 in (local) fn (Lua) <473-477>
   inst = 112333 - carrat (valid:true)
   data = table: 0000000021568F60
scripts/entityscript.lua:1154 in (method) PushEvent (Lua) <1141-1168>
   self (valid:true) =
      GUID = 112333
      inlimbo = false
      _entitysleeptime = 0
      restoredatafromtrap = function - scripts/prefabs/carrat.lua:638
      sounds = table: 00000000562B11D0
      _planted_ruffle_task = PERIODIC 112333: 30.000000
      AnimState = AnimState (00000000A5605120)
      Network = Network (00000000A560BD20)
      _musicstate = net_tinybyte (00000000A566D6A0)
      pendingtasks = table: 00000000A566DEC0
      GoToSubmerged = function - scripts/prefabs/carrat.lua:208
      sg = sg="carrat", state="submerged", time=18.67, tags = "busy,noattack,"
      spawntime = 0
      Transform = Transform (00000000A55FD110)
      actionreplica = table: 00000000A566C200
      event_listening = table: 00000000A566CCA0
      moistureupdatetask = PERIODIC 112333: 1.000000
      actioncomponents = table: 00000000A566BA30
      OnLoad = function - scripts/prefabs/carrat.lua:124
      lower_components_shadow = table: 00000000A566BEE0
      nameoverride = wormwood_mutantproxy_carrat
      name = Carrat
      entity = Entity (00000000A53F7100)
      _is_burrowed = true
      prefab = carrat
      settrapdata = function - scripts/prefabs/carrat.lua:628
      OnSave = function - scripts/prefabs/carrat.lua:113
      DynamicShadow = DynamicShadow (00000000A560DD00)
      Physics = Physics (00000000A56D7660)
      RegisterComponentActions = function - ../mods/workshop-2525856394/modmain.lua:68
      _setcolorfn = function - scripts/prefabs/carrat.lua:84
      event_listeners = table: 00000000A566D330
      setbeefalocarratrat = function - scripts/prefabs/carrat.lua:694
      GoToEmerged = function - scripts/prefabs/carrat.lua:480
      UnregisterComponentActions = function - ../mods/workshop-2525856394/modmain.lua:73
      replica = table: 00000000A566BFD0
      persists = true
      components = table: 00000000A566BF30
      SoundEmitter = SoundEmitter (00000000A5609200)
   event = timerdone
   data = table: 0000000021568F60
   listeners = table: 000000009FD70180
   tocall = table: 00000000215693C0
   i = 1
   fn = function - scripts/prefabs/carrat.lua:473
scripts/components/timer.lua:33 in (field) fn (Lua) <31-34>
   inst = 112333 - carrat (valid:true)
   self =
      inst = 112333 - carrat (valid:true)
      timers = table: 000000009FD703B0
   name = finish_transformed_life
scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
   self =
      running = table: 000000001FC44410
      waitingfortick = table: 000000001FC440A0
      hibernating = table: 000000001FC43600
      tasks = table: 000000001FC44500
      waking = table: 0000000095DFA9F0
      attime = table: 000000001FC437E0
   tick = 560
   k = PERIODIC 112333: 0.000000
   v = true
   already_dead = false
scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415>
   tick = 560
scripts/update.lua:240 in () ? (Lua) <224-298>
   dt = 0.033333335071802
   tick = 560
   i = 560

[string "scripts/prefabs/carrat.lua"]:465: attempt to index field 'lootdropper' (a nil value)
LUA ERROR stack traceback:
    scripts/prefabs/carrat.lua:465 in (upvalue) finish_transformed_life (Lua) <460-471>
    scripts/prefabs/carrat.lua:475 in (local) fn (Lua) <473-477>
    scripts/entityscript.lua:1154 in (method) PushEvent (Lua) <1141-1168>
    scripts/components/timer.lua:33 in (field) fn (Lua) <31-34>
    scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
    scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415>
    scripts/update.lua:240 in () ? (Lua) <224-298>


Steps to Reproduce
  1. Spawn Carrat as Wormwood
  2. Let it burrow
  3. Have it reach end of life



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