Essential Libraries Missing from Lua Implementation

Started by mcurtis

Christoph Lv 1

I think at least math, string and table should be included to allow scripting with more complex algorithms. io and os, however, could present a security problem, e.g. scripts shouldn't be able to create/modify files.

themarquis Lv 1

Math is really a biggie, I think. pseudorandom number generation is almost impossible w/out that math library, as are a lot of other basic calculations that people might want to do. At the very least, if you guys are bound and determined not to inlcude Math give us a get_random_segment() function or something.

The file i/o stuff would also be useful for a lot of folks. I want text output files (the in-game one doesn't store more than a couple hundred lines) and I want to read from files. Minimally, for file reading, I want to write a script in an editor and then save it in the foldit data folders and run it from foldit, either via the gui or loadfile from a script.

Scripting is great – keep improving it!!!

Tlaloc Lv 1

Done. The lua math, string, table, parts of os and base library are implemented and will be available in the main release soon.