Lua scripting

Everything related to the code /
Tout ce qui touche au code
Post Reply
User avatar
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France

Lua scripting

Post by zuzuf » Fri Feb 20, 2009 5:51 pm

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.
=>;-D Penguin Powered

User avatar
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation

Post by Balthazar » Fri Feb 20, 2009 6:04 pm

I`d like to try scripting once 0.6.x becomes available :P

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests