stephensamonte / Unreal-Virtual-University

Learning Unreal Engine by creating a game that takes place at VT
1 stars 0 forks source link

Blueprint Multiplayer: Find a Match Graph | 11 | v4.11 Tutorial Series | Unreal Engine #33

Closed stephensamonte closed 4 years ago

stephensamonte commented 5 years ago

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

stephensamonte commented 5 years ago

Search, host, connect to a match.

stephensamonte commented 5 years ago

I have stopped at the section talking about integrating Steam Subsystem: Video Section

stephensamonte commented 4 years ago

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"
stephensamonte commented 4 years ago

TODO: need to replace steam app idd with own steam app Id: image

stephensamonte commented 4 years ago

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

stephensamonte commented 4 years ago

For this project we are going to use Steam.

stephensamonte commented 4 years ago

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.

image

Could also find the project in the file explorer, right click and choose "Launch game" image

stephensamonte commented 4 years ago

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:

Annotation 2020-03-18 015152