Forum rules - please read before posting.

Particular NPC speeech not shoeing in timeline

AC V1.80.5
Unity - 2021.3.15f1

I used to have speech for my Narrator NPC (Narrator only by name) subtitles appearing clearly, audibly and as expected in my Timeline. However, in going back to my scene I now see that the speech subtitles are not appearing btu teh sepech audio is playing. In the same timeline I have another NPC whos speech subtitles are played and heard and I have tried comparing the two NPC's to see what is different between them, but I cannot see anything different.

I do get this error when the Narrator NPC speech is played in the timeline. But unsure of what it is telling me. 
NullReferenceException: Object reference not set to an instance of an object
ACSpineExpressions.GetSpeech (AC.Char speaker, System.String speechText, System.Int32 lineID) (at Assets/Scripts/ACSpineExpressions.cs:319)
AC.EventManager.Call_OnStartSpeech (AC.Speech speech, AC.Char speakingCharacter, System.String speechText, System.Int32 lineID) (at Assets/AdventureCreator/Scripts/Managers/EventManager.cs:122)
AC.Speech..ctor (AC.Char _speaker, System.String _message, System.Int32 lineID, System.Boolean _isBackground, System.Boolean _noAnimation, System.Boolean _preventSkipping, UnityEngine.AudioClip audioOverride, UnityEngine.TextAsset lipsyncOverride) (at Assets/AdventureCreator/Scripts/Speech/Speech.cs:168)
AC.Dialog.StartDialog (AC.Char _speaker, System.String _text, System.Boolean isBackground, System.Int32 lineID, System.Boolean noAnimation, System.Boolean preventSkipping, UnityEngine.AudioClip audioOverride, UnityEngine.TextAsset lipsyncOverride) (at Assets/AdventureCreator/Scripts/Speech/Dialog.cs:159)
AC.SpeechPlayableBehaviour.ProcessFrame (UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info, System.Object playerData) (at Assets/AdventureCreator/Scripts/Speech/Timeline/SpeechPlayableBehaviour.cs:97)

See screenshots to aid in this below. Thanks

https://www.dropbox.com/scl/fo/lyv43gqr4r7akh2khra0f/AObmCRZeJ0T9RRBCniwi1fs?rlkey=cvlmuqq262pz1madktc9bq31m&dl=0

Comments

  • Your scene has two Narrator objects - the one shown in your screenshots isn't the one referenced by the Timeline, as its Constant ID is different.

    The error message comes from a custom script, ACSpineExpressions, line 319.

  • Ok thanks. So, a timeline can only have a prefab NPC from non scene though? So I should use all narrator speak from non scene prefab then?

  • I'm not clear on your meaning. Could you elaborate?

  • I cannot put a scene npc prefab into the speech timeline. And for when that same npc talks through other interactions it only seems to work via in scene prefab.
  • Right, made the in scene prefab the same constant id as the prefab and it worked!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.