[BUG]
- Windows client
- 0.212.9
- 0.9.9.11
Char not Save when logout
Logout with errors, CHAR not Saved
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
Skills.Save (ZPackage pkg) (at <35c0f7aa1999477788815a7bf78200d7>:0)
Player.Save (ZPackage pkg) (at <35c0f7aa1999477788815a7bf78200d7>:0)
PlayerProfile.SavePlayerData (Player player) (at <35c0f7aa1999477788815a7bf78200d7>:0)
Game.SavePlayerProfile (System.Boolean setLogoutPoint) (at <35c0f7aa1999477788815a7bf78200d7>:0)
Game.Shutdown () (at <35c0f7aa1999477788815a7bf78200d7>:0)
Game.Logout () (at <35c0f7aa1999477788815a7bf78200d7>:0)
Menu.Logout () (at <35c0f7aa1999477788815a7bf78200d7>:0)
Menu.OnLogoutYes () (at <35c0f7aa1999477788815a7bf78200d7>:0)
UnityEngine.Events.InvokableCall.Invoke () (at
It is most likely related to Fishing skill (wasn't fishing changed in Valheim in last updates?)
We hit this problem on our server, and I think I've managed to get it to reproduce on a clean, minimal setup.
- Fresh V+ install through r2modman
- (Important) Enable PlayerProjectile and enableScaleWithSkillLevel
- Fresh character, fresh world
- Spawn in fishingrod and fishingbait
- Cast once so there's any amount of exp gained in fishing
- Logout
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
Skills.Save (ZPackage pkg) (at <35c0f7aa1999477788815a7bf78200d7>:0)
Player.Save (ZPackage pkg) (at <35c0f7aa1999477788815a7bf78200d7>:0)
PlayerProfile.SavePlayerData (Player player) (at <35c0f7aa1999477788815a7bf78200d7>:0)
Game.SavePlayerProfile (System.Boolean setLogoutPoint) (at <35c0f7aa1999477788815a7bf78200d7>:0)
Game.Shutdown () (at <35c0f7aa1999477788815a7bf78200d7>:0)
Game.OnApplicationQuit () (at <35c0f7aa1999477788815a7bf78200d7>:0)