# save and load game

**URL:** <https://forums.unrealengine.com/t/save-and-load-game/1560999>\
**Category:** Programming & Scripting\
**Tags:** load, save-game, unreal-engine\
**Created:** [December 26, 2023, 4:07pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999 "2023-12-26T16:07:01Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![NinjRosa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ninjrosa/32/876410_2.png) [@NinjRosa](https://forums.unrealengine.com/u/NinjRosa)\
**Post date:** [December 26, 2023, 4:07pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/1 "2023-12-26T16:07:01Z")

</div>

Hello, I’m trying to create the nodes to save and load my app, but I don’t know what I’m missing or what I’m doing wrong, I’m new to this… I want what the player writes in the WEAPON\_SHEET, in the weapon1 and weapon2 section , it was saved when you hit the save button, and when you start the game again what you have saved is loaded.

 ![3-vert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/3/8631e1b70d6b06ce8082cafff1ee03bc6edc26a6.jpeg)  
In the “saveGame” blueprint I have created 2 text type variables.  
I attach images so you can see what I have done. Can someone give me the solution? Thank you and greetings.

---

<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:** [December 26, 2023, 6:33pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/2 "2023-12-26T18:33:12Z")

</div>

You’re not actually setting them to anything

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/6/ca6e95b488141953001811e1115aab95dee6fb24.jpeg)

Also, why do it in the game instance? Why not just set the save game directly from the widget? 🙂

---

<div class="post-metadata">

**Author:** ![NinjRosa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ninjrosa/32/876410_2.png) [@NinjRosa](https://forums.unrealengine.com/u/NinjRosa)\
**Post date:** [December 27, 2023, 9:28am UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/3 "2023-12-27T09:28:08Z")

</div>

Hello, thanks for answering. What nodes should I add in the pink points of weapon1 and weapon 2? And I put it in the game instance because I saw it in a tutorial, but I have no idea…haha, could you tell me which blueprint to put it in? Thank you and greetings. 🙂

---

<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:** [December 27, 2023, 9:36am UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/4 "2023-12-27T09:36:24Z")

</div>

Well, you’ve already got the variables in the widget, so you can put the code in the widget?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/b/12b40cccdac13802535c343629d19c866a93a562.png)

Also, worth noting, is you only need to create the save game ONCE 🙂 Because, if you create the save game every time you save, you’ll just overwrite what you had before.

---

<div class="post-metadata">

**Author:** ![NinjRosa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ninjrosa/32/876410_2.png) [@NinjRosa](https://forums.unrealengine.com/u/NinjRosa)\
**Post date:** [December 27, 2023, 10:01am UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/5 "2023-12-27T10:01:23Z")

</div>

how do you get that node? I get this error when I try…

 ![image-vert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/6/386dbd62fdcfa5bcdc0e983a20c6903fe7163fe0.jpeg)

---

<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:** [December 27, 2023, 10:17am UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/6 "2023-12-27T10:17:13Z")

</div>

Drag from the variable and search for ‘get text’

---

<div class="post-metadata">

**Author:** ![NinjRosa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ninjrosa/32/876410_2.png) [@NinjRosa](https://forums.unrealengine.com/u/NinjRosa)\
**Post date:** [December 27, 2023, 1:20pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/7 "2023-12-27T13:20:03Z")

</div>

Okay, I’ve already joined it, although it doesn’t work out like you did, but hey… When I click Save, the save file is created, but I have compiled the application and tested it on my mobile, and I fill in the sections of weapon1 and weapon2, I hit save, I close the application, and when I open it again, I hit load but nothing loads… 🥲

 ![1-vert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/8/3f8b056c958cab96ecb5553d25cef19445345d31.jpeg)

---

<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:** [December 27, 2023, 1:27pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/8 "2023-12-27T13:27:03Z")

</div>

What kind of box is Arma1?

For both ‘editable text’ and ‘multiline editable text’ I get

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/5/e254afdeaef32ee3925177507f0d239e75a3d14f.png)

Does the saving / loading work in the editor?

What version of the engine are you using?

PS: Do you understand that even if the text **is** in the save game, you still have to load it yourself, next time you run? In the widget, you have to load the save game, read the text lines, and set the boxes with that.

---

<div class="post-metadata">

**Author:** ![NinjRosa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ninjrosa/32/876410_2.png) [@NinjRosa](https://forums.unrealengine.com/u/NinjRosa)\
**Post date:** [December 27, 2023, 1:44pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/9 "2023-12-27T13:44:59Z")

</div>

arma1 is an “editable text” and arma 2 a “text box” (but also editable by the user).

And I don’t know how to do the second part that you tell me, about loading the text… 😅 I’m new to unreal and I don’t understand programming, I do things according to how I see tutorials…hahaha

---

<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:** [December 27, 2023, 1:49pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/10 "2023-12-27T13:49:24Z")

</div>

What version of the engine are you using?

---

<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:** [December 27, 2023, 1:53pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/11 "2023-12-27T13:53:53Z")

</div>

When you load the save game, you need to

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/5/b65cb1da32a34c9a9b9597b7c0363ac68d8cf8c2.png)

It will not happen magically 🙂

---

<div class="post-metadata">

**Author:** ![NinjRosa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ninjrosa/32/876410_2.png) [@NinjRosa](https://forums.unrealengine.com/u/NinjRosa)\
**Post date:** [December 27, 2023, 1:54pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/12 "2023-12-27T13:54:57Z")

</div>

5.1.1

---

<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:** [December 27, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/13 "2023-12-27T13:55:14Z")

</div>

OK, that’s why it looks different…

---

<div class="post-metadata">

**Author:** ![NinjRosa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ninjrosa/32/876410_2.png) [@NinjRosa](https://forums.unrealengine.com/u/NinjRosa)\
**Post date:** [December 27, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/save-and-load-game/1560999/14 "2023-12-27T13:55:38Z")

</div>

Ok! Thank you very much 🙂  
I will learn little by little
