phezzan Posted September 7, 2020 Posted September 7, 2020 (edited) Problems loading / saving config files to %APPDATA%/Avorion/galaxies/NAME/moddata 2020-09-06 21-39-34| #0: ResearchStation.initialize data/scripts/entity/merchants/researchstation.lua 2020-09-06 21-39-34| 2020-09-06 21-39-34| Error calling checkReadSecureFilename: boost::filesystem::weakly_canonical: The request is not supported 2020-09-06 21-39-34| 2020-09-06 21-39-34| stack traceback: 2020-09-06 21-39-34| [C]:-1: in function readable 2020-09-06 21-39-34| [string "..."]:95: in function open 2020-09-06 21-39-34| ...\445220\1722652757\data/scripts/lib/azimuthlib-basic.lua:419: in function loadConfig 2020-09-06 21-39-34| S:\Steam\steamapps\workshop\content\445220\1731575231\data/scripts/entity/merchants/researchstation.lua:461: in function ? 2020-09-06 21-39-34| 2020-09-06 21-39-34| [ERROR][AutoResearch]: Failed to load config file 'S:\phezz\AppData\Roaming\Avorion\galaxies\Kmod/moddata/AutoResearch.lua': filename is not secure 2020-09-06 21-39-34| Object: N2cp13ServerScriptsE 2020-09-06 21-39-34| Execution Context (inner to outer): 2020-09-06 21-39-34| #0: ResearchStation.initialize data/scripts/entity/merchants/researchstation.lua 2020-09-06 21-39-34| 2020-09-06 21-39-34| Error calling checkWriteSecureFilename: boost::filesystem::weakly_canonical: The request is not supported 2020-09-06 21-39-34| 2020-09-06 21-39-34| stack traceback: 2020-09-06 21-39-34| [C]:-1: in function writable 2020-09-06 21-39-34| [string "..."]:97: in function open 2020-09-06 21-39-34| ...\445220\1722652757\data/scripts/lib/azimuthlib-basic.lua:520: in function saveConfig 2020-09-06 21-39-34| S:\Steam\steamapps\workshop\content\445220\1731575231\data/scripts/entity/merchants/researchstation.lua:480: in function ? 2020-09-06 21-39-34| 2020-09-06 21-39-34| [ERROR][AutoResearch]: Failed to save config file 'S:\phezz\AppData\Roaming\Avorion\galaxies\Kmod/moddata/AutoResearch.lua': filename is not secure NOTE: %APPDATA%\Avorion\galaxies is a mount point for a 2GB (NTFS) RAM Drive. NOTE: Admin group has full control. Server is run by the admin user function Azimuth.saveConfig(modName, config, options, isSeedDependant, modFolder, minify) local dir = "moddata" if onServer() then dir = Server().folder .. "/" .. dir end if modFolder then if modFolder == true then modFolder = modName end dir = dir .. "/" .. modFolder if onClient() then --createDirectory(modFolder) createDirectory(dir) else createDirectory(dir) end end local filename = dir .. "/" .. modName .. (isSeedDependant and '_' .. GameSettings().seed or "") .. ".lua" local file, err = io.open(filename, "wb") if err then eprint("[ERROR]["..modName.."]: Failed to save config file '"..filename.."': " .. err) return false, err end file:write(Azimuth.serialize(config, options, "", true, minify)) file:close() return true end The client is able to save just fine into %APPDATA%\Avorion\moddata (identical permissions) Edited September 9, 2020 by phezzan client info
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now