- 119
- Posts
- 11
- Years
- Seen Sep 1, 2023
I was wondering what kind of things can cause the game to fail a save?
I've just discovered that the project I'm working fails to save every time. In specific situations it succeeds in saving, yet then the game still breaks after loading (giving errors caused by data not being saved correctly). I've made little changes to the save and load scripts; only creating a new variable on new game and saving and loading of this variable. Besides that I've made several changes to the essentials code and added my own systems.
One of these systems allows the creation of multiple characters (each with their own party, etc.), switching between them, and interaction between characters. The data for all these characters is stored in one variable.
As a result I have a few questions:
- Are there certain variable types which should be avoided?
- Are there size limits or time limits to saving data?
- What are best practices to pinpoint the cause of failed saves?
- Could it be caused by something outside the essentials code?
On a dubious side note: When testing previous versions I noticed it was a problem in all versions which include the system, yet I'm sure I originally was able to use the system without these errors. This would suggest that something outside the code is causing this. To my knowledge this shouldn't be possible.
I've just discovered that the project I'm working fails to save every time. In specific situations it succeeds in saving, yet then the game still breaks after loading (giving errors caused by data not being saved correctly). I've made little changes to the save and load scripts; only creating a new variable on new game and saving and loading of this variable. Besides that I've made several changes to the essentials code and added my own systems.
One of these systems allows the creation of multiple characters (each with their own party, etc.), switching between them, and interaction between characters. The data for all these characters is stored in one variable.
As a result I have a few questions:
- Are there certain variable types which should be avoided?
- Are there size limits or time limits to saving data?
- What are best practices to pinpoint the cause of failed saves?
- Could it be caused by something outside the essentials code?
On a dubious side note: When testing previous versions I noticed it was a problem in all versions which include the system, yet I'm sure I originally was able to use the system without these errors. This would suggest that something outside the code is causing this. To my knowledge this shouldn't be possible.