# Could I get some information about saving game data?

**URL:** <https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895>\
**Category:** Editor Scripting\
**Tags:** savegame, game-state, unreal-engine, question\
**Created:** [June 3, 2014, 6:26pm UTC](https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895 "2014-06-03T18:26:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [June 3, 2014, 6:26pm UTC](https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895/1 "2014-06-03T18:26:31Z")

</div>

For a persistent world, should I be manually tracking all actors created or modified during gameplay for saving, or is there a ‘quick save’ kind of feature that can take care of tracking what existed in the map before and what needs to be saved now?

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [June 3, 2014, 10:42pm UTC](https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895/2 "2014-06-03T22:42:59Z")

</div>

#Custom Binary Save System Tutorial

I provide full code for saving any arbitrary game data you want to compressed (ZLIB) binary files 🙂

#Wiki tutorial

[A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Save_System),_Read_%26\_Write\_Any\_Data\_to\_Compressed\_Binary\_Files

Rama

---

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [June 4, 2014, 1:52am UTC](https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895/3 "2014-06-04T01:52:32Z")

</div>

Thank you Rama, that is a very good reference (and I will likely make extensive use of it soon enough), though I’m looking for information on how to properly manage the data that needs to be saved before the actual saving part.

For instance, if the game is saved while an axe is flying through the air, I would expect it to be flying through the air at the same velocity when I re-load the game, or if an actor is spawned in a level streaming volume and that level is unloaded during save, I would expect it be be there once I re-load the save and activate the streaming volume.

I think a good start for me would be to have these questions answered:

1. Should I iterate through all the actors in the world and save them to the archive?

2. Can the save game somehow know which map was loaded and how to re-load it? Or is this a manual process?

3. When loading the save game, will it ‘overwrite’ an actor if it already exists, or will it create a duplicate.

---

<div class="post-metadata">

**Author:** ![AlonzoMachiraju](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlonzoMachiraju](https://forums.unrealengine.com/u/AlonzoMachiraju)\
**Post date:** [January 3, 2015, 11:26pm UTC](https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895/4 "2015-01-03T23:26:29Z")

</div>

So far, I’m getting a compile error in my header file claiming that FArchive is an unrecognized type. This is happening despite having the following in my header’s include statements:

```
#include "Serialization/ArchiveBase.h"

```

Did I get the include statement wrong? FTR, this is in 4.6.1. It’s a bummer because I’m trying to see if I can eventually use Rama’s save system to implement a full-scale quick save system that uses the UPROPERTY macro’s SaveGame keyword to serialize game data.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [January 4, 2015, 2:58am UTC](https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895/5 "2015-01-04T02:58:38Z")

</div>

"So far, I’m getting a compile error in my header file claiming that FArchive is an unrecognized type. "

Go into YourGame.h

and change

```
#include "EngineMinimal.h"

```

to

```
#include "Engine.h"

```

And then you’ll be set 🙂

Rama
