How do I organize multiple sessions happening at once?

I’m trying to make a simple 1v1 dual game, and I want to know how I would organize multiple games going on at once. Is there some blueprint type that is assigned to each game or session, like a Session Blueprint, or should I do everything in the level blueprint. I didn’t think of this while making my game in the beginning and did a lot of stuff in the Game Instance, but that is replicated to all clients playing no matter what game they are in, right? For instance, I would like a function that would return all players connected to a session, do something with them, and all without messing with any of the other running 1v1’s.

Thanks for your help.

https://docs.unrealengine.com/en-us/Engine/Blueprints/UserGuide/OnlineNodes

the Find Session node returns an array of all the sessions found, with this info you can then create a list on the hud displaying the information of each one and let the player choose which one to connect to

Yes, I understand that I can get the session from there. But is there a space where I can store session specific information? People say that the game state controls the state of the game, the “scores of the teams” and so on. Is there an instance of the game state for each session? Because I could use that to control session specific information.

i honestly don’t know, but you can try displaying the info of the game state and then setting a new value, create a new session and then see if it displays the previously set value

I hope you have a solution by now, if not…

From what I am reading, it sounds like you have a match sessions. Within this particular match session you have a duels game mode running with a particular map. However, it sounds like you want to change this so that you can have multiple duels matches to occur within the same map at the same time? To do this, you would have to program the logic into the game mode to have multiple “sub-matches” within the one match session. You need to have it limited so that this one session does not get over used. 50 submatches of 1v1s will have the same cpu usage as 1 normal match between 100 players plus some extra for handling different sub-matches. So you may want to limit it to something lower than 50 sub-matches depending on the hardware that will be running the servers. Each sub-match will have to have its own variables for player winner, loser, and also would have to implement a different timer clocks for each submatch which would set off different async events/functions. So that when the winner of a sub-match happens you can trigger a function or event to handle it. All of that would just go into the same game mode. You might have to modify the game state as well to handle the sub-matches. On gamestate = running, Prepare sub-matches gamestate, Start SubMatches gamestate, Finish SubMatch gamestate, All Sub Matches Finished gamestate, ect.

Hope this helps you or someone else looking for answers for same type of question.