I am making the basics class required to manipulate Lua scripts easily.
This breaks compatibility with previously written game scripts since they don't need a main function any more, everything runs like if the script was running in parallel in a separate thread.
I also changed some function names:
_ ta3d_print and ta3d_print_for become text_print and text_print_for
_ all ta3d_ prefix have been removed
text printing functions are named text_print because there is already a print function in Lua.
Scripts are going to share a common environment they can access through a set of functions in order to make it thread safe and because it is a separated environment, not current Lua environment, so you won't disturb the game behavior writing unit or AI scripts.
Lua scripting
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Lua scripting
=>;-D Penguin Powered
Who is online
Users browsing this forum: No registered users and 28 guests