CreateNamedNetDriver failed to create driver from definition GameNetDriver

I’ve made a project using the Cardinal Menu System and Advanced Sessions and Advanced Steam Sessions plugins. When joining a session through steam, the game crashes with a popup saying “unreal assertion failed: NetDriver pendingnetgame.cpp line:43” and this in the log:

LogNet: CreateNamedNetDriver failed to create driver from definition GameNetDriver
LogNet: CreateNamedNetDriver failed to create driver PendingNetDriver from definition GameNetDriver

Joining has worked previously in this same project, and I don’t know what I have changed that broke it. My DefaultEngine.ini has these relevant lines:

[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=>(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")

[OnlineSubsystem]
DefaultPlatformService=Steam
PollingIntervalInMs=20
bHasVoiceEnabled=false

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
GameServerQueryPort=27015
bRelaunchInSteam=false
GameVersion=1.0.0.0
bVACEnabled=1
bAllowP2PPacketRelay=true
P2PConnectionTimeout=90

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="/Script/OnlineSubsystemSteam.SteamNetConnection"

I’m not sure what to try, I’ve rebuilt the plugins to no effect. Thanks for any guidance.

Same issue :frowning:

The error message suggest that there is an issue with the network driver in your project.

One possible cause of this issue is that the SteamNetDriver class is not properly configured or is missing in your project. This can happen if the plugin is not correctly installed or if the class is not being correctly referenced in your DefaultEngine.ini file.

Check that the SteamNetDriver class exists in the project, and that it is being correctly referenced in the DefaultEngine.ini file.

If the problem persist try to check the versions of the Advanced Sessions and Advanced Steam Sessions plugins and make sure that they are compatible with the version of UE4 or UE5 you are using. Also make sure that the Steam SDK is updated to the latest version.

Another possible cause could be that the SteamDevAppId is not set correctly in the OnlineSubsystemSteam section of your DefaultEngine.ini. Make sure that this value is set to the correct App ID for your game on Steam.

Finally, you can try to delete the DefaultEngine.ini file and the binaries folder in your project and rebuild the project, this should help you to regenerate the files and fix any issues with them.

It could likely be that the default included files are conflicting in the latest update.

I have same issue but i can connect with Editor and Standalone game. When I package the project for Shipping build, I can’t connect. Is engine changing NetDriver when packaging the game? Can I use the same NetDriver as Editor’s one? @EliasWick

I am not fully sure about it, but it might be the case. You probably need to start the game from the same executable to be able to connect to the same server. I can’t say for sure though.