Closed stephensamonte closed 4 years ago
Search, host, connect to a match.
I have stopped at the section talking about integrating Steam Subsystem: Video Section
Adding ini configuration:
https://docs.unrealengine.com/en-US/Programming/Online/Steam/index.html
DefaultEngine.ini
[/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"
TODO: need to replace steam app idd with own steam app Id:
If not using Steam or are using some other sub system or just want lan plan you could delete some sections and just include the following in default.ini:
### DELETE THIS SECTION
[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
[OnlineSubsystem]
DefaultPlatformService=Steam
### DELETE THIS SECTION
[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
### DELETE THIS SECTION
[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"
So you just have:
[OnlineSubsystem]
DefaultPlatformService=Steam
Then set DefaultPlatformService to null like this:
[OnlineSubsystem]
DefaultPlatformService=null
and this will allow for lan play
For this project we are going to use Steam.
Note: the only way to access to the subsystem is through a standalone game. This means you cant just hit play in the editor. You have to launch the game as a stand alone.
Could also find the project in the file explorer, right click and choose "Launch game"
I was getting an issue seeing the Steam badge to appear. To resolve the issue, I followed this tutorial: https://medium.com/swlh/ue4-tutorial-how-to-connect-a-multiplayer-game-with-steam-ccc89bd8d8a9
I opened the project, clicked edit, plugins, then added the Steam subsystem plugin.
Now I see the Steam indicator:
Blueprint Multiplayer: Find a Match Graph | 11 | v4.11 Tutorial Series | Unreal Engine https://www.youtube.com/watch?v=ngBI40tjirE&list=PLZlv_N0_O1gYqSlbGQVKsRg6fpxWndZqZ&index=11