yumi-modding/FS22_CombineXP

save fail

Opened this issue · 11 comments

hi there, as soon as i save the game i get an error from youre new mod version, even the one of the modhub.

2022-08-13 20:03 Error: Could not save xml file 'combineXP' to 'C:/Users/pasca/Documents/My Games/FarmingSimulator2022/mods/GAMEPLAY FS22/FS22_CombineXP/data/combineXP.xml'
2022-08-13 20:04 Game saved successfully
i will add the log file here to.
anyway, thnx so much for the mod.. its great :D
log.txt
.

Hi
I think there is an issue with modSettings folder. I have to check if i can reproduce the issue when folder does not exists

The problem is, that copying the combineXP.xml at server start doesn't work on a dediserver. I copied the file to the modSettings folder manually (by ftp) and now it works fine.

Thanks for the info

the previous version wrote the combineXP.xml to the modsSettings folder..
And ps, in my mods folder of the game i have 2 seperate mod folders.. one called Testing and the other GAMEPLAY FS22.
maybe it could be an issue with that..
But from the looks of it, the mod tried , in my Single player, to write the xml to the zip file of the mod within the mods folder..or i`m reading that wrong :D LOL

The problem is, that copying the combineXP.xml at server start doesn't work on a dediserver. I copied the file to the modSettings folder manually (by ftp) and now it works fine.

Indeed that worked for me to.. i coppied the old ( previous versions) file from the modsSettings folder over to the modSetting folder, and now the error is gone.. thnx for the help.

s4t4n commented

the same I had too, the CHMOD was 644.. change to 770 and it'll works. But I had another issue too ->other topic.
perhaps you could make a empty file (combineXP.xml) manually and set to 770. then it should work defintly.

@yumi-modding : btw. do you use (g_currentModSettingsDirectory) ? perhaps an inspiration to do with it or out
lg

Thanks for all the details. I don't think i use this variable and i think on fs19 i was using a wrong path also. Need to fix this

@mrPassion78 @s4t4n Please let me know if last commit zip is fixing the issue on your side.
It's OK for SP game but I was not able to reproduce the issue on Dedi on my side. I changed the combineXP.xml file permission so it might fix your issue.

@yumi-modding for me in SP, the issue is resolved, the mod now writes to the file in de modSettings folder, and no errors or warnings. Thnx so much for youre effort and for the awesome mod ofcourse

s4t4n commented

not really....
4 mb log file.. here is a part:

2022-08-18 20:52 Eror: Cannot save settings to C://gameservers//s1427066//ls2022//gameProfile/modSettings//combineXP.xml 2022-08-18 20:52 Error: Running LUA method 'update'. C://gameservers//s1427066//ls2022//gameProfile/mods/FS22_CombineXP/src/CombineSettings.lua:127: attempt to index local 'xmlFile' (a nil value) 2022-08-18 20:52 Warning: Saving while already saving 2022-08-18 20:52 Info: [AD] ADUserDataManager: saved data for 3 users 2022-08-18 20:52 Eror: Cannot save settings to C://gameservers//s1427066//ls2022//gameProfile/modSettings//combineXP.xml 2022-08-18 20:52 Error: Running LUA method 'update'. C://gameservers//s1427066//ls2022//gameProfile/mods/FS22_CombineXP/src/CombineSettings.lua:127: attempt to index local 'xmlFile' (a nil value) 2022-08-18 20:52 Warning: Saving while already saving 2022-08-18 20:52 Info: [AD] ADUserDataManager: saved data for 3 users 2022-08-18 20:52 Eror: Cannot save settings to C://gameservers//s1427066//ls2022//gameProfile/modSettings//combineXP.xml 2022-08-18 20:52 Error: Running LUA method 'update'. C://gameservers//s1427066//ls2022//gameProfile/mods/FS22_CombineXP/src/CombineSettings.lua:127: attempt to index local 'xmlFile' (a nil value) 2022-08-18 20:52 Warning: Saving while already saving 2022-08-18 20:52 Info: [AD] ADUserDataManager: saved data for 3 users 2022-08-18 20:52 Eror: Cannot save settings to C://gameservers//s1427066//ls2022//gameProfile/modSettings//combineXP.xml 2022-08-18 20:52 Error: Running LUA method 'update'. C://gameservers//s1427066//ls2022//gameProfile/mods/FS22_CombineXP/src/CombineSettings.lua:127: attempt to index local 'xmlFile' (a nil value) 2022-08-18 20:52 Warning: Saving while already saving 2022-08-18 20:52 Info: [AD] ADUserDataManager: saved data for 3 users 2022-08-18 20:52 Eror: Cannot save settings to C://gameservers//s1427066//ls2022//gameProfile/modSettings//combineXP.xml 2022-08-18 20:52 Error: Running LUA method 'update'. C://gameservers//s1427066//ls2022//gameProfile/mods/FS22_CombineXP/src/CombineSettings.lua:127: attempt to index local 'xmlFile' (a nil value) 2022-08-18 20:52 Warning: Saving while already saving 2022-08-18 20:52 Info: [AD] ADUserDataManager: saved data for 3 users 2022-08-18 20:52 Eror: Cannot save settings to C://gameservers//s1427066//ls2022//gameProfile/modSettings//combineXP.xml 2022-08-18 20:52 Error: Running LUA method 'update'. C://gameservers//s1427066//ls2022//gameProfile/mods/FS22_CombineXP/src/CombineSettings.lua:127: attempt to index local 'xmlFile' (a nil value) 2022-08-18 20:52 Warning: Saving while already saving 2022-08-18 20:52 Info: [AD] ADUserDataManager: saved data for 3 users 2022-08-18 20:52 Eror: Cannot save settings to C://gameservers//s1427066//ls2022//gameProfile/modSettings//combineXP.xml 2022-08-18 20:52 Error: Running LUA method 'update'. C://gameservers//s1427066//ls2022//gameProfile/mods/FS22_CombineXP/src/CombineSettings.lua:127: attempt to index local 'xmlFile' (a nil value) 2022-08-18 20:52 Warning: Saving while already saving

and endless more....

Ok @s4t4n Might be either due to the specific path used or with Player Position Saver if you use it. Do you use a nitrado server ?
Do you think you could invite me on your dedi so I can test with debug zip ?
The test I did on dedi was with 1 of my computers as a dedi server and another as client. I only have 2 licenses of the game, i preferred paying a 2nd one than renting a server without using it