Issues with Convai Character moving to specific spot

Original Discord Post by leean1 | 2024-10-14 17:04:14

I was following the video https://www.youtube.com/watch?v=wmhoNXUhc1U&t=901s&ab_channel=Convai
And was trying to get my Convai character to move to a specific spot using Narrative Design. However, when the character attempts to move to that location. The character just walks in place and I get the following errors.
Error][Character]: Convai Action Settings missing. Please create a game object that handles actions.
[Stack Trace - Method: Awake, at Line: 50 in File: C:\Users\Water_Treatment_Plant\Assets\Convai\Scripts\Runtime\Features\Actions\ConvaiActionsHandler.cs]
UnityEngine.Debug:LogError (object)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:LogMessage (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogLevel,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:93)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Error (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:140)
Convai.Scripts.Runtime.Features.ConvaiActionsHandler:Awake () (at Assets/Convai/Scripts/Runtime/Features/Actions/ConvaiActionsHandler.cs:50)

and
“GetRemainingDistance” can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Convai.Scripts.Runtime.Features.ConvaiActionsHandler/d__34:MoveNext () (at Assets/Convai/Scripts/Runtime/Features/Actions/ConvaiActionsHandler.cs:611)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

but my character has the Actions Handler and Nav Mesh component.

Embedded Content:
AI-powered Onboarding Character for Digital Twin Environments | Co…
This Unity tutorial shows you how to add a Convai-powered Tour Guide character for your 3D virtual environments. Convai’s Narrative Design Feature lets creators add spatial anchors in the 3D environment which guides the 3D AI character to navigate the world while following step-by-step instructions. The character follows instruction prompts comb…
Link: https://www.youtube.com/watch?v=wmhoNXUhc1U&start=901

Reply by k3kalinix | 2024-10-14 17:08:59

Hello <@245693435317714955>,

Reply by k3kalinix | 2024-10-14 17:09:07

Are you using this demo project?

Reply by leean1 | 2024-10-14 17:09:24

No I am trying to implement this on my own project

Reply by k3kalinix | 2024-10-14 17:11:22

Could you please share a screenshot of your hierarchy?

Reply by leean1 | 2024-10-14 17:12:08

Images:

Reply by k3kalinix | 2024-10-14 17:12:51

Embedded Content:
Adding Actions to your Character | Documentation
Follow these instructions to enable actions for your Convai-powered characters.
Link: Adding Actions to your Character | Documentation

Reply by leean1 | 2024-10-14 17:26:22

In the video they made some changes to the ActionsHandler script. Should I have made those changes too? They also defaulted the NavMesh agent to be inactive.

Reply by leean1 | 2024-10-14 17:27:35

Also I forgot to mention that this is for VR if that matters

Replying to leean1’s Message

Reply by leean1 | 2024-10-14 17:26:22
In the video they made some changes to the ActionsHandler script. Should I have made those changes too? They also defaulted the NavMesh agent to be inactive.

Reply by k3kalinix | 2024-10-14 17:27:56

Some of them were specific to the demo. It is up to you.

Reply by leean1 | 2024-10-14 17:30:15

Can you clarify on this set of instructions? Link this Move Target Indicator to your NPC’s action script so it updates dynamically when you point the cursor to the ground and ask the NPC to move to “There”.

Reply by leean1 | 2024-10-14 17:30:25

Where do I link it?

Reply by k3kalinix | 2024-10-14 17:32:24

Images:

Reply by leean1 | 2024-10-14 17:38:54

Ok I completed these steps but he still just walks in place. Also get the same errors

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-10-14 17:32:24

Reply by leean1 | 2024-10-14 17:41:14

I also add the Convai Interactables Data here because I didnt have one. Not sure if that is right

Replying to leean1’s Message

Reply by leean1 | 2024-10-14 17:38:54
Ok I completed these steps but he still just walks in place. Also get the same errors

Reply by k3kalinix | 2024-10-14 18:03:31

Make sure to bake the Navmesh.

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-10-14 18:03:31
Make sure to bake the Navmesh.

Reply by leean1 | 2024-10-14 18:05:46

Yes I have

Reply by k3kalinix | 2024-10-14 18:09:13

Please share the errors

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-10-14 18:09:13
Please share the errors

Reply by leean1 | 2024-10-14 18:14:58

Images:

Reply by k3kalinix | 2024-10-14 18:18:38

Did you add the NavMeshAgent component to the NPC?