bodzio528 / FS22_CropRotation

mod for Farming Simulator 22
48 stars 15 forks source link

newSaveGame in Multiplayer #11

Open FetssteF opened 1 year ago

FetssteF commented 1 year ago

Hi,

There seems to be a problem in multiplayer, the rotation of cultures is not saved, at each connection we get the following message in the logs : CropRotation:load(): INFO generate forecrops for each field (new savegame).

the loadSavegame() function is executed by the server but not by the players, so self.isNewSavegame is not set to false

I tested this code :

image

in multiplayer the return is as follows :

2022-09-30 20:05  CropRotation:loadSavegame(): start
2022-09-30 20:05  CropRotation:loadSavegame(): self.mission:getIsServer() : false
2022-09-30 20:05  CropRotation:loadSavegame(): self.mission.missionInfo.savegameDirectorynil
2022-09-30 20:05  CropRotation:loadSavegame(): end

I hope to have helped you.

Thank you for your work and sorry for my English

bodzio528 commented 1 year ago

Thanks for the report, this is certainly a bug. I'll look into it.

Harag9 commented 1 year ago

@bodzio528 - Great mod, I'm using v2.1.0.3 from the giants in game hub and not sure if this fix has been added to that as it doesn't appear to be saving the planner list information I create, also we're on a MP/server and the other players list are not being saved. Can you confirm when this will be updated on giants?

Many thanks

DopeEx commented 1 year ago

Any update on this problem? Each time the server is restarted, the fruits are different from the previous ones, so there is a different bonus each time.

willicake commented 1 year ago

Is there now any Update? Would love to use the mod, but I don't know if it is working right. But it seems like that the calculation in the background is right.. but it didn't shows up right in the menu.