Quest Track stopped working

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mandi
Posts: 77
Joined: Wed Sep 16, 2015 4:05 am

Quest Track stopped working

Post by mandi »

Hi,
Quest Tracker stopped working - I don't know why. I've switched recently to Unity 5.2.2, but I don't think it's the case. I've noticed that when I run the game, the Quest Track Template field of Unity UI Quest Tracker turns empty - and sometimes, not always, there appears an error message telling that the game wants to reference the object in this field, but it was destroyed. Thanks in advance!

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

Re: Quest Track stopped working

Post by Tony Li »

Does the quest tracker work in the example scenes in Examples/Unity UI Examples? To test it, you'll have to talk to Private Hart to pick up the "Assassinate the Emperor" quest.

Do the quest tracker prefabs work? (Try removing your quest tracker and adding one of the prefabs to the scene. You may need to hook it up with the player's Unity UI Selector Display; or just leave Unity UI Selector Display's fields blank to have it automatically find the tracker.)

In your Unity UI Quest Tracker, did you perhaps accidentally assign the template to the Container field? The Container field should be set to the panel that will contain quest instances (e.g., "Vertical Group").

Please feel free to send an example project to tony (at) pixelcrushers.com if you get stuck. I'll be happy to take a look!
mandi
Posts: 77
Joined: Wed Sep 16, 2015 4:05 am

Re: Quest Track stopped working

Post by mandi »

Hi,
No, the example scenes don't work - I mean I can talk, take quest, but the hud does not update. Also, disabling my hud tracker and adding a new one from prefab (Generic Unity UI Quest Tracker HUD), also didn't solve the problem. In the Container field of the quest tracker there was Vertical Group. Any idea how to fix that?
Best!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Track stopped working

Post by Tony Li »

Did you play the generic UI example scene and talk to Private Hart? You need to progress through the conversation until Hart says something about a hundred of innocent civilians in the hangar with the Emperor. When you end the conversation after this point, this should happen:
  • An alert message about a new quest.
  • The quest tracker HUD should show "Assassinate the Emperor".
  • If you open the quest log window, you should see the quest.
If you're not using version 1.5.6.1 or higher, please try updating to the latest version. Version 1.5.6.1 introduced several improvements to the quest tracker HUD that may make it easier to figure out what's going on. It's also possible that somehow the quest tracker script in your project was accidentally edited. If you update to the latest version, it will overwrite any accidental edits to the script.
mandi
Posts: 77
Joined: Wed Sep 16, 2015 4:05 am

Re: Quest Track stopped working

Post by mandi »

I don't know, but maybe it is related to an error I just spotted:

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UI.Graphic.OnRebuildRequested () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Graphic.cs:454)
UnityEngine.UI.GraphicRebuildTracker.OnRebuildRequested () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/GraphicRebuildTracker.cs:33)
UnityEngine.CanvasRenderer.RequestRefresh () (at C:/buildslave/unity/build/artifacts/generated/common/modules/CanvasRendererBindings.gen.cs:332)
mandi
Posts: 77
Joined: Wed Sep 16, 2015 4:05 am

Re: Quest Track stopped working

Post by mandi »

Yes, I talked long enough to take the quest. I see the alert message, but the HUD is not updated. I'll try to update the Dialogue System to the latest version and will let you know.

Best!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Track stopped working

Post by Tony Li »

If that doesn't help, please send me an example project that demonstrates the issue. Thanks!
mandi
Posts: 77
Joined: Wed Sep 16, 2015 4:05 am

Re: Quest Track stopped working

Post by mandi »

Hi Tony,
I've managed to solve the issue. You were right about the scripts being corrupted - I replaced the scripts pertaining to quests with one coming from one of my backups. Now it all works as charm. It is a strange thing though, since I never modified them. Maybe my assembly got corrupted. Anyway, thank you for assistance!
Best
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Track stopped working

Post by Tony Li »

If you're working on the project with other teammates, maybe one of them accidentally edited the file. In any case, I'm glad it's working now!
Post Reply