OnlineCop / kq-fork

Fork of KQ r910. Just for fun.
GNU General Public License v2.0
15 stars 10 forks source link

Help with Lua: party members #165

Open OnlineCop opened 9 months ago

OnlineCop commented 9 months ago

do_luainit() within intrface.cpp sets up the majority of the Lua bindings.

From that, init_obj(lua_State* L) sets up various getters and setters for the party members.

I believe some of the variables are not being set up correctly, although I don't understand the Lua stack well enough to do serious troubleshooting. This can cause unexpected crashes, such as after the final battle of [coliseum.lua] if a previous party member had not joined the team.

z9484 commented 8 months ago

Have you found any other problems besides that coliseum fight? I don't remember seeing any problems with those variables besides that fact that it doesn't initialize players you haven't seen.