Page 1 of 1
Quest Journal Text Not Changing
Posted: Thu Feb 25, 2021 8:22 pm
by cptscrimshaw
Hi Tony,
I'm running into an issue where when I switch quests in the quest journal, the journal text isn't updating. I'm entirely positive I did something to mess this up, as it works fine in the demo, but haven't been able to track down the issue.
The current quest does change and the HUD updates correctly.
Any ideas on what to look for or where to begin digging into the issue?
Thanks so much!
Re: Quest Journal Text Not Changing
Posted: Thu Feb 25, 2021 10:08 pm
by Tony Li
Hi,
Can you try your quest with the demo's quest journal UI?
And, similarly, try some of the demo quests (Harvest Carrots, Pesky Rabbits) with your quest journal UI?
This should help determine whether the issue is with your journal UI or your quest.
Re: Quest Journal Text Not Changing
Posted: Sat Feb 27, 2021 5:45 pm
by cptscrimshaw
My quest works fine in the demo, however Pesky Rabbits + another of my quests does not switch in my own journal UI, so it sounds like it's an issue with the journal UI.
I checked all of the component settings for the journal UI panel as well as the Quest Journal component on my player and don't see anything out of order.
The only thing might be that I don't have a Quest Journal UI or Quest HUD assigned in my UI Settings for the Quest Journal component. However, I never had those set to anything before and it worked fine.
Ideas?
Re: Quest Journal Text Not Changing
Posted: Sat Feb 27, 2021 6:31 pm
by Tony Li
Hi,
Are there any errors or warnings in the Console window?
Open your journal UI to one of those quests, then pause the game. Check the journal UI's GameObjects in the hierarchy -- in particular the Text objects. Do they contain the quest's text? If so, maybe the GameObjects just aren't being activated (e.g., if they're not assigned to the journal UI's fields) or they have an animation that's keeping them invisible (e.g., Canvas Group > Alpha is zero).
Re: Quest Journal Text Not Changing
Posted: Sat Feb 27, 2021 7:10 pm
by cptscrimshaw
No errors or warnings.
Interestingly, the active quest (in the Quest Editor) doesn't seem to be changing in the player Quest Journal when I toggle/switch quests (and I'm on my Player gameobject that is showing one of the quests active correctly). It doesn't appear that the text objects in the journal UI are changing at all (see 2 screenshots):
https://ibb.co/rFnyz9g
https://ibb.co/489q3zV
The only additional code I have that would in anyway impact the quest journal is simply listening for when the user changes quests, but all of the other code is just about changing waypoints and doesn't even reference the Journal UI. I even tried commenting out this code entirely and it didn't fix anything.
Code: Select all
void IMessageHandler.OnMessage(MessageArgs args)
{
waypointString = "WP - " + args.parameter.ToString();
PixelCrushers.QuestMachine.Quest quest = QuestMachine.GetQuestInstance(args.parameter);
foreach (var waypointParent in waypointParents)
{
if (quest.GetState() == PixelCrushers.QuestMachine.QuestState.Active && quest.showInTrackHUD && waypointParent.waypointName == waypointString)
{
ActivateQuestWaypoints(waypointParent.waypointName);
waypointParent.active = true;
}
else if (quest.GetState() == PixelCrushers.QuestMachine.QuestState.Active && !quest.showInTrackHUD && waypointParent.waypointName == waypointString)
{
DeactivateQuestWaypoints(waypointParent.waypointName);
waypointParent.active = false;
}
}
}
Re: Quest Journal Text Not Changing
Posted: Sat Feb 27, 2021 7:53 pm
by Tony Li
Hi,
Ticking the Track checkbox doesn't change which quest is shown in the details section on the right-hand page. It only changes what appears in the tracking HUD (which is in the upper left of the screen in your screenshot).
What happens if you click on the "Magic Chicken Stock" text heading itself?