Page 1 of 1
Quest Counters not saving
Posted: Mon Feb 17, 2020 10:25 pm
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?
Re: Quest Counters not saving
Posted: Tue Feb 18, 2020 8:00 am
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?
Re: Quest Counters not saving
Posted: Tue Feb 18, 2020 9:05 am
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.
Re: Quest Counters not saving
Posted: Tue Feb 18, 2020 11:07 am
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.
Re: Quest Counters not saving
Posted: Tue Feb 18, 2020 6:59 pm
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?
Re: Quest Counters not saving
Posted: Tue Feb 18, 2020 7:32 pm
by Tony Li
Yes. Please update to 1.2.4 first. 1.2.5 is coming soon, btw.
Re: Quest Counters not saving
Posted: Tue Feb 18, 2020 8:59 pm
by RX-310
Okay, I'll try updating the plugin.