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"

Host, Find, Join Sessions By Community

Hello Community,

I like many others are trying to work on Steam and are happy with the implementation of the Blueprint version of Sessions for Host, Find, Join. However, we would like more control and with little documentation regarding Host, Find, Join Sessions using C++ I'd like to get everyone's input for all of us trying to do this task.

I appreciate there is an awesome ShooterGame Sample all in C++ and I would encourage other to spend time and look around, but having spent a number of days dissecting it, I personally am getting confused in some areas.

I am trying to use Steam for the Online Sub System and have successfully integrated this using the following tutorial from Rama (Thanks)

https://wiki.unrealengine.com/Steam,_Using_the_Steam_SDK_During_Development

There is also an Epic version here (Thanks)

https://docs.unrealengine.com/latest/INT/Programming/Online/Steam/index.html

I would like to get enough information together that a Tutorial for creating a simple Host,Find,Join demo for everyone using say the 3rd Person Template.

When we get this completed we should release the demo for free on the Marketplace. I'm willing to put the time into creating the demo for everyone.

Thanks Lyrical

Product Version: UE 4.8
Tags:
more ▼

asked Jul 03 '15 at 08:13 AM in C++ Programming

avatar image

Lyrical
75 7 8 11

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

2 answers: sort voted first

Hi Lyrical,

I'm not sure if you were aware, but the Mulitplayer Shootout demo does have this example setup.

Again, the current implementation of Blueprint Session control is very limited but is a good foundation for you to extend from.

Good luck!

more ▼

answered Jul 03 '15 at 02:51 PM

avatar image

Devero
2.3k 114 62 234

avatar image Lyrical Jul 03 '15 at 06:55 PM

Thanks Devero,

I'm not looked at the Multiplayer Shootout yet so I will do that this weekend.

This thread is not just for me, Once this is sorted I want to release a very simplistic version with no fancy bits so others don't have to go through the issues I'm having.

I'll let you know how this goes.

avatar image Lyrical Jul 03 '15 at 07:20 PM

The Multiplayer Demo is only Blueprints I'm looking at C++ with this thread unless I'm still missing something.

It is interesting however, I've got a Blueprint game working in demo and you can connect to a lobby and travel together etc.

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

ShooterGame is way too heavy to learn the Session thing.

You should better strip off a lot of the ShooterGame Code if you want to learn it that way.

Otherwise, you can try to just recreate the Nodes that you are using in BPs.

Steam or any other Subsystem is not important. It will only allow you to join Internet Games from a Master Server list. Lan Matches on the other hand are working with and without steam. You don't need to change the code for this. UE4 uses wrapper function for this. If Steam is enabled, it will call the Steam version of these functions. You don't have to worry about steam as long as you manage to get the sessions working at all.

I guess the main rundown is:

  • Player who wants to host a game creates a session and opens the map he wants to play

  • Player who wants to Join searches for sessions (without subsystem it is only LAN) and joins the retrieved once

  • Leaving a game or shutting down the listen server will need to destroy the running session

Then there are function for ServerTravel and ClientTravel and i guess you can have a look at the ShooterGame for these.

It isn't that hard to understand (no offense!), you just need to understand the steps to achieve hosting, joining and leaving. Everything else is only adding a bit code (like the ServerTravel).

And the ShooterGame added ALOT of those extras. It got extra SessionResults (instead of the standard once). It uses Slate (which i would not try to learn, since we have UMG by now) and other things that will confuse you.

more ▼

answered Jul 04 '15 at 03:57 PM

avatar image

eXi
6.8k 333 185 470

avatar image Lyrical Jul 05 '15 at 09:58 PM

Thanks for the insight Newest and no offense taken.

I've got the whole blueprint systems working and I'm on the verge of getting something completed in C++ which I'm going to share when I'm done.

I'm going to take another closer look at the ShooterGame as there is always something to learn.

Thanks for all your comments, Keep them coming, we will all eventually benefit from this I hope.

(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