Jump to content

Recommended Posts

Posted

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/

Posted
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/

Posted

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/

Posted

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

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/

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...