cancel
Showing results for 
Search instead for 
Did you mean: 

(UE4.21) Client Connects to host but fails to travel to proper map

rvelasco
Honored Guest
I am basing this test project off of the UnrealSample project from the latest Platform-SDK files on UE 4.21. 

This is my first time setting up a multiplayer game and have tried to follow tutorials and examples as best I could but am still falling short. This is what I think is going on...

After adding an Open Level -> Online?listen on 'OnStartSessionComplete' (Runs after create session success is returned), the host will travel to the level and accept a peer request.  However, when the client travels to the host it loads the default map (which in this project is MainMenu) instead of the one the host player loaded.  

LISTEN-SERVER (full log attached)

40.14:183][422]LogOnline: Display: OSS: Got result if friend is in a session
[2019.06.12-17.40.15:408][497]LogOnline: Display: OSS: Trying to create a session
[2019.06.12-17.40.15:829][524]LogOnline: Display: OSS: CreateSession Call complete
[2019.06.12-17.40.15:829][524]LogOnline: Display: OSS: Session owned by <host-player-name>
[2019.06.12-17.40.15:829][524]LogOnline: Display: OSS: Session state: Pending
[2019.06.12-17.40.15:845][524]LogOnline: Display: OSS: Change in number of players in session!
[2019.06.12-17.40.25:489][122]LogOnline: Display: OSS: Start Session
[2019.06.12-17.40.25:489][122]LogOnline: Display: OSS: Session owned by <host-player-name>
[2019.06.12-17.40.25:489][122]LogOnline: Display: OSS: Session state: Pending
[2019.06.12-17.40.25:525][122]LogPackageName: SearchForPackageOnDisk took   0.036s to resolve Online.umap.
[2019.06.12-17.40.25:562][122]LogPackageName: SearchForPackageOnDisk took   0.036s to resolve Online.umap.
[2019.06.12-17.40.25:562][122]LogNet: Browse: /Game/Maps/Online?listen
[2019.06.12-17.40.25:562][122]LogLoad: LoadMap: /Game/Maps/Online?listen
[2019.06.12-17.40.25:563][122]LogBlueprintUserMessages: [MyGameMode_C_0] Player <host-player-name> has logged out!
[2019.06.12-17.40.25:628][122]LogAIModule: Creating AISystem for world Online
[2019.06.12-17.40.25:635][122]LogLoad: Game class is 'MyGameMode_C'
[2019.06.12-17.40.25:635][122]LogTemp: Display: ParseSettings for GameNetDriver
[2019.06.12-17.40.25:635][122]LogTemp: Display: ParseSettings for OculusNetDriver_1
[2019.06.12-17.40.25:635][122]LogTemp: Display: ParseSettings for GameNetDriver
[2019.06.12-17.40.25:635][122]LogNet: ReplicationDriverClass is null! Not using ReplicationDriver.
[2019.06.12-17.40.25:635][122]PacketHandlerLog: DDoS detection status: detection enabled: 0 analytics enabled: 0
[2019.06.12-17.40.25:635][122]PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent)
[2019.06.12-17.40.25:635][122]LogNet: Verbose: Init as a listen server
[2019.06.12-17.40.25:636][122]LogWorld: Bringing World /Game/Maps/Online.Online up for play (max tick rate 0) at 2019.06.12-10.40.25
[2019.06.12-17.40.25:637][122]LogWorld: Bringing up level for play took: 0.000927
[2019.06.12-17.40.25:637][122]LogOnlineVoice: Oculus: Stopping networked voice for user: 0
[2019.06.12-17.40.25:637][122]LogBlueprintUserMessages: [MyGameMode_C_0] <host-player-name> logged in
[2019.06.12-17.40.25:639][122]LogLoad: Took 0.076307 seconds to LoadMap(/Game/Maps/Online)
[2019.06.12-17.40.31:626][495]LogNet: Verbose: NotifyAcceptingConnection: Server Online accept
[2019.06.12-17.40.31:626][495]LogNet: Verbose: New incoming peer request: <client-player-id>
[2019.06.12-17.40.31:626][495]LogNet: Verbose: Accepting peer request and waiting for challenge: <client-player-id>
[2019.06.12-17.40.32:885][573]LogNet: Verbose: <client-player-id> changed network connection state
[2019.06.12-17.40.37:451][847]LogSlate: Window 'OculusPlatformSample (64-bit Development PCD3D_SM5) ' being destroyed

CLIENT
[2019.06.12-19.16.52:311][344]LogBlueprintUserMessages: [OSSSessionWidget_Blueprint_C_0] Added Friend
[2019.06.12-19.16.53:437][413]LogOnline: Display: OSS: Trying to join <client-player-name>'s session
[2019.06.12-19.16.53:437][413]LogBlueprintUserMessages: [OculusFriendSessionButton_C_0] Join Friend's Session
[2019.06.12-19.16.53:810][437]LogTemp: Warning: On Join session Complete - OSSSessionWidget
[2019.06.12-19.16.53:810][437]LogOnline: Display: OSS: Seamless Travel Set to : False
[2019.06.12-19.16.53:810][437]LogOnline: Display: OSS: Got back <client-player-name>'s session: Game
[2019.06.12-19.16.53:810][437]LogOnline: Display: OSS: Not the session owner
[2019.06.12-19.16.53:810][437]LogOnline: Display: OSS: Calling ClientTravel to: <host-player-id>.oculus
[2019.06.12-19.16.53:810][437]LogOnline: Display: OSS: Seamless Travel Set to : True
[2019.06.12-19.16.53:810][437]LogBlueprintUserMessages: [OSSSessionWidget_Blueprint_C_0] Session Active
[2019.06.12-19.16.53:810][437]LogTemp: Warning: On Join session Complete - OSSSessionWidget
[2019.06.12-19.16.53:810][437]LogOnline: Warning: OSS: The World Does Not Exist.
[2019.06.12-19.16.53:825][437]LogNet: Browse: <host-player-id>.oculus//Game/Maps/Main
[2019.06.12-19.16.53:825][437]LogTemp: Display: ParseSettings for GameNetDriver
[2019.06.12-19.16.53:825][437]LogTemp: Display: ParseSettings for OculusNetDriver_1
[2019.06.12-19.16.53:825][437]LogTemp: Display: ParseSettings for PendingNetDriver
[2019.06.12-19.16.53:825][437]LogNet: Verbose: Connecting to host: unreal://<host-player-id>.oculus//Game/Maps/Main
[2019.06.12-19.16.53:825][437]PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent)
[2019.06.12-19.16.55:454][539]LogNet: Verbose: <host-player-id> changed network connection state
[2019.06.12-19.16.55:454][539]LogNet: Verbose: <host-player-id> is connected[2019.06.12-19.17.07:691][167]LogSlate: Window 'OculusPlatformSample (64-bit Development PCD3D_SM5) ' being destroyed

More info:

DefaultEngine.ini

[OnlineSubsystem]
DefaultPlatformService=Oculus
bHasVoiceEnabled=true
[OnlineSubsystemOculus]
bEnabled=true
OculusAppId=<appId> <-- using proper Id here / entitlement check passes
[Voice]
bEnabled=true
[/Script/OnlineSubsystemOculus.OculusNetDriver]
ServerTravelPause=4.0
[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemOculus.OculusNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")
[/Script/OnlineSubsystemOculus.OculusNetDriver]
NetConnectionClassName="/Script/OnlineSubsystemOculus.OculusNetConnection"

Any help would be much appreciated

Cheers!
0 REPLIES 0