# \[PLUGIN\] Savior

**URL:** <https://forums.unrealengine.com/t/plugin-savior/110080>\
**Category:** UE Marketplace\
**Tags:** unreal-engine, fab\
**Created:** [April 26, 2018, 2:40pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080 "2018-04-26T14:40:53Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [January 18, 2019, 1:07am UTC](https://forums.unrealengine.com/t/plugin-savior/110080/170 "2019-01-18T01:07:43Z")

</div>

> [@NuHabitStudios](#):
>
> It is working and so is the loading this way thank you. As I said in the edit above, I had to shut the editor down again and it is working now. Also, is there any

Great to know!  
Depending on some way you use the Async node, it will “lock” the save delegates until you restart the editor.  
I wasn’t expecting users to use the Async nodes the way some are using, this is why I recommend everyone to use the normal save/load nodes instead.

> [@NuHabitStudios](#):
>
> is there any way to not make the meta file?

I don’t like it as much as you do, but some studio practically demanded it to be there.  
Some machines are considerably slow and some games have very large levels; they can’t afford to load an entire save file just to show a slot name on the game UI before loading the level for real… So I basically cannot remove the meta files from the system.

---

<div class="post-metadata">

**Author:** ![GoalDrivenGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GoalDrivenGames](https://forums.unrealengine.com/u/GoalDrivenGames)\
**Post date:** [January 18, 2019, 1:23am UTC](https://forums.unrealengine.com/t/plugin-savior/110080/171 "2019-01-18T01:23:24Z")

</div>

Now that I have this understanding of saving/loading, I will make that practice. On the meta data, I get you. For this certain game, meta data is just extra space filled in the folder. In a game I am expected to be starting soon might need just that. Just thought toggling it was a better option. Thanks again

---

<div class="post-metadata">

**Author:** ![BulleTime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BulleTime](https://forums.unrealengine.com/u/BulleTime)\
**Post date:** [January 26, 2019, 10:43am UTC](https://forums.unrealengine.com/t/plugin-savior/110080/172 "2019-01-26T10:43:50Z")

</div>

> [@BrUnO\_XaVIeR](#):
>
> Actually if I remember correctly that checkbox to enable “compression” is removed because it’s now always On by default.
> 
> “Minimal / Complex” option on Slots still apply tho.  
> I was testing on a 40Mb+ save file and it reduced to 9,6Mb when switching to “Minimal” data set.

Ive been trying to test Minimal / Complex with a float array, however i dont see any difference in file size…

I have seen a 2000 x 2000 float save be 14 mb’s, however i cant manage to get it back to that size, it sticks on 80 mb now… any idea why?

[edit] i tried to save my heightmap using my own code using ZLib compression, and a 2000x2000 float array is indeed 14 MB. any idea what might happend in my project, is this the minimal/complex thing that might be broken???  
Thanks!

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [January 26, 2019, 3:33pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/173 "2019-01-26T15:33:42Z")

</div>

Those settings are set per slot unfortunately.  
If you are saving to different slot targets you need to configure the data set for each one of them.

---

<div class="post-metadata">

**Author:** ![BulleTime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BulleTime](https://forums.unrealengine.com/u/BulleTime)\
**Post date:** [January 27, 2019, 6:33pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/174 "2019-01-27T18:33:17Z")

</div>

ive actually set the slot on minimal, but its still producing the 80 mb’s instead of 14…

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [January 29, 2019, 3:20am UTC](https://forums.unrealengine.com/t/plugin-savior/110080/176 "2019-01-29T03:20:55Z")

</div>

> [@BulleTime](#):
>
> ive actually set the slot on minimal, but its still producing the 80 mb’s instead of 14..

I ran a batch of tests and I’m unable to reproduce your results.  
I’ve also checked the code a few times and I’m unable to find anything irregular, related to that issue, so far.

The compression method on Slots is a public enum.  
Maybe you can try to set: _MySavior2Slot-\>Compression = ERecordType::Minimal_

Maybe doing that once you have an instance of an slot object could help.  
At the moment I suspect you might have a “Compression” variable resetting to default Complex enum value once you create a new instance of the slot.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [January 29, 2019, 5:21am UTC](https://forums.unrealengine.com/t/plugin-savior/110080/177 "2019-01-29T05:21:27Z")

</div>

[USER=“434”]BrUnO XaVIeR[/USER]

Do you happen to know if this anyone used this plugin successfully, as-is, on PS4/XboxOne/Switch ?

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [January 29, 2019, 1:34pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/178 "2019-01-29T13:34:28Z")

</div>

A few developers have it working on PS4 builds, but with modifications.  
Someone told me they simply use the set of static functions from the “StaticSlot” object in C++…

But they didn’t tell me what modifications they’ve done. They can’t share it (because Sony NDA).

---

<div class="post-metadata">

**Author:** ![BulleTime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BulleTime](https://forums.unrealengine.com/u/BulleTime)\
**Post date:** [February 1, 2019, 1:29pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/179 "2019-02-01T13:29:36Z")

</div>

> [@BrUnO\_XaVIeR](#):
>
> I ran a batch of tests and I’m unable to reproduce your results.  
> I’ve also checked the code a few times and I’m unable to find anything irregular, related to that issue, so far.
> 
> The compression method on Slots is a public enum.  
> Maybe you can try to set: _MySavior2Slot-\>Compression = ERecordType::Minimal_
> 
> Maybe doing that once you have an instance of an slot object could help.  
> At the moment I suspect you might have a “Compression” variable resetting to default Complex enum value once you create a new instance of the slot.

Im not sure what goes wrong.. it just keep saving big files.

Would u be able to test a 2000 x 2000 float array and confirm its size?

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [February 1, 2019, 1:38pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/180 "2019-02-01T13:38:57Z")

</div>

> [@BulleTime](#):
>
> Im not sure what goes wrong.. it just keep saving big files.
> 
> Would u be able to test a 2000 x 2000 float array and confirm its size?

How are you storing that array?  
The plugin saves compressed json data. Structs in json format will always consume more space than a binary array.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_71329954](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71329954](https://forums.unrealengine.com/u/anonymous_user_71329954)\
**Post date:** [February 14, 2019, 1:45pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/181 "2019-02-14T13:45:56Z")

</div>

Thanks for the anwser. I was indeed saving as binary array.

Anyhow, ive got another question. I am trying to save a actor that holds a FDateTime Struct. However the DateTime seems not to be saved?

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [February 14, 2019, 2:46pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/182 "2019-02-14T14:46:07Z")

</div>

I don’t remember for sure, but I think the parser don’t recognize that struck. In engine source they are not declared as USTRUCT.

Converting the DateTime to unix integer then saving that int and rebuilding it from the saved int should work.  
In the SQLite plugin that’s what I do to save it, a string of int64 is stored then that string is converted to int64 on load and a FDateTime is created from that int64 as return type.

---

<div class="post-metadata">

**Author:** ![DrThunderbutt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrThunderbutt](https://forums.unrealengine.com/u/DrThunderbutt)\
**Post date:** [February 19, 2019, 3:26am UTC](https://forums.unrealengine.com/t/plugin-savior/110080/183 "2019-02-19T03:26:31Z")

</div>

I’ve been trying to get the functionality from the demo project working in my own. I was very careful to bring everything over piece by piece rather than migrating everything en masse and pulling out/editing everything I didn’t want after the fact (I also wanted to get a closer look so I could understand how everything worked).

Unfortunately it is failing when I try to cast the existing HUD to the HUD that was subclassed from Savior. I checked my Project Settings and both you and I are using the generic HUD as our HUD class. I checked a bunch of other settings and everything seems to match up. I’ve obviously missed something though or it would work. 🙂

Here’s where the cast fails. Any ideas what I might have overlooked?

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/a/6a6263ebd04d6f84db9b152e9b956122118cecc6.png)

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [February 19, 2019, 6:42pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/184 "2019-02-19T18:42:54Z")

</div>

I submitted to Marketplace v2.7 which the Slot spawns an instance attached to the game instance instead of attached to the caller context.  
This should help fix cases where, due to game architecture, slot being used goes out of scope and its delegate events wouldn’t work anymore since its owner context would previously be marked pending kill…

@DrThunder I won’t comment because your issue is not plugin related, casting issues are your blueprints and your classes you miss something in them.

---

<div class="post-metadata">

**Author:** ![Andy\_rst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Andy\_rst](https://forums.unrealengine.com/u/Andy_rst)\
**Post date:** [February 19, 2019, 7:48pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/185 "2019-02-19T19:48:45Z")

</div>

Hi Bruno

Does your system is work with level streaming as well? For example i have persistent level and bunch of levels as sub levels. Each sub level it’s level for gameplay checkpoint. Player passing a sub level and it’s marks that sub level is completed.

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [February 19, 2019, 10:11pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/186 "2019-02-19T22:11:06Z")

</div>

> [@Andy\_rst](#):
>
> Does your system is work with level streaming as well?

Yes, but it will not stream automatically levels that are unloaded when loading data from slots.

---

<div class="post-metadata">

**Author:** ![zlyles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zlyles](https://forums.unrealengine.com/u/zlyles)\
**Post date:** [February 21, 2019, 5:08am UTC](https://forums.unrealengine.com/t/plugin-savior/110080/187 "2019-02-21T05:08:56Z")

</div>

Hey Bruno, I think I must be missing something very obvious. I have a light switch in my level that you can toggle on and off.

 ![toggle-light.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/e/7ed9dcd7565375e62814d3a997a6a5258b96bf4e.png)

I have set the “Light Switch” boolean to have the SaveGame flag checked

 ![variable-settings.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/a/fa8adac19f0581fec046e96d9dfd67bfe3fc0a29.png)

Here I have set up the save and load world in my Character blueprint.

 ![save-game.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/2/b275bd0aac0d71a9adc40b5fc46e7a0ae33db191.png)

And finally I have created the necessary slot to save into.

![slot.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/a/0a235d1d6b04b39fb72a94952c401a7de94e415f.png)

My problem is that, while I’m able to successfully save and load the world to the slot, the variables that I have flagged as SaveGame don’t seem to be actually saving. For instance, if I turn the light off, save the game and then exit, when I reopen the game and load the world the variable still has it’s default setting and the light is still on.

I feel like I’m missing a crucial step, or I misunderstand something. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [February 21, 2019, 6:05pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/188 "2019-02-21T18:05:45Z")

</div>

Turn on Debug logs on your Slot and see if your light Actor and the “Light Switch” variable are recorded when saving.

They should appear somewhere in the save logs when Save World is called. If they don’t then it’s a start to know what’s wrong…

* * *

Btw event “Begin Play” is not executed when the Slot loads game data. The plugin has a custom Blueprint Interface for you to use when load/save finished, instead of relying on BeginPlay.

---

<div class="post-metadata">

**Author:** ![zlyles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zlyles](https://forums.unrealengine.com/u/zlyles)\
**Post date:** [February 21, 2019, 7:13pm UTC](https://forums.unrealengine.com/t/plugin-savior/110080/189 "2019-02-21T19:13:49Z")

</div>

Thanks for the quick reply. I’ll check that debug log when I get home from work today.

> [@BrUnO\_XaVIeR](#):
>
> Btw event “Begin Play” is not executed when the Slot loads game data. The plugin has a custom Blueprint Interface for you to use when load/save finished, instead of relying on BeginPlay.

Ah I see. Do I need to access this custom Blueprint Interface in some specific way?

---

<div class="post-metadata">

**Author:** ![zlyles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zlyles](https://forums.unrealengine.com/u/zlyles)\
**Post date:** [February 22, 2019, 1:45am UTC](https://forums.unrealengine.com/t/plugin-savior/110080/190 "2019-02-22T01:45:24Z")

</div>

Okay so I checked the output log when I save the game. It looks like the actor is saving but not the variable. This is all I get currently.

![output-log.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/b/5b6c4412cd9b47353081eb5f2ece642a8ecb462d.png)

Also you mentioned a custom Blueprint Interface that I should be using. How is this accessed?

[Previous page](https://forums.unrealengine.com/t/plugin-savior/110080.md?page=8)

[Next page](https://forums.unrealengine.com/t/plugin-savior/110080.md?page=10)
