mcurtis Lv 1
math, string, table, io, os, etc…
math, string, table, io, os, etc…
These libraries were intentionally left out to keep the language simpler.
With this feedback entry, I am requesting that Lua core functionality be restored.
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.
Yes, some mathematical functions, random numbers or constants like pi would be nice.
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!!!
Changing project.
Done. The lua math, string, table, parts of os and base library are implemented and will be available in the main release soon.
Marking as resolved.