I’m using the Advanced Vehicle Template as a playground for a lobby system I’m working on, however I’m running into some issues. When I play in the editor it works fine, I can create sessions and I can join them - but when I package the game I am unable to find any sessions. Here’s how I create my advanced session*(screenshots are linked)*;
http://i.imgur.com/9yirZevm.png
Neither strings are being output, so it doesn’t seem like it’s failing. Here’s how I search for sessions;
http://i.imgur.com/3tKxIGzm.png
Again, string isn’t being output. But the refreshing is done very fast, much faster than it’s done in the editor. Whether this is supposed to be or points towards something being wrong - I don’t know.
Target.cs;
Type = TargetType.Game;
bUsesSteam = true;
Build.cs;
PublicDependencyModuleNames.AddRange(new string] {
"OnlineSubsystem",
"OnlineSubsystemUtils"
});
DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");
DefaultEngine.ini;
[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")
[OnlineSubsystem]
DefaultPlatformService=Steam
PollingIntervalInMs=20
bHasVoiceEnabled=true
[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
GameServerQueryPort=27015
bRelaunchInSteam=false
GameVersion=1.0.0.0
bVACEnabled=1
bAllowP2PPacketRelay=true
P2PConnectionTimeout=90
[Voice]
bEnabled=true
[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="/Script/OnlineSubsystemSteam.SteamNetConnection"
If you can spot some error on my end or have any ideas as to what may be wrong - I’d greatly appreciate it!
Edit:
I just noticed this when packaging the game;
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: Execution of commandlet took: 20.58 seconds
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.05-21.15.14:040] 0]LogOnline:Display: NULL: FOnlineSubsystemNull::Shutdown()
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.05-21.15.14:040] 0]LogOnline:Display: Unloading online subsystem: STEAM
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.05-21.15.14:040] 0]LogOnline:Display: Unloading online subsystem: NULL
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 26,5209299s to run UE4Editor-Cmd.exe, ExitCode=0
Is that normal or…? :rolleyes: