Server Log Crash : [02:05:52]: [string "scripts/components/lunarthrall_plantspawner..."]:83: attempt to get length of local 'patch' (a nil value)
LUA ERROR stack traceback:
scripts/components/lunarthrall_plantspawner.lua:83 in (field) fn (Lua) <50-135>
scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415>
scripts/update.lua:237 in () ? (Lua) <221-295>
In the aforementioned script, the function 'FindWildPatch' does not return local variable 'tries' if no valid plant is found near the rift, and within the same script, the first code snippet does not account for nil values, leading to crashes. I believe that this is a quick bug to fix as I've done in my second code snippet to simply check if local variable 'patch' is nil, which is a private hotfix mod to prevent further crashes within our server.
Unknown as the server's internal timers are causing this, but I believe I've described this clearly enough.
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 accountSign in
Already have an account? Sign in here.
Sign In Now