Quest Counters not saving

Announcements, support questions, and discussion for Quest Machine.
Post Reply
RX-310
Posts: 22
Joined: Tue Jan 21, 2020 7:50 pm

Quest Counters not saving

Post by RX-310 »

Hi, I got the quest to save and load but now it seems the quest counters aren't being saved. What step did I miss?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Counters not saving

Post by Tony Li »

Quest counter values should be saved with the quest. Are you saving the player's Quest Journal component? Make sure you're not just saving the NPC's Quest Giver component, which contains the original version of the quest before the player has picked it up.

If that looks OK, do you perhaps have a script that's resetting the counter value on start?
RX-310
Posts: 22
Joined: Tue Jan 21, 2020 7:50 pm

Re: Quest Counters not saving

Post by RX-310 »

Yeah, I'm talking about player's Quest Journal counters that got modified during the game through an event then I saved the quest afterwards, but when I load a saved game the counters reverts back to their default value (i.e 0)

Is it because the quests in journal are all still in Waiting to Start state? I haven't checked whether there's a method on start that resets the counter but I don't think I have any.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Counters not saving

Post by Tony Li »

RX-310 wrote: Tue Feb 18, 2020 9:05 amIs it because the quests in journal are all still in Waiting to Start state?
Yup, that's it. As an optimization, if a quest is waiting to start it won't save counters and quest node states.

This patch adds a new checkbox named "Save All Info If Waiting To Start" to the main info section of the quest inspector:

QM_Patch_2020-02-18.unitypackage

If you tick the checkbox, it will save counters and node states even if the quest is waiting to start.
RX-310
Posts: 22
Joined: Tue Jan 21, 2020 7:50 pm

Re: Quest Counters not saving

Post by RX-310 »

I'm still at v1.1.6 and that patch gives me the following error:

Code: Select all

Assets\Plugins\Pixel Crushers\Quest Machine\Scripts\Quest\Quest.cs(247,69): error CS0117: 'QuestMachineTags' does not contain a definition for 'GREETERID'
Do I need to update the plugin first?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Counters not saving

Post by Tony Li »

Yes. Please update to 1.2.4 first. 1.2.5 is coming soon, btw.
RX-310
Posts: 22
Joined: Tue Jan 21, 2020 7:50 pm

Re: Quest Counters not saving

Post by RX-310 »

Okay, I'll try updating the plugin.
Post Reply