sbnewsom wrote:Im currently integrating AD to my UE4 project. The only things I can think of that save and load are GVs. The rest is done in project through stored variables (Flowplayer info, inventory, etc).
Currently happy with the GV debugger, but I'm currently figuring out how to handle GVs with my save system. How do we save and load GVs? There isn't a GV database variable, so I can't set it to "SaveGame" and store into my file. Do I have to create a custom array imported from the database and use that to manage variables? If that's the case, then the GV Debugger is useless.
Thanks! Any help is greatly appreciated.
Hello sbnewsom,
you can use get "Get Articy GV" function to access all variable sets and variables. By casting and checking for names you can then store the current variable values in maps, mapping from variable name to a primitive of the relevant type (String, bool, int).
Upon loading, you can then access the the saved map data and load their values back into the game.
The GV debugger's purpose is to inspect (and change) variable values, as that helps with testing and as the name implies, debugging issues. For example, if you write some save/load code for your variables, you can see if the variable values were correctly restored by using the GV debugger.