batram / UCH-EvenMorePlayers

Ultimate Chicken Horse mod for more than 4 players.
The Unlicense
54 stars 0 forks source link

Join games in progress #9

Open batram opened 1 year ago

batram commented 1 year ago

It would be a nice feature if players could join games that are currently in progress.

Problems:

Todo:

batram commented 1 year ago

Started playing around in the branch ProgressJoin

a few notes:

//ignore MatchProgress 
UnityMatchmaker.CheckHostConnectivity
PickableNetworkButton.OnAccept
??SteamMatchmakingLobby.GetMatchProgress
??GamesparksMatchmakingLobby.GetMatchProgress

//NetworkLobbyManager can't accept new connection [hostId: 0 connectionId: 132 isReady: False channel count: 4], not in lobby and game already in progress.
NetworkLobbyManager.OnServerConnect

//had no valid player controller for
LobbyManager.DisconnectBrokenClients

//LobbyManagerManager.AbortGameInProgress

//Server: Received "I should not be here" message from player 2
//Client: 
//  Quitting without a treehouse or game controller!
//  Abort reason set to Lost connection to the multiplayer session
LobbyManager.OnLobbyClientSceneChanged

- Client connects and no longer gets kicked, but stuck in loading screen
- Client debug message:
    Scene to loaded level in progress
- Client errors: 
    Level not set when setting camera UnitBufferm preventing null exception [GameControl.Start => ZoomCamera:SetUnitBuffer]
    Could not find target for network state message. [Smooth.NetworkState.Deserialize]

Next step: Get past the loading screen to see the level in progress ...