Hi, i'm new to UE4 and i'm trying to make a login system in a dedicated server / client model.
Goal :
User launch the client with a lvl_login
Connect to the server by clicking a button
Server check login IDs
Server travel the client to the lvl_world
I made the connection
Only way i found to make it work is compiling the server with the ClientTravel and the client without it.
- Why the client is calling PostLogin ? I read gamemode was only server side.
If you have any good tutorial about this, it would be helpful.
Thanks for your help.
Goal :
User launch the client with a lvl_login
Connect to the server by clicking a button
Server check login IDs
Server travel the client to the lvl_world
I made the connection
Code:
void Anplayer::login(FString name, FString pass) { ClientTravel("127.0.0.1", ETravelType::TRAVEL_Relative); }
Code:
void Agame_mode::PostLogin(APlayerController* new_player) { Super::PostLogin(new_player); new_player->ClientTravel("/Game/nebula/blueprint/lvl_world", ETravelType::TRAVEL_Relative, true); }
- Why the client is calling PostLogin ? I read gamemode was only server side.
If you have any good tutorial about this, it would be helpful.
Thanks for your help.
Comment