# UE4 4.7 Cast to SaveSystem fail

**URL:** <https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077>\
**Category:** Blueprint\
**Tags:** cast-failed, UE4-7, unreal-engine, Blueprint, question\
**Created:** [October 21, 2016, 9:09pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077 "2016-10-21T21:09:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [October 21, 2016, 9:09pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/1 "2016-10-21T21:09:18Z")

</div>

I’m following a book called “Blueprints Visual Scripting for Unreal Engine”.

In Chapter 7 we try to “Load a save point or create a new one”.

From the “EventBeginPlay” node I connected to a “DoesSaveGameExist” node, which in turn connects to a “Branch” node. From the True output pin I connected a “LoadGameFromSlot” node and into a “CastToSaveSystem” node. I ran two “PrintString” nodes from both the output execution pin and the “Cast Failed” pin for testing and the result is the cast fails every time.

I have followed the book precisely. I have been over every sentence to make sure that I didn’t make a typo or the like. Everything is as it is supposed to be according to the book but the cast still fails.

Everything else was working and continues to work until I hook up the nodes described above. The nodes were placed in the “Draw HUD to screen.” set of nodes I built in the book in chapter 3. I created a new Blueprint Class of type “Save System” and named it “SaveSystem” for use in the “FirstPersonCharacter” blueprint…

Basically I’m stuck and almost at the end of the book. I could really use a little help here. If you need screenshots or more info. just ask.

Thanks in advance.  
copyright08081972

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [October 21, 2016, 11:11pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/2 "2016-10-21T23:11:27Z")

</div>

BTW, I would have liked to use a newer version of UE but they aren’t compatible with the book. I tried 4.13 and 4.10.

---

<div class="post-metadata">

**Author:** ![Justin.Dooley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justin.dooley/32/1194553_2.png) [@Justin.Dooley](https://forums.unrealengine.com/u/Justin.Dooley)\
**Post date:** [October 21, 2016, 11:42pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/3 "2016-10-21T23:42:19Z")

</div>

add an is valid check between the load from slot and cast. See if the load is what’s failing. See if the save game is failing to load even though it exists. I’ve had that happen and I just deleted the old data and had it recreate it on next launch.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [October 22, 2016, 2:11am UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/4 "2016-10-22T02:11:45Z")

</div>

Very new to this. I’m not sure what to do with the IsValid node. I compiled and played after adding it and nothing changed. The cast is still failing.

I deleted the save file and it created a new one just fine but on the second round (using a multiplier with the level to determine the number of enemies spawned) it goes back to cast failing.

I do believe it is failing to load the save but have no clue as to why.

Permissions maybe? I last coded when Slackware 12.2 was new and that was just some C and bash scripting to automate some things. I’m really getting into UE4 though and would really like to figure this out. Any help appreciated.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [October 22, 2016, 3:11am UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/5 "2016-10-22T03:11:47Z")

</div>

Here are the screen shots. SaveSystem (without a space) is a blueprint I made as type Save System and it holds a single variable (int) called CurrentRound.

I hope this helps you all help me figure this out. I’m really excited about being almost done with my first game. As soon as the level system/save system works it will be finished. It is nothing marketable. I just followed a book. As soon as I am done though I want to start on a game of my own design.

 ![111991-castfail_00.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/2/21230af33c7755346a35b2ecb283207ab8dc2a52.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [October 23, 2016, 2:41am UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/6 "2016-10-23T02:41:43Z")

</div>

Keeping this alive. No clue how long it has before it automatically marks it resolved. Still stuck so… Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![Justin.Dooley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justin.dooley/32/1194553_2.png) [@Justin.Dooley](https://forums.unrealengine.com/u/Justin.Dooley)\
**Post date:** [October 23, 2016, 4:35pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/7 "2016-10-23T16:35:26Z")

</div>

You need to plug in the blue dot from the load game into the isvalid.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [October 29, 2016, 10:55am UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/8 "2016-10-29T10:55:31Z")

</div>

![112917-castfail-notvalid.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/6/09602d2d329f44beca41963f8d14bb5d59322cff.jpeg)

Not Valid.

---

<div class="post-metadata">

**Author:** ![Justin.Dooley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justin.dooley/32/1194553_2.png) [@Justin.Dooley](https://forums.unrealengine.com/u/Justin.Dooley)\
**Post date:** [October 29, 2016, 1:28pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/9 "2016-10-29T13:28:02Z")

</div>

Then for some reason it’s not considering your save valid. Try changing the name of the Load and does exist from BlueprintGameSave to something like BPGSave.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [October 31, 2016, 7:01pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/10 "2016-10-31T19:01:04Z")

</div>

Changed the name but same result. Says “not valid” when it runs the second time. It is creating the file. I looked with in the file browser and seen it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [November 6, 2016, 4:59pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/11 "2016-11-06T16:59:13Z")

</div>

Keeping alive.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [November 8, 2016, 3:18am UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/12 "2016-11-08T03:18:25Z")

</div>

No more thoughts? I’ve been reading and looking for anything that would help but have not had any luck. Thank you regardless.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_47aa7bb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_47aa7bb9](https://forums.unrealengine.com/u/anonymous_user_47aa7bb9)\
**Post date:** [November 14, 2016, 2:04pm UTC](https://forums.unrealengine.com/t/ue4-4-7-cast-to-savesystem-fail/374077/13 "2016-11-14T14:04:18Z")

</div>

I think I have it figured out. I’ll use the IsValid node to read the save file or (if not valid) create one. I’ll reply here to how it works.
