Sequence Message(1) not work

Announcements, support questions, and discussion for the Dialogue System.
marche4ever
Posts: 20
Joined: Mon Jan 21, 2019 5:29 pm

Re: Sequence Message(1) not work

Post by marche4ever »

I put this in a Unity Package

[removed]
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

Thanks; I downloaded it, and I'm looking at it now. I removed the download link since it contains Dialogue System source files.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

I can reproduce the issue. I'll post a fix here by this evening.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

Thanks for alerting me to this timing issue. It involves sequences of the form "->Message(X); Continue()@Message(X)". This patch should fix it:

DialogueSystem_2_2_4_Patch20200106.unitypackage
marche4ever
Posts: 20
Joined: Mon Jan 21, 2019 5:29 pm

Re: Sequence Message(1) not work

Post by marche4ever »

Tony Li wrote: Mon Jan 06, 2020 8:28 pm Thanks for alerting me to this timing issue. It involves sequences of the form "->Message(X); Continue()@Message(X)". This patch should fix it:

DialogueSystem_2_2_4_Patch20200106.unitypackage
Hi Tony, thanks for the patch. It fixed the case where two nodes have different parameter for Message(x).

This works now after the patch

Node1 Sequence:
MoveTo(destination, target, 1)@Message(1);
Continue()@Message(1);

Node2 Sequence:
MoveTo(destination, target, 1)@Message(2);
Continue()@Message(2);
-----------------------------------------------------

This doesn't work, node2 won't continue:

Node1 Sequence:
MoveTo(destination, target, 1)@Message(1);
Continue()@Message(1);

Node2 Sequence:
MoveTo(destination, target, 1)@Message(1);
Continue()@Message(1);
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

I'll check that and get back to you.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

It was a timing issue. The sequencer activated the new command in the same frame that the previous node's command sent the message, so the new command also intercepted the message but too early. This patch should fix it:

DS_SequencerMessagePatch_2020-01-07.unitypackage
marche4ever
Posts: 20
Joined: Mon Jan 21, 2019 5:29 pm

Re: Sequence Message(1) not work

Post by marche4ever »

Hi Tony, the patch fixed the issues. Thanks for the help!
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

Glad to help! The fix will be in the next full release, too.
Post Reply