yoship1639 / ValheimVRM

Mod to replace Valheim player with VRM model.
MIT License
53 stars 19 forks source link

Models won't load with Valheim Patch 0.209.8 #28

Closed JustThegs closed 2 years ago

JustThegs commented 2 years ago

Hello,

I hope this isn't too big of a fix, but it looks like the latest version of Valheim, which updated the version of the Unity engine it is running on to 2020.3.33f1, broke the mod such that models don't load and the character can't move.

The error that I receive when starting the game is:

[Error  : Unity Log] MissingMethodException: void VRM.VRMImporterContext..ctor(UniGLTF.GltfParser,UniGLTF.LoadTextureAsyncFunc,System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<string, UnityEngine.Object>>)
Stack trace:
ValheimVRM.Patch_Player_Awake.Postfix (Player __instance) (at <5d94e995f781439881a4768c74a7a119>:0)
(wrapper dynamic-method) Player.DMD<Player::Awake>(Player)
UnityEngine.Object:Instantiate(GameObject, Vector3, Quaternion)
FejdStartup:SetupCharacterPreview(PlayerProfile)
FejdStartup:UpdateCharacterList()
FejdStartup:SetSelectedProfile(String)
FejdStartup:DMD<FejdStartup::Start>(FejdStartup)

And the error that I receive when loading in to the world is:

[Error  : Unity Log] MissingMethodException: void VRM.VRMImporterContext..ctor(UniGLTF.GltfParser,UniGLTF.LoadTextureAsyncFunc,System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<string, UnityEngine.Object>>)
Stack trace:
ValheimVRM.Patch_Player_Awake.Postfix (Player __instance) (at <5d94e995f781439881a4768c74a7a119>:0)
(wrapper dynamic-method) Player.DMD<Player::Awake>(Player)
UnityEngine.Object:Instantiate(GameObject, Vector3, Quaternion)
Game:DMD<Game::SpawnPlayer>(Game, Vector3)
Game:UpdateRespawn(Single)
Game:FixedUpdate()

BepInEx was updated before trying to load into the updated game. I have tried rebuilding the avatar using Unity 2020.3.33f1 and was received the same errors. Disabling the custom model enables the game to load and be played. Thank you for all the hard work on this amazing mod, I hope to be playing with it again soon!

JustThegs commented 2 years ago

Issue is confirmed resolved, thank you so very much!