Post by defchurch1 on Oct 20, 2023 23:02:38 GMT
Version 3.2.9.4 -July, 07, 2023
I accidentally restarted my PC while in game and when I opened it again I started getting the below errors on play. I noticed that The "WorldVariables" auto disables on game start which I'm not sure if that is normal or not. I also tried a new scene adding in a fresh "LevelWaveSettings" and got the same result.
I've never had this before and I'm unsure what to do other than deleting the plugin and re importing it back in.
IndexOutOfRangeException: Index was outside the bounds of the array.
PreviewLabs.PlayerPrefs.Deserialize () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:239)
PreviewLabs.PlayerPrefs..cctor () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:50)
Rethrow as TypeInitializationException: The type initializer for 'PreviewLabs.PlayerPrefs' threw an exception.
DarkTonic.CoreGameKit.InGameWorldVariable.get_CurrentIntValue () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/InGameWorldVariable.cs:108)
DarkTonic.CoreGameKit.InGameWorldVariable.set_CurrentIntValue (System.Int32 value) (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/InGameWorldVariable.cs:123)
DarkTonic.CoreGameKit.WorldVariableTracker.Init () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/WorldVariableTracker.cs:118)
DarkTonic.CoreGameKit.WorldVariableTracker.Awake () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/WorldVariableTracker.cs:48)
IndexOutOfRangeException: Index was outside the bounds of the array.
PreviewLabs.PlayerPrefs.Deserialize () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:239)
PreviewLabs.PlayerPrefs..cctor () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:50)
Rethrow as TypeInitializationException: The type initializer for 'PreviewLabs.PlayerPrefs' threw an exception.
DarkTonic.CoreGameKit.WorldVariableTracker.FlushAll () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/WorldVariableTracker.cs:402)
DarkTonic.CoreGameKit.LevelSettings.LevelWasLoaded (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode mode) (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Level/LevelSettings.cs:513)
UnityEngine.SceneManagement.SceneManager.Internal_SceneLoaded (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode mode) (at <05041d4f5ec242309356a6b3b04452e6>:0)
I accidentally restarted my PC while in game and when I opened it again I started getting the below errors on play. I noticed that The "WorldVariables" auto disables on game start which I'm not sure if that is normal or not. I also tried a new scene adding in a fresh "LevelWaveSettings" and got the same result.
I've never had this before and I'm unsure what to do other than deleting the plugin and re importing it back in.
IndexOutOfRangeException: Index was outside the bounds of the array.
PreviewLabs.PlayerPrefs.Deserialize () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:239)
PreviewLabs.PlayerPrefs..cctor () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:50)
Rethrow as TypeInitializationException: The type initializer for 'PreviewLabs.PlayerPrefs' threw an exception.
DarkTonic.CoreGameKit.InGameWorldVariable.get_CurrentIntValue () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/InGameWorldVariable.cs:108)
DarkTonic.CoreGameKit.InGameWorldVariable.set_CurrentIntValue (System.Int32 value) (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/InGameWorldVariable.cs:123)
DarkTonic.CoreGameKit.WorldVariableTracker.Init () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/WorldVariableTracker.cs:118)
DarkTonic.CoreGameKit.WorldVariableTracker.Awake () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/WorldVariableTracker.cs:48)
IndexOutOfRangeException: Index was outside the bounds of the array.
PreviewLabs.PlayerPrefs.Deserialize () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:239)
PreviewLabs.PlayerPrefs..cctor () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:50)
Rethrow as TypeInitializationException: The type initializer for 'PreviewLabs.PlayerPrefs' threw an exception.
DarkTonic.CoreGameKit.WorldVariableTracker.FlushAll () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/WorldVariables/WorldVariableTracker.cs:402)
DarkTonic.CoreGameKit.LevelSettings.LevelWasLoaded (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode mode) (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Level/LevelSettings.cs:513)
UnityEngine.SceneManagement.SceneManager.Internal_SceneLoaded (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode mode) (at <05041d4f5ec242309356a6b3b04452e6>:0)