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"

[Dedicated Server] How to setup a Lobby and Sessions ?

Hi everyone,

I am trying to create a Moba type game, and so I have to make a place where players can connect and join newly created sessions, on a dedicated server.
What should be the best way to do this kind of behaviour ?

I have already check the ShooterGame Example, but it seems to be for Listening server.
I read that OnlineSubsystemNull allows to create a custom master server, for the use of OnlineSubsystem, but what should I do with it ?

Cheers,

Ismuur

Product Version: UE 4.7
Tags:
more ▼

asked May 23 '15 at 01:02 PM in C++ Programming

avatar image

Ismuur
118 11 13 18

avatar image Ismuur Jun 06 '15 at 12:52 PM

Any way would be really appreciated !

avatar image Shadowriver Jun 06 '15 at 03:44 PM

Dedicated Server need to be hosted somewhere, so if you want dedicated servers you would need to create sessions similar to shooter, where it restarts all the time. If you want to have sessions like in typical MOBA, one of the players need to be a host, or else some othersubsystem has system to host somewhere else but i don't think so.

avatar image Ismuur Jun 06 '15 at 04:07 PM

Hi Shadowriver and thanks for the answer ! :)

I don't really want a player to be the host of the session, because of cheats issues. Isn't it possible to host a session on a dedicated server ?

avatar image Venros Jul 21 '15 at 11:52 PM

bumping this, as Iam having issues with the same thing. Shootergame does not work under dedicated server.

avatar image Rob-bb Aug 01 '15 at 04:26 AM

So it appears not to be possible based on the lack of answers, but I don't believe that, Some one must have done it.

avatar image Denis Lambert Nov 12 '16 at 10:03 PM

One year later... no more anwser....

avatar image rsaz Sep 25 '17 at 02:07 AM

Same problem here. What i realized is that run a dedicated server it already create a session for you. When you try to create a customized session for example inside of your game instance it complains about player state... I feel im close to find a solution. Please mail me then we can discuss better about this topic

avatar image ging3399 Feb 13 '18 at 06:29 AM

Have you solved this problem sir?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Well i'm concerned about this too and i found sth similar to what rsaz says, And below is my opinion.

In GameMode has a 'AGameSession' member, which represents a session in it. What rsaz says 'a dedicated server already create a session for you', that's because the function 'InitGame' in 'AGameModeBase' defaultly create a session. So i guess you can override this function in your gamemode to do sth properly.

I think The GameSession member is for managing clients' connection if you have only one dedicated server. When a client is asking for matching just let him login this default session. After that, your server waits for other matching requests until enough. Then open a new session for them and let them go into your MOBA game map. In AGameSession there're several functions accepting SessionName as a parameter thru which i think can manage the session you created.

Am i right or totally wrong :P

Or you can also maintain an array in your gamemode. When you create a session, add it into this array and you can manage multi rooms of game..

more ▼

answered Feb 13 '18 at 06:52 AM

avatar image

ging3399
1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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