# Question about weird saving/loading problem

**URL:** <https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 19, 2023, 4:33am UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584 "2023-08-19T04:33:35Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 4:33am UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/1 "2023-08-19T04:33:35Z")

</div>

I have a save system in place currently. And I’ve got a Boolean that checks if I’m saving from a checkpoint (saves player transform, etc.) or if I’m not saving from a checkpoint. In my level transition I check “Check point used” to false, so that it don’t save my transform and I’m able to load at the player start for the level instead. the problem I’m having, is it only seems to carry my inventory to the next level. if I set the “check point used” bool to true. I have no idea why I can’t save my inventory if the bool is set to false. The bool is not anywhere inside the inventory, or the saving. Other than two functions. Ill attach pictures. Find references and using the binoculars icon confirms there is no stray “Checkpoint used” Boolean that could be causing this. I have no idea why it only saves if i use a checkpoint, BUT if the checkpoint is not used, my XP and health and everything will all still travel over, just not my inventory?? I can supply any more information, screenshots as I can. Like I said the checkpoint saving works as intended, it saves everything as it should. It’s only when I set the “checkpoint used” bool to false, that the inventory stops saving. Again, even though the bool is nowhere connected to it?? I’m so confused xD

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/a/eeaab64f999b24fcca734594c3a903a7f7457301.png)  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/7/8875d5f8d4fa5eeff757569d49e20a1e5568af3c.png)

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 1:46pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/2 "2023-08-19T13:46:19Z")

</div>

😭

---

<div class="post-metadata">

**Author:** ![Giraffelitis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/giraffelitis/32/741987_2.png) [@Giraffelitis](https://forums.unrealengine.com/u/Giraffelitis)\
**Post date:** [August 19, 2023, 5:56pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/3 "2023-08-19T17:56:31Z")

</div>

You are leaving out some missing information here. Can you show where the Checkpoint bool is used and how it changes between what happens in true / false.

You show in your post how it is saved and how the player spawns but you aren’t using your Checkpoint bool in any of your code logically you are only setting it.

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 6:28pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/4 "2023-08-19T18:28:58Z")

</div>

Hey yeah sorry! So for example (I hope this is what your asking?) I have a pause menu, I can save/load my game. Which uses the checkpoint bool.

 ![pause](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/9/569b13c3d340d6ee11a9a2f15bf0813982bcf187.png)

If i set this checkpoint bool to false, The items will save. But they just won’t load.

When i hit load, This prints to false…  
Is something wrong this this code circled??

 ![ld](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/2/aa2f40de23d93377fd052e08243a289c1c55ee11.png)

Appreciate you even taking the time to respond.

I don’t use the “Checkpoint used” bool anywhere, besides when i save/load. And i check if its true/false here, to save player location/transform

 ![cp1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/7/e27115d4a1adc219e927fe7283450d9274faae5b.png)

So thats why I need to be able to transition levels without setting the checkpoint bool to true, That way i can also start on the player start, and wont try to spawn on the next map with the last maps saved player location…

I just cant understand why the bool being set to false, prevents the inventory save data from loading. I literally dont use that bool anywhere other than these locations, even find refrences confirms its only used to check if my player location should be saved

---

<div class="post-metadata">

**Author:** ![Giraffelitis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/giraffelitis/32/741987_2.png) [@Giraffelitis](https://forums.unrealengine.com/u/Giraffelitis)\
**Post date:** [August 19, 2023, 6:55pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/5 "2023-08-19T18:55:39Z")

</div>

Add some breakpoints to it to see what its telling you when it running like shown here:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/2/1e226ded1ef1edff43b7b87bf3fa051f7fe5d200.png)

The result should show you what is being compared it could be something as simple as a typo or it could be something isn’t getting loaded the best way to find out is to use breakpoints and analyze it while it is running

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 7:02pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/6 "2023-08-19T19:02:02Z")

</div>

![Untitled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/5/105832946fabcb85c15d7f84241f30053a017c21.png)

Idk how to use that though or what to do with the breakpoint? When i try to play with it there it crashes

It wont let me add a breakpoint on to that node you highlighted though, there is no option

---

<div class="post-metadata">

**Author:** ![Giraffelitis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/giraffelitis/32/741987_2.png) [@Giraffelitis](https://forums.unrealengine.com/u/Giraffelitis)\
**Post date:** [August 19, 2023, 7:11pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/7 "2023-08-19T19:11:55Z")

</div>

Thats not it crashing that is it breaking the flow so you can review it. When you see that use your mouse and hover over the nodes and its should give you the results of that the node is supposed to do. So you should be able to hover over the comparison node connected to that branch and see what is actually being compared.

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 7:13pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/8 "2023-08-19T19:13:52Z")

</div>

![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/0/9e0c3fe8cf3ff78fb2c35b98c1219fdce29d1caa.png)  
Yeah so when i hit play, with the breakpoint there my engine closes and that comes up 😕

---

<div class="post-metadata">

**Author:** ![Giraffelitis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/giraffelitis/32/741987_2.png) [@Giraffelitis](https://forums.unrealengine.com/u/Giraffelitis)\
**Post date:** [August 19, 2023, 7:15pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/9 "2023-08-19T19:15:22Z")

</div>

how did you get it to show that big red arrow on the previous screenshot. If you can get it to that point you should be able to over when the breakpoint is active

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 7:19pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/10 "2023-08-19T19:19:56Z")

</div>

So i add the breakpoint to that branch, and I hit play, I then pick up an item, save my inventory through my pause menu, and then hit load game (After I save) as soon as i hit load game, It pops up and shows me that red arrow over the breakpoint, and then my engine crashes.

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 7:58pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/11 "2023-08-19T19:58:37Z")

</div>

I have to be missing something that has to do with this part, right? Becuase if i set the checkpoint bool to true, and save my player location. It will load my inventory upon saving/loading. But if i dont save my player location, it will not load the inventory…

So did i do something wrong here i wonder? That its only allowing be to load the inventory if player location is saved?

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/3/703c44af730c1fa4b950a28088dce823df34afb0.png)  
 ![Untitled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/8/948814ea71d62b2b9ca294fb7dd117ab461c236b.png) When i completely unplug that branch it loads the inventory even without the checkpoint… hmmm

---

<div class="post-metadata">

**Author:** ![Giraffelitis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/giraffelitis/32/741987_2.png) [@Giraffelitis](https://forums.unrealengine.com/u/Giraffelitis)\
**Post date:** [August 19, 2023, 9:05pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/12 "2023-08-19T21:05:38Z")

</div>

I still am not seeing where you are using the Checkpoint bool to determine what to do next.  
everything you have shown seems to be in order.

where is your branch that is associated with the Checkpoint bool?

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 9:08pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/13 "2023-08-19T21:08:40Z")

</div>

That’s why im confused, because I don’t use the checkpoint bool to determine anything related to saving/loading. Besides the player transform. so it dont make sense that turning the bool on/off stops the saving. I’m pretty sure it has to do with the way i set up the tag check in the picture above. Because if i change it to just “Component owner” and has tag, and change it to player. it works 🙂

---

<div class="post-metadata">

**Author:** ![Giraffelitis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/giraffelitis/32/741987_2.png) [@Giraffelitis](https://forums.unrealengine.com/u/Giraffelitis)\
**Post date:** [August 19, 2023, 9:29pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/14 "2023-08-19T21:29:11Z")

</div>

Where is SetTransformandCamera used?  
and what comes at the end of that function?

From what I can tell if it is false then that function ends. and if something after that is getting called that does the inventory portion or affects the inventory portion then it would never get ran and therefore would be getting saved to the save file

can you post your BP in here and share the link to it?

> [@Tools: sharing Blueprint in webpage -\> blueprintue.com](https://forums.unrealengine.com/t/tools-sharing-blueprint-in-webpage-blueprintue-com/19835):
>
> TL;DR You can share blueprint on website: [https://blueprintue.com](https://blueprintue.com). When you edit a blueprint in Unreal Engine, select nodes and copy (ctrl+c or cmd+c). Go on [https://blueprintue.com](https://blueprintue.com) paste your clipboard in the textarea and click on the “Create Pastebin” button. You will be redirected to a new link you can share with everyone. You can move in your blueprint like in Unreal Engine editor. Presentation I want you to present my project: “pastebin blueprint”. It’s a service about sharing blue…

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 9:34pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/15 "2023-08-19T21:34:39Z")

</div>

![6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/3/9f3950a609efc41ce657a82a1ca97a08f288579e.png)  
 ![5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/3/63338da9e91eeb3c514a8d5a7227b1827bf745d8.png)

[Character BP posted by anonymous | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/ml4wtu_0/)

---

<div class="post-metadata">

**Author:** ![Giraffelitis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/giraffelitis/32/741987_2.png) [@Giraffelitis](https://forums.unrealengine.com/u/Giraffelitis)\
**Post date:** [August 19, 2023, 10:02pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/16 "2023-08-19T22:02:38Z")

</div>

yeah everything looks fine in those you might need to dig through your Tag stuff a little more and see if you can find what might be causing the issue there because everything I can see from this side looks fine

---

<div class="post-metadata">

**Author:** ![Slow\_lane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slow\_lane](https://forums.unrealengine.com/u/Slow_lane)\
**Post date:** [August 19, 2023, 10:08pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/17 "2023-08-19T22:08:33Z")

</div>

Alright yeah I’ll do that, it has to be something with my tags T\_T Thanks bud i really appreciate you taking the time to reply to me and help me out

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 18, 2023, 10:09pm UTC](https://forums.unrealengine.com/t/question-about-weird-saving-loading-problem/1265584/18 "2023-09-18T22:09:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
