Sequence Message(1) not work
-
- Posts: 20
- Joined: Mon Jan 21, 2019 5:29 pm
Sequence Message(1) not work
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);
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);
Re: Sequence Message(1) not work
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?
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?
-
- Posts: 20
- Joined: Mon Jan 21, 2019 5:29 pm
Re: Sequence Message(1) not work
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?
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?
Re: Sequence Message(1) not work
Hi,
Use menu item Tools > Pixel Crushers > Dialogue System > Welcome Window and tick the Timeline checkbox.
Use menu item Tools > Pixel Crushers > Dialogue System > Welcome Window and tick the Timeline checkbox.
-
- Posts: 20
- Joined: Mon Jan 21, 2019 5:29 pm
Re: Sequence Message(1) not work
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.
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.
Re: Sequence Message(1) not work
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
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
-
- Posts: 20
- Joined: Mon Jan 21, 2019 5:29 pm
Re: Sequence Message(1) not work
Hi Tony,
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.Or just select menu item Edit > Project Settings > Player, and add this Scripting Define Symbol: USE_TIMELINE
-
- Posts: 20
- Joined: Mon Jan 21, 2019 5:29 pm
Re: Sequence Message(1) not work
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.
Re: Sequence Message(1) not work
Is it still specifically when using the message '1' (the number one)?
-
- Posts: 20
- Joined: Mon Jan 21, 2019 5:29 pm
Re: Sequence Message(1) not work
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.
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.
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.