QuestNode Copy Pase Issue, when using Custom QuestCondition

Announcements, support questions, and discussion for Quest Machine.
Post Reply
AArtlone
Posts: 37
Joined: Tue Mar 09, 2021 2:54 am

QuestNode Copy Pase Issue, when using Custom QuestCondition

Post 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 418 times
Inspector.png
Inspector.png (27.24 KiB) Viewed 418 times
Error.png
Error.png (60.92 KiB) Viewed 418 times
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: QuestNode Copy Pase Issue, when using Custom QuestCondition

Post 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.
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: QuestNode Copy Pase Issue, when using Custom QuestCondition

Post 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
Post Reply