Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOORS ERROR #3102

Closed
luanluciano93 opened this issue Jun 22, 2020 · 7 comments · Fixed by #3115
Closed

DOORS ERROR #3102

luanluciano93 opened this issue Jun 22, 2020 · 7 comments · Fixed by #3115

Comments

@luanluciano93
Copy link
Contributor

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:
[C]: in function '__len'
data/actions/scripts/other/doors.lua:89: in function <data/actions/scripts/other/doors.lua:56>

@EPuncker
Copy link
Contributor

is there any steps on how to reproduce this?

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

@ggruts
Copy link

ggruts commented Jun 23, 2020

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.

@NRH-AA
Copy link
Contributor

NRH-AA commented Jun 28, 2020

Just change

if #doorCreatures > 0 then

to

if doorCreatures and #doorCreatures > 0 then

@EPuncker
Copy link
Contributor

Just change

if #doorCreatures > 0 then

to

if doorCreatures and #doorCreatures > 0 then

@luanluciano93 could you confirm if this fix the issue?

@NRH-AA
Copy link
Contributor

NRH-AA commented Jun 29, 2020

I ran into the same problem and that fixed it.

@ggruts
Copy link

ggruts commented Jun 29, 2020

It worked just fine! Thanks.

EPuncker added a commit to EPuncker/forgottenserver that referenced this issue Jul 2, 2020
@EPuncker
Copy link
Contributor

EPuncker commented Jul 2, 2020

okay everyone, please check #3115 and aprove if its the case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants