Page 2 of 3

Re: AC Conversation Animation Sequence Question

Posted: Sat Jan 05, 2019 4:01 pm
by Tony Li
You don't need the last line. You can shorten it to:

Code: Select all

AnimatorPlayWait(DawesIdle)->Message(Talking); 
AnimatorPlay(DawesTalk)@Message(Talking); 
Delay({{end}})@Message(Talking)->Message(DoneTalking); 
required AnimatorPlayWait(DawesIdle)@Message(DoneTalking)

Re: AC Conversation Animation Sequence Question

Posted: Sat Jan 05, 2019 4:06 pm
by Escara
Wonderful, thank you. All working as expected now :)

Re: AC Conversation Animation Sequence Question

Posted: Wed Apr 17, 2019 2:24 pm
by Escara
Hi Tony.

I hope you're well. I'm not sure if this is an AC, DS or Unity issue. I updated to the latest AC and DS releases which didn't affect my Player but after just tweaking an interaction, nothing related to movement the Player (Dawes) the talking animations don't play at all. There's no error message. The animations do work when checking. I don't think I've changed anything at all. Below is the sequence you sent me and it's still present. I tried unmuting the transitions from the DawesIdle blend tree to the DawesTalk blend tree and the talking animations don't work either. I'm really confused. Do you have any suggestions?

AnimatorPlayWait(DawesIdle)->Message(Talking);
AnimatorPlay(DawesTalk)@Message(Talking);
Delay({{end}})@Message(Talking)->Message(DoneTalking);
required AnimatorPlayWait(DawesIdle)@Message(DoneTalking)

Many thanks in advance

Caroline

Re: AC Conversation Animation Sequence Question

Posted: Wed Apr 17, 2019 3:47 pm
by Tony Li
Hi Caroline,

Are there any errors or warnings in the Console window?

I couple people have reported that they lost customizations to their Dialogue Manager prefab when they updated DS. This is because a recent DS version included a newer version of the prefab. Please check your Dialogue Manager prefab and make sure it still looks correct.

If you temporarily set the Dialogue Manager's Debug Level to Info and play the conversation, it might give you some insight into what's happening.

Also feel free to send a copy of your project to tony (at) pixelcrushers.com. I'll be happy to take a direct look. The best way to pack it up is to zip up the Assets and ProjectSettings folders. You don't have to send any other files or folders.

Re: AC Conversation Animation Sequence Question

Posted: Wed Apr 17, 2019 11:13 pm
by Escara
Hi Tony.

Everything appears as it should I believe. I'm not sure if the below helps at all? These are the messages I get when the Player says a line. No error warnings in the Console. I customised my DM and called it 'Dialogue Manager 1'. The only thing that I think stands out is this code: Dialogue System: Sequencer.Play( None()@0 ). Apologies for the massive messeage, I've copied the info below, if this helps.

Could I just zip up one scene if it comes to that as my project is getting pretty large now?

Dialogue System: Lua(Actor = {}; Item = {}; Quest = Item; Location = {}; Conversation = {}; Variable = {}; Variable["Alert"] = "")
UnityEngine.Debug:Log(Object)
PixelCrushers.DialogueSystem.Lua:RunRaw(String, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter Wrapper/Lua.cs:212)
PixelCrushers.DialogueSystem.Lua:Run(String, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter Wrapper/Lua.cs:120)
PixelCrushers.DialogueSystem.Lua:Run(String, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter Wrapper/Lua.cs:130)
PixelCrushers.DialogueSystem.DialogueLua:InitializeChatMapperVariables() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/DB/DialogueLua.cs:67)
PixelCrushers.DialogueSystem.DatabaseManager:Clear() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/DB/DatabaseManager.cs:99)
PixelCrushers.DialogueSystem.DatabaseManager:ResetToLoadedDatabases() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/DB/DatabaseManager.cs:135)
PixelCrushers.DialogueSystem.DatabaseManager:Reset(DatabaseResetOptions) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/DB/DatabaseManager.cs:121)
PixelCrushers.DialogueSystem.DialogueSystemController:InitializeDatabase() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:488)
PixelCrushers.DialogueSystem.DialogueSystemController:Awake() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:346)

Dialogue System: Registering transform Bay_Dawes_Prefab Player 2019 1 1(Clone) as actor 'Dawes'.
UnityEngine.Debug:Log(Object, Object)
PixelCrushers.DialogueSystem.CharacterInfo:RegisterActorTransform(String, Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:169)
PixelCrushers.DialogueSystem.DialogueActor:OnEnable() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Actor/DialogueActor.cs:131)
UnityEngine.Object:Instantiate(Player, Vector3, Quaternion)
AC.KickStarter:ResetPlayer(Player, Int32, Boolean, Quaternion, Boolean, Boolean, Boolean) (at Assets/AdventureCreator/Scripts/Game engine/KickStarter.cs:895)
AC.KickStarter:OnAwake() (at Assets/AdventureCreator/Scripts/Game engine/KickStarter.cs:1032)
AC.MultiSceneChecker:Awake() (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:46)

Dialogue System: Loaded master database ''
UnityEngine.Debug:Log(Object)
PixelCrushers.DialogueSystem.DialogueSystemController:PreloadMasterDatabase() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:544)
PixelCrushers.DialogueSystem.DialogueSystemController:PreloadResources() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:626)
PixelCrushers.DialogueSystem.DialogueSystemController:Start() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:410)

Dialogue System: Bay_Dawes_Prefab Player 2019 1 1 says ''
UnityEngine.Debug:Log(Object)
PixelCrushers.DialogueSystem.ConversationView:StartSubtitle(Subtitle, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:125)
PixelCrushers.DialogueSystem.ConversationController:GotoState(ConversationState) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:168)
PixelCrushers.DialogueSystem.ConversationController:.ctor(ConversationModel, ConversationView, Boolean, EndConversationDelegate) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:114)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform, Int32) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:692)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:735)
PixelCrushers.DialogueSystem.DialogueManager:StartConversation(String, Transform, Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueManager.cs:424)
AC.ActionDialogueSystemConversation:Run() (at Assets/AdventureCreator/Scripts/Actions/ActionDialogueSystemConversation.cs:90)
AC.<RunAction>c__Iterator2:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:364)
UnityEngine.MonoBehaviour:StartCoroutine(String, Object)
AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:314)
AC.ActionList:ProcessActionEnd(ActionEnd, Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:551)
AC.ActionList:EndAction(Action) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:464)
AC.<RunAction>c__Iterator2:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:433)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Dialogue System: Sequencer.Play( None()@0 )
UnityEngine.Debug:Log(Object)
PixelCrushers.DialogueSystem.Sequencer:PlayCommand(QueuedSequencerCommand, String, Boolean, Single, String, String, String[]) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:619)
PixelCrushers.DialogueSystem.Sequencer:PlayCommand(QueuedSequencerCommand) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:607)
PixelCrushers.DialogueSystem.Sequencer:PlaySequence(String) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:541)
PixelCrushers.DialogueSystem.Sequencer:PlaySequence(String, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:551)
PixelCrushers.DialogueSystem.ConversationView:StartSubtitle(Subtitle, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:160)
PixelCrushers.DialogueSystem.ConversationController:GotoState(ConversationState) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:168)
PixelCrushers.DialogueSystem.ConversationController:.ctor(ConversationModel, ConversationView, Boolean, EndConversationDelegate) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:114)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform, Int32) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:692)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:735)
PixelCrushers.DialogueSystem.DialogueManager:StartConversation(String, Transform, Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueManager.cs:424)
AC.ActionDialogueSystemConversation:Run() (at Assets/AdventureCreator/Scripts/Actions/ActionDialogueSystemConversation.cs:90)
AC.<RunAction>c__Iterator2:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:364)
UnityEngine.MonoBehaviour:StartCoroutine(String, Object)
AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:314)
AC.ActionList:ProcessActionEnd(ActionEnd, Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:551)
AC.ActionList:EndAction(Action) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:464)
AC.<RunAction>c__Iterator2:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:433)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Dialogue System: Add Link (Dawes): ID=64:1 'Whoa! What was that? ' (True)
UnityEngine.Debug:Log(Object)
PixelCrushers.DialogueSystem.ConversationModel:EvaluateLinksAtPriority(ConditionPriority, DialogueEntry, List`1, List`1, List`1, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:402)
PixelCrushers.DialogueSystem.ConversationModel:EvaluateLinks(DialogueEntry, List`1, List`1, List`1, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:358)
PixelCrushers.DialogueSystem.ConversationModel:GetState(DialogueEntry, Boolean, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:252)
PixelCrushers.DialogueSystem.ConversationModel:.ctor(DialogueDatabase, String, Transform, Transform, Boolean, IsDialogueEntryValidDelegate, Int32, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:127)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform, Int32) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:684)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:735)
PixelCrushers.DialogueSystem.DialogueManager:StartConversation(String, Transform, Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueManager.cs:424)
AC.ActionDialogueSystemConversation:Run() (at Assets/AdventureCreator/Scripts/Actions/ActionDialogueSystemConversation.cs:90)
AC.<RunAction>c__Iterator2:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:364)
UnityEngine.MonoBehaviour:StartCoroutine(String, Object)
AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:314)
AC.ActionList:ProcessActionEnd(ActionEnd, Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:546)
AC.ActionList:EndAction(Action) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:464)
AC.<RunAction>c__Iterator2:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:433)
UnityEngine.MonoBehaviour:StartCoroutine(String, Object)
AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:314)
AC.ActionList:ProcessActionEnd(ActionEnd, Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:546)
AC.ActionList:EndAction(Action) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:464)
AC.<RunAction>c__Iterator2:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:433)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Dialogue System: Bay_Dawes_Prefab Player 2019 1 1 says 'Whoa! What was that? '
UnityEngine.Debug:Log(Object)
PixelCrushers.DialogueSystem.ConversationView:StartSubtitle(Subtitle, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:125)
PixelCrushers.DialogueSystem.ConversationController:GotoState(ConversationState) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:168)
PixelCrushers.DialogueSystem.ConversationController:OnFinishedSubtitle(Object, EventArgs) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:232)
PixelCrushers.DialogueSystem.ConversationView:FinishSubtitle() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:383)
PixelCrushers.DialogueSystem.ConversationView:OnFinishedSubtitle() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:390)
PixelCrushers.DialogueSystem.Sequencer:FinishSequence() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:469)
PixelCrushers.DialogueSystem.Sequencer:Update() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:462)

Then when stopping the game

Dialogue System: Unregistering transform Bay_Dawes_Prefab Player 2019 1 1 from actor 'Dawes'.
UnityEngine.Debug:Log(Object, Object)
PixelCrushers.DialogueSystem.CharacterInfo:UnregisterActorTransform(String, Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:179)
PixelCrushers.DialogueSystem.DialogueActor:OnDisable() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Actor/DialogueActor.cs:137)

Many thanks,

Caroline

Re: AC Conversation Animation Sequence Question

Posted: Wed Apr 17, 2019 11:23 pm
by Escara
Additional, and no idea if helpful.

In the Dialogue Actor script for my player the menu and subtitle panels are set to default. When allocating them to my Dialogue Manager 1's subtitle panels, no subtitles appear with the dialogue on play.

Re: AC Conversation Animation Sequence Question

Posted: Thu Apr 18, 2019 9:25 am
by Tony Li
Hi Caroline,

After this line:

Dialogue System: Bay_Dawes_Prefab Player 2019 1 1 says 'Whoa! What was that? '

Do you see any lines that start with:

Dialogue System: Sequencer

The first one (Dialogue System: Sequencer.Play( None()@0 )) is fine. That just means that the START node doesn't play a sequence. But each Character says 'Text' line should be followed by some Sequencer lines.

In your Dialogue Manager 1, is your dialogue UI assigned to the Dialogue Manager's Dialogue UI field?

In the dialogue UI, are the subtitle panels assigned to the Subtitle Panels list?

Re: AC Conversation Animation Sequence Question

Posted: Fri Apr 19, 2019 4:19 pm
by Escara
Hi Tony.

I think after a bit of investigation my Player Prefab is broken, the Talking blend tree anyway so I'm going to rebuild it and see if that fixes it. My NPCs are working fine so the issue must be my end. I'll come back to you tomorrow with the results. For info, the answers to your questions are below. The animation controller doesn't seem to activate and I get a new error.

Do you see any lines that start with:

Dialogue System: Sequencer


I see this:

PixelCrushers.DialogueSystem.Sequencer:PlayCommand(QueuedSequencerCommand) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:607)
PixelCrushers.DialogueSystem.Sequencer:PlaySequence(String) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:541)
PixelCrushers.DialogueSystem.Sequencer:PlaySequence(String, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:551)
PixelCrushers.DialogueSystem.ConversationView:StartSubtitle(Subtitle, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:160)
PixelCrushers.DialogueSystem.ConversationController:GotoState(ConversationState) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:168)
PixelCrushers.DialogueSystem.ConversationController:OnFinishedSubtitle(Object, EventArgs) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:232)
PixelCrushers.DialogueSystem.ConversationView:FinishSubtitle() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:383)
PixelCrushers.DialogueSystem.ConversationView:HandleContinueButtonClick() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:355)
PixelCrushers.DialogueSystem.ConversationView:OnConversationContinue(IDialogueUI) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:340)
UnityEngine.Component:SendMessage(String, Object, SendMessageOptions)
PixelCrushers.DialogueSystem.AbstractDialogueUI:OnContinueConversation() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI Subsystem/Abstract/Abstract Dialogue UI/AbstractDialogueUI.cs:366)
PixelCrushers.DialogueSystem.AbstractDialogueUI:OnContinue() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI Subsystem/Abstract/Abstract Dialogue UI/AbstractDialogueUI.cs:356)
PixelCrushers.DialogueSystem.StandardUIContinueButtonFastForward:OnFastForward() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI Subsystem/Standard/UI Effects/StandardUIContinueButtonFastForward.cs:67)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
PixelCrushers.UIButtonKeyTrigger:Update() (at Assets/Plugins/Pixel Crushers/Common/Scripts/UI/UIButtonKeyTrigger.cs:35)

In your Dialogue Manager 1, is your dialogue UI assigned to the Dialogue Manager's Dialogue UI field?

Dialogue UI is set to In your Dialogue Manager 1, is your dialogue UI assigned to the Dialogue Manager's Dialogue UI field? which is a child of the Canvas in DM1.

In the dialogue UI, are the subtitle panels assigned to the Subtitle Panels list?


The subtitle panels are indeed set. Element 0 = the NPC Subtitle Panel and Element 1 = PC Subtitle Panel.

Re: AC Conversation Animation Sequence Question

Posted: Fri Apr 19, 2019 4:50 pm
by Tony Li
Hmm, I would have expected to see a line that starts with something like:

Dialogue System: Sequencer: AnimatorPlayWait(DawesIdle...

Anyway, please let me know if rebuilding the player prefab fixes the issue. If not, feel free to send a copy of your project to tony (at) pixelcrushers.com. I'll be happy to take a look.

Re: AC Conversation Animation Sequence Question

Posted: Sat Apr 20, 2019 3:25 am
by Escara
Hi Tony.

After all that, rebuilding the player prefab fixed whatever the issue was. Very odd as I didn't touch it at all. Sorry to have wasted your time! But so glad I got it fixed! I'm getting close(ish) to releasing a demo so I can get cracking again now.

Thanks as always for your help, it's really appreciated!

Caroline