The-Bees-Decree-Server / VALKEA

VALKEA: 300+ Brand Spanking New Build Pieces for a more upbeat homestead.
Other
6 stars 2 forks source link

Crash on client connection with dedicated server #29

Closed shino6 closed 1 year ago

shino6 commented 1 year ago

Valheim 0.214.300 VALKEA Decor 1.1.31 R2modman 3.1.40

When trying to launch the latest version of Valheim, we're experiencing a 100% crash-to-desktop during the server connection phase when we have VALKEA Decor loaded in our mod list. This did not occur prior to the 0.214.300 patch.

  1. After several hours of testing mods, we determined only this mod exhibits this behavior - strangely, VALKEA Builds II, which we also have loaded, works fine.
  2. The CTD occurs only when launching a local client to connect with a remote dedicated server - if you simply run a local game, the client launches successfully.
  3. The CTD occurs after attempting server connection and appears in the form of a Unity Engine crash. Unfortunately, we have found no clues in the logger (red text, etc) to suggest why this is occurring.

In case this is a mod conflict, below is the list of mods that precede VALKEA Decor in our mod load list:

https://valheim.thunderstore.io/package/ValheimModding/Jotunn https://valheim.thunderstore.io/package/RandyKnapp/EpicLoot/ https://valheim.thunderstore.io/package/Smoothbrain/CreatureLevelAndLootControl/ https://valheim.thunderstore.io/package/Torann_VL/Valheim_Legends/ https://valheim.thunderstore.io/package/HugotheDwarf/Shapekeys_and_More/ https://valheim.thunderstore.io/package/HugotheDwarf/More_and_Modified_Player_Cloth_Colliders/ https://valheim.thunderstore.io/package/HugotheDwarf/Hugos_Armory/ https://valheim.thunderstore.io/package/LTmadness/FermenterPercentage/ https://valheim.thunderstore.io/package/GoldenJude/Blacksmiths_tools/ https://valheim.thunderstore.io/package/GoldenJude/Judes_Equipment/ https://valheim.thunderstore.io/package/Nextek/SpeedyPaths/ https://valheim.thunderstore.io/package/Fantu/Sages_Vault/ https://valheim.thunderstore.io/package/1010101110/roll/ https://valheim.thunderstore.io/package/Digitalroot/Digitalroots_Slope_Combat_Assistance/ https://valheim.thunderstore.io/package/WackyMole/WackysDatabase/ https://valheim.thunderstore.io/package/Korppis/ReliableBlock/ https://valheim.thunderstore.io/package/BentoG/MissingPieces/ https://valheim.thunderstore.io/package/OdinPlus/OdinsFoodBarrels/ https://valheim.thunderstore.io/package/gittywithexcitement/Build_Camera/ https://valheim.thunderstore.io/package/GemHunter1/NoAFKEvents/ https://valheim.thunderstore.io/package/MSchmoecker/MultiUserChest/ https://valheim.thunderstore.io/package/JereKuusela/Server_devcommands/ https://valheim.thunderstore.io/package/Detalhes/Rowing/ https://valheim.thunderstore.io/package/ComfyMods/SearsCatalog/ https://valheim.thunderstore.io/package/virtuaCode/EmoteWheel/ https://valheim.thunderstore.io/package/CW_Jesse/BetterNetworking_Valheim/ https://valheim.thunderstore.io/package/blacks7ar/VikingsDoSwim/ https://valheim.thunderstore.io/package/Crystal/Pathfinder/ https://valheim.thunderstore.io/package/Tyrenheim/GiveItARest/ https://valheim.thunderstore.io/package/Korppis/Spearfishing/

The-Bees-Decree-Server commented 1 year ago

IN RE: 3/29/23 Update (0.214.300)

There is a series of strange bugs occurring for some players. We are currently looking into it.

Thank you for your patience.

Some things to try if you are having issues: 1) be sure to have the NEWEST up to date bepinex on client AND SERVER. Many host HAVE NOT upgraded their bepinex package, you may have to do this manually.

2) With the newest version of valheim ((0.214.300)), some found that (ALL- not just valkea) configs being regenerated alleviated many issues. IE, DELETE ALL MOD CONFIGS and allow them to regenerate for newest version of game.

3) Most issues seem to only be persistent with DEDICATED servers. We have tested on our own dedi, and DO NOT have these issues and cannot replicate. BUT we have also fulfilled 1 & 2 above.

If you run into issues at the moment and cannot updated your bepinex on your server, simply REMOVE VALKEA from the server and just run it client side for the time being. The only thing that can be adjusted is the BJORKSNAS cost via the config. If you are worried about players "cheating" over 999 coins, fine wood and a queen be- Sorry.

We are still looking into this ATM but during our own testing this is likely due to incompatible bepinex and config issues as noted above in 1 & 2.

shino6 commented 1 year ago

Thank you for your reply and all your efforts. We are running Bepinex 5.4.2102 on both client and server.

We deleted existing configs then generated new ones per your suggestion. This changed the nature of the crash.

  1. The crash upon local client -> server connection no longer occurs with a fresh config.
  2. The game now crashes if any player approaches a portal (<20m). The game remains stable for long periods aside from this, but once any player approaches a portal, 100% local client crash occurs.

Hope this is helpful.

The-Bees-Decree-Server commented 1 year ago

Thank you for your reply and all your efforts. We are running Bepinex 5.4.2102 on both client and server.

We deleted existing configs then generated new ones per your suggestion. This changed the nature of the crash.

  1. The crash upon local client -> server connection no longer occurs with a fresh config.
  2. The game now crashes if any player approaches a portal (<20m). The game remains stable for long periods aside from this, but once any player approaches a portal, 100% local client crash occurs.

Hope this is helpful.

Thank you for the report, we will try to recreate this issue and see.

Just for clarification, did both server and clients delete configs?

shino6 commented 1 year ago

Yes, both server and client deleted configs.

shino6 commented 1 year ago

Below is our complete mod list in case it's useful.

https://valheim.thunderstore.io/package/ValheimModding/Jotunn/ https://valheim.thunderstore.io/package/RandyKnapp/EpicLoot/ https://valheim.thunderstore.io/package/Smoothbrain/CreatureLevelAndLootControl/ https://valheim.thunderstore.io/package/Torann_VL/Valheim_Legends/ https://valheim.thunderstore.io/package/HugotheDwarf/Shapekeys_and_More/ https://valheim.thunderstore.io/package/HugotheDwarf/More_and_Modified_Player_Cloth_Colliders/ https://valheim.thunderstore.io/package/HugotheDwarf/Hugos_Armory/ https://valheim.thunderstore.io/package/LTmadness/FermenterPercentage/ https://valheim.thunderstore.io/package/GoldenJude/Blacksmiths_tools/ https://valheim.thunderstore.io/package/GoldenJude/Judes_Equipment/ https://valheim.thunderstore.io/package/Nextek/SpeedyPaths/ https://valheim.thunderstore.io/package/Fantu/Sages_Vault/ https://valheim.thunderstore.io/package/1010101110/roll/ https://valheim.thunderstore.io/package/Digitalroot/Digitalroots_Slope_Combat_Assistance/ https://valheim.thunderstore.io/package/WackyMole/WackysDatabase/ https://valheim.thunderstore.io/package/Korppis/ReliableBlock/ https://valheim.thunderstore.io/package/BentoG/MissingPieces/ https://valheim.thunderstore.io/package/OdinPlus/OdinsFoodBarrels/ https://valheim.thunderstore.io/package/gittywithexcitement/Build_Camera/ https://valheim.thunderstore.io/package/GemHunter1/NoAFKEvents/ https://valheim.thunderstore.io/package/MSchmoecker/MultiUserChest/ https://valheim.thunderstore.io/package/JereKuusela/Server_devcommands/ https://valheim.thunderstore.io/package/Detalhes/Rowing/ https://valheim.thunderstore.io/package/ComfyMods/SearsCatalog/ https://valheim.thunderstore.io/package/virtuaCode/EmoteWheel/ https://valheim.thunderstore.io/package/CW_Jesse/BetterNetworking_Valheim/ https://valheim.thunderstore.io/package/blacks7ar/VikingsDoSwim/ https://valheim.thunderstore.io/package/Crystal/Pathfinder/ https://valheim.thunderstore.io/package/Tyrenheim/GiveItARest/ https://valheim.thunderstore.io/package/Korppis/Spearfishing/ https://valheim.thunderstore.io/package/The_Bees_Decree/VALKEA_Decor/ https://valheim.thunderstore.io/package/The_Bees_Decree/VALKEA_Builds_II/ https://valheim.thunderstore.io/package/Azumatt/AAA_Crafting/ https://valheim.thunderstore.io/package/Goldenrevolver/Instantly_Destroy_Boats_And_Carts/ https://valheim.thunderstore.io/package/Crystal/DigDeeper/ https://valheim.thunderstore.io/package/Smoothbrain/TargetPortal/ https://valheim.thunderstore.io/package/WackyMole/RareMagicPortal/ https://valheim.thunderstore.io/package/Ratzu/ReviveAllies/ https://valheim.thunderstore.io/package/hyleanlegend/Rune_Magic/ https://valheim.thunderstore.io/package/Therzie/Warfare/ https://valheim.thunderstore.io/package/ASharpPen/Drop_That/ https://valheim.thunderstore.io/package/Mokutan/MassFarming/ https://valheim.thunderstore.io/package/OdinPlus/PotionPlus/ https://valheim.thunderstore.io/package/ASharpPen/Custom_Raids/ https://valheim.thunderstore.io/package/Azumatt/FastLink/ https://valheim.thunderstore.io/package/AeehyehssReeper/ChaosArmor/ https://valheim.thunderstore.io/package/Digitalroot/Better_Wisps/ https://valheim.thunderstore.io/package/JereKuusela/Smoke_Collision/ https://valheim.thunderstore.io/package/CSG/CSG_Warfare_Monstrum_Epic_Loot_Support/ Monstrum by Therzie (manual file) https://valheim.thunderstore.io/package/Therzie/Armory/ https://valheim.thunderstore.io/package/Azumatt/PerfectPlacement/ https://valheim.thunderstore.io/package/Frogger/InfiniteTorches/ https://valheim.thunderstore.io/package/Azumatt/AzuWorkbenchTweaks/ https://valheim.thunderstore.io/package/Azumatt/ImFRIENDLY_DAMMIT/

shino6 commented 1 year ago

If you run into issues at the moment and cannot updated your bepinex on your server, simply REMOVE VALKEA from the server and just run it client side for the time being. The only thing that can be adjusted is the BJORKSNAS cost via the config. If you are worried about players "cheating" over 999 coins, fine wood and a queen be- Sorry.

We attempted this workaround, then experienced a slightly different crash.

  1. Removed server side VALKEA, then enabled with client side VALKEA with fresh config.
  2. Successful login to remote server.
  3. Upon startup, VALKEA furniture reappeared (as expected). Player began within 20m of portal - game did not crash.
  4. Player entered portal - Unity Engine crashed seconds after portal animation began.
The-Bees-Decree-Server commented 1 year ago

If you run into issues at the moment and cannot updated your bepinex on your server, simply REMOVE VALKEA from the server and just run it client side for the time being. The only thing that can be adjusted is the BJORKSNAS cost via the config. If you are worried about players "cheating" over 999 coins, fine wood and a queen be- Sorry.

We attempted this workaround, then experienced a slightly different crash.

  1. Removed server side VALKEA, then enabled with client side VALKEA with fresh config.
  2. Successful login to remote server.
  3. Upon startup, VALKEA furniture reappeared (as expected). Player began within 20m of portal - game did not crash.
  4. Player entered portal - Unity Engine crashed seconds after portal animation began.

So we double checked and tested use with portals on our dedi, which has over 80+ mods and still have not experienced this. At this point I can only assume some strange incapability with certain mods on your list, if we had to guess either target portal or better networking, seeing that we do not use those and those both directly affect portals/load times. If this is the case, as for why, i am currently unsure.

If you have time to test, we would greatly appreciate the report.

Just for clarification, client side is not reporting any errors or warnings upon crash? Do they have bepinex logging enabled?

shino6 commented 1 year ago

Absolutely. Yes, default client side is not reporting errors or warnings prior to crash that we could see.

  1. Reinstalled VALKEA Decor for control test. Crash occurs as expected upon approaching portal.
  2. Removed both TargetPortal and BetterNetworking. Restarted server then logged in. No crash.
  3. Reinstalled TargetPortal (to restore portal functionality). Restarted server then logged in. Crash occurs like step 1.
  4. Removed TargetPortal. Reinstalled BetterNetworking. Restarted server then logged in. Crash occurs like step 1.
  5. Reinstalled TargetPortal then enabled Bepinex logging. Restarted server then logged in. Crash now occurs <100%. Multiple errors show up in log when interacting with or moving towards portals (see attached).

Based on this it appears your theory is correct - VALKEA Decor is separately conflicting both with TargetPortal and BetterNetworking.

Error A Error B Error C Error D Error E Error F

Please let me know if you need anything else.

The-Bees-Decree-Server commented 1 year ago

Absolutely. Yes, default client side is not reporting errors or warnings prior to crash that we could see.

  1. Reinstalled VALKEA Decor for control test. Crash occurs as expected upon approaching portal.
  2. Removed both TargetPortal and BetterNetworking. Restarted server then logged in. No crash.
  3. Reinstalled TargetPortal (to restore portal functionality). Restarted server then logged in. Crash occurs like step 1.
  4. Removed TargetPortal. Reinstalled BetterNetworking. Restarted server then logged in. Crash occurs like step 1.
  5. Reinstalled TargetPortal then enabled Bepinex logging. Restarted server then logged in. Crash now occurs <100%. Multiple errors show up in log when interacting with or moving towards portals (see attached).

Based on this it appears your theory is correct - VALKEA Decor is separately conflicting both with TargetPortal and BetterNetworking.

Error A Error B Error C Error D Error E Error F

Please let me know if you need anything else.

Ah ok. I see now. IDK why they call upon signs but those two mods do. With the last update, valhiem adjust their text for signs method. We are currently unable to make this adjustment due to time, BUT are updating the mod to temporarily remove the text method on Queens Letter and Queens Scroll. This SHOULD alleviate you issue when we do release the next patch of the mods! In the mean time you can use a mod called "ClutterTempFix" and it may help until then, seeing as it forces the signs to the new method.

We thank you for taking all the time to test when we could not!

The-Bees-Decree-Server commented 1 year ago

Just a head up we have released 1.1.5, let us know if this changes the outcome for you!

shino6 commented 1 year ago

Fixed. Thank you!

The-Bees-Decree-Server commented 1 year ago

No problem! Enjoy!