Can you solve this blueprint issue? #challenge

Hi all,

Your challenge is below, praise for the one who can solve it, extra points for quality of explanation.

You are working on a widget blueprint menu for the player to change settings, specifically volume.

In this menu widget, there is a Slider that looks like the below.

The developer wishes to save its value immediately as the player changes the value of the slider, but the developer has hit a dead end and isn’t sure how to do this, they attempted to do this using the Game User Settings function by Apply Settings but the value does not save or get applied when starting the game again losing the player’s chosen value.

When the player changes the value of the slider, the following currently happens in the Menu blueprint as well.

When the game starts the following currently happens in the Menu blueprint.

The following function is called when the player changes the slider position, this function exists in the Menu blueprint as well.

If you would like more hints or information about this challenge, please let me know.

1 Like

My answer to the challenge ( which I assume will get no points ), is that you need to save the slider position in the save game. Because ‘game user settings’ only deals with a small fraction of graphical settings

3 Likes

That’s half a point! the correct way to address the issue but doesn’t fix the entire issue.

The variables have been created in the Menu save file.

The value changed logic has been changed to include new solution. (Create save)

The logic has been changed when attempting to include the new solution. (Load save)

New function that creates the saved data.

New function that loads the saved data.

Function that is called to set the new values.

The slider is still reset after each start of the game and does not impact sound.

Will you attempt to redeem yourself for the full mark? it’s anyone’s game still.

1 Like

You save game code is incorrect

You don’t need to cast after create, but you do need to cast after a load :slight_smile:

Can you show the ‘load’ code? ( at the moment there’s two copies of the save code ).

1 Like

The following screenshot is of the Save code

This is the Load code

1 Like

So you’ve loaded, but not accessed the save game

1 Like

The Load code has been updated but is not yet producing the expected outcome.

LOAD

SAVE

1 Like

Are these the same?

1 Like

After updating the NAME, the Slider position remains, full point awarded! well done!
If you want the bonus point to be crowned, resolve the remaining mystery, enabling the function of the volume to actually adjust.

The secret might be here

1 Like

This is the save code

Are you saying the slider won’t move?

Reduce to half a point.

Previous solution was working, new solution does not.

Solution provided below:

(post deleted by author)

Please look at my code, you’re not even writing to the save game here

1 Like

The Save Game code is updated and working but is producing errors on exit.

image

Errors resolved, the developer missed a Slot Name update in the Save Game.

1 Like

These two should be the same…

1 Like

Save Game Code

Load Game Code

Select Voice Volume Function Code

Event Graph Code (Event Value Changed)

Load Function Called On Event Construct

Full point and bonus point awarded, congratulations!

1 Like