🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Do you only need a single lua_State * interface?

Started by
0 comments, last by graveyard filla 19 years, 11 months ago
Hi, Is it possible load and manage all the scripts in your game with a single lua_State * interface? I am having trouble getting it to work, and im not sure if its possible. What id like to do is write a class that handles all the script functionality, like a script manager. -gf
Advertisement
what problems are you having exactly? i just got done implementing a system, where i made a class called Scripting. i only initialize Lua and register my class's one time, in the begining, and close lua at the end. im able to do this with a single *lua_state member. post your code and give more detail on your problem!
FTA, my 2D futuristic action MMORPG

This topic is closed to new replies.

Advertisement