Charrua Posted June 19, 2014 Share Posted June 19, 2014 the following script fragment, were working ok, today i update LE3 and logFile is nil, and the file isn;t created (this fragment is just for testing that the entities table has the correct ones) local logFile logFile = FileSystem:WriteFile("log.txt") if logFile ~= nil then for key,value in pairs(entities) do logFile:WriteLine(key) local pos = value:GetPosition() logFile:WriteLine(pos.x) end logFile:Release() end does any one why? Quote Paren el mundo!, me quiero bajar. Link to comment Share on other sites More sharing options...
YouGroove Posted June 19, 2014 Share Posted June 19, 2014 Does LE3 have admin rights to write the file ? Does location has changed ? Did you search the file on other directories ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted June 19, 2014 Share Posted June 19, 2014 Guessing this has to do with the sandbox mode thing Josh put in. By default this is enabled which restricts access to certain things like writing files. Do a search for sandbox on here to see a couple threads about it. Quote Link to comment Share on other sites More sharing options...
Josh Posted June 19, 2014 Share Posted June 19, 2014 Yep, just uncheck "Sandbox Lua" in the Options dialog and it will work. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Charrua Posted June 19, 2014 Author Share Posted June 19, 2014 thank's disabling this checkbox makes it work again! Quote Paren el mundo!, me quiero bajar. 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.