FS22_CombineXP icon indicating copy to clipboard operation
FS22_CombineXP copied to clipboard

save fail

Open mrPassion78 opened this issue 2 years ago • 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 .

mrPassion78 avatar Aug 13 '22 18:08 mrPassion78

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

yumi-modding avatar Aug 13 '22 19:08 yumi-modding

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.

jason0611 avatar Aug 13 '22 19:08 jason0611

Thanks for the info

yumi-modding avatar Aug 13 '22 19:08 yumi-modding

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

mrPassion78 avatar Aug 13 '22 19:08 mrPassion78

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.

mrPassion78 avatar Aug 13 '22 19:08 mrPassion78

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

s4t4n avatar Aug 13 '22 20:08 s4t4n

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

yumi-modding avatar Aug 13 '22 20:08 yumi-modding

@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 avatar Aug 16 '22 12:08 yumi-modding

@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

mrPassion78 avatar Aug 18 '22 05:08 mrPassion78

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....

s4t4n avatar Aug 18 '22 19:08 s4t4n

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

yumi-modding avatar Aug 18 '22 20:08 yumi-modding