# The system to find for a session, if it does not find one, create a new session

**URL:** <https://forums.unrealengine.com/t/the-system-to-find-for-a-session-if-it-does-not-find-one-create-a-new-session/794439>\
**Category:** Blueprint\
**Tags:** onlinesubsystem, online, sessions, unreal-engine, session, Blueprint, question\
**Created:** [March 20, 2023, 12:01am UTC](https://forums.unrealengine.com/t/the-system-to-find-for-a-session-if-it-does-not-find-one-create-a-new-session/794439 "2023-03-20T00:01:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AstralnyYoutube](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AstralnyYoutube](https://forums.unrealengine.com/u/AstralnyYoutube)\
**Post date:** [March 20, 2023, 12:01am UTC](https://forums.unrealengine.com/t/the-system-to-find-for-a-session-if-it-does-not-find-one-create-a-new-session/794439/1 "2023-03-20T00:01:30Z")

</div>

**Good morning,**

I want to create a system that is based on finding a session, but if none exists, it should be created. However, if it finds anything, it is to join the found session.

Something similar can be found in a game like:

- Valorant
- League of legends  
There is no server list, the game is searched automatically and the players are matched in the same way

In this system, therefore, I used the plugin:  
Advanced Sessions Plugin  
and its steam subsystem

in the attached graphic, these are my attempts to do it… but as you can easily guess… I failed

 ![sessions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/1/381c6aa7b46fa44bfebb2a53225c6f50eb74e65a.png)

**That’s why I’m writing here, is there a way to do this system?**

**Additional information:** The blueprint was made in the blueprint widget - as you can see in the attached picture, after pressing the “Find Game” button, the current action is performed. Tests performed on a standalone game, with 2 players  
Action effect now:  
Let’s say we have client 1 and client 2, so:  
When one of the customers clicks “Find Game”, the result is:

- there is a connection with the print string “Hello”
- Session found but failed to join - how come? There are no sessions yet!
- Successfully created a new session  
The next click on “Find Game” doesn’t seem to give anything anymore, because sometimes it will display a message that it can’t create a new session… sometimes even with a long delay

As for the second client … he can’t do anything … literally clicking on “Find Game” does nothing, even the messages are not displayed

**What Can I do?**

---

<div class="post-metadata">

**Author:** ![AstralnyYoutube](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AstralnyYoutube](https://forums.unrealengine.com/u/AstralnyYoutube)\
**Post date:** [March 20, 2023, 12:06am UTC](https://forums.unrealengine.com/t/the-system-to-find-for-a-session-if-it-does-not-find-one-create-a-new-session/794439/2 "2023-03-20T00:06:33Z")

</div>

Just playing around, I noticed that in the selection of testing in “selected viewport”  
works as good as possible, still finds a session the first time it shouldn’t exist but can’t join… so it creates a new session. On the other hand, in the second window, after creating a new session in the first window, when I click find game, it immediately says that it has found a session

---

<div class="post-metadata">

**Author:** ![AstralnyYoutube](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AstralnyYoutube](https://forums.unrealengine.com/u/AstralnyYoutube)\
**Post date:** [March 20, 2023, 12:09am UTC](https://forums.unrealengine.com/t/the-system-to-find-for-a-session-if-it-does-not-find-one-create-a-new-session/794439/3 "2023-03-20T00:09:31Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/4/184ea577bbec072d478c3e99fd23f789f22ec5ca.png)  
As I mentioned in the previous post, in “selected viewport” it works fine, but these errors pop up after turning off the tests

---

<div class="post-metadata">

**Author:** ![RafaLeao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RafaLeao](https://forums.unrealengine.com/u/RafaLeao)\
**Post date:** [October 9, 2024, 2:06pm UTC](https://forums.unrealengine.com/t/the-system-to-find-for-a-session-if-it-does-not-find-one-create-a-new-session/794439/4 "2024-10-09T14:06:43Z")

</div>

Hi,  
Did you figure it out?
