LSLua-0.7
I fixed and added a bunch of stuff and added alot documentation and examples. So if you have any bugs, feature requests or problems with the docs, feel free to contact me or post them oin the comments.
Changelog:
- i rewrote one half the code and restructured the other ... so i understand it now completely ;-)
- added tracebacks to error messages
- lslua will never die! ( it wont stop working after an error anymore ) This means you will see *all* errors, but you might have to click "ok" alot too!
- added LSLuaErrorFile <path>: If set, errors are dumped to the file.
- the older version created a new lua thread for *every call to lslua*, which is completely pointless. It also was implemented wrong ( without any syncronizing between the threads ) so the "threads" could corrupt each other, resulting in error messages like "cannot index <some global table>, a uservalue"
- lslua.message_box is extremely nice now and accepts 1 or 2 arguments which will be converted to strings or displayed as a type if that's not possible
- added: lsmodule.after, lsmodule.every, lsmodule.callback (see docs)
=== this might break your scripts ===
- removed the threading module ( pointless )
- removed the timer module -> use lsmodule.timer
- lslua.mouse returns x,y directly: use "x,y = lslua.mouse()"
fractal.design wrote on September 11, 2008 at 04:39:
I really wanna get back into lua but I gotta make $$$!!!
Good work though (I trust) ;)