Astropilot / ValheimTooler

A fancy cheats tool for the Valheim game
MIT License
52 stars 12 forks source link

Player Data not saving when using tooler. #15

Closed fengyuan213 closed 1 year ago

fengyuan213 commented 1 year ago

With tooler injected, when I try to quit the game, the game stuck on an infinite black screen, when I force a shutdown of the game and restart, the player data is not saved. Here is player.log

12/30/2022 01:40:50: Shuting down NullReferenceException: Object reference not set to an instance of an object at Skills.Save (ZPackage pkg) [0x00036] in <35c0f7aa1999477788815a7bf78200d7>:0 at Player.Save (ZPackage pkg) [0x0036b] in <35c0f7aa1999477788815a7bf78200d7>:0 at PlayerProfile.SavePlayerData (Player player) [0x00006] in <35c0f7aa1999477788815a7bf78200d7>:0 at Game.SavePlayerProfile (System.Boolean setLogoutPoint) [0x00017] in <35c0f7aa1999477788815a7bf78200d7>:0 at Game.Shutdown () [0x0001a] in <35c0f7aa1999477788815a7bf78200d7>:0 at Game.Logout () [0x00009] in <35c0f7aa1999477788815a7bf78200d7>:0 at Menu.Logout () [0x0001b] in <35c0f7aa1999477788815a7bf78200d7>:0 at Menu.OnLogoutYes () [0x0002c] in <35c0f7aa1999477788815a7bf78200d7>:0 at UnityEngine.Events.InvokableCall.Invoke () [0x00010] in :0 at UnityEngine.Events.UnityEvent.Invoke () [0x00022] in :0 at UnityEngine.UI.Button.Press () [0x0001c] in <67859b8eac9e4f3b99606821e32b26c6>:0 at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00009] in <67859b8eac9e4f3b99606821e32b26c6>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00007] in <67859b8eac9e4f3b99606821e32b26c6>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x0006c] in <67859b8eac9e4f3b99606821e32b26c6>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction1) UnityEngine.EventSystems.StandaloneInputModule:ReleaseMouse(PointerEventData, GameObject) UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update()

12/30/2022 01:40:50: FOund selected Button_yes

fengyuan213 commented 1 year ago

image I used this function to set skill

BastienMarais commented 1 year ago

Hi !

Are you using the tool via its own launcher or as a mod? I will test this action on my side to see if I have the same behavior.

fengyuan213 commented 1 year ago

Launcher, I haven't tried as a mod

BastienMarais commented 1 year ago

Well after testing, I don't have the game blocked but the levels are not saved with ALL and None. @Astropilot is on the subject ;)

Astropilot commented 1 year ago

Hi @fengyuan213 ,

From what I see on your screen you tried to use the "All", unfortunately this one is not supposed to be available and does not work. Normally it is not supposed to block the game (just do nothing) but for the moment don't use it. I'm going to release a new version of the cheat later today and I'll incorporate a fix to make the "All" work properly.

fengyuan213 commented 1 year ago

Thanks verymuch

Astropilot commented 1 year ago

Hi @fengyuan213 ,

The choice of "All" has been corrected in the last https://github.com/Astropilot/ValheimTooler/releases/tag/v1.7.0!