valheimPlus / ValheimPlus

A HarmonyX Mod aimed at improving the gameplay and quality of life of the game Valheim.
http://valheim.plus
GNU Affero General Public License v3.0
967 stars 236 forks source link

[BUG] Game Crashes at Logo screen #811

Closed r0nd0n closed 1 year ago

r0nd0n commented 1 year ago

Describe the bug

Game starts, shows studio logo, then freezes at the Valheim logo and crashes.

Log:

[Message:   BepInEx] BepInEx 5.4.19.0 - valheim (05/26/2023 21:00:14)
[Info   :   BepInEx] Running under Unity vUnknown (post-2017)
[Info   :   BepInEx] CLR runtime version: 4.0.30319.42000
[Info   :   BepInEx] Supports SRE: True
[Info   :   BepInEx] System platform: Bits64, Linux
[Message:   BepInEx] Preloader started
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.19.0]
[Info   :   BepInEx] 1 patcher plugin loaded
[Info   :   BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Message:   BepInEx] Preloader finished
[Info   :   BepInEx] Detected Unity version: v2020.3.45f1
[Message:   BepInEx] Chainloader ready
[Message:   BepInEx] Chainloader started
[Info   :   BepInEx] 1 plugins to load
[Info   :   BepInEx] Loading [Valheim Plus 0.9.9.11]
[Info   :Valheim Plus] Trying to load the configuration file
[Info   : Unity Log] Loading config section AdvancedBuildingMode
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section AdvancedEditingMode
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Bed
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Beehive
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Building
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Deconstruct
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Inventory
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Items
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Fermenter
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section FireSource
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Food
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Smelter
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Furnace
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Hotkeys
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Kiln
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Windmill
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section SpinningWheel
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Map
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Player
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Server
[Info   : Unity Log]  Loading key maxPlayers
[Info   : Unity Log]  Loading key disableServerPassword
[Info   : Unity Log]  Loading key enforceMod
[Info   : Unity Log]  Loading key serverSyncsConfig
[Info   : Unity Log]  Loading key serverSyncHotkeys
[Info   : Unity Log] Loading config section Stamina
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section StaminaUsage
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Workbench
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Time
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Ward
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section StructuralIntegrity
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Tameable
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Hud
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Experience
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Camera
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Game
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Wagon
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Gathering
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Pickable
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Durability
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Armor
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section FreePlacementRotation
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Shields
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section FirstPerson
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section GridAlignment
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section CraftFromChest
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section ValheimPlus
[Info   : Unity Log]  Loading key mainMenuLogo
[Info   : Unity Log]  Loading key serverBrowserAdvertisement
[Info   : Unity Log] Loading config section PlayerProjectile
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section MonsterProjectile
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section GameClock
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Brightness
[Info   : Unity Log]  Section not enabled
[Info   : Unity Log] Loading config section Chat
[Info   : Unity Log]  Section not enabled
[Info   :Valheim Plus] Configuration file loaded succesfully.
[Warning:  HarmonyX] AccessTools.DeclaredMethod: Could not find method for type SE_Rested and name GetNearbyPieces and parameters 
[Error  : Unity Log] ArgumentException: Undefined target method for patch method static System.Collections.Generic.IEnumerable<HarmonyLib.CodeInstruction> ValheimPlus.SE_Rested_GetNearbyPieces_Transpiler::Transpiler(System.Collections.Generic.IEnumerable<HarmonyLib.CodeInstruction> instructions)
Stack trace:
HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
Rethrow as HarmonyException: Patching exception in method null
HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
ValheimPlus.ValheimPlusPlugin.Awake () (at <7c2de1882abc413da7273413f1d1b902>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.InputSystem.InputSystem:.cctor()

[Message:   BepInEx] Chainloader startup complete
[Error  : Unity Log] Desired shader compiler platform 15 is not available in shader blob
[Error  : Unity Log] Desired shader compiler platform 15 is not available in shader blob
[Error  : Unity Log] Desired shader compiler platform 15 is not available in shader blob
[Info   : Unity Log] 06/12/2023 17:29:59: Starting to load scene:start

To Reproduce

Steps for the devs to reproduce the behavior:

  1. Follow the surprisingly good installation instructions
  2. Change the steam launch options to either ./start_game_bepinex.sh %command% or bash /start_game_bepinex.sh %command% (neither work)
  3. Launch the game

Expected behavior

The game should launch as it does when I clear the launch command to launch normally.

Troubleshooting

Tried both launch options, looked for configurations that may be needed to change, and have searched the Issues page for keywords of some of my error log to see if there was already a fix or if there's something obvious I'm missing.

Additional context

No other mods installed

stolenvw commented 1 year ago

https://github.com/Grantapher/ValheimPlus/releases/latest

r0nd0n commented 1 year ago

https://github.com/Grantapher/ValheimPlus/releases/latest

That did it, thanks!