Grantapher / ValheimPlus

A HarmonyX Mod aimed at improving the gameplay and quality of life of the game Valheim.
GNU Affero General Public License v3.0
234 stars 26 forks source link

[BUG] No longer works with Valheim 0.218.21 #96

Closed jaevans closed 2 months ago

jaevans commented 2 months ago

Describe the bug

When starting game, player seems to spin rapidly and no controls work. This happens with V+ saves and older non V+ maps and characters.

Looking at the player.log shows a repeated series of

[Error  : Unity Log] MissingFieldException: Field not found: bool .Player.m_firstSpawn Due to: Could not find field in class
Stack trace:
(wrapper dynamic-method) Player.DMD<Player::OnSpawned>(Player,bool)
Game.SpawnPlayer (UnityEngine.Vector3 spawnPoint, System.Boolean spawnValkyrie) (at <7184024c9322425e8b0d898f0eb8c3fb>:0)
(wrapper dynamic-method) Game.DMD<Game::UpdateRespawn>(Game,single)
Game.FixedUpdate () (at <7184024c9322425e8b0d898f0eb8c3fb>:0)

To Reproduce

Steps for the devs to reproduce the behavior:

  1. Start 0.218.21 with V+ enabled
  2. Start game

Expected behavior

Game works normally

Troubleshooting

Disabling V+ makes base game work correctly.

Screenshots

If applicable, add screenshots to help explain your problem.

Link to pastebin containing .cfg configuration if applicable:

Additional context

m_FirstSpawn is set in

It also appears in valheim_Data/Managed/assembly_valheim.dll so I don't think it was completely removed, but I have no C# or unity experience so I'm not sure how to dig deeper

SavidDu commented 2 months ago

I can confirm the same happens on the Windows client as well.

jaevans commented 2 months ago

Also verified on Mac version as well. Same versions of Valheim and V+

Grantapher commented 2 months ago

https://github.com/Grantapher/ValheimPlus/releases/tag/0.9.14.0-alpha04 this version should work (even though this isn't ptb any more), a new release will be added later.

jaevans commented 2 months ago

0.9.14.0 fixes the issues. Closing.