Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] V+ incompatible with new default Bepinex 5.4.21.0 #792

Open
bytorphoto opened this issue Mar 14, 2023 · 3 comments
Open

[BUG] V+ incompatible with new default Bepinex 5.4.21.0 #792

bytorphoto opened this issue Mar 14, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@bytorphoto
Copy link

  • OS: Windows Client
  • Valheim Game Version: 0.214.2
  • V+ Mod Version: 0.9.9.11
  • Bepinex Version: 5.4.21.0 (newly pushed out to clients)

Valheim+ fails to load properly. Gives huge white box with "Mistlands" in the middle and no Valheim Plus logo. Also error log in the loader box.

A clear and concise description of what the bug is and how you found it.

I updated my mods via Thunderstore and the new Bepinex was pushed out, along with a new Jotun library. After disabling a few of my mods that were causing errors (Gungir Admin commands, SKK Toolbox, Multicraft, and a couple of others) only V+ was left causing red errors in the loader.

--
[Info :Valheim Plus] Configuration file loaded succesfully.
[Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Chat and name OnNewChatMessage and parameters (UnityEngine.GameObject, long, UnityEngine.Vector3, Talker+Type, string, string, string)
[Error : Unity Log] ArgumentException: Undefined target method for patch method static bool ValheimPlus.GameClasses.Chat_AddInworldText_Patch::Prefix(Chat& __instance, UnityEngine.GameObject go, long senderID, UnityEngine.Vector3 pos, Talker+Type type, string user, string text, string senderNetworkUserId)
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.b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[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()

To Reproduce

Steps for the devs to reproduce the behavior:

  1. Install new Bepinex v5.4.21.0
  2. Add Valheim Plus v0.9.9.11
  3. Run Valheim
  4. Examine the loader box (text Unity errors)

Expected behavior

Vahleim, with Valheim+, to load fully with logo.

Please list any other mods besides V+ that you have installed here. Add any other context about the problem here.

No other mods loaded. Just Bepinex and V+

@bytorphoto bytorphoto added the bug Something isn't working label Mar 14, 2023
@bytorphoto bytorphoto changed the title [BUG] [BUG] V+ incompatible with new default Bepinex 5.4.21.0 Mar 14, 2023
@gflare
Copy link

gflare commented Mar 14, 2023

This bug can be combined with issue # 791 ( #791 ).

The cause is Valheim Game Version: [0.214.2] , not Bepinex 5.4.21.0 . However, the update of Valheim does force Bepinex to need an update, as well as V+. Bepinex update is done, but we must wait for a V+ update to align all 3.

Until that time, use the workaround from the other issue thread to play the previous version of Valheim, and continue to use that compatible Bepinex (5.4.1901) as well.

@bytorphoto
Copy link
Author

That's fair. I hadn't scrolled down far enough in the previous issue. Sorry.

@gflare
Copy link

gflare commented Mar 14, 2023

That's fair. I hadn't scrolled down far enough in the previous issue. Sorry.

All good :) . Just making sure that others searching around know that these two issues are related. Always better to have additional issues reported, than having outstanding items not being known to the group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants