Data Realms Fan Forums http://45.55.195.193/ |
|
Standard Lua? http://45.55.195.193/viewtopic.php?f=73&t=12055 |
Page 1 of 1 |
Author: | Joudoki [ Sun Aug 24, 2008 2:12 am ] |
Post subject: | Standard Lua? |
How much of the standard Lua libs are present? This is what I've done to see what kinds of binds are available ( common trick in GMod ): for k,v in pairs( _G ) do print( tostring( k ) .. " - " .. tostring( v ) ) end However, almost none of the standard lua libs are present ( most notably, file input/output functions ). Also, anyone figure out how to run a lua file? I can't read the console cause the letters are so damned small, and pressing and holding the left/right arrow keys and backspace results in a VERY slow scroll/delete speed ( not to mention, there's no scrollbar for the console ). |
Author: | MadKylegar [ Sun Aug 24, 2008 2:24 am ] |
Post subject: | Re: Standard Lua? |
dofile("filename.lua") to run a file |
Author: | Lord Tim [ Sun Aug 24, 2008 2:51 am ] |
Post subject: | Re: Standard Lua? |
The os and io libraries are not included for safety's sake. Data's decision. |
Author: | Joudoki [ Sun Aug 24, 2008 2:53 am ] |
Post subject: | Re: Standard Lua? |
It would at least be nice if there was a /data/ directory where you could write .txt only files ( the way Garry's Mod handles them.. it works pretty well. |
Author: | Lord Tim [ Sun Aug 24, 2008 3:55 am ] |
Post subject: | Re: Standard Lua? |
Data said something about giving us a special save file functionality, but we have yet to find it. Have to wait till he gets the documentation done. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |