Why Can't I Talk To NPCs In My Unity Project

Hi team

I’m currently integrating Convai’s AI NPC system into my Unity project. Things were working earlier, but after some recent changes, every time I try to talk to the NPC (via key ‘T’), the Unity Editor pauses execution, and I get no response from the character. It shows I have run out of usage, but I already subscribe after this error shows. Below are the full error logs I’m seeing:

error:
NullReferenceException while executing ‘performed’ callbacks of ‘Player/Talk[/Keyboard/t]’
UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c__DisplayClass7_0:<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType, UnityEngineInternal.Input.NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType, intptr)

Convai.Scripts.Runtime.UI.ConvaiCrosshairHandler+<>c__DisplayClass5_0.b__0 (System.Collections.Generic.KeyValuePair2[TKey,TValue] kvp) (at Assets/Convai/Scripts/Runtime/UI/CanvasItems/ConvaiCrosshairHandler.cs:62) System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext ()

[Error][Character]: Grpc.Core.RpcException: Status(StatusCode=Cancelled, Detail=“Cancelled”)
at Grpc.Core.Internal.ClientResponseStream`2[TRequest,TResponse].MoveNext (System.Threading.CancellationToken token)
at Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.ReceiveResultFromServer (…)
at Convai.Scripts.Runtime.Core.ConvaiGRPCAPI+<>c__DisplayClass36_0.b__0 ()
at Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.SendTriggerData (…)

All I want is to be able to talk to NPCS. Hope to hear from you guys soon. Thx

Hello @2413967556,

Could you please share screenshots of all errors?


here‘s the only error that it shows right now. Now the mic work, and shows what I said in the chatbox, but still do not hear back from the NPC.

Could you please share your character ID?

It’s a0d1b15c-136b-11f0-a61f-42010a7be01a

It works as expected. I think you changed something by mistake.
I suggest you re-import the Convai SDK. Open the package manager and import Convai. It will replace the scripts with the default Convai Scripts.

I just tried, it do not shows any error right now, but it still do not interactive with the user.

I don’t see any problem on our side and the character is responding without any problem. I believe it’s something related to your project. Please test it on our demo scene.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.