Project Zomboid

Project Zomboid

47 ratings
Sandbox Settings Sync Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
150.943 KB
1 Apr, 2023 @ 10:56am
28 Oct, 2023 @ 4:14am
50 Change Notes ( view )

Subscribe to download
Sandbox Settings Sync Fix

Description
So, ever had an issue where you change a setting over on the server's sandbox due to popular request, and yet you receive complaints that it hasn't changed? Your settings probably didn't sync over. Offline Players don't get updates... Well, now they will the moment they log in! And More!

Initially written by UdderlyEvelyn, refined by Daikon, this mod fixes a long-standing issue for servers with large mod-packs! Synchronising the settings over Global Mod Data, with an effort to maintain compatibility with other mods and minimise the traffic, no longer will your players be playing a different game!

This mod was made for the UdderlyRP server, find us on Discord at https://discord.gg/9HUdNf7qGe


Workshop ID: 2956046897
Mod ID: daikonUdderlySandboxSyncFix
23 Comments
Diakon  [author] 22 Jul @ 11:50pm 
And by talk to her I mean fix it myself because she's busy trying to not starve, unlike me
Diakon  [author] 22 Jul @ 11:49pm 
@DinDin, the issue is, once you install enough mods into the game, when players log onto the server, they don't download up to date sandbox settings. This issue exists regardless of using UdderlyUpToDate, as far as I know. I could perhaps be wrong... Regardless, I'll talk to evelyn about fixing the UpToDate mod to not create the map_sand.bin file, if at all possible
photocyte 18 Jul @ 2:30pm 
I thought it was just general PZ flakiness, but I am having the exact same issue as DinDin. I often have to go back into the sandbox config and set the options again, especially after a restart. Seems like this is tied to that map_sand.bin file issue that's described.

Using this mod and Udderly Up To Date as well.

Guess I will delete map_sand.bin on server startup as well for now.
DinDin 17 Jul @ 7:29pm 
I have determined the cause.
When a mod uses the command "saveGame()", "map_sand.bin" is created, which is sent to clients instead of the real server settings

In my case, the mod using this command is "Udderly Up To Date".
The admin and RCON /save and /quit commands do not cause this issue.
Only "saveGame()" causes this.

Diakon has said here that "Evelyn asked me to make this mod to fix this exact issue... It worked perfectly for our server and many others"

But in Steam DMs, Diakon has told me that UdderlyEvelyn has a server startup file to delete "map_sand.bin", and recommended that I do the same.

If it "worked perfectly", then why is UdderlyEvelyn deleting "map_sand.bin"?

* This mod doesn't fix the issue.
* UdderlyEvelyn is fixing the issue by deleting "map_sand.bin".
* The issue was caused by UdderlyEvelyn's "Udderly Up To Date" in the first place.

So what is the purpose of this mod?
Diakon  [author] 13 Jul @ 2:59am 
@HQ Not sure. DinDin doesn't use said mod and has the issue, so while possible, it's not the only cause
HQ 12 Jul @ 2:28pm 
@Diakon do you think it's the server tweaker? not really a modding expert nor a beginner, but i just noticed that when i enabled the server tweaker mod the sandbox and files didn't match...

Or this might be irrelevant but dunno just thinking it might help...
Diakon  [author] 11 Jul @ 11:45pm 
I've sent you a friend request for a more direct communication. Just the fact that after you reboot the server, the settings revert back to the old state... That's an extreme red flag. An admin performing a manual update should trigger all clients to download all of the new settings, and for the server to update
Diakon  [author] 11 Jul @ 11:40pm 
This... This is extremely concerning.This is exactly what my mod was supposed to prevent. Evelyn asked me to make this mod to fix this exact issue... It worked perfectly for our server and many others, you're the first one to file a complaint... I'll see what I can do... If anything
DinDin 11 Jul @ 5:58am 
I don't understand what you mean by "How so?"

In the multiplayer server where I am an admin, the Sandbox Settings shown in-game do not always match the settings in servertest_SandboxVars.lua - they often get stuck on a cached version.
When saving the Sandbox Settings, servertest_SandboxVars.lua is then overwritten with whatever values were shown, but after rebooting the server, the Sandbox Settings shown in-game revert to the old version again, no matter what changes were made.

Deleting map_sand.bin on the server results in the Sandbox Settings shown in game updating correctly to show the settings in servertest_SandboxVars.lua

As you have suggested, this issue is most likely caused by a mod doing something weird.

I was hoping that installing your mod would fix the issue. It does not.
Diakon  [author] 11 Jul @ 3:40am 
@DinDin How so? Unless Zomboid devs secretly did update the game to break something... Or some different mod overwrites the settings in a weird way. So long it's installed on both server and client.