SRTT Lua Globals

Hey.

I'm tweaking around with the Lua files of the game (SR3) and I've noticed that some functions are stripped and inaccessible. For example the io.* library, os.* library and require module function aren't in _G. Is there anyway I can access these as they are usually built hard into Lua unless null'ed by letting the GC clean it up.

Thanks.
 
Almost all of the "optional" Lua modules were not included with the Lua implementation in SRTT (or any SR game). Both first and second tier modules (OS, math, string, etc.) were intentionally omitted for memory savings.

Any functionality in those modules either was never needed during development or was reimplemented with custom internal C functions (such as many of the math functions).
 
Back
Top