View unanswered posts | View active topics It is currently Wed Dec 25, 2024 5:08 pm



Reply to topic  [ 5 posts ] 
 Standard Lua? 
Author Message

Joined: Sun Aug 24, 2008 2:08 am
Posts: 3
Reply with quote
Post 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
Profile

Joined: Thu Aug 21, 2008 2:19 am
Posts: 14
Reply with quote
Post Re: Standard Lua?
dofile("filename.lua") to run a file


Sun Aug 24, 2008 2:24 am
Profile
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post 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
Profile

Joined: Sun Aug 24, 2008 2:08 am
Posts: 3
Reply with quote
Post 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
Profile
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.070s | 13 Queries | GZIP : Off ]