Security - Woospringbreak1/Luamod_Docs GitHub Wiki
Security
File Access
File access is implemented by API_FileAccess and is limited to two folders:
<Bonelab Install Directory>/Mods/LuaMod/LuaScripts/
<Bonelab Install Directory>/Mods/LuaMod/Resources/
Attempting to access files outside of these folders will throw a UnauthorizedAccessException and stop script executions. In addition, file extensions are limited to .txt and .json
Performance
Script functions are limited to a (currently) fixed execution time of 100ms and allocation of 15MB of memory. Repeated violation of this restriction will prevent a script from running.
In future a performance profile selection will allow the player to decrease this limit - targeting the Quest profile will be a good method of ensure efficiency on PCVR.
Beyond raw execution time, computer resource consumption is not monitored - if you want to summon a thousand Fords, you can.