|
Post by speedrunlabs1 on Nov 25, 2014 1:21:11 GMT
Hello, I'm having an error that I cannot figure out. It was happening on an old version (4 versions ago) but I recently updated to current version and it's still happening. I suspect it's a corrupt local file.
IndexOutOfRangeException: Array index is out of range. PreviewLabs.PlayerPrefs.Deserialize () (at Assets/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:223) PreviewLabs.PlayerPrefs..cctor () (at Assets/DarkTonic/CoreGameKit/Scripts/Utility/PlayerPrefs.cs:43) Rethrow as TypeInitializationException: An exception was thrown by the type initializer for PreviewLabs.PlayerPrefs InGameWorldVariable.set_CurrentIntValue (Int32 value) (at Assets/DarkTonic/CoreGameKit/Scripts/WorldVariables/InGameWorldVariable.cs:55) WorldVariableTracker.Init () (at Assets/DarkTonic/CoreGameKit/Scripts/WorldVariables/WorldVariableTracker.cs:95) WorldVariableTracker.Awake () (at Assets/DarkTonic/CoreGameKit/Scripts/WorldVariables/WorldVariableTracker.cs:39)
|
|
|
Post by DarkTonic Dev on Nov 25, 2014 1:51:41 GMT
This happened to me only once. You'll need to delete the temporary file created by the "cached Player Prefs". It's called PlayerPrefs.txt and it's not in the Unity project folders. On Windows, it will be a folder something like this:
C:/Users/{your user name}/AppData/LocalLow/{your user name}/{Unity project name}/PlayerPrefs.txt
You will lose all saved Player Prefs when you delete the file. So it will be like installing the game for the first time again. No World Variable or Core GameKit settings will need to be redone though.
|
|
|
Post by speedrunlabs1 on Nov 25, 2014 2:55:42 GMT
Awesome, thanks for the help.
|
|
|
Post by DarkTonic Dev on Nov 25, 2014 2:59:10 GMT
No problem.
|
|