Page 3 of 10

Re: Character save at save point

Posted: Tue Jun 21, 2016 4:55 pm
by supadupa64
Actually after closing it I got this info.
one.jpg
one.jpg (167.76 KiB) Viewed 3225 times

Re: Character save at save point

Posted: Tue Jun 21, 2016 5:55 pm
by Tony Li
Can you post or PM me the error? Click on the red line in the Console and press Ctrl+C. Then paste the text in a message to me. I have a feeling we can get this resolved pretty quick.

Re: Character save at save point

Posted: Tue Jun 21, 2016 6:01 pm
by supadupa64
I sent it over to ya. I copied the red error two lines up from the highlight portion in the image.

Re: Character save at save point

Posted: Tue Jun 21, 2016 7:14 pm
by Tony Li
Thanks for sending that. The save system is having trouble with the scene name "Ruction_3.10.16". Can you remove the periods? For example, name it "Ruction_3_10_16".

I'll try to fix this in the next version (after 1.6.5 which was just release yesterday). But as long as the scene name doesn't have periods it should be fine.

Re: Character save at save point

Posted: Tue Jun 21, 2016 8:02 pm
by supadupa64
I changed the name and it worked one time and I can't recall if the quests saved right, but after that none of the saved games worked. The position was back to the start and the quests didn't save right.

Re: Character save at save point

Posted: Tue Jun 21, 2016 8:20 pm
by Tony Li
Did you save new saved games? The "bad" data (with the periods) would still be in any old saved games.

Re: Character save at save point

Posted: Tue Jun 21, 2016 8:50 pm
by supadupa64
Yeah but let me try it again just to make sure.

Re: Character save at save point

Posted: Tue Jun 21, 2016 9:28 pm
by Tony Li
If you still have an issue after saving new saved games, please let me know if there are any errors in the Console.

Also feel free to send me a project if you want me to take a direct look.

Re: Character save at save point

Posted: Wed Jun 22, 2016 8:45 am
by supadupa64
It seems to be working now! Just one thing though.

If I save the game on quest one, then play through to quest 3, then load the quest one saved game it will show that I am on quest 3 after the game loads. Except if I go to the UI where I can check active or complete quests and click track current quest (it does load the correct saved quests) the quest three goes away on the main screen area and then starts tracking the correct quest one.

Re: Character save at save point

Posted: Wed Jun 22, 2016 9:36 am
by Tony Li
Hi,

Create a C# script named UpdateQuestTrackerOnLoad containing this text:

Code: Select all

using UnityEngine;

public class UpdateQuestTrackerOnLoad : MonoBehaviour {
    void OnLevelWasLoaded(int level) {
        PixelCrushers.DialogueSystem.DialogueManager.SendUpdateTracker();
    }
} 
Then add it to your Dialogue Manager GameObject.

I added something similar to the updated version of the Dialogue System Menu Template. But it's probably less disruptive to just add the script above to your project instead of updating the Menu Template since that might break something.