You were right, JeGX, the book "Programming in LUA" is very useful. I thought browsing the lua.org site was enough to know the language, but many very interstring tricks are in the book. The more I read it, the more I LOVE LUA !
Now I still have two questions about how LUA is intergrated in Hyperion :
- When you have a script executed with run_mode="EXECUTE_EACH_FRAME", how do you run it from within Hyperion ? as a coroutine ? what is the best way for starting a long operation (such as reading a file, accessing a database or a socket for example) from the (fast) code executed in each frame ?
- I still have much problems using LUA libraries written in C because they keep on requiring "lua50.dll" or whatever. Which version of these libs should I use (static link, dynamic link ...) and where should I put them so that all my hyperion apps can use them ?
Thanks !
