Essential Libraries Missing from Lua Implementation

Case number:845813-986887
Topic:Game: Tools
Opened by:mcurtis
Opened on:Tuesday, October 13, 2009 - 04:28
Last modified:Wednesday, February 22, 2012 - 22:06

math, string, table, io, os, etc...

(Tue, 10/13/2009 - 04:28  |  8 comments)

Joined: 11/10/2007
Groups: Window Group
Status: Open » Open

These libraries were intentionally left out to keep the language simpler.

mcurtis's picture
User offline. Last seen 11 years 49 weeks ago. Offline
Joined: 05/09/2008
Groups: None

With this feedback entry, I am requesting that Lua core functionality be restored.

Joined: 04/19/2008
Groups: None

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.

Joined: 09/18/2009
Groups: SETI.Germany

Yes, some mathematical functions, random numbers or constants like pi would be nice.

Joined: 04/13/2009
Groups: Contenders

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!!!

Joined: 11/10/2007
Groups: Window Group
Topic: Developer Preview » Game: Tools

Changing project.

Tlaloc's picture
User offline. Last seen 32 weeks 4 days ago. Offline
Joined: 08/04/2008
Groups: Mojo Risin'
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.

Joined: 11/10/2007
Groups: Window Group
Status: Closed » Closed

Marking as resolved.


Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, Boehringer Ingelheim, RosettaCommons