Hi,
I am using a central hub for my game that branches off into many other scenes and the dialogue canvas only appears in a couple of scenes. Currently, whenever I close and load the game, the dialogue will always be present in the scene; even if that scene doesn't normally have dialogue in it.
Is it possible to have the dialogue manager resume the game either always at the central hub or have the dialogue UI not always be present on resume?
Thanks!
Textline Resume Scene without Dialogue Canvas Appearing
Re: Textline Resume Scene without Dialogue Canvas Appearing
Hi,
Try the latest Textline and Menu Framework packages on the Extras page. Please back up your project first!
Your Menu System GameObject (in scene "0 Start") may have an Auto Save Load component. Make sure its Load On Start checkbox is unticked. This way it will always start in 0 Start and not auto-load into wherever the player was when they closed the game.
Or inspect the Save System component on the Menu System GameObject, and untick Save Current Scene. When this is unticked, the save system won't record the scene that the game was saved in, and so it won't switch to that scene when the game (auto-)loads.
Try the latest Textline and Menu Framework packages on the Extras page. Please back up your project first!
Your Menu System GameObject (in scene "0 Start") may have an Auto Save Load component. Make sure its Load On Start checkbox is unticked. This way it will always start in 0 Start and not auto-load into wherever the player was when they closed the game.
Or inspect the Save System component on the Menu System GameObject, and untick Save Current Scene. When this is unticked, the save system won't record the scene that the game was saved in, and so it won't switch to that scene when the game (auto-)loads.
Re: Textline Resume Scene without Dialogue Canvas Appearing
Hi Tony,
Thanks for the suggestions. I have updated to the latest Textline and Menu Framework packages.
What I would like to happen is when you hit continue, it will only take you to the conversation if you actually exited the game on scene 3, otherwise it will go to whatever scene you were on last.
Thanks for the suggestions. I have updated to the latest Textline and Menu Framework packages.
I have Load on Start unticked so I always start on Start 0, but when I hit continue the correct scene loads as long as you were not part of a conversation when you quit, If you were in a conversation, then switched the scene midway, the game will always load scene 3 (conversation scene) even if you were on a completely different scene when you quit.Your Menu System GameObject (in scene "0 Start") may have an Auto Save Load component. Make sure its Load On Start checkbox is unticked. This way it will always start in 0 Start and not auto-load into wherever the player was when they closed the game.
What I would like to happen is when you hit continue, it will only take you to the conversation if you actually exited the game on scene 3, otherwise it will go to whatever scene you were on last.
Re: Textline Resume Scene without Dialogue Canvas Appearing
Actually after testing it a little more, it seems if I switch scenes many times after the conversation scene (scene 3), then it loads the correct scene.
Example 1: scene 3 -> scene 4 -> scene 5 -> scene 4 -> scene 5 -> quit
This loads scene 5
Example 2: scene 3 -> scene 4 -> quit
This loads scene 3
Example 3: scene 3 -> scene 4 -> scene 5 -> quit
This loads scene 3
Example 4: scene 3 -> scene 4 -> scene 5 -> scene 4 -> quit
This loads scene 5
In fact, scene 4 (hub scene) never is the one loaded from continue. Maybe it's because I have it set as the First Gameplay Scene in Save Helper?
Example 1: scene 3 -> scene 4 -> scene 5 -> scene 4 -> scene 5 -> quit
This loads scene 5
Example 2: scene 3 -> scene 4 -> quit
This loads scene 3
Example 3: scene 3 -> scene 4 -> scene 5 -> quit
This loads scene 3
Example 4: scene 3 -> scene 4 -> scene 5 -> scene 4 -> quit
This loads scene 5
In fact, scene 4 (hub scene) never is the one loaded from continue. Maybe it's because I have it set as the First Gameplay Scene in Save Helper?
Re: Textline Resume Scene without Dialogue Canvas Appearing
Hi,
That may be a bug. Please back up your project and then import this patch:
SaveSystemPatch_2018-08-01.unitypackage
It resolves a conflict in the way the Menu Framework (e.g., Save Helper component) and Auto Save Load component work together. (Auto Save Load was saving the game, but it wasn't recording the slot number that it saved to. Save Helper needs to know the slot number to know which saved game to continue.)
If that doesn't fix the issue, here are some things to check:
- On the Menu System GameObject's Auto Save Load component, make sure the Don't Save In Scenes list is empty.
- On the Menu System GameObject, tick the Debug checkboxes on the Save System and Player Prefs Saved Game Data Storer components. This will log when the save system saves and loads games, as well as the saved game data. Look for a line like this:
The "m_sceneName":"3 Gameplay" in the line above means that the game was saved in the scene "3 Gameplay".
BTW, the Save Helper's First Gameplay Scene is only used when restarting a new game, not when continuing a game.
That may be a bug. Please back up your project and then import this patch:
SaveSystemPatch_2018-08-01.unitypackage
It resolves a conflict in the way the Menu Framework (e.g., Save Helper component) and Auto Save Load component work together. (Auto Save Load was saving the game, but it wasn't recording the slot number that it saved to. Save Helper needs to know the slot number to know which saved game to continue.)
If that doesn't fix the issue, here are some things to check:
- On the Menu System GameObject's Auto Save Load component, make sure the Don't Save In Scenes list is empty.
- On the Menu System GameObject, tick the Debug checkboxes on the Save System and Player Prefs Saved Game Data Storer components. This will log when the save system saves and loads games, as well as the saved game data. Look for a line like this:
Code: Select all
Save System: Storing in PlayerPrefs key Save0: {"m_sceneName":"3 Gameplay",...
BTW, the Save Helper's First Gameplay Scene is only used when restarting a new game, not when continuing a game.
Re: Textline Resume Scene without Dialogue Canvas Appearing
Wow, thanks for the amazing support!
That fixed it.
That fixed it.
Re: Textline Resume Scene without Dialogue Canvas Appearing
Thanks for letting me know. Sorry about the bug. I'm glad it was an easy fix.