Page 1 of 1
Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 2:13 pm
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.
Re: Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 3:58 pm
by Tony Li
Hi,
Don't Destroy On Load should have worked for that. What error message do you see?
Re: Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 6:13 pm
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
Re: Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 8:55 pm
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?
Re: Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 9:05 pm
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 (14.99 KiB) Viewed 139 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?
Re: Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 9:10 pm
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.)
Re: Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 9:12 pm
by Boydy111
Will do, thank you for your continued help as always
Re: Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 10:08 pm
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
Re: Animated portraits not working between scenes on the VN novel framework
Posted: Wed Oct 09, 2024 10:23 pm
by Tony Li
I'm just glad you found the issue and were able to fix it. Thanks for the update!