Description

Steam fails to initialize when using the steamclient file SteamCMD

LogLoad: Game class is 'ShooterGame_FreeForAll'
LogOnline: OSS: Creating online subsystem instance for: Steam
LogOnline: Verbose: STEAM: Steam: Starting SteamWorks. Client [0] Server [1]
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
LogSteamShared: Warning: Steam Dedicated Server API failed to initialize.
LogOnline: STEAM: [AppId: 0] Game Server API initialized 0
LogOnline: Warning: STEAM: Failed to initialize Steam, this could be due to a Steam server and client running on the same machine. Try running with -NOSTEAM on the cmdline to disable.
LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()
LogOnline: Warning: STEAM: Steam API failed to initialize!
LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()

REGRESSION: Yes
Worked: 4.24 CL-11590231
Broken: 4.25 CL-13325778

Workaround:
Retrieve the steamclient.so file from /home/.steam/steamcmd/linux64 on the Linux computer.

Steps to Reproduce
  1. Download the SteamCMD program from [Link Removed] onto a Windows computer
  2. Run the SteamCMD program to update the program
  3. Run the following command to get the steamclient.so file
    • steamcmd.exe +@sSteamCmdForcePlatformType linux +login anonymous +app_update 1007 +quit
  4. Open ShooterGame into UE4Editor on a Windows computer
  5. Use the following command to create a Linux dedicated server of ShooterGame
    • D:\UnrealEngine-4.25\Engine\Build\BatchFiles\RunUAT" BuildCookRun -project="E:\ShooterGame\ShooterGame.uproject" -package -noP4 -serverplatform=Linux -server -serverconfig=DebugGame -noclient -cook -allmaps -build -stage -pak -prereqs -targetplatform=Linux -archive -archivedirectory="E:\ShooterGamePackaged
  6. Copy the steamclient.so file:
    • From - steamcmd\steamapps\common\Steamworks SDK Redist\linux64
    • To - /LinuxServer/ShooterGame/Binaries/Linux
  7. Transfer the packaged ShooterGame server to a Linux computer
  8. Set the ShooterServer.sh file to run as a program
  9. Open a terminal in the LinuxServer folder
  10. Run "./ShooterServer.sh Sanctuary"
  11. Check the terminal window to see if Steam initializes

RESULT:
Steam fails to initialize

Have Comments or More Details?

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

11
Login to Vote

Won't Fix
ComponentUE - Online
Affects Versions4.25
CreatedMay 18, 2020
ResolvedJul 19, 2022
UpdatedOct 28, 2022
View Jira Issue