I have crash error when implementing multiplayer

Original Discord Post by supercell8127 | 2024-03-08 02:55:56

Assertion failed: IsInGameThread() [File:C:\Users\00000\UnrealEngine\Engine\Source\Runtime\Engine\Private\NetDriver.cpp] [Line: 6751]
Attempted to call ProcessRemoteFunction from a thread other than the game thread, which is not supported. Object: /Game/FirstPerson/Maps/UEDPIE_0_FirstPersonMap.FirstPersonMap:PersistentLevel.BP_Taro_C_UAID_D85ED3AFBED5A6CD01_1195090855.ConvaiChatbot Function: Broadcast_onSessionIDReceived
I have problem for implementing multiplayer with convai.

##I’m using dedicated server in unreal engine 5.3

I changed only two things:

  1. mupltiplayer variables are set to true according to the convai document
  2. Start talking code are set to be exectued on the server like below capture!

additionally, I need to get confirm by you two things:

  1. if I did in correct way or not for implementing mutiplayer.
  2. In multiplayer variables, What is the Use Server API key used for?shoud i set it to true for mutiplayer too?
  3. Should i run the startalking fucntion to be executed on server and send that to all clients by multicast?

I have little experience for implementing multiplayer. so can you give me advice for direction or simple example project so that i can refer for multiplayer?

Images:



Replying to supercell8127’s Message

Reply by supercell8127 | 2024-03-08 02:55:56
Assertion failed: IsInGameThread() [File:C:\Users\00000\UnrealEngine\Engine\Source\Runtime\Engine\Private\NetDriver.cpp] [Line: 6751]
Attempted to call ProcessRemoteFunction from a thread other than the game thread, which is not supported. Object: /Game/FirstPerson/Maps/UEDPIE_0_FirstPersonMap.FirstPersonMap:PersistentLevel.BP_Taro_C_UAID_D85ED3AFBED5A6CD01_1195090855.ConvaiChatbot Function: Broadcast_onSessionIDReceived
I have problem for implementing multiplayer with convai.

##I’m using dedicated server in unreal engine 5.3

I changed only two things:

  1. mupltiplayer variables are set to true according to the convai document
  2. Start talking code are set to be exectued on the server like below capture!

additionally, I need to get confirm by you two things:

  1. if I did in correct way or not for implementing mutiplayer.
  2. In multiplayer variables, What is the Use Server API key used for?shoud i set it to true for mutiplayer too?
  3. Should i run the startalking fucntion to be executed on server and send that to all clients by multicast?

I have little experience for implementing multiplayer. so can you give me advice for direction or simple example project so that i can refer for multiplayer?

Reply by freezfast | 2024-03-08 02:58:04

Hi <@1020229675026489346>, this issue is related to multiplayer and is fixed in our latest plugin code, we will roll out the update to the beta link by tomorrow

Reply by freezfast | 2024-03-08 02:59:12

We also have a quick guide for how to enable multiplayer with Convai on our documentation, make sure to check there

Reply by freezfast | 2024-03-08 03:00:43

To enable multiplayer simply enable run on server and voice chat no need to do a multi cast like you showed

Reply by freezfast | 2024-03-08 03:01:43

Use server API key allows the client to use the server API key, this is used if the client doesn’t have an API key of his own or don’t have a Convai account

Reply by freezfast | 2024-03-08 03:02:08

Hopefully this answers your questions

Reply by supercell8127 | 2024-03-08 03:04:11

Thank you for your guide!

Replying to freezfast’s Message

Reply by freezfast | 2024-03-08 02:59:12
We also have a quick guide for how to enable multiplayer with Convai on our documentation, make sure to check there

Reply by supercell8127 | 2024-03-08 03:06:37

According to the convai document, I changed the two variables [Enable Multiplayer/ Enable VoiceChat], You mean this, right?

Replying to freezfast’s Message

Reply by freezfast | 2024-03-08 03:00:43
To enable multiplayer simply enable run on server and voice chat no need to do a multi cast like you showed

Reply by supercell8127 | 2024-03-08 03:07:57

In the image, I did’t do multicast, but only run on server. You mean that I should make the “startalking function” to be excuted on server, right?!

Replying to freezfast’s Message

Reply by freezfast | 2024-03-08 02:58:04
Hi <@1020229675026489346>, this issue is related to multiplayer and is fixed in our latest plugin code, we will roll out the update to the beta link by tomorrow

Reply by supercell8127 | 2024-03-08 03:13:34

That’s great news! Thank you so much!:grinning:

Replying to supercell8127’s Message

Reply by supercell8127 | 2024-03-08 03:07:57
In the image, I did’t do multicast, but only run on server. You mean that I should make the “startalking function” to be excuted on server, right?!

Reply by freezfast | 2024-03-08 15:16:34

no need, just run it locally, no need to do any server calls, everything is handled out of the box

Replying to freezfast’s Message

Reply by freezfast | 2024-03-08 15:16:34
no need, just run it locally, no need to do any server calls, everything is handled out of the box

Reply by supercell8127 | 2024-03-10 09:32:59

Hi! Has the fixed beta plugin been updated?:grinning:

Reply by supercell8127 | 2024-03-12 05:28:06

I have been waiting for your response since yesterday. Any updates or information you can provide would be greatly appreciated, as it would greatly help us in our planning

Reply by freezfast | 2024-03-12 17:03:45

Hi <@1020229675026489346>, the beta plugin update has been delayed for a couple of days, will give you an update here by end of this week

Replying to freezfast’s Message

Reply by freezfast | 2024-03-12 17:03:45
Hi <@1020229675026489346>, the beta plugin update has been delayed for a couple of days, will give you an update here by end of this week

Reply by supercell8127 | 2024-03-13 06:18:04

I had assumed that I would receive it by last weekend and had planned accordingly, so it’s quite disappointing to hear about the delay. If it’s possible to get an updated beta plugin within a day, that would be incredibly helpful. I would really appreciate it. Thank you.

Reply by freezfast | 2024-03-15 21:16:38

Hi <@1020229675026489346>, we have just made the update on the same link for the beta plugin, feel free to try it our, and sorry for the delay we’re still expanding our team and we’re have a lot of feature requests and support requests that we try to give

Replying to freezfast’s Message

Reply by freezfast | 2024-03-15 21:16:38
Hi <@1020229675026489346>, we have just made the update on the same link for the beta plugin, feel free to try it our, and sorry for the delay we’re still expanding our team and we’re have a lot of feature requests and support requests that we try to give

Reply by supercell8127 | 2024-03-25 05:15:58

Thank you. Can you give me the link?

Reply by freezfast | 2024-03-25 11:43:04

Hi <@1020229675026489346>, no need you can now update via the Epic launcher directly

Replying to freezfast’s Message

Reply by freezfast | 2024-03-25 11:43:04
Hi <@1020229675026489346>, no need you can now update via the Epic launcher directly

Reply by supercell8127 | 2024-04-05 04:02:50

Thank you!

Reply by freezfast | 2024-04-05 04:13:29

Of course, please let us know if you face any issues