Page 1 of 1

QuestNode Copy Pase Issue, when using Custom QuestCondition

Posted: Thu May 27, 2021 9:49 am
by AArtlone
Hi again!

I am experiencing a bug when copy-pasting a QuestNode that has a custom QuestCondition.

The bug can be reproduced in an empty project with only QuestMachine imported.

QuestMachine version: 1.2.15
Unity version: 2020.2.1f1

Screenshots should provide enough context. Let me know if you need any additional info :)
TestQuestCondition.png
TestQuestCondition.png (4.27 KiB) Viewed 425 times
Inspector.png
Inspector.png (27.24 KiB) Viewed 425 times
Error.png
Error.png (60.92 KiB) Viewed 425 times

Re: QuestNode Copy Pase Issue, when using Custom QuestCondition

Posted: Thu May 27, 2021 11:01 am
by Tony Li
Hi,

I'll double-check that this is fixed in version 1.2.16 and send you a link to a patch today.

Re: QuestNode Copy Pase Issue, when using Custom QuestCondition

Posted: Thu May 27, 2021 4:07 pm
by Tony Li
Hi,

Yes, it's fixed in the upcoming 1.2.16. The issue was with classes that aren't in namespaces. If you were to change the script to:

Code: Select all

using PixelCrushers.QuestMachine;

namespace Some.Namespace
{
    public class TestQuestCondition : QuestCondition
    {    
    }
}
It would work. Anyway, this patch should also fix it:

PixelCrushers_TypeUtilityPatch_2021-05-27.unitypackage