Jump to content

Recommended Posts

Posted

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?

Paren el mundo!, me quiero bajar.

Posted

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.

Posted

Yep, just uncheck "Sandbox Lua" in the Options dialog and it will work.

My job is to make tools you love, with the features you want, and performance you can't live without.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...