-
Notifications
You must be signed in to change notification settings - Fork 9
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
The party[] array in Lua scripts is nil #159
Comments
Ugh I finally found it https://github.com/OnlineCop/kq-fork/blob/road_to_1.0/src/intrface.cpp#L923 |
I'm not sure; I started a new game and started to read bookshelves and fires where When the interpreter crashes, doesn't it usually dump an error to screen (still recoverable, and player can keep going)? |
Yes it should print an error to the console and then keep going. I started a new game and book_talk worked. Are using mac or linux? |
Actually, Win10. I wonder if Lua broke silently and I just don't see any error messages about it? Watching a tutorial now (Lua C API tutorial) to see whether it was something with my Lua stack that I implemented wrong. I've got an uneasy feeling that it has something to do with the fact that KPlayer is a C++ class (with |
While troubleshooting the coliseum crash when entering Rufus' cabin, I noticed that interacting with the fire calls
touch_fire(party[0])
, but theparty[]
array appears to be nil.It appears to also be nil in the other scrips where
party[#]
is used, such asbook_talk(party[0])
.Do we have any idea where
party
gets initialized and/or updated? Is it within the Lua scripts, or back in the C++ code like inintrface.cpp
somewhere?The text was updated successfully, but these errors were encountered: