Igneous01 Posted January 27, 2018 Posted January 27, 2018 Running a mission in 1.5.8 Open Beta - None of the io.writes are successful. They all throw this 'Unknown Error'. This same mission and code is working fine with no issues in 1.5.8 Stable. 03556.134 ERROR VFS: VFS_open_write: CreateFile(C:\Users\Robert-GamingServer\Saved Games\DCS.openbeta\Missions\KIAlpha\GameEvents\GE_282.lua): Unknown error 03556.134 INFO SCRIPTING: KI.Toolbox.SafeWriteFile ERROR: can't open "C:\Users\Robert-GamingServer\Saved Games\DCS.openbeta\Missions\KIAlpha\GameEvents\GE_282.lua" for 'w' 01546.137 ERROR VFS: VFS_open_write: CreateFile(C:\Users\Robert-GamingServer\Saved Games\DCS.openbeta\Missions\KIAlpha\GameEvents\GE_81.lua): Unknown error 01556.155 ERROR VFS: VFS_open_write: CreateFile(C:\Users\Robert-GamingServer\Saved Games\DCS.openbeta\Missions\KIAlpha\GameEvents\GE_82.lua): Unknown error 01556.174 ERROR VFS: VFS_open_write: CreateFile(C:\Users\Robert-GamingServer\Saved Games\DCS.openbeta\Missions\KIAlpha\KI_Entities.lua): Unknown error The setup is that DCS is installed on a seperate drive (D) and the Saved Games folder is on © drive. In 1.5.8 Stable this works perfectly. I'm concerned something broke in the VFS_open_write since the latest update, but this breaks core functionality in most dynamic / persistent missions. Developer of Kaukasus Insurgency - a customizable Dynamic PvE Campaign with cloud hosting and stats tracking. (Alpha) http://kaukasusinsurgency.com/
Grimes Posted January 28, 2018 Posted January 28, 2018 You doing it via changing missionScripting.lua or from the server environment? I tested both with mist and slmod, both writing files as expected. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Igneous01 Posted January 28, 2018 Author Posted January 28, 2018 You doing it via changing missionScripting.lua or from the server environment? I tested both with mist and slmod, both writing files as expected. Yes the missionScripting.lua has all 5 lines commented out. From the server side mode the write works fine, but from mission it throws this error. Developer of Kaukasus Insurgency - a customizable Dynamic PvE Campaign with cloud hosting and stats tracking. (Alpha) http://kaukasusinsurgency.com/
Igneous01 Posted January 28, 2018 Author Posted January 28, 2018 Here is my write function - no changes between both stable and open beta, but throws that error in open beta. function KI.Toolbox.WriteFile(data, path) env.info("KI.Toolbox.SafeWriteFile called for path: " .. path) local _exportData = "local t = " .. KI.Toolbox.SerializeTable(data) .. "return t" env.info("KI.Toolbox.SafeWriteFile - Data serialized") local _filehandle, _err = io.open(path, "w") if _filehandle then _filehandle:write(_exportData) _filehandle:flush() _filehandle:close() _filehandle = nil return true else env.info("KI.Toolbox.SafeWriteFile ERROR: " .. _err) return false end end Developer of Kaukasus Insurgency - a customizable Dynamic PvE Campaign with cloud hosting and stats tracking. (Alpha) http://kaukasusinsurgency.com/
Grimes Posted January 28, 2018 Posted January 28, 2018 Make sure game is running as admin? May also be helpful to test via the same methodology. I simply tested it by using mist and dumping its DBs to files with mist.debug.dumpDBs(). Maybe give that a try and see what happens. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Igneous01 Posted January 28, 2018 Author Posted January 28, 2018 I'll give that a try - it was on someone else's server that I was helping troubleshoot when I noticed it. I'll check again to see if there's any folder permission issues, might be write access issue. Yeah I'll try with mist if all else fails. I don't think this is a bug at the moment, the error is unclear, but it's probably related to permissions on the system. I'll get more info then report back. Developer of Kaukasus Insurgency - a customizable Dynamic PvE Campaign with cloud hosting and stats tracking. (Alpha) http://kaukasusinsurgency.com/
Igneous01 Posted January 28, 2018 Author Posted January 28, 2018 Not a bug - the users path was invalid/non-existent. My mistake for reporting it as such! Developer of Kaukasus Insurgency - a customizable Dynamic PvE Campaign with cloud hosting and stats tracking. (Alpha) http://kaukasusinsurgency.com/
Recommended Posts