Character Activation range?

Original Discord Post by nathansrig | 2024-07-19 16:48:41

Hi, I’m trying to get two convai characters to start talking to eachother a few moments before the player arrives. This is in Unreal. The convai stuff doesn’t seem to activate until I’m within a certain range. I thought I saw a parameter for this somewhere but can’t seem to find it now.

Reply by k3kalinix | 2024-07-19 16:49:23

Hello <@657352508288663552>,
Welcome to Convai Community!

Let me tag <@&1163218672580575372> .

Reply by freezfast | 2024-07-22 15:16:08

Hi <@657352508288663552>, do you mean the NPC2NPC system? you can check this tutorial out as well as try out the sample UE5.3 project, finally, it is worth mentioning that there was a crash issue when interrupting the characters, this is fixed on our latest github commit, you can see how to build the latest version of the plugin here

Embedded Content:
AI NPCs Talking With Each Other | Convai Unreal Engine NPC to NPC t…
Characters in game worlds powered by Convai can chat with each other, share ideas, and even get another NPC to carry out actions. This tutorial showcases how you can add simple blueprints to add this functionality and even provide topics that these characters will talk about. More updates on this feature will be coming out soon along with integr…
Link: https://www.youtube.com/watch?v=tJ5DLgBat5I


GitHub - Conv-AI/Convai-UnrealEngine-SDK: This Unreal Engine plugin…
This Unreal Engine plugin integrates Convai API for conversational AI and environment perception and action-taking by the AI in Unreal Engine. - Conv-AI/Convai-UnrealEngine-SDK
Link: GitHub - Conv-AI/Convai-UnrealEngine-SDK: This Unreal Engine plugin integrates Convai API for conversational AI and environment perception and action-taking by the AI in Unreal Engine.

Reply by nathansrig | 2024-07-22 23:23:09

Ah, I was just about to make a post about the Infinite loop when interruping NPC conversation before both NPCs have spoken.

Reply by nathansrig | 2024-07-23 20:06:14

I do get an error trying to build the latest plug-in

Reply by nathansrig | 2024-07-23 20:07:19

P:\UnrealInstall\UE_5.4\Engine\Source\Runtime\Core\Public\String\FormatStringSan.h(99): error C2338: static_assert failed: ‘’%s’ expects TCHAR*; use ‘%hs’ for const char*.’
P:\UnrealInstall\UE_5.4\Engine\Source\Runtime\Core\Public\String\FormatStringSan.h(99): note: the template instantiation context (the oldest one first) is
P:\ConvaiBuild\Convai-UnrealEngine-SDK\Output\Convai-UnrealEngine-SDK\HostProject\Plugins\ConvAI\Source\Convai\Private\ConvaiGRPC.cpp(1024): note: see reference to class template instantiation ‘UE::Core::Private::FormatStringSan::TPresentErr<1>::TErrMsg<UE::Core::Private::FormatStringSan::TAtArgPos<2>>’ being compiled

Error executing C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe (tool returned code: 2)

Replying to nathansrig’s Message

Reply by nathansrig | 2024-07-23 20:07:19
P:\UnrealInstall\UE_5.4\Engine\Source\Runtime\Core\Public\String\FormatStringSan.h(99): error C2338: static_assert failed: ‘’%s’ expects TCHAR*; use ‘%hs’ for const char*.’
P:\UnrealInstall\UE_5.4\Engine\Source\Runtime\Core\Public\String\FormatStringSan.h(99): note: the template instantiation context (the oldest one first) is
P:\ConvaiBuild\Convai-UnrealEngine-SDK\Output\Convai-UnrealEngine-SDK\HostProject\Plugins\ConvAI\Source\Convai\Private\ConvaiGRPC.cpp(1024): note: see reference to class template instantiation ‘UE::Core::Private::FormatStringSan::TPresentErr<1>::TErrMsg<UE::Core::Private::FormatStringSan::TAtArgPos<2>>’ being compiled

Error executing C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe (tool returned code: 2)

Reply by freezfast | 2024-07-23 20:21:55

Hi <@657352508288663552>, this is an issue on the latest msvc compiler, <@1216254232957685765> please provide steps on how to solve

Reply by freezfast | 2024-07-23 20:22:44

<@657352508288663552> it would be great if you could create a new ticket for this issue so it’s easier to track

This conversation happened on the Convai Discord Server, so this post will be closed.