Quest Counters not saving
Quest Counters not saving
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
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?
If that looks OK, do you perhaps have a script that's resetting the counter value on start?
Re: Quest Counters not saving
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.
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
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
I'm still at v1.1.6 and that patch gives me the following error:
Do I need to update the plugin first?
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'
Re: Quest Counters not saving
Yes. Please update to 1.2.4 first. 1.2.5 is coming soon, btw.
Re: Quest Counters not saving
Okay, I'll try updating the plugin.