whiterabbit Posted August 24, 2014 Share Posted August 24, 2014 I tried to do: local DateRan = os.date("%Y.%m.%d.%H.%M.%S") but got attempt to index global 'os' (a nil value) I did a search and couldn't see an obvious alternative. Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 24, 2014 Share Posted August 24, 2014 For os or io commands in lua, you need lua sandbox disabled. Go to the Editor's Tools-->Options and uncheck the Sandbox Lua option. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
whiterabbit Posted August 24, 2014 Author Share Posted August 24, 2014 For os or io commands in lua, you need lua sandbox disabled. Go to the Editor's Tools-->Options and uncheck the Sandbox Lua option. Thanks. Is there any reason I would want to keep it on? Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 24, 2014 Share Posted August 24, 2014 Not much info on the reasons, but here is a previous post about it: http://www.leadwerks.com/werkspace/topic/8296-lua-sandboxing/page__hl__sandbox Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
whiterabbit Posted August 24, 2014 Author Share Posted August 24, 2014 I get it now, it only has an effect on projects being launched from the editor. os is still available when the .exe is ran manually. Thanks again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.