Project Zomboid
Оцінок: 43
Sandbox Settings Sync Fix
   
Нагородити
До улюбленого
В улюблених
Прибрати
Розмір файлу
Додано
Оновлено
150.943 KB
1 квіт. 2023 о 10:56
28 жовт. 2023 о 4:14
Змін 50 ( перегляд )

Підпишіться, аби завантажити
Sandbox Settings Sync Fix

Опис
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
Коментарів: 16
DinDin 10 год. тому 
My issue appears to be exactly the same issue that UdderlyEvelyn described here: https://theindiestone.com/forums/index.php?/topic/65537-4178-dedicated-mp-sandbox-setting-synchronization-issues/

They also mention map_sand.bin - but talk about the *client* deleting the file.
I have found that deleting the file on the *server* causes the server file to be re-created and all clients download the updated file.
DinDin 10 год. тому 
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  [автор] 13 год. тому 
@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.
DinDin 4 лип. о 23:56 
I installed this mod, but the Sandbox settings still get "stuck" sometimes.

My solution is to regularly delete map_sand.bin
Diakon  [автор] 29 берез. о 2:56 
It's rather irrelevant. It runs while the game is, so put it wherever your heart desires
Leonidax1 28 берез. о 18:07 
Hello, what is the loading order, does it go at the beginning of all the mods or at the end?
Alkanshel 28 жовт. 2023 о 10:05 
No worries! Thank you for updating.
Diakon  [автор] 28 жовт. 2023 о 4:15 
@Alkanshel I'm glad You've brought this up! It was caused by the last update, I forgot to clear a helper variable. I've pushed a fix now.
Alkanshel 27 жовт. 2023 о 19:02 
@Diakon so I noticed this only happened when I made a change in-game on an admin account. Once I was able to paste the command to revert back to player privileges the errors stopped.
Diakon  [автор] 26 жовт. 2023 о 14:12 
Weird. It should only spit this out once per update. Unless it somehow gets into a loop... I'm gonna need a bit more info, like the collection of mods you run