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"

Multiplayer Mac can't Find Sessions using Steam

I have a Mac project that lets the user host a game session or join an existing session through Steam using Blueprints. The DefaultEngine.ini file already has the Steam subsystem configuration and is using the temporary 480 app id. But whenever the game is tested using 2 computers, neither of them can find the session created on the other one.

After packaging the game, adding it to the Steam library of 2 Steam accounts in 2 different computers, the Find Sessions node will return an empty array even after setting the max results to 1,000 or so. Also, after launching the game through Steam, the Steam overlay won't load.

I've noticed that the Steamworks version used by the engine (4.12) is 1.32. Considering that the current version is 1.37, should I update it (if so, how)? Could this be the reason why the overlay and game hosting are failing?

I also tried using a plugin called Advanced Session Plugin which in theory can filter the sessions search to find only my game sessions with no success.

Product Version: UE 4.12
Tags:
more ▼

asked Aug 09 '16 at 11:23 PM in Packaging & Deployment

avatar image

Rod A
1 2 5

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

1 answer: sort voted first

Hey Rodrigo Araujo,

I just made an project and ran through building it for Mac and running the game on two computers. I was able to create the session on one and join with the other.

A few things to keep in mind:

Mac will want you to add the project as a "Non-Steam Game", which you can do in Steam, on the bottom left side of the window.

Also, make sure your DefaultEngine.ini has the settings for Steam:

 [/Script/Engine.GameEngine]
 +NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
 
 [OnlineSubsystem]
 DefaultPlatformService=Steam
 
 [OnlineSubsystemSteam]
 bEnabled=true
 SteamDevAppId=480
 
 [/Script/OnlineSubsystemSteam.SteamNetDriver]
 NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"

As well as make sure that Steam has been setup for UE4 and the engine has been re-compiled with it:

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

more ▼

answered Aug 15 '16 at 04:03 PM

avatar image

ImVawx ♦♦ STAFF
6.7k 114 17 127

avatar image Rod A Aug 15 '16 at 05:30 PM

Ok so the settings also go in the DefaultGame.ini, not only the DefaultEngine.ini.

About the Steam setup where I need to recompile the engine, does this mean downloading the source files and building it from scratch?

avatar image Sir Quizalot Sep 27 '16 at 07:23 PM

The binary should have steam so you don't need to build from source. You don't need those settings in DefaultGame.ini only DefaultEngine.ini

(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