Essential Libraries Missing from Lua Implementation
Case number: | 845813-986887 |
Topic: | Game: Tools |
Opened by: | mcurtis |
Status: | Closed |
Type: | Suggestion |
Opened on: | Tuesday, October 13, 2009 - 04:28 |
Last modified: | Wednesday, February 22, 2012 - 22:06 |
math, string, table, io, os, etc...
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!!!
Topic: Developer Preview » Game: Tools |
Changing project.
Status: Open » Closed |
Done. The lua math, string, table, parts of os and base library are implemented and will be available in the main release soon.
Status: Closed » Closed |
Marking as resolved.
These libraries were intentionally left out to keep the language simpler.