The "sync" mod is nothing. I downloaded the russian dll and opened it. It's the exact same as this one. Same code as aedenthorn's and nothing more. There is no sync code that makes this mod multiplayer. It's literally just the code below which is aedenthorn's code to slow down the day. That "Russian" mod is nothing more than that. I looked hoping to find something and I found only the below code.
these two mods cannot be 100% identical at least for the reason that the main mod (last updated in 2021) causes a critical error when I use console commands, for example "devcommands", and version 2023 does not cause an error, so what then there is a difference P.S. and it is not necessary to mention the nation even in the game mod.. P.P.S I also checked the contents of both versions, do you see any difference between your version? [HarmonyPatch(typeof(EnvMan), "Awake")] private static class EnvMan_Awake_Patch { // Methods private static void Postfix(ref long ___m_dayLengthSec) { if (BepInExPlugin.modEnabled.get_Value()) { BepInExPlugin.vanillaDayLengthSec = ___m_dayLengthSec; ___m_dayLengthSec = (long) Mathf.Round(((float) BepInExPlugin.vanillaDayLengthSec) / BepInExPlugin.dayRate.get_Value()); } } }
This is it! That extended daytime one just makes shadows flash and gives you a headache THIS ONE actually slows time as much as you'd like during the daytime, its def what we needed. Thank you guys so much!
I use Mistlands 0.212.9 and i dont have any issue with this mod.
Better i start changing the settings from 0.5 to 0.03 and looks i make this things really slow down (and when is time to sleep you can just go sleep) So Day Cycle mod works totaly fine + to this one mode i use Real Tine and Clock Mod to see how Day Cycle works.
hello in fact this mode works great but solo, when you try multiplayer it seems to work but no. Everything is out of sync; each player will see a different time, result it is as if it was night all the time but in broad daylight. And lots of mobs spawn. I don't know if anyone could fix this or know of anything similar.
Finally I found with several tests in multiplayer, it was enough that the server and all the clients have the same configuration. If there is only 1 that does not have the same config it will cause a desynchronization of the days night during the days etc..So this mod works very well I'm happy
107 comments
https://www.nexusmods.com/valheim/mods/2158
It claims to sync all clients with the server (and it requires this MOD to start with, all that one does is add sync)
HarmonyPatch(typeof(EnvMan), "Awake")]
private static class EnvMan_Awake_Patch
{
// Token: 0x06000005 RID: 5 RVA: 0x00002070 File Offset: 0x00000270
public static void Postfix(ref long ___m_dayLengthSec)
{
DayCycle.vanillaDayLengthSec = ___m_dayLengthSec;
___m_dayLengthSec = (long)Mathf.Round((float)DayCycle.vanillaDayLengthSec / 0.5f);
}
}
P.S. and it is not necessary to mention the nation even in the game mod..
P.P.S I also checked the contents of both versions, do you see any difference between your version?
[HarmonyPatch(typeof(EnvMan), "Awake")]
private static class EnvMan_Awake_Patch
{
// Methods
private static void Postfix(ref long ___m_dayLengthSec)
{
if (BepInExPlugin.modEnabled.get_Value())
{
BepInExPlugin.vanillaDayLengthSec = ___m_dayLengthSec;
___m_dayLengthSec = (long) Mathf.Round(((float) BepInExPlugin.vanillaDayLengthSec) / BepInExPlugin.dayRate.get_Value());
}
}
}
THIS ONE actually slows time as much as you'd like during the daytime, its def what we needed.
Thank you guys so much!
Better i start changing the settings from 0.5 to 0.03 and looks i make this things really slow down (and when is time to sleep you can just go sleep) So Day Cycle mod works totaly fine + to this one mode i use Real Tine and Clock Mod to see how Day Cycle works.
*Single Player World*