Jump to content

Merm king bugged


cezarica
  • Pending

Master shard crashed with this log:

[08:41:03]: [string "scripts/prefabs/mermking.lua"]:244: attempt to index field 'king' (a nil value)
LUA ERROR stack traceback:
scripts/prefabs/mermking.lua:244 in (local) fn (Lua) <242-258>
   inst = 261701 - mermguard (valid:true)
   remove_at = nil
scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
   self (valid:true) =
      DynamicShadow = DynamicShadow (0x144275e0)
      Transform = Transform (0x3e8bddf0)
      inlimbo = false
      actionreplica = table: 0x1930d360
      event_listening = table: 0x401b77f0
      brain = --brain--
sleep time: 0.06
Priority - RUNNING <RUNNING> (execute 2, eval in 0.08)>0.06
   >Parallel - READY <READY> ()>0.00
   >   >OnFire - READY <READY> ()>0.00
   >   >Panic - READY <READY> ()>0.00
   >Parallel - RUNNING <RUNNING> ()>0.06
   >   >AttackMomentarily - READY <SUCCESS> ()>0.00
   >   >ChaseAndAttack - RUNNING <RUNNING> ()>0.06
   >Parallel - READY <READY> ()>0.00
   >   >Dodge - READY <READY> ()>0.00
   >   >RunAway - READY <READY> ()>0.00
   >Parallel - READY <READY> ()>0.00
   >   >ShouldGoToThrone - READY <READY> ()>0.00
   >   >Priority - READY <READY> ()>0.00
   >   >   >Leash - READY <READY> ()>0.00
   >   >   >Sequence - READY <READY> ()>0.00
   >   >   >   >IsThroneValid - READY <READY> ()>0.00
   >   >   >   >ActionNode - READY <READY> ()>0.00
   >Sequence - READY <READY> ()>0.00
   >   >chop - READY <READY> ()>0.00
   >   >Parallel - READY <READY> ()>0.00
   >   >   >keep chopping - READY <READY> ()>0.00
   >   >   >Sequence - READY <READY> ()>0.00
   >   >   >   >ChattyNode - READY  [**truncated**]
      actioncomponents = table: 0x331e45c0
      sounds = table: 0x3c1d1630
      lower_components_shadow = table: 0x35bfc1b0
      entity = Entity (0x415399a0)
      AnimState = AnimState (0x36c31690)
      prefab = mermguard
      updatecomponents = table: 0xa4a4350
      return_to_king = false
      Network = Network (0x1c1d83a0)
      Physics = Physics (0x30f34b70)
      brainfn = table: 0xd1589a0
      SoundEmitter = SoundEmitter (0x17216190)
      name = Loyal Merm Guard
      event_listeners = table: 0x3b654a50
      sg = sg="merm", state="hit", time=0.27, tags = "hit,busy,"
      spawntime = 18431.900961298
      pendingtasks = table: 0x95d13e0
      replica = table: 0x23e39800
      GUID = 261701
      components = table: 0x320aad60
      persists = true
   event = death
   data = table: 0x14017a50
   listeners = table: 0x2a5fc260
   tocall = table: 0x972edc0
   i = 2
   fn = function - scripts/prefabs/mermking.lua:242
scripts/components/health.lua:354 in (method) SetVal (Lua) <334-371>
   self =
      minhealth = 0
      absorb = 0
      firedamagecaptimer = 0
      nofadeout = false
      firedamageinlastsecond = 0
      externalabsorbmodifiers = table: 0x3d4fcc30
      playerabsorb = 0
      inst = 261701 - mermguard (valid:true)
      externalfiredamagemultipliers = table: 0x2b5f24b0
      fire_damage_scale = 1
      takingfiredamagetime = 0
      _ = table: 0x3e95fb20
      fire_timestart = 1
   val = -20
   cause = bishop_nightmare
   afflicter = 259605 - bishop_nightmare (valid:true)
   old_health = 20
   max_health = 660
   min_health = 0
scripts/components/health.lua:383 in (method) DoDelta (Lua) <373-392>
   self =
      minhealth = 0
      absorb = 0
      firedamagecaptimer = 0
      nofadeout = false
      firedamageinlastsecond = 0
      externalabsorbmodifiers = table: 0x3d4fcc30
      playerabsorb = 0
      inst = 261701 - mermguard (valid:true)
      externalfiredamagemultipliers = table: 0x2b5f24b0
      fire_damage_scale = 1
      takingfiredamagetime = 0
      _ = table: 0x3e95fb20
      fire_timestart = 1
   amount = -40
   overtime = nil
   cause = bishop_nightmare
   ignore_invincible = nil
   afflicter = 259605 - bishop_nightmare (valid:true)
   ignore_absorb = nil
   old_percent = 0.03030303030303
scripts/components/combat.lua:459 in (method) GetAttacked (Lua) <433-515>
   self =
      hiteffectsymbol = pig_torso
      defaultdamage = 50
      keeptargetfn = function - scripts/prefabs/merm.lua:93
      forcefacing = true
 
[08:41:03]: [string "scripts/prefabs/mermking.lua"]:244: attempt to index field 'king' (a nil value)
LUA ERROR stack traceback:
    scripts/prefabs/mermking.lua:244 in (local) fn (Lua) <242-258>
    scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
    scripts/components/health.lua:354 in (method) SetVal (Lua) <334-371>
    scripts/components/health.lua:383 in (method) DoDelta (Lua) <373-392>
    scripts/components/combat.lua:459 in (method) GetAttacked (Lua) <433-515>
    scripts/components/combat.lua:895 in (method) DoAttack (Lua) <832-919>
    scripts/components/projectile.lua:211 in (method) Hit (Lua) <191-218>
    scripts/components/projectile.lua:273 in (upvalue) DoUpdate (Lua) <257-324>
    scripts/components/projectile.lua:352 in (method) OnUpdate (Lua) <326-353>
    scripts/update.lua:202 in () ? (Lua) <159-238>
    
[08:41:03]: Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is     ScriptErrorWidget    not a screen?    
[08:41:03]: stack traceback:
    scripts/widgets/widget.lua:605 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:656 in (method) SetFocus (Lua) <629-665>
    scripts/widgets/menu.lua:83 in (method) SetFocus (Lua) <74-85>
    scripts/widgets/scripterrorwidget.lua:109 in (method) OnUpdate (Lua) <102-119>
    scripts/update.lua:90 in () ? (Lua) <33-129>   


Steps to Reproduce

Sorry, can't tell you what exactly happened cos I was in bed sleeping at the time. Will ask maybe will get lucky and find the person that triggered the error and find out what caused it, but don't hold your breath on it.




User Feedback


There are no comments to display.



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