# Making an In-Game Level Editor: How to Save Maps?

**URL:** <https://forums.unrealengine.com/t/making-an-in-game-level-editor-how-to-save-maps/329622>\
**Category:** Blueprint\
**Tags:** in-game, level-editor, unreal-engine, Blueprint, question\
**Created:** [August 23, 2015, 4:33am UTC](https://forums.unrealengine.com/t/making-an-in-game-level-editor-how-to-save-maps/329622 "2015-08-23T04:33:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prof\_Smash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Prof\_Smash](https://forums.unrealengine.com/u/Prof_Smash)\
**Post date:** [August 23, 2015, 4:33am UTC](https://forums.unrealengine.com/t/making-an-in-game-level-editor-how-to-save-maps/329622/1 "2015-08-23T04:33:03Z")

</div>

Hello everyone

I’m working on an in-game level editor for a 2D strategy game. So far it has been done entirely in blueprint. Currently, my issue is that I cannot reload a saved map once I close the game. I can save my progress, then if I press the Load button while still in game, it’ll go back to when I saved. But once I close the game, all progress is gone. I cannot go reopen the game and continue creating the level from where I left off.

So, in short, how do I fix this? The screenshots below will help you see better what I’m doing here. Again, I can save my level, and load it back to where I was if I don’t close the game (so basically, it’s more like making a checkpoint or a ridiculous undo button), but once I close the game, I cannot reopen the level editor and continue where I left off.

And now, the screenshots:

The menu for the level editor.

 ![55385-leveleditormenu.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/8/7e8f44060edb41bd2eacc00833d8094a45c0f9f5.jpeg)

When I press the save button…

 ![55387-when+save+button+is+clicked.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/0/33014f736368c3b9b7410d1c2fc1f1d34e966c2a.jpeg)

The SaveTransforms macro in the previous screenshot…

 ![55388-savetransforms+macro+(1).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/8/9c8803c930960dafea174528d0ecf4ea2704edc9.jpeg)

 ![55389-savetransforms+macro(2).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/5/0d56330e16c5faa54cf20539a5e192a054387316.jpeg)

When I press the load button…

 ![55390-when+load+button+is+clicked.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/7/9e7c6fab431b237a44944cef9bc30b3a474617b2.jpeg)

---

<div class="post-metadata">

**Author:** ![Prof\_Smash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Prof\_Smash](https://forums.unrealengine.com/u/Prof_Smash)\
**Post date:** [August 23, 2015, 4:34am UTC](https://forums.unrealengine.com/t/making-an-in-game-level-editor-how-to-save-maps/329622/2 "2015-08-23T04:34:34Z")

</div>

A few more screenshots. These two show the LoadTransforms macro.

 ![55391-loadtransforms+macro(1).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/8/95870811f31576e2a45c39115301493dec3e49d5.jpeg)

 ![55392-loadtransforms+macro(2).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/0/e00ba390fc171ae65b03f491bf61bb0f7d2bf200.jpeg)

---

<div class="post-metadata">

**Author:** ![Prof\_Smash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Prof\_Smash](https://forums.unrealengine.com/u/Prof_Smash)\
**Post date:** [August 25, 2015, 2:48am UTC](https://forums.unrealengine.com/t/making-an-in-game-level-editor-how-to-save-maps/329622/3 "2015-08-25T02:48:49Z")

</div>

Surely somebody out there? I’m completely stumped by this and am out of ideas…

---

<div class="post-metadata">

**Author:** ![Craftless\_Network](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Craftless\_Network](https://forums.unrealengine.com/u/Craftless_Network)\
**Post date:** [April 18, 2016, 9:52pm UTC](https://forums.unrealengine.com/t/making-an-in-game-level-editor-how-to-save-maps/329622/4 "2016-04-18T21:52:02Z")

</div>

If your still looking for help…

IDK if this is the best way to do it, but I tried to do the same thing in unity before I switched to unreal.But you can create a text file for the created level, write the position, rotation, and the transform type (which one it is) to the text file, and then you can have it read the file to an array, and place all of the objects to load it up again

---

<div class="post-metadata">

**Author:** ![TK3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TK3D](https://forums.unrealengine.com/u/TK3D)\
**Post date:** [April 28, 2016, 8:40am UTC](https://forums.unrealengine.com/t/making-an-in-game-level-editor-how-to-save-maps/329622/5 "2016-04-28T08:40:40Z")

</div>

You are creating a new Save Game Object every time you press the save button. Now I don’t know if that does actually overwrite your save every time but I think that your OnClicked function should start with checking if a Save Game Object exists like you are doing in your load function, if not, create one and do the rest of the function. If there is one already, skip the creation part and just do the rest.
