Page 1 of 1

QuestListContainer on disabled GO

Posted: Thu May 11, 2023 1:36 pm
by szczepan
I run into following situation when loading my game:
- First saver disables the object (it's an NPC that's temporarily hidden)
- Second saver loads quest list and calls AddQuest with delayStartup flag set to true
- Unity throws an error in AddQuest method because it won't allow calling StartCoroutine on an disabled GameObject.
I developed a workaround by keeping QuestList on a separate object that's always enabled, but I'm wondering if this could be somehow fixed in QuestMachine.

Re: QuestListContainer on disabled GO

Posted: Thu May 11, 2023 3:54 pm
by Tony Li
Here's a patch. My thinking was that quest list containers (quest givers, quest journals, etc.) should be active when adding quests. But that's not technically a requirement.

QM_QuestListContainerPatch_2023-05-11.unitypackage

Re: QuestListContainer on disabled GO

Posted: Fri May 12, 2023 12:04 pm
by szczepan
Thanks

Re: QuestListContainer on disabled GO

Posted: Fri May 12, 2023 1:34 pm
by Tony Li
Glad to help! This change will be in the next full release, too.