Page 1 of 1

SaveData/GameData documentation?

Posted: Sat Apr 25, 2020 7:33 am
by Gaming-Dojo
Hello guys,

as the PGEWiki states that the DataClass will be deprecated in favor of SaveDate and GameData upon B4`s release which has passed now but I'm unable to find documentation on SaveData and GameData myself, I wanted to ask if you could provide me a link to it if there's any or tell me if there's not.

Best regards
yoshiegg

Re: SaveData/GameData documentation?

Posted: Sat Apr 25, 2020 7:50 am
by Hoeloe
There's not really much to say. I believe it's convered in the handbook though, which you should be using instead of the wiki, since the wiki is incredibly outdated.

In principle, SaveData and GameData are just tables like any other, and you can just store values in them, for example:

SaveData.myVariable = 1

Anything stored in GameData will stay there between loading screens, but it will be cleared when you exit the game. Anything stored in SaveData will also stay there between loading screens, but will also be saved when the game saves, and loaded when you load your save file.

Re: SaveData/GameData documentation?

Posted: Sat Apr 25, 2020 8:06 am
by Emral
Here's the SaveData section of the handbook for reference:
https://docs.google.com/document/d/1uOd ... vzsktm6utv