I am creating a Multiplayer game which uses Steam.
Now I already have a AppID and the game is available on Steam, but for some reason I am having issues when creating a session.
This is the relevant part which gives the error when I cmd run a Standalone Game with -game -log:
[2021.07.02-11.05.54:525][530]LogModuleManager: Warning: ModuleManager: Unable to load module 'SocketsSTEAM' - 0 instances of that module name found.
[2021.07.02-11.05.54:526][530]LogSockets: Warning: Unable to load SocketSubsystem module STEAM
[2021.07.02-11.05.54:565][530]LogNet: ReplicationDriverClass is null! Not using ReplicationDriver.
[2021.07.02-11.05.54:566][530]LogNetCore: DDoS detection status: detection enabled: 0 analytics enabled: 0
[2021.07.02-11.05.54:587][530]LogSockets: Warning: SteamSockets: Cannot get information on an invalid socket handle, returning null
[2021.07.02-11.05.54:588][530]LogNet: Warning: Could not create socket for bind address 76561199171923879, got error SteamSockets: setsockopt SO_BROADCAST failed (0)
[2021.07.02-11.05.54:589][530]LogSockets: Warning: SteamSockets: Cannot get information on an invalid socket handle, returning null
[2021.07.02-11.05.54:589][530]LogNet: Warning: Could not create socket for bind address ::, got error SteamSockets: setsockopt SO_BROADCAST failed (0)
[2021.07.02-11.05.54:589][530]LogNet: Warning: Encountered an error while creating sockets for the bind addresses.
[2021.07.02-11.05.54:590][530]LogNet: Warning: Failed to init net driver ListenURL: /Game/Maps/PlayerHub?listen:
[2021.07.02-11.05.54:597][530]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = NetDriverListenFailure, ErrorString = , Driver = GameNetDriver IpNetDriver_0
[2021.07.02-11.05.54:597][530]LogNet: Warning: Network Failure: GameNetDriver[NetDriverListenFailure]:
[2021.07.02-11.05.54:598][530]LogNet: NetworkFailure: NetDriverListenFailure, Error: ''
[2021.07.02-11.05.54:610][530]LogWorld: Failed to listen:
[2021.07.02-11.05.54:610][530]LogNet: DestroyNamedNetDriver IpNetDriver_0 [GameNetDriver]
[2021.07.02-11.05.54:665][530]LogNet: Error: LoadMap: failed to Listen(/Game/Maps/PlayerHub?listen)
It says there is no module to load called SocketsSTEAM.
your serverās ports must be between 27015 and 27050 to start listening with SteamNetDriver. If the ports are exactly 27015 or 27050 it wonāt work, it needs to be between that range, if itās out of range the server will also work, but it wonāt show up in the steam server list. Start your server like ā-log -port 27022ā This link will help you: Ports Required for Steam . Do not forget to open the ports on the modem and windows, you also need to disable the firewall.
Thanks for your post! I donāt know if it helped the person initially asking but I just found it and it seems the changes I borrowed from your config file was able to make SteamSockets work for me in Lyra.
I havenāt done any extensive testing with it yet but thanks again!
I did get it working and was able to create/join games with my Lyra example through Steam. Iād like to note though that there seems to be a bug with 5.1 that causes the server to refuse packets from the client sometimes. I canāt reproduce it all the time but youāll see it in the console output on the server side if it canāt verify the packets.
One last note, ābUseLobbiesIfAvailable = falseā I noted could also have something to do with me being able to get joining games working properly- but that stuff comes after Steam Sockets are fixed and the server can create a game properly.
Did you use Shipping build when connecting successfully? Did you disable net.VerifyNetSessionID and VerifyNetClientID? I was able to connect in Development build but not in Shipping.
I havenāt tried cooking a shipping build yet but I am aware that there was a bug that has since been fixed in those console commands. I am not sure if my github source is from before or after that- but I know what the error message looks like and Iām a ways away from shipping what Iām working on.
I had to make false those flags as well as fixing the code which was wrong cvar. (here) Now I can connect in Shipping build successfully. I hope it wonāt broke someway I will make dedicated server support for this game and it looks like itāll be much more difficult since I spent 3 months just for connecting P2P. But it helps me to learn a lot about Sockets, Debugging, Source Version etc.
The NetDriverDefinitions change that you mentioned did make it so that I could create P2P sessions properly and they show up in the āBrowseā list as expected, but when I try to join them I get a net driver error like this.
[2023.05.29-00.34.37:923][853]LogCommonSession: Found session (UserId: 76561199286277723, UserName: pattern, NumOpenPrivConns: 0, NumOpenPubConns: 15, Ping: 9999 ms
[2023.05.29-00.34.39:155][ 30]LogUIActionRouter: Display: Applying input config for leaf-most node [W_NonInteractiveSpinner_C_0]
[2023.05.29-00.34.39:155][ 30]LogUIActionRouter: Display: [User 0] Focused desired target W_NonInteractiveSpinner_C_0
[2023.05.29-00.34.39:299][ 51]LogUIActionRouter: Display: Applying input config for leaf-most node [W_SessionBrowserScreen_C_0]
[2023.05.29-00.34.39:299][ 51]LogUIActionRouter: Display: [User 0] Focused desired target LyraListView
[2023.05.29-00.34.39:299][ 51]LogOnlineSession: STEAM: Using P2P Data for Connection Serialization
[2023.05.29-00.34.39:299][ 51]LogOnlineSession: Warning: STEAM: Unable to set search parameter OSSv1: Value=true : Equals : -1
[2023.05.29-00.34.39:299][ 51]LogOnlineSession: Warning: STEAM: Unable to set search parameter LOBBYSEARCH: Value=true : Equals : -1
[2023.05.29-00.34.39:303][ 51]LogNet: Browse: steam.76561199286277723/Game/System/FrontEnd/Maps/L_LyraFrontEnd
[2023.05.29-00.34.39:303][ 51]LogNet: CreateNamedNetDriver failed to create driver from definition GameNetDriver
[2023.05.29-00.34.39:303][ 51]LogNet: CreateNamedNetDriver failed to create driver PendingNetDriver from definition GameNetDriver
[2023.05.29-00.34.39:303][ 51]LogNet: Warning: Error initializing the pending net driver. Check the configuration of NetDriverDefinitions and make sure module/plugin dependencies are correct.
[2023.05.29-00.34.39:303][ 51]LogNet: Warning: Travel Failure: [PendingNetGameCreateFailure]: Error creating network driver.
[2023.05.29-00.34.39:303][ 51]LogCommonSession: Warning: TravelLocalSessionFailure(World: /Game/System/FrontEnd/Maps/L_LyraFrontEnd.L_LyraFrontEnd, FailureType: PendingNetGameCreateFailure, ReasonString: Error creating network driver.)
[2023.05.29-00.34.39:303][ 51]LogNet: TravelFailure: PendingNetGameCreateFailure, Reason for Failure: 'Error creating network driver.'
[2023.05.29-00.34.39:303][ 51]LogNet: Warning: Travel Failure: [ClientTravelFailure]:
[2023.05.29-00.34.39:303][ 51]LogCommonSession: Warning: TravelLocalSessionFailure(World: /Game/System/FrontEnd/Maps/L_LyraFrontEnd.L_LyraFrontEnd, FailureType: ClientTravelFailure, ReasonString: )
[2023.05.29-00.34.39:303][ 51]LogNet: TravelFailure: ClientTravelFailure, Reason for Failure: ''
[2023.05.29-00.34.39:304][ 51]LogLoadingScreen: Showing loading screen when 'IsShowingInitialLoadingScreen()' is false.
[2023.05.29-00.34.39:304][ 51]LogLoadingScreen: We have pending travel (the TravelURL is not empty)
[2023.05.29-00.34.39:327][ 51]LogLoadingScreen: Loading screen showing: 1. Reason: We have pending travel (the TravelURL is not empty)
[2023.05.29-00.34.39:328][ 52]LogNet: Browse: /Game/System/FrontEnd/Maps/L_LyraFrontEnd?closed
[2023.05.29-00.34.39:329][ 52]LogNet: Connection failed; returning to Entry
[2023.05.29-00.34.39:329][ 52]LogLoad: LoadMap: /Game/System/FrontEnd/Maps/L_LyraFrontEnd?closed
Dude, /Script/SteamSockets.SteamSocketsNetDriver your words are wrapped by wrong quotes !
ā ā ā instead of ā " ā and vice versa . it worked after that on my side!