Hello!
I’m trying to setup this plugin without much luck sadly, hopefully someone can help!
I am using 4.25.3 compiled from source with the latest version of the plugin. I want to setup a listen server and connect to it using steam.
I’ve been trying to get it to work with both package builds and just launching with -game, in both 1 and 2 computer setup.
The problem is I believe, that my session doesn’t show up. I’ve also seen a session showing up and I’ve tried to connect to it but I’ve received an “OutdatedClient” error, which makes me think maybe it wasn’t my session after all?
I do get the steam overlay when I launch the game though.
This is my current setup:
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"
Project.Target.cs
bUsesSteam = true;
Project.Build.cs
PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "InputCore", "AdvancedSessions",
"OnlineSubsystem", "OnlineSubsystemSteam" });
BP that creates the session
](filedata/fetch?id=1799495&d=1597128899)
BP that searches the sessions
](filedata/fetch?id=1799496&d=1597129067)
Some relevant logs!
Listen Server Logs:
[2020.08.11-07.00.21:835][459]LogOnlineSession: Warning: STEAM: Can't destroy a null online session (GameSession)
[2020.08.11-07.00.22:196][612]LogOnlineSession: Verbose: OSS: dumping NamedSession:
[2020.08.11-07.00.22:196][612]LogOnlineSession: Verbose: OSS: SessionName: GameSession
[2020.08.11-07.00.22:197][612]LogOnlineSession: Verbose: OSS: HostingPlayerNum: 0
[2020.08.11-07.00.22:199][612]LogOnlineSession: Verbose: OSS: SessionState: Pending
[2020.08.11-07.00.22:199][612]LogOnlineSession: Verbose: OSS: RegisteredPlayers:
[2020.08.11-07.00.22:200][612]LogOnlineSession: Verbose: OSS: 0 registered players
[2020.08.11-07.00.22:200][612]LogOnlineSession: Verbose: OSS: dumping Session:
[2020.08.11-07.00.22:201][612]LogOnlineSession: Verbose: OSS: OwningPlayerName: Grendert
[2020.08.11-07.00.22:202][612]LogOnlineSession: Verbose: OSS: OwningPlayerId: Grendert [0x1A5ABA09480]
[2020.08.11-07.00.22:203][612]LogOnlineSession: Verbose: OSS: NumOpenPrivateConnections: 5
[2020.08.11-07.00.22:203][612]LogOnlineSession: Verbose: OSS: NumOpenPublicConnections: 4
[2020.08.11-07.00.22:204][612]LogOnlineSession: Verbose: OSS: SessionInfo: HostIP: INVALID SteamP2P: 76561198005592313:7777 Type: Lobby session SessionId: Lobby[0x18600000B4A90A9]
[2020.08.11-07.00.22:205][612]LogOnlineSession: Verbose: OSS: dumping SessionSettings:
[2020.08.11-07.00.22:206][612]LogOnlineSession: Verbose: OSS: NumPublicConnections: 5
[2020.08.11-07.00.22:206][612]LogOnlineSession: Verbose: OSS: NumPrivateConnections: 5
[2020.08.11-07.00.22:207][612]LogOnlineSession: Verbose: OSS: bIsLanMatch: false
[2020.08.11-07.00.22:209][612]LogOnlineSession: Verbose: OSS: bIsDedicated: false
[2020.08.11-07.00.22:210][612]LogOnlineSession: Verbose: OSS: bUsesStats: false
[2020.08.11-07.00.22:211][612]LogOnlineSession: Verbose: OSS: bShouldAdvertise: true
[2020.08.11-07.00.22:211][612]LogOnlineSession: Verbose: OSS: bAllowJoinInProgress: true
[2020.08.11-07.00.22:212][612]LogOnlineSession: Verbose: OSS: bAllowInvites: true
[2020.08.11-07.00.22:212][612]LogOnlineSession: Verbose: OSS: bUsesPresence: true
[2020.08.11-07.00.22:213][612]LogOnlineSession: Verbose: OSS: bAllowJoinViaPresence: true
[2020.08.11-07.00.22:213][612]LogOnlineSession: Verbose: OSS: bAllowJoinViaPresenceFriendsOnly: false
[2020.08.11-07.00.22:214][612]LogOnlineSession: Verbose: OSS: BuildUniqueId: 0x00000000
[2020.08.11-07.00.22:214][612]LogOnlineSession: Verbose: OSS: Settings:
[2020.08.11-07.00.22:216][612]LogNet: Browse: /Game/Maps/VillageMap/VillageMap?listen
[2020.08.11-07.00.22:216][612]LogLoad: LoadMap: /Game/Maps/VillageMap/VillageMap?listen
[2020.08.11-07.00.22:216][612]LogWorld: BeginTearingDown for /Game/Maps/MenuMap/MenuMap
[2020.08.11-07.00.22:218][612]LogWorld: UWorld::CleanupWorld for MenuMap, bSessionEnded=true, bCleanupResources=true
[2020.08.11-07.00.22:221][612]LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated
[2020.08.11-07.00.22:257][612]LogAudio: Display: Waited 35.034000 ms for audio thread.
[2020.08.11-07.00.22:261][612]LogAudio: Display: Waited 39.318001 ms for audio thread.
[2020.08.11-07.00.22:297][612]LogAISub: UAISubsystem::~UAISubsystem EnvQueryManager (000001A5BD190600), frame # 28612
[2020.08.11-07.00.22:297][612]LogAISub: UAISubsystem::~UAISubsystem AIPerceptionSystem (000001A5AA300680), frame # 28612
[2020.08.11-07.00.22:299][612]LogSlate: Slate User Unregistered. User Index 8
[2020.08.11-07.00.22:299][612]LogSlate: Slate User Destroyed. User Index 8, Is Virtual User: 1
[2020.08.11-07.00.22:301][612]LogUObjectHash: Compacting FUObjectHashTables data took 1.15ms
[2020.08.11-07.00.39:515][612]LogAIModule: Creating AISystem for world VillageMap
[2020.08.11-07.00.39:516][612]LogAISub: UAISubsystem::UAISubsystem EnvQueryManager (000001A5D2869E00), frame # 28612
[2020.08.11-07.00.39:519][612]LogAISub: UAISubsystem::UAISubsystem AIPerceptionSystem (000001A5D2847D80), frame # 28612
[2020.08.11-07.00.39:520][612]LogLoad: Game class is 'BP_InGameGM_C'
[2020.08.11-07.00.39:521][612]LogNet: ReplicationDriverClass is null! Not using ReplicationDriver.
[2020.08.11-07.00.39:521][612]LogNetCore: DDoS detection status: detection enabled: 0 analytics enabled: 0
[2020.08.11-07.00.39:522][612]LogNet: Display: SteamNetDriver_0 bound to port 7777
[2020.08.11-07.00.39:523][612]PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent)
[2020.08.11-07.00.39:523][612]LogNet: GameNetDriver SteamNetDriver_0 IpNetDriver listening on port 7777
Client trying to find a session:
[2020.08.11-07.03.45:155][544]LogOnlineSession: STEAM: Found 0 lobbies, finalizing the search
[2020.08.11-07.03.47:579][373]LogOnlineSession: Warning: STEAM: Failed to respond IP:164.39.65.146
[2020.08.11-07.03.47:628][391]LogOnlineSession: Warning: STEAM: Failed to respond IP:134.94.168.171
[2020.08.11-07.03.47:630][391]LogOnlineSession: Warning: STEAM: Failed to respond IP:195.24.142.186
One last thing: I’ve also tried to use the unreal CreateSession and SearchSession and the result on the find session is interesting. Looks like steam finds more lobbies than with the advancedSearch, and funny enough the Task finds 1 extra lobby? although it ends up failing?
[2020.08.11-07.14.22:864][313]LogOnline: Warning: OSS: Async task 'FOnlineAsyncTaskSteamFindLobbiesForFindSessions bWasSuccessful: 0 NumResults: 25' failed in 15.052171 seconds
[2020.08.11-07.14.22:866][313]LogOnlineSession: STEAM: Found 24 lobbies, finalizing the search
Sorry for the long post, tried to give as much relevant information as possible, anybody could point out what I’m missing?
Thank you!
Edit: I’ve managed to make it work with Lan only, by setting the bool bIsLan to true and also ?bIsLanMatch=1 when the listen server travels to the map. But still can’t see my session when is not on lan. I’ve also migrated my project to vanilla 25.3 just to double check as well as disabled firewall in case it was somehow blocking. Still no luck
At one point I did get a request of joining into the game by somebody else (obviously failed because wrong version)! which makes me think that my sessions are somehow being created properly, is just me that can’t see them