Rss

  • youtube

SteamCore & Finding and Creating Multiplayer Games

Recommended

It’s recommended but not required that you obtain and use the SteamCore:: Plugin

DefaultEngine.ini

First, we have to configure our DefaultEngine.ini file to setup SteamNetworking, the ini file is located in your ProjectDir/Config folder.

[URL]
GameName=Triggered
Port=7777

[OnlineSubsystem]
DefaultPlatformService=Steam

[OnlineSubsystemSteam]
bEnabled=True
SteamDevAppId=480
bVACEnabled=True
SteamAppId=480

[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[/Script/OnlineSubsystemUtils.IpNetDriver]
MaxClientRate=1000000000 
MaxInternetClientRate=1000000000
InitialConnectTimeout=120.0 

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"

Creating an Online Session

The above example will create a simple Online Session using Steam, which we will later be able to find using FindSteamCoreSessions.

Finding and Joining an Online Session

To find sessions we use the “FindSteamCoreSessions” node, note here that you will NOT be able to find your own session here, it will be filtered out from the search result.

Joining a session is done by using the “JoinSession” node

Finding & Joining Dedicated Servers

Depending on your setup, if you’re using SteamNetworking (Steam P2P) or not, the joining command is a little different.

First example is using SteamNetworking, the second method is using the traditional way of joining via IP, you can find more information here on setting up a dedicated server