Jump to content

Bugged king


cezarica
  • Fixed

The fix doesn't seem to be working in version 376201 as main shard crashed 2 hours ago:

[23:17:41]: [string "scripts/brains/mermguardbrain.lua"]:195: attempt to index field 'king' (a nil value)
LUA ERROR stack traceback:
scripts/brains/mermguardbrain.lua:195 in () ? (Lua) <195-195>
=(tail call):-1 in ()  (tail) <-1--1>
scripts/behaviours/leash.lua:12 in (method) Visit (Lua) <10-28>
   self =
      lastresult = READY
      parent = table: 0x15bfc390
      homepos = function - scripts/brains/mermguardbrain.lua:195
      returndist = 2
      running = true
      name = Leash
      status = READY
      inst = 702249 - mermguard (valid:true)
      maxdist = 2
scripts/behaviourtree.lua:578 in (method) Visit (Lua) <554-610>
   self =
      lasttime = 34034.735108383
      name = Priority
      parent = table: 0x38970340
      status = READY
      period = 0.25
      children = table: 0x2d314a70
      lastresult = READY
   time = 34034.735108383
   do_eval = true
   oldidx = nil
   old_event = nil
   found = false
   idx = 1
   child = table: 0x256377a0
   should_test_anyway = nil
scripts/behaviourtree.lua:643 in (method) Visit (Lua) <633-664>
   self =
      name = Parallel
      status = READY
      parent = table: 0x399875b0
      children = table: 0x23f53db0
      lastresult = READY
   done = true
   any_done = true
   idx = 2
   child = table: 0x15bfc390
scripts/behaviourtree.lua:578 in (method) Visit (Lua) <554-610>
   self =
      idx = 11
      lasttime = 34034.735108383
      name = Priority
      status = RUNNING
      period = 0.25
      children = table: 0x2e7ad210
      lastresult = RUNNING
   time = 34034.735108383
   do_eval = true
   oldidx = 11
   old_event = nil
   found = false
   idx = 4
   child = table: 0x38970340
   should_test_anyway = nil
scripts/behaviourtree.lua:22 in (method) Update (Lua) <20-27>
   self =
      root = table: 0x399875b0
      inst = 702249 - mermguard (valid:true)
      forceupdate = false
scripts/brain.lua:212 in (method) OnUpdate (Lua) <205-214>
   self =
      bt = Priority - RUNNING <RUNNING> (execute 11, eval in 0.25)>0.25
   >Parallel - FAILED <READY> ()>0.00
   >   >OnFire - FAILED <READY> ()>0.00
   >   >Panic - READY <READY> ()>0.00
   >Parallel - FAILED <READY> ()>0.00
   >   >AttackMomentarily - SUCCESS <READY> ()>0.00
   >   >ChaseAndAttack - FAILED <READY> ()>0.00
   >Parallel - FAILED <READY> ()>0.00
   >   >Dodge - FAILED <READY> ()>0.00
   >   >RunAway - READY <READY> ()>0.00
   >Parallel - READY <READY> ()>0.00
   >   >ShouldGoToThrone - SUCCESS <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 <READY> ()>0.00
   >   >   [**truncated**]
      events = table: 0x1e6c6ac0
      behaviourqueue = table: 0x38e88690
      stopped = false
      inst = 702249 - mermguard (valid:true)
scripts/brain.lua:135 in (method) Update (Lua) <105-147>
   self =
      hibernaters = table: 0x23a48140
      updaters = table: 0x18739230
      tickwaiters = table: 0x2b7a11e0
      instances = table: 0x2dd9d270
   current_tick = 1021042
   waiters = table: 0x2691e910
   k = --brain--
sleep time: 0.25
Priority - RUNNING <RUNNING> (execute 11, eval in 0.25)>0.25
   >Parallel - FAILED <READY> ()>0.00
   >   >OnFire - FAILED <READY> ()>0.00
   >   >Panic - READY <READY> ()>0.00
   >Parallel - FAILED <READY> ()>0.00
   >   >AttackMomentarily - SUCCESS <READY> ()>0.00
   >   >ChaseAndAttack - FAILED <READY> ()>0.00
   >Parallel - FAILED <READY> ()>0.00
   >   >Dodge - FAILED <READY> ()>0.00
   >   >RunAway - READY <READY> ()>0.00
   >Parallel - READY <READY> ()>0.00
   >   >ShouldGoToThrone - SUCCESS <READY> ()>0.00
   >   >Priority - READY <READY> ()>0.00
   >   >   >Leash - READY <READY> ()>0.00
   >   >   >Sequence - READY <READY> ()>0.00
   >   >
[23:17:41]: [string "scripts/brains/mermguardbrain.lua"]:195: attempt to index field 'king' (a nil value)
LUA ERROR stack traceback:
    scripts/brains/mermguardbrain.lua:195 in () ? (Lua) <195-195>
    =(tail call):-1 in ()  (tail) <-1--1>
    scripts/behaviours/leash.lua:12 in (method) Visit (Lua) <10-28>
    scripts/behaviourtree.lua:578 in (method) Visit (Lua) <554-610>
    scripts/behaviourtree.lua:643 in (method) Visit (Lua) <633-664>
    scripts/behaviourtree.lua:578 in (method) Visit (Lua) <554-610>
    scripts/behaviourtree.lua:22 in (method) Update (Lua) <20-27>
    scripts/brain.lua:212 in (method) OnUpdate (Lua) <205-214>
    scripts/brain.lua:135 in (method) Update (Lua) <105-147>
    scripts/update.lua:232 in () ? (Lua) <159-238>
    
[23:17:41]: 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?    
[23:17:41]: 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
Fiddle with merm king I guess, don't know.



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.

@cezaricahey! Can you remember, did you use deconstruction staff / console on Royal Tapestry (King throne) before killing Merm King?

Edited by Tiberian39

Share this comment


Link to comment
Share on other sites

@cezarica ah, i see. I think i know, why it happend. Already tested that. If you use deconstruction staff / console on Royal Tapestry (King throne) before killing Merm King, server will not run again after shutdown. Waiting for developers... :)

Share this comment


Link to comment
Share on other sites

If mine started back without any issue then clearly is not the case you mentioned above. Nevertheless, thanks for taking your time to find one of the issues. :)

Share this comment


Link to comment
Share on other sites

Changed Status to Fixed

Thanks for the report, the issue was fixed previously but it didn't make its way into the last update. It should be out soon along with other miscellaneous fixes.

  • Thanks 1

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