PtokaX forum

Development Section => LUA & PtokaX-Scripting-Interface => Topic started by: Jerry on 22 January, 2005, 21:43:46

Title: convert Lua 4 to Lua 5.0.2.
Post by: Jerry on 22 January, 2005, 21:43:46
Hi people,

I need help.

How I convert any script written in lua 4 to lua 5.0.2?

Thanks

Jerry
Title:
Post by: Typhoon on 23 January, 2005, 11:33:18
first of all, you could start out with this link //www.lua.org  and second you could look at plop's convert script , all info about what need's changes are in that script.. strfind to string.find  such changes are needed with all strxxxx to string.xxxx  , it's quite easy to change most scripts, the only tricky part are the file operations read,open,close stuff like that , post your pregress, and if you really get stuck post the script and one might help you out with it :o)

 Typhoon?
Title:
Post by: Tw?sT?d-d?v on 29 January, 2005, 10:02:42
Hi, i,m not very good with the script side of things (yet)

If we convert lua 4 to lua 5.0.2 will they work on currant ptokax software?????

If not is there any other way of testing to make sure the script works?