# Patch game and old save

**URL:** <https://forums.unrealengine.com/t/patch-game-and-old-save/647758>\
**Category:** Platform & Builds\
**Tags:** Packaging-Error, unreal-engine, UE5-0, question\
**Created:** [September 13, 2022, 12:24pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758 "2022-09-13T12:24:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![D.Lakes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Lakes](https://forums.unrealengine.com/u/D.Lakes)\
**Post date:** [September 13, 2022, 12:24pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/1 "2022-09-13T12:24:25Z")

</div>

If I update my game and then load an old save, some changes made are not there. how do i update the save as well? Obviously what does not appear are bp\_item that are saved. if I start a new game there are all the updates. can you help me?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 13, 2022, 12:35pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/2 "2022-09-13T12:35:55Z")

</div>

I wondered this as well, there’s hardly any information about it.

If you have MySaveGame with, say, 20 variables. Later, you decide you need more variables and add them to the save game. You can still open the old save game with the new code, it’s just that the new variables won’t get set.

A serialization process occurs during the read, whereby the variable types and names are matched.

What you _can’t_ do, is make a totally new class, MyNewSaveGame, and expect to be able to load the old save game into that. Also, if you change the type or name of a variable, it won’t work ( that variable won’t load ).

When I did it, I was a bit paranoid, and make a new save game in a new slot. That definitely works 😉

---

<div class="post-metadata">

**Author:** ![D.Lakes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Lakes](https://forums.unrealengine.com/u/D.Lakes)\
**Post date:** [September 13, 2022, 1:32pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/3 "2022-09-13T13:32:22Z")

</div>

Tnx, but how do I patch the game without losing the progress of the old save file?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 13, 2022, 1:33pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/4 "2022-09-13T13:33:20Z")

</div>

When you package a game, there is no save game in the package. The save game gets created on the local machine at runtime.

So when you package a patch, it can’t touch the save game.

( Unless you use a packaging mode other than ‘shipping’ ).

---

<div class="post-metadata">

**Author:** ![D.Lakes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Lakes](https://forums.unrealengine.com/u/D.Lakes)\
**Post date:** [September 13, 2022, 4:05pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/5 "2022-09-13T16:05:32Z")

</div>

I give you an example because I can’t explain to me.  
My game has 6 golden chest that are also saved in the save file.  
I play my game, build a house and collect all the chest.  
Save the game.  
If I load my game I have the house and there are no more chest in the world.  
I update/patch the game by adding 3 other chests around the world (for a total of 9).  
I run the updated game, but when I load the old save there is the house but there are no 3 new chests.  
If the game starts from the beginning there are 9 chests.  
How do I solve? Can I get the game from the beginning to each patch?  
Thank you! ^^

---

<div class="post-metadata">

**Author:** ![DELGOODIE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/delgoodie/32/1103781_2.png) [@DELGOODIE](https://forums.unrealengine.com/u/DELGOODIE)\
**Post date:** [September 13, 2022, 4:40pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/6 "2022-09-13T16:40:32Z")

</div>

It sounds like there isn’t an easy solution to this problem since you could technically change the format of your save file any way you’d like in the patch. This doesn’t sound like the most optimal solution but you could make a new Save Game class for each patch and then when you load the save object, check if it is an older Save Game object, create a new SaveGame object, and just move over the old properties and populate the new ones.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 13, 2022, 5:58pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/7 "2022-09-13T17:58:15Z")

</div>

Ok, let’s talk about chests. Imagine you collect or open them.

Game version 1: 6 chests. I collect or open 3, 3 left. The save game knows I have opened 3.

Now I want to patch the game, and give the house 10 chests. That’s in the game update, it’s not in the save game. The save game still knows I opened 3.

See what I mean? You put the new chests in your level, they are not in the save game.

All that’s in the save game is, ‘did the player open chest X’?.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 13, 2022, 6:03pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/9 "2022-09-13T18:03:40Z")

</div>

I see what you’re saying. Your keeping part of the game layout, in the save file?

Why not just actually put 9 chests in the level / game?

If I’m getting close, describe your system in more detail, then I can help more…

---

<div class="post-metadata">

**Author:** ![D.Lakes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Lakes](https://forums.unrealengine.com/u/D.Lakes)\
**Post date:** [September 13, 2022, 7:00pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/10 "2022-09-13T19:00:03Z")

</div>

If I added 3 chests in the world with the patch, I would like to see them also by loading the old save. But should I also update the old save file? How?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 13, 2022, 7:10pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/11 "2022-09-13T19:10:27Z")

</div>

Ok, you’re not really giving me any info, so I’ll have to make something up.

Let’s say you have an array of bools in the save game, one for each chest ( has it been opened ). 6 chests, 6 bools.

But then you add 4 more chests in a patch. And you add 4 more bools to the array in the save game. But the old save game still only has 6, right?

You need to write the code that talks to the save game so it always makes space for the right number of booleans. If you had an array, you would do it like this

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/2/102c2f601f891a4a81f895143cfa2b50c724f8f5.png)

It can take the array of only 6, and add the new chest in there, and then write the SG back to disk.

Does it make sense?

[You have to write the code that talks to the modified part of the save game, so it takes into account it _might_ be looking at an old save game]

---

<div class="post-metadata">

**Author:** ![D.Lakes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Lakes](https://forums.unrealengine.com/u/D.Lakes)\
**Post date:** [September 14, 2022, 9:25am UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/12 "2022-09-14T09:25:11Z")

</div>

I am using a package from the marketplate already done with its own save system (Easy Survival RPG) I have not created the save system, I just know that any Blueprints I add to the map (chests, pigs, etc …) do not appear if I load an old save and I don’t know how to do it , I’m inexperienced with save systems, but they all update the games with patches and DLCs and then continue the game with the old saves.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 14, 2022, 9:45am UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/13 "2022-09-14T09:45:16Z")

</div>

Ah, then it might be a problem.

Can you give me a link to the asset ( on the market )?

---

<div class="post-metadata">

**Author:** ![D.Lakes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Lakes](https://forums.unrealengine.com/u/D.Lakes)\
**Post date:** [September 14, 2022, 10:06am UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/14 "2022-09-14T10:06:40Z")

</div>

> **[Easy Survival RPG v4 in Blueprints - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/easy-survival-rpg)**
>
> Easy Survival RPG. This is an advanced system designed from the ground up for multiplayer with a ton of different features for Unreal Engine.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 14, 2022, 10:18am UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/15 "2022-09-14T10:18:22Z")

</div>

You need to ask them this on Discord. This is a whole system, and you need to stay within the confines of it.

---

<div class="post-metadata">

**Author:** ![D.Lakes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Lakes](https://forums.unrealengine.com/u/D.Lakes)\
**Post date:** [September 14, 2022, 10:33am UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/16 "2022-09-14T10:33:12Z")

</div>

I wrote here because on their discord channel no one answers this question, already tried 2 times. ☹

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 14, 2022, 11:01am UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/17 "2022-09-14T11:01:30Z")

</div>

Tricky one, I’m afraid. You need to see how it’s saving, and figure out if that can handle dealing with a new save game… 😬

---

<div class="post-metadata">

**Author:** ![D.Lakes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Lakes](https://forums.unrealengine.com/u/D.Lakes)\
**Post date:** [September 14, 2022, 11:33am UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/18 "2022-09-14T11:33:45Z")

</div>

Thanks anyway, you were very kind

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 14, 2022, 11:42am UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/19 "2022-09-14T11:42:52Z")

</div>

Sorry I wasn’t much help … 🙂

---

<div class="post-metadata">

**Author:** ![DELGOODIE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/delgoodie/32/1103781_2.png) [@DELGOODIE](https://forums.unrealengine.com/u/DELGOODIE)\
**Post date:** [September 14, 2022, 3:18pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/20 "2022-09-14T15:18:15Z")

</div>

So what I’m saying is you have a blueprint class you created for your saved object, yes?

We’ll call that `BP_SaveGame_01`.  
This stores that the player opened 3/6 chests.

Then you patch the game and add 3 more chests.  
You create a new blueprint, `BP_SaveGame_02`.  
This stores 0/9 chests.

Then when you boot up the game, you check if it is valid to cast to the BP\_SaveGame\_02, if not, you cast to BP\_SaveGame\_01.

Now you transfer the properties from the old save into a newly created BP\_SaveGame\_02 so BP\_SaveGame\_02 has 3/9 chests.  
Then when you save the new BP\_SaveGame\_02!

You’re creating a new SaveGame Blueprint for every patch!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 14, 2022, 3:24pm UTC](https://forums.unrealengine.com/t/patch-game-and-old-save/647758/21 "2022-09-14T15:24:23Z")

</div>

It appears the OP is using a marketplace product. Tweaking the save game is not an option… 😉

[Next page](https://forums.unrealengine.com/t/patch-game-and-old-save/647758.md?page=2)
