h0tw1r3 / valheim-webmap

Live Valheim world map on the web! Server side only BepInEx mod.
MIT License
15 stars 5 forks source link

Seems to be causing world loading to fail #7

Open skyroor opened 3 months ago

skyroor commented 3 months ago

using lloesche/valheim-server-docker ValheimPlus/PlantEverything as additional mods

I have tried the other forks and they have worked fine in regard to getting the server started, but don't work for other reasons, but with this fork I can't get the server started due to the world loading failing. I think anyways.

Server can't start and gets stuck in an infinite loop retrying to start the server. Provided logs happen roughly before the server starts over with the whole process:

7:05:32: WebMap: starting point (61.86, 35.14, -387.54) valheim-1 | May 18 17:05:32 supervisord: valheim-server 05/18/2024 17:05:32: WebMap: starting point (61.86, 35.14, -387.54) valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: Console: [Info : Unity Log] 05/18/2024 17:05:33: WebMap::DiscordWebHook::SendMessage: System.Collections.Specialized.NameValueCollection valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: WebMap::DiscordWebHook::SendMessage: System.Collections.Specialized.NameValueCollection valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: Console: [Error : Unity Log] 05/18/2024 17:05:33: Exception while loading world /home/valheim/.config/unity3d/IronGate/Valheim/worlds_local/Asslands.db:System.NullReferenceException: Object reference not set to an instance of an object valheim-1 | May 18 17:05:33 supervisord: valheim-server at WebMap.WebMap+ZoneSystemLoadPatch.Postfix () [0x00058] in C:\Users\h0tw1r3\source\repos\valheim-webmap\WebMap\WebMap.cs:472 valheim-1 | May 18 17:05:33 supervisord: valheim-server at (wrapper dynamic-method) ZoneSystem.DMD(ZoneSystem,System.IO.BinaryReader,int) valheim-1 | May 18 17:05:33 supervisord: valheim-server at ZNet.LoadWorld () [0x000f8] in <4efa3faf7157456487d70c5f7277dba7>:0 valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: Exception while loading world /home/valheim/.config/unity3d/IronGate/Valheim/worlds_local/Asslands.db:System.NullReferenceException: Object reference not set to an instance of an object valheim-1 | May 18 17:05:33 supervisord: valheim-server at WebMap.WebMap+ZoneSystemLoadPatch.Postfix () [0x00058] in C:\Users\h0tw1r3\source\repos\valheim-webmap\WebMap\WebMap.cs:472 valheim-1 | May 18 17:05:33 supervisord: valheim-server at (wrapper dynamic-method) ZoneSystem.DMD(ZoneSystem,System.IO.BinaryReader,int) valheim-1 | May 18 17:05:33 supervisord: valheim-server at ZNet.LoadWorld () [0x000f8] in <4efa3faf7157456487d70c5f7277dba7>:0 valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: Console: [Error : Unity Log] 05/18/2024 17:05:33: World load failed mid-file. Exiting without save. Check backups! valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: World load failed mid-file. Exiting without save. Check backups! valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: Console: [Info : Unity Log] 05/18/2024 17:05:33: Unloading unused assets valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: Unloading unused assets valheim-1 | May 18 17:05:33 supervisord: valheim-server 05/18/2024 17:05:33: Console: [Error : Unity Log] 05/18/2024 17:05:33: World db couldn't load correctly, saving has been disabled to prevent .old file from being overwritten.

h0tw1r3 commented 3 months ago

Hasn't been updated for the latest Valheim. Open to pull requests, or I will get to it when I pick the game back up again.

skyroor commented 3 months ago

Hasn't been updated for the latest Valheim. Open to pull requests, or I will get to it when I pick the game back up again.

Not sure where to start, but I'll try and poke around. Otherwise, no worries, partly just wanted to log the issue. Thanks for the response.

Serret commented 3 weeks ago

First of all thanks for maintaining this mod!

Just to report I've tried running this on a dedicated server also using lloesche/valheim-server-docker and I got the problem reported above.

Server version: 0.218.15 - Ashlands
BepInEx version: 5.4.23.2.
Installed plugins: Discord Notifier, ServerDevCommands

I understand this is a hobby project that wasn't updated yet to the latest patch. I wanted to report nonetheless so you know it's not an isolated issue on one machine.