Having issue integrating Unreal SDK into Dedicated Server

I have all 3 of the sdk’s setup, and now I am trying to ready my server while connected to AMS Simulator.

I get DS_Connected in the simulator but anytime I try to send a ready or assign a delegate for draining I get a memory access violation error.

Just like the tutorial code I am using
ABSessionInt = StaticCastSharedPtr(Online::GetSessionInterface());
ensure(ABSessionInt);
ABSessionInt->SendServerReady(SessionName, FOnRegisterServerComplete::CreateUObject(this, &ThisClass::OnSendServerReadyComplete));

or even doing the same but with drain fails.
When looking at the interface coming back I see the IonlineSession but in the delegate list I do not see any related to the server management stuff like the docs show. Any guidance would be great as its the last hurdle for us to get online.

1 Like

Just to add more information.
[2023.12.27-18.28.55:639][ 0]AccelByteNetUtil: AccelByteNetworkUtilities version: 4.2.7
[2023.12.27-18.28.55:639][ 0]AccelByteNetUtil: AccelByte socket subsystem registered

AMS Sim shows DS Connected but the session interface does not seem to have any of the v2accelbyte session interface which makes me wonder if the defaultengine config
[OnlineSubsystem]
DefaultPlatformService=AccelByte
is working

Just following the topic, I’m curious what this answer is, too.

Hey Tanahara,

Thanks for providing us more information via private messages.

So after taking a closer look at your defaultengine.ini

[OnlineSubsystemAccelByte]
bEnabled=true
bEnabledV2Sessions=true
bServerUseAMS=true
bRegisterServerOnAutoLogin=true

[/Script/AccelByteNetworkUtilities.IpNetDriverAccelByte]
NetConnectionClassName=AccelByteNetworkUtilities.IpConnectionAccelByte *

[/Script/AccelByteUe4Sdk.AccelByteSettings]*
*ClientId= xxxxxxxxxxx *
*ClientSecret= xxxxxxxxxxxxxx *
Namespace=
PublisherNamespace=
RedirectURI=" http://127.0.0.1/ "
*BaseUrl= “https://demo.accelbyte.io
AppId=

[/Script/AccelByteUe4Sdk.AccelByteSettings]
bEnableHttpCache=true
QosLatencyPollIntervalSecs=0
QosServerLatencyPollIntervalSecs=0

[/Script/AccelByteUe4Sdk.AccelByteServerSettings]
*ClientId= xxxxxxxxxx *
*ClientSecret= xxxxxxxxxxx *
Namespace=
PublisherNamespace=
RedirectURI=" http://127.0.0.1/ "
BaseUrl=https://demo.accelbyte.io

We see that the value of bServerUseAMS=true is at the wrong section [OnlineSubsystemAccelyte]
It should be under [/Script/AccelByteUe4Sdk.AccelByteSettings]

[/Script/AccelByteUe4Sdk.AccelByteSettings]
bServerUseAMS=True

as shown in the doc

Please let us know if that fixes the problem. Thanks!