Hi guys,
I am integrating dedicated server and listen server functionality in a game. The issue is that each of these modes requires a different Net Driver in the DefaultEngine.ini
file. Is there a way to add both drivers in this file, and switch between them in realtime? I can add them as shown below, but then how would you switch?
[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemUtils.IpNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
+NetDriverDefinitions=(DefName="EOSNetDriver",DriverClassName="OnlineSubsystemEOSCore.NetDriverEOSCore",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
GameNetDriver
is used for the dedicated server, and EOSNetDriver
is used for the EOS listen server (for creating/finding/joining sessions).