Player Name not set when using custom authentication
Options
eza
✭
Hi,
The player name is not returned when I use custom authentication, when I do not it is returned correctly?
UE4, self hosted.
The player name is not returned when I use custom authentication, when I do not it is returned correctly?
UE4, self hosted.
void UDTClient::ConnectToServer() { Logging::get().logToOutput("Connecting..."); ExitGames::Common::JString jUser = *username; ExitGames::Common::JString jPass = *password; ExitGames::Common::JString params = "username=" + jUser + "&token=" + jPass; ExitGames::LoadBalancing::AuthenticationValues authValues; authValues.setType(ExitGames::LoadBalancing::CustomAuthenticationType::CUSTOM); authValues.setParameters(params); mpDTClient->setAutoJoinLobby(false); mpDTClient->connect(authValues, ExitGames::Common::JString(L"TESTUSERNAME"), *serverAddress, ExitGames::LoadBalancing::ServerType::MASTER_SERVER); }
void DTListener::joinRoomEventAction(int playerNr, const JVector<int>& playernrs, const Player& player) { Logging::get().logToOutput(JString("Player ") + playerNr + L" " + player.getName() + L" has joined the game"); mpView->addPlayer(playerNr, player.getName(), player.getNumber() == mpDTc->getLocalPlayer().getNumber());; updateGroups(); }My custom authentication does not return/edit the player name/nickname, is the server returning a blank player name/nickname that is overriding what I am setting the in connect?
0
Comments
-
hi, @eza
there is some bug in current sdk release.
please try to replace LoadBalancing\Master\MasterClientPeer.cs with this one https://www.dropbox.com/s/dq1sa5c04ryw7b2/MasterClientPeer.cs?dl=0
I think this will fix your issue
best,
ilya1 -
This fixed the issue, thank you!0