x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Getting max amount of players in a session, and getting the host of the session/game

After creating a session using the Create Session node in a blueprint, and switching to a new map as listen server alt text

I want to get the maximum amount of players that this session can hold. I guess I can do that by storing the amount of players in a Game Instance, or something like that. I'm wondering if there's a node to access the current session and get its data, because its odd that I can create a session but not access its variables.

In addition, I want to find the controller that is the host of the current session, and I can maybe patch something to do so, but isn't there maybe a node that does that?

Thank You.

Product Version: Not Selected
Tags:
more ▼

asked Mar 09 '15 at 12:17 PM in Blueprint Scripting

avatar image

Snowcrash5
97 12 12 17

avatar image Panda Studios Jul 05 '15 at 01:51 PM

This feature would be nice!

It's indeed weird you can't get data from current session with a node.

avatar image skeleton60 Nov 24 '15 at 02:11 PM

i would like to know too how to retrieve some session information of the current session

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

This is something you can do via c++, you can setup a function that is blueprintcallable and get the session properties with:

     IOnlineSessionPtr Sessions = IOnlineSubsystem::Get()->GetSessionInterface();
     FOnlineSessionSettings* CurrentSettings = Sessions->GetSessionSettings(GameSessionName);
     int32 MaxConections = CurrentSettings->NumPublicConnections;
 

more ▼

answered Nov 11 '17 at 12:00 AM

avatar image

Davixe
184 18 20 34

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question