Need help with mod crash.

So after hearth and home dropped the thunderstore mods have more or less caused crash after crash and I'm trying to narrow down what specific mod is the cause without having to go one by one.

Yes, I know that's the most in-depth way to go about it but I'm hopeful someone here will be more mod savvy than I am.

This is my shutdown log and this is my mod list code for the thunderstore mod manager: 0fyleGOMRa

If anyone can look at this and tell me why I'm stupid and how to fix it, I'd appreciate it immensely.

[Info : Unity Log] 03/06/2022 16:48:32: Shuting down

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ZDO.Initialize (ZDOMan man, ZDOID id, UnityEngine.Vector3 position) (at <dcb0de0155834d459f18d7ac6ea5244b>:0)
ZDOPool.Create (ZDOMan man, ZDOID id, UnityEngine.Vector3 position) (at <dcb0de0155834d459f18d7ac6ea5244b>:0)
(wrapper dynamic-method) ZDOMan.DMD<ZDOMan::CreateNewZDO>(ZDOMan,ZDOID,UnityEngine.Vector3)
ZDOMan.CreateNewZDO (UnityEngine.Vector3 position) (at <dcb0de0155834d459f18d7ac6ea5244b>:0)
ValheimPerformanceOptimizations.Patches.ObjectPoolingPatch.ReleaseZNetScenePool () (at <25e748930c1b4c01acbe72ede2c372ad>:0)
ValheimPerformanceOptimizations.Patches.ObjectPoolingPatch.ZNetScene_OnDestroy_Prefix (ZNetScene __instance) (at <25e748930c1b4c01acbe72ede2c372ad>:0)
(wrapper dynamic-method) ZNetScene.DMD<ZNetScene::Shutdown>(ZNetScene)
(wrapper dynamic-method) Game.DMD<Game::Shutdown>(Game)
Game.OnApplicationQuit () (at <dcb0de0155834d459f18d7ac6ea5244b>:0)

[Info : Unity Log] [Better Trader] Trader's coins were saved with a value of 0
[Info : Unity Log] 03/06/2022 16:48:32: ZNet OnDestroy

[Info : Unity Log] 03/06/2022 16:48:32: Net scene destroyed

[Info : Unity Log] ShowContainerContents Destroying plugin
[Warning: HarmonyX] UnpatchAll has been called - This will remove ALL HARMONY PATCHES.
[Info : Unity Log] 03/06/2022 16:48:37: Steam manager on destroy
3:13 am, March 7, 2022
Lo Ping 0 comments 0 likes

Kostet960604 replied to Need help with mod crash. March 6, 2022 @ 5:07:52 pm PST

Most likely this one:
Valheim Performance Optimizations

I don’t understand either, but I overlooked what you have from last year’s optimization mod. At least the last update on the nexus was in October.
3:13 am, March 7, 2022
0 comments 0 likes

Pervy replied to Need help with mod crash. March 6, 2022 @ 5:15:59 pm PST

Originally posted by Lo Ping:
So after hearth and home dropped the thunderstore mods have more or less caused crash after crash and I'm trying to narrow down what specific mod is the cause without having to go one by one.

Yes, I know that's the most in-depth way to go about it but I'm hopeful someone here will be more mod savvy than I am.

This is my shutdown log and this is my mod list code for the thunderstore mod manager: 0fyleGOMRa

If anyone can look at this and tell me why I'm stupid and how to fix it, I'd appreciate it immensely.

[Info : Unity Log] 03/06/2022 16:48:32: Shuting down

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ZDO.Initialize (ZDOMan man, ZDOID id, UnityEngine.Vector3 position) (at <dcb0de0155834d459f18d7ac6ea5244b>:0)
ZDOPool.Create (ZDOMan man, ZDOID id, UnityEngine.Vector3 position) (at <dcb0de0155834d459f18d7ac6ea5244b>:0)
(wrapper dynamic-method) ZDOMan.DMD<ZDOMan::CreateNewZDO>(ZDOMan,ZDOID,UnityEngine.Vector3)
ZDOMan.CreateNewZDO (UnityEngine.Vector3 position) (at <dcb0de0155834d459f18d7ac6ea5244b>:0)
ValheimPerformanceOptimizations.Patches.ObjectPoolingPatch.ReleaseZNetScenePool () (at <25e748930c1b4c01acbe72ede2c372ad>:0)
ValheimPerformanceOptimizations.Patches.ObjectPoolingPatch.ZNetScene_OnDestroy_Prefix (ZNetScene __instance) (at <25e748930c1b4c01acbe72ede2c372ad>:0)
(wrapper dynamic-method) ZNetScene.DMD<ZNetScene::Shutdown>(ZNetScene)
(wrapper dynamic-method) Game.DMD<Game::Shutdown>(Game)
Game.OnApplicationQuit () (at <dcb0de0155834d459f18d7ac6ea5244b>:0)

[Info : Unity Log] [Better Trader] Trader's coins were saved with a value of 0
[Info : Unity Log] 03/06/2022 16:48:32: ZNet OnDestroy

[Info : Unity Log] 03/06/2022 16:48:32: Net scene destroyed

[Info : Unity Log] ShowContainerContents Destroying plugin
[Warning: HarmonyX] UnpatchAll has been called - This will remove ALL HARMONY PATCHES.
[Info : Unity Log] 03/06/2022 16:48:37: Steam manager on destroy
Why also even do 1 by 1? do 5 or 10 at a time, and when you find out then look though the 5-10 and make it smaller and smaller. its faster then 1 by 1.

Thats how i always find my broken mods, i always do 3-6 mods at a time and fond the draw thing was broken, it didt get update but it was broken af, also the picked the wrong mass farming once, so i had to do it again.
3:13 am, March 7, 2022
0 comments 0 likes

Kostet960604 replied to Need help with mod crash. March 6, 2022 @ 5:16:52 pm PST

I don’t know about you, but I now have the following set of optimizing mods working:
ValheimFPSPlus
ValheimFPSBoost
ValheimPerformanceOptimizations
ValheimNetworkOptimizer
fps_boost_high
There used to be KGoptimizer, but now it does such garbage in the console after the last update that I had to remove it and add fps_boost_high just in case
The game even with mods runs smoothly on my potatoes.
Although I have no idea how these mods work :D
3:13 am, March 7, 2022
0 comments 0 likes

Ataxio replied to Need help with mod crash. March 6, 2022 @ 5:21:26 pm PST

Beware of optimization mods, they rarely do as they advertise & worse case they do nothing at all. I've been saying it since this game first came out, modding before a game is content complete is an uphill battle and you will likely run into more frustration then anything else.

Personally, the last thing I want to do when firing up the game is perform IT work. But I get it, some people just can't handle vanilla games and need to change the color of onion flowers from purple to magenta or whatever else is worth the risk to them.
3:13 am, March 7, 2022
0 comments 0 likes

Kostet960604 replied to Need help with mod crash. March 6, 2022 @ 5:25:47 pm PST

Originally posted by Ataxio:
Beware of optimization mods, they rarely do as they advertise & worse case they do nothing at all. I've been saying it since this game first came out, modding before a game is content complete is an uphill battle and you will likely run into more frustration then anything else.

Personally, the last thing I want to do when firing up the game is perform IT work. But I get it, some people just can't handle vanilla games and need to change the color of onion flowers from purple to magenta or whatever else is worth the risk to them.
What are the risks man, it's just a game

In the worst case, you can always clean everything up and start over. And if you build great buildings, then it's better to make backups.
3:13 am, March 7, 2022
0 comments 0 likes

Lo Ping replied to Need help with mod crash. March 6, 2022 @ 5:27:21 pm PST

Originally posted by Kostet960604:
Most likely this one:
Valheim Performance Optimizations

I don’t understand either, but I overlooked what you have from last year’s optimization mod. At least the last update on the nexus was in October.

So I re-ran it without the optimizations and came out with similar results but less overall time for the crash to occur.

(These logs are massive and I have to delete a lot of content. I'll post a link to a full text dump if I can.)


[Info :ValheimLib] Added recipe for : $custom_item_bleedsword
[Info :ValheimLib] Added recipe for : $custom_item_laserhelm
[Info :ValheimLib] Added status effect : Bleeding
[Info :ValheimLib] Added status effect : BleedSword
[Info :ValheimLib] Added status effect : SurtlingHelm
[Warning:Jotunn.EventExtensions] Exception thrown at event InvokeOnItemsRegistered in AddNewSets.ModExistingRecipes:
System.NullReferenceException: Object reference not set to an instance of an object
at Terraheim.Utility.ArmorHelper.AddTieredRecipes (System.String setName, System.Boolean hasHelmet) [0x00152] in <7bbaa1818a6a412e925b79f46edff69c>:0
at Terraheim.Armor.AddNewSets.ModExistingRecipes () [0x00125] in <7bbaa1818a6a412e925b79f46edff69c>:0
at Jotunn.EventExtensions.SafeInvoke (System.Action events) [0x00018] in <52612d9b2278460c81b3b16689632cb8>:0
[Info :Surtling Core Overclocking] Updating description of items
[Info : Unity Log] 03/06/2022 17:23:05: Audioman already exist, destroying self

[Info : Unity Log] 03/06/2022 17:23:05: Checking for installed DLCs

[Info : Unity Log] 03/06/2022 17:23:05: DLC:beta installed:False

[Info : Unity Log] [Better Trader] Initializing UI!
[Info : Unity Log] [Better Trader] Trader's coins were loaded from Player Prefs with a value of 0
[Info :Jotunn.Managers.NetworkManager] Registering 2 custom RPCs
[Info : Unity Log] 03/06/2022 17:23:06: DungeonDB Start 343

[Info : Unity Log] 03/06/2022 17:23:06: Load world Homestead

[Info : Unity Log] 03/06/2022 17:23:06: Loading 27564 zdos , my id 25473438 data version:28

[Info : Unity Log] 03/06/2022 17:23:06: Loaded 15 dead zdos

[Error : Unity Log] 03/06/2022 17:23:06: Exception while loading world C:/Users/CoonSlayer/AppData/LocalLow/IronGate/Valheim/worlds/Homestead.db:System.NullReferenceException: Object reference not set to an instance of an object
at ZDOMan.RemoveOldGeneratedZDOS () [0x00032] in <dcb0de0155834d459f18d7ac6ea5244b>:0
at ZDOMan.Load (System.IO.BinaryReader reader, System.Int32 version) [0x001c4] in <dcb0de0155834d459f18d7ac6ea5244b>:0
at ZNet.LoadWorld () [0x00088] in <dcb0de0155834d459f18d7ac6ea5244b>:0

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
(wrapper dynamic-method) ZNet.DMD<ZNet::Start>(ZNet)

[Info : Unity Log] 03/06/2022 17:23:06: Starting respawn

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ZNetScene.CreateDestroyObjects () (at <dcb0de0155834d459f18d7ac6ea5244b>:0)
ZNetScene.Update () (at <dcb0de0155834d459f18d7ac6ea5244b>:0)

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
(wrapper dynamic-method) Minimap.DMD<Minimap::GetMaskColor>(Minimap,single,single,single,Heightmap/Biome)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Glue:ThiscallStructRetPtr<Minimap::GetMaskColor,DMD<Minimap::GetMaskColor>>(Minimap,UnityEngine.Color&,single,single,single,Heightmap/Biome)
BetterContinents.BetterContinents+MinimapPatch+<>c__DisplayClass6_0.<GenerateWorldMapMT>b__0 (System.Int32 i) (at <7341504886a54751a9d6e5e196923852>:0)
BetterContinents.GameUtils+<>c__DisplayClass26_1.<SimpleParallelFor>b__0 () (at <7341504886a54751a9d6e5e196923852>:0)
System.Threading.Tasks.Task.InnerInvoke () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Threading.Tasks.Task.Execute () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
Rethrow as AggregateException: One or more errors occurred.
System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, System.Int32 millisecondsTimeout) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
BetterContinents.GameUtils.SimpleParallelFor (System.Int32 taskCount, System.Int32 from, System.Int32 to, System.Action`1[T] action) (at <7341504886a54751a9d6e5e196923852>:0)
BetterContinents.BetterContinents+MinimapPatch.GenerateWorldMapMT (Minimap __instance) (at <7341504886a54751a9d6e5e196923852>:0)
BetterContinents.BetterContinents+MinimapPatch.GenerateWorldMapPrefix (Minimap __instance) (at <7341504886a54751a9d6e5e196923852>:0)
(wrapper dynamic-method) Minimap.DMD<Minimap::GenerateWorldMap>(Minimap)
Minimap.Update () (at <dcb0de0155834d459f18d7ac6ea5244b>:0)

[Info : Unity Log] 03/06/2022 17:23:06: tip:$loadscreen_tip11

[Info : Unity Log] 03/06/2022 17:23:06: Game - OnApplicationQuit

[Info : Unity Log] 03/06/2022 17:23:06: Shuting down

[Info : Unity Log] 03/06/2022 17:23:06: ZNet Shutdown

[Warning: Unity Log] 03/06/2022 17:23:06: Skipping world save

[Info : Unity Log] 03/06/2022 17:23:07: Sending disconnect msg

[Info : Unity Log] [Better Trader] Trader's coins were saved with a value of 0
[Info : Unity Log] 03/06/2022 17:23:09: ZNet OnDestroy

[Info : Unity Log] 03/06/2022 17:23:09: Net scene destroyed

[Info : Unity Log] ShowContainerContents Destroying plugin
[Warning: HarmonyX] UnpatchAll has been called - This will remove ALL HARMONY PATCHES.
3:13 am, March 7, 2022
0 comments 0 likes

Lo Ping replied to Need help with mod crash. March 6, 2022 @ 5:30:50 pm PST

Originally posted by Ataxio:
Beware of optimization mods, they rarely do as they advertise & worse case they do nothing at all. I've been saying it since this game first came out, modding before a game is content complete is an uphill battle and you will likely run into more frustration then anything else.

Personally, the last thing I want to do when firing up the game is perform IT work. But I get it, some people just can't handle vanilla games and need to change the color of onion flowers from purple to magenta or whatever else is worth the risk to them.


It's more of a content and QoL kinda thing for me. Valheim is a perfect game to get lost in but there's only so much to do as of right now. That being said I entirely agree with your stance on it being BEST to wait for the final release due to how easily mods are often broken.

Also, here's the full crash dump.

https://newtextdocument.com/a9b080b302
3:13 am, March 7, 2022
0 comments 0 likes

Kostet960604 replied to Need help with mod crash. March 6, 2022 @ 5:34:43 pm PST

At first glance under suspicion mod
Terraheim - Weapons Tools and Armor
I even left a link to this mod
https://www.nexusmods.com/valheim/mods/803
3:13 am, March 7, 2022
0 comments 0 likes

Kostet960604 replied to Need help with mod crash. March 6, 2022 @ 5:36:22 pm PST

Reading your logs is like a game for me, guess the name of a mod unknown to me from the logs :D
3:13 am, March 7, 2022
0 comments 0 likes

Lo Ping replied to Need help with mod crash. March 6, 2022 @ 5:39:53 pm PST

So I ran it without terraheim and I'm still getting the " [Error : Unity Log] MissingFieldException: Field 'Character.m_staggerTimer' not found.
Stack trace:
(wrapper dynamic-method) Player.DMD<Player::Update>(Player) " and I have no idea what the actual cause is. Looks like it's gonna have to be piecemeal after all.
3:13 am, March 7, 2022
0 comments 0 likes

Lo Ping replied to Need help with mod crash. March 6, 2022 @ 5:45:46 pm PST

Originally posted by Kostet960604:
Also try uninstalling and reinstalling EquipmentAndQuickSlots
https://valheim.thunderstore.io/package/RandyKnapp/EquipmentAndQuickSlots/

would I need to reinstall it when it's a fresh install? all mods were installed on a fresh profile today.
3:13 am, March 7, 2022
0 comments 0 likes

Kostet960604 replied to Need help with mod crash. March 6, 2022 @ 5:48:24 pm PST

Originally posted by Lo Ping:
Originally posted by Kostet960604:
Also try uninstalling and reinstalling EquipmentAndQuickSlots
https://valheim.thunderstore.io/package/RandyKnapp/EquipmentAndQuickSlots/

would I need to reinstall it when it's a fresh install? all mods were installed on a fresh profile today.
On the nexus it is simply written that the old version is incompatible with the new one, and therefore it must be deleted.
3:13 am, March 7, 2022
0 comments 0 likes

Lo Ping replied to Need help with mod crash. March 6, 2022 @ 5:49:21 pm PST

Ok I'm pretty sure I found the problem. Seems the Necromancy mod was causing all the issues but I'm going to need to do a bunch of testing to find out. Here's hoping!
3:13 am, March 7, 2022
0 comments 0 likes

Lo Ping replied to Need help with mod crash. March 6, 2022 @ 5:49:56 pm PST

Originally posted by Kostet960604:
Originally posted by Lo Ping:

would I need to reinstall it when it's a fresh install? all mods were installed on a fresh profile today.
On the nexus it is simply written that the old version is incompatible with the new one, and therefore it must be deleted.


I don't get any mods from the nexus. All mine come from the thunderstore.
3:13 am, March 7, 2022
0 comments 0 likes