Load / save issue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Load / save issue

Post by hrohibil »

Hello Tony

Now that I finnaly getting my level in a good state, I am beginning to look at the load/ save features.

See image below, i should have all the components needed.
When i move and make a save.
Then load that game, it for a split second moves there where i saved last, but then it returns to the start of the game, where i have a initial welcome/intro conversation ongoing.

Does the Dialogue not save /remember that I have already been through the welcome dialogue? I only need to see this when starting from start with 3 lifes.

So the first problem i want to tackle is the correct position when loading so that he does not play the initial conversation again and starts there


User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Load / save issue

Post by Tony Li »

hrohibil wrote: Sun Jul 31, 2022 6:34 amDoes the Dialogue not save /remember that I have already been through the welcome dialogue?
The Dialogue System will only remember if you tell it to remember -- for example, by using a variable. (See: How To: Run a Conversation Only Once)

Tick the PlayerPrefsSavedGameDataStorer's Debug checkbox. This will log the save data to the Console when you save and load in the editor. When you save, examine the Console log entry for the unique key assigned to your InvectorPositionSaver component. Then make a note of the position that it saved. When you load the saved game, it should return the player to this position.
Post Reply