Save Slider position issues

Would anyone mind explaining why the menu isn’t able to cast to MySaveGame?

That big blue BLOB on the bottom of the cast, means you don’t need to cast, because you’ve just created it, so it already IS your save game :slight_smile:

Alrighty.

Also, I changed a few things and I think the main problem is that “On Value Changed(ResolutionSlider)” isn’t able to Set the slider position in the save file. I added a “Set Value” on “Event construct” and it always resets the slider to 0 which is the default value of “Resolution Slider Position Save File”, now I don’t really understand why “On Value Changed” isn’t able to set the save file slider pos.

Sorry, you need to think it out… a bit more :wink:

  1. Only make the SG on construct, you don’t need to make it in both places.

  2. You are doing this, but then, er…

image

Assign that to the SG ref.

  1. When the slider is moved, update the SG ref and write it out

I understand the part where it should only check for an existing save file or create a save file on construct however I don’t exactly understand the message that you’re trying to get across?

The save game class is already set to “My Save Game”, why does it require a reference for the save game that he just created? Also, what do you mean by “write it out”?

Write it out = write the save to disk. ( save game to slot ).

Here’s my save game 101

This is how it will definitely work, so do this first, then modify it.

Something I recommend is getting the reference in the game instance. Then all other code can just get it from there, and the GI manages saving on a timer ( every second or so ).

I’ve watched a couple of tutorials from mathew’s series, I used your screenshot as base and I read the documentation, I’m probably missing something that might be obvious to you, but from my point of view I don’t really know what else to do here. This is where I’m at:

There’s an Issue that I’ve found though, If I close/open the menu the variable Resolution Slider Position Save File will reset to it’s default value, still don’t know why this is happening.

Like this

( I glossed over the resolutions settings, as we’re not talking about that part… )

I restarted the engine and gave it another shot without changing anything from my last post and it started working. Weird.
Thanks for the Image though.

1 Like