Forgottenserver: DOORS ERROR

Created on 23 Jun 2020  路  7Comments  路  Source: otland/forgottenserver

Lua Script Error: [Action Interface]
data/actions/scripts/other/doors.lua onUse
data/actions/scripts/other/doors.lua:89: attempt to get length of local 'doorCreatures' (a nil value)
stack traceback:
data/actions/scripts/other/doors.lua:89: in function

Most helpful comment

I ran into the same problem and that fixed it.

All 7 comments

is there any steps on how to reproduce this?

@Sundance if you could kindly take a look at this too 馃グ

After starting the server and clicking to open any port, it no longer closes and this error appears. The console error clears only when you enter the door sqm and you can close the door again. However, sometimes, when you click the door again, the same error occurs on the console and you are unable to close the door.
Ps: it's not every time it happens, it's sometimes.

Just change

if #doorCreatures > 0 then

to

if doorCreatures and #doorCreatures > 0 then

Just change

if #doorCreatures > 0 then

to

if doorCreatures and #doorCreatures > 0 then

@luanluciano93 could you confirm if this fix the issue?

I ran into the same problem and that fixed it.

It worked just fine! Thanks.

okay everyone, please check https://github.com/otland/forgottenserver/pull/3115 and aprove if its the case

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MillhioreBT picture MillhioreBT  路  4Comments

EPuncker picture EPuncker  路  5Comments

GoularPink picture GoularPink  路  4Comments

Olrios picture Olrios  路  4Comments

wo11ven picture wo11ven  路  5Comments