Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save fail #21

Open
mrPassion78 opened this issue Aug 13, 2022 · 11 comments
Open

save fail #21

mrPassion78 opened this issue Aug 13, 2022 · 11 comments

Comments

@mrPassion78
Copy link

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
.

@yumi-modding
Copy link
Owner

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

@jason0611
Copy link

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.

@yumi-modding
Copy link
Owner

Thanks for the info

@mrPassion78
Copy link
Author

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
Copy link
Author

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
Copy link

s4t4n commented Aug 13, 2022

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

@yumi-modding
Copy link
Owner

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
Copy link
Owner

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

@mrPassion78
Copy link
Author

@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
Copy link

s4t4n commented Aug 18, 2022

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

@yumi-modding yumi-modding reopened this Aug 18, 2022
@yumi-modding
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants