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

Sequence Message(1) not work

Post by marche4ever »

Using number '1' as message argument would make the message system not work. (I'm on version 2.1.8)

MoveTo(destination,target)->Message(1);
Continue()@Message(1);

but using other numbers like '0' or '2' works, I wonder if that's intentional?

MoveTo(destination,target)->Message(0);
Continue()@Message(0);
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

Hi,

I just tested it, and it works correctly. Did you perhaps use a lowercase 'L' instead of number 1 in one of the lines?

I tested in version 2.2.4. Can you back up your project and then update to 2.2.4?
marche4ever
Posts: 20
Joined: Mon Jan 21, 2019 5:29 pm

Re: Sequence Message(1) not work

Post by marche4ever »

Hi Tony,
I updated Dialogue System to newest version, but now i'm getting some errors for timeline related scripts. I noticed there is a #IF USE_TIMELINE in the scripts. I wonder what's the proper way of setting this value to true?

Image
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

Hi,

Use menu item Tools > Pixel Crushers > Dialogue System > Welcome Window and tick the Timeline checkbox.
marche4ever
Posts: 20
Joined: Mon Jan 21, 2019 5:29 pm

Re: Sequence Message(1) not work

Post by marche4ever »

I tried to follow the documentation page's instruction:

Timeline & Cinemachine
The Dialogue System has built-in support for Timeline and Playables in Unity 2017+. To enable support, open the Welcome Window (Tools → Pixel Crushers → Dialogue System → Welcome Window) and tick Enable Timeline and/or Enable Cinemachine.


But The welcome window does not show option to toggle timeline.

Image
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

It looks like it isn't fully updated to version 2.2.4 for some reason.

You can try this:

1. Back up your project.
2. Delete Plugins/Pixel Crushers/Common and Dialogue System.
3. Reimport the Dialogue System from the Asset Store.
If the Welcome Window still doesn't show the checkboxes, please let me know if there are any errors or warnings in the Console window.

Or just select menu item Edit > Project Settings > Player, and add this Scripting Define Symbol: USE_TIMELINE
marche4ever
Posts: 20
Joined: Mon Jan 21, 2019 5:29 pm

Re: Sequence Message(1) not work

Post by marche4ever »

Hi Tony,
Or just select menu item Edit > Project Settings > Player, and add this Scripting Define Symbol: USE_TIMELINE
worked for me. Now the welcome window also displays things correctly. I believe the problem welcome window didn't display correctly was because I had errors from referencing timeline-related scripts from the previous version of Dialogue System so Editor Window script didn't update correctly. That made the version updating into a paradoxical situation: I need to tick welcome window box to use Timeline support, but the error made sure that welcome window wouldn't update correctly so I can't enable the Timeline support.
marche4ever
Posts: 20
Joined: Mon Jan 21, 2019 5:29 pm

Re: Sequence Message(1) not work

Post by marche4ever »

Tony Li wrote: Sat Jan 04, 2020 2:32 pm Hi,

I just tested it, and it works correctly. Did you perhaps use a lowercase 'L' instead of number 1 in one of the lines?

I tested in version 2.2.4. Can you back up your project and then update to 2.2.4?
Even after the upgrade to 2.2.4, I'm having inconsistency with Message(). On one node it works, but on the other it doesn't.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Message(1) not work

Post by Tony Li »

Is it still specifically when using the message '1' (the number one)?
marche4ever
Posts: 20
Joined: Mon Jan 21, 2019 5:29 pm

Re: Sequence Message(1) not work

Post by marche4ever »

After further investigation, I found out that it's not problem with the number '1', but rather when I put two nodes with Message() command together it cause a problem: The Message() does not get triggered on the second node.

Image



SequencerCommand on "Move Player To Spot" node:
MoveTo(PlayerMarker,Player,1)->Message(1);
Continue()@Message(1);

sequencerCommand on "Move Patient to Spot" node:
MoveTo(PatientMarker,Patient,1)->Message(1);
Continue()@Message(1);

The rest nodes does not have any special commands.

The left side will run just fine, apparently because the nodes with Message() are not together.
The right side will get stuck on the middle node, last node won't be reached. Because Continue()@Message() does not trigger.
Post Reply