Description

This is a Regression.
4.26.2 - Binary - no issue creating a session.
4.27.1 - Binary - no issue creating a session if you convert a previously working 4.26.2 project.
4.27.1 - Binary - Fails to create session with LogOnlineSession: Warning: STEAM: Failed to initialize game server with Steam!
//UE4/Release-4.27 CL18325204 - p4v - Fails to create session with LogOnlineSession: Warning: STEAM: Failed to initialize game server with Steam!

Steam sessions are failing to create when using the Create Session Node.

Steps to Reproduce
  1. Create a Blank project with Starter Content
  2. Enable the Online Subsystem Steam plugin then restart the editor
  3. Open the DefaultEngine.ini file from the projects Config Folder
  4. Add these lines in the DefaultEngine.ini at the bottom:
    +NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
    
    [OnlineSubsystem]
    DefaultPlatformService=Steam
    bHasVoiceEnabled=false
    
    [OnlineSubsystemSteam]
    bEnabled=true
    SteamDevAppId=480
    
    [/Script/OnlineSubsystemSteam.SteamNetDriver]
    NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"
    
  5. Save then close the DefaultEditor.ini
  6. Back in the editor open the level blueprint
  7. Create an Event Begin Play node
  8. Drag off the node then add a Delay node for 3 seconds
    • This is to let the player state start
  9. Drag off the delay node then add a Create Session Node
  10. Right click then get a Get Player Controller node
  11. Connect the Get Player Controller node to the Player Controller input pin on the Create Session Node
  12. Drag off the On Success execution pin from the Create Session node then create a Print String node
  13. Change the In String to say "Session Created"
  14. Drag off the On Failure execution pin from the Create Session node then create a Print String node
  15. Change the In String to say "Session Failed to Create"
  16. Compile then save
  17. Close the Editor
  18. In the file explorer right click the projects .uproject file then select Launch Game

Expected Results:
Game launches and after a few seconds displays "Session Created"

Actual Results:
"Session Failed to Create" displays with

LogOnlineSession: Warning: STEAM: Failed to initialize game server with Steam!

in the logs.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-136316 in the post.

16
Login to Vote

Unresolved
ComponentDocs
Affects Versions4.27.1
Target Fix5.1
CreatedNov 30, 2021
UpdatedMay 26, 2022