Animated portraits not working between scenes on the VN novel framework

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Boydy111
Posts: 13
Joined: Sun Jul 28, 2024 12:20 am

Animated portraits not working between scenes on the VN novel framework

Post by Boydy111 »

Hi

I'm running into an issue when changing scenes with animated portraits

When i change scenes by sequencer command while continuing the conversation into the other scene, the animator for the character cant be found after i advance a node

Ive tried having the dialogue actor component be DoNotDestroy so it would be the same referenced object no matter what scene but this has failed to work also, before this i had a object where i stored all my dialogue actors in each scene.
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animated portraits not working between scenes on the VN novel framework

Post by Tony Li »

Hi,

Don't Destroy On Load should have worked for that. What error message do you see?
Boydy111
Posts: 13
Joined: Sun Jul 28, 2024 12:20 am

Re: Animated portraits not working between scenes on the VN novel framework

Post by Boydy111 »

Animator is not playing an AnimatorController
UnityEngine.StackTraceUtility:ExtractStackTrace ()
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait:CheckIsInState (UnityEngine.Animator,string,UnityEngine.AnimatorStateInfo&) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:97)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait/<MonitorState>d__2:MoveNext () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:73)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

&

Animator is not playing an AnimatorController
UnityEngine.Animator:GetCurrentAnimatorStateInfo (int)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait:CheckIsInState (UnityEngine.Animator,string,UnityEngine.AnimatorStateInfo&) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:107)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait/<MonitorState>d__2:MoveNext () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:73)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

it might also be worth noting i got over 800 of these warning messages
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animated portraits not working between scenes on the VN novel framework

Post by Tony Li »

Is it definitely on the animated portrait image? In other words, you're not using AnimatorPlayWait() for other purposes, too, such as animating a character model?

When this happens, temporarily pause the game and check the portrait image GameObject. Is an animator controller assigned to its Animator component?
Boydy111
Posts: 13
Joined: Sun Jul 28, 2024 12:20 am

Re: Animated portraits not working between scenes on the VN novel framework

Post by Boydy111 »

There's no animator component that's been assigned, currently it doesnt actually work for any animators while im using the DontDestoryOnload version
Capture.PNG
Capture.PNG (14.99 KiB) Viewed 140 times
As for AnimatorPlayWait(), ive not used that anywhere in the nodes for this scene, Would you prefer if i sent you a Repro-project?
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animated portraits not working between scenes on the VN novel framework

Post by Tony Li »

Yes, please. Send a reproduction project to tony (at) pixelcrushers.com and I'll check it in the morning. (I've finished work for the night.)
Boydy111
Posts: 13
Joined: Sun Jul 28, 2024 12:20 am

Re: Animated portraits not working between scenes on the VN novel framework

Post by Boydy111 »

Will do, thank you for your continued help as always
Boydy111
Posts: 13
Joined: Sun Jul 28, 2024 12:20 am

Re: Animated portraits not working between scenes on the VN novel framework

Post by Boydy111 »

Tony Li wrote: Wed Oct 09, 2024 9:10 pm Yes, please. Send a reproduction project to tony (at) pixelcrushers.com and I'll check it in the morning. (I've finished work for the night.)
Just in reply to this, i fixed the issue, i did have a AnimatorPlayWait and i also had a duplicate of the actor in the scene, my bad :?

Regardless, thank you for your time, these things happen i suppose :lol:
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animated portraits not working between scenes on the VN novel framework

Post by Tony Li »

I'm just glad you found the issue and were able to fix it. Thanks for the update!
Post Reply