Jump to content

Game crashes when attempting to spawn gestalt right after moonstorm ends


Electroely
  • Fixed
[10:01:23]: [string "scripts/vector3.lua"]:10: attempt to index local 'rhs' (a nil value)
LUA ERROR stack traceback:
scripts/vector3.lua:10 in () ? (Lua) <9-11>
   self =
      y = -1.2660038350987e-008
      x = -182.2946472168
      z = 240.94506835938
   rhs = nil
scripts/components/moonstormmanager.lua:592 in (method) SpawnGestalt (Lua) <586-600>
   self =
      StopCurrentMoonstorm = function - scripts/components/moonstormmanager.lua:373
      beginWagstaffDefence = function - scripts/components/moonstormmanager.lua:563

This is the crash error, specifically the bug happens because:

local newpos = FindWalkableOffset(pos, angle + (math.random()*PI/4), 16 + math.random()*8 , 16, nil, nil, customcheckfn, nil, nil)
pos = pos + newpos

This part of the code in components/moonstormmanager.lua@592 doesn't check if newpos is nil, which happens if the gestalt tries spawning after the moon storm ends because customcheckfn will return false for every point it attempts.


Steps to Reproduce

1. Finish Wagstaff event
2. Hope that a gestalt tries to spawn right after.

  • Like 1
  • Big Ups 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.


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