Author |
Message |
Joudoki
Joined: Sun Aug 24, 2008 2:08 am Posts: 3
|
 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 ).
|
Sun Aug 24, 2008 2:12 am |
|
 |
MadKylegar
Joined: Thu Aug 21, 2008 2:19 am Posts: 14
|
 Re: Standard Lua?
dofile("filename.lua") to run a file
|
Sun Aug 24, 2008 2:24 am |
|
 |
Lord Tim
Joined: Fri Apr 27, 2007 4:55 pm Posts: 1178 Location: America!
|
 Re: Standard Lua?
The os and io libraries are not included for safety's sake. Data's decision.
|
Sun Aug 24, 2008 2:51 am |
|
 |
Joudoki
Joined: Sun Aug 24, 2008 2:08 am Posts: 3
|
 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.
|
Sun Aug 24, 2008 2:53 am |
|
 |
Lord Tim
Joined: Fri Apr 27, 2007 4:55 pm Posts: 1178 Location: America!
|
 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.
|
Sun Aug 24, 2008 3:55 am |
|
 |
|