waldemarlima Posted May 26, 2016 Posted May 26, 2016 Hi everyone someone can help me with this problem ? screenshot > http://prntscr.com/b8u0bv thanks by attention Quote
Thirsty Panther Posted May 26, 2016 Posted May 26, 2016 Should it be a capital "S" in stream? http://www.leadwerks.com/werkspace/page/api-reference/_/stream/streamread-r280 Quote
waldemarlima Posted May 26, 2016 Author Posted May 26, 2016 thanks by you answer well ... dont works :/ do you have a example code ? screenshot > http://prntscr.com/b8v4tf Quote
macklebee Posted May 26, 2016 Posted May 26, 2016 You have to turn off the sandbox lua option to be able to write to/delete a file or directory. Go to Tools-->Options... and uncheck the 'Sandbox Lua' option. Also the first picture you posted shows you trying to write to a file in the 'Config' directory. If that directory does not already exist, it will fail to write to the file. Look at the FileSystem:CreateDir() to create a directory - again this requires that the sandbox lua option be unchecked. Keep in mind that Leadwerks Game Launcher will not allow un-sandboxed commands like writing to or deleting a file. Edit-- a way to get around the sandbox issue is to write to your game's config file (typically located at 'C:\Users\~ComputerName~\AppData\Local\~GameName~\GameName.cfg') using System:SetProperty(key, value) then reading the key using System:GetProperty(key). Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
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.