Unable to use Steam in projects

Hello and thanks in advance for any help! I’ve recently re-imaged my machine to Windows10, have all SDK’s setup for C++ programming, Visual Studio 2017 and UE4 4.20 source build.

I’ve had Steam integration over a dozen projects in the past on win7 and havent had this problem, but i dont remember doing anything extra special other than the .ini customization for each project to load steam API into the project…

I cannot open Steam in any project that i work on, and my teammates open it just fine in the same project on their personal computers… so something is wrong with my computer settings and i dont know what…

I was reading Epics Wiki here and it says to do the below, but that wont compile and there is no .pch file any longer since like 4.16 if i remember right… so i reverted back to its old (source build default code):

Open OnlineSubsystemSteamPrivatePCH.h (being located in  ..\..\Plugins\Online\OnlineSubsystemSteam\Source\Private\), where you'll find the following line of code, defining the root location of the Steamworks SDK:

<code class="language-cpp">#define STEAM_SDK_ROOT_PATH TEXT("Binaries/ThirdParty/Steamworks")</code>

You'll want to modify the line to read:

<code class="language-cpp">#define STEAM_SDK_VER TEXT("Steam[Current Version]")</code>

Error i’m getting in logs is:

  1. LogOnline: Display: STEAM: Loading Steam SDK 1.39
  2. LogOnline: Warning: STEAM: Steam API disabled!
  3. LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()
  4. LogOnline: Unable to create OnlineSubsystem module Steam

If this helps at all -

LogUWorks: Warning: Unable to retrieve a Steam identifier for this process. The Steam client may not be running.
LogUWorks: Warning: NetDriver will not handle connections via SteamIDs. Regular IP addresses must be used instead.
LogUWorks: Warning: Unable to listen for Steam connections.

but i dont remember doing anything
extra special other than the .ini
customization for each project to load
steam API into the project…

That was the beginning essences of getting steam into a project. Again - as stated - the project works fine for others on my team.

Thanks for the reply!

I dont know much about c++ but I know a bit about blueprints, do you have project settings and plugins? If so then have you put the code for steam into your “Default Engine” located in “Config” of your project, copy and paste this:

[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName=“GameNetDriver”,DriverClassName=“OnlineSubsystemSteam.SteamNetDriver”,DriverClassNameFallback=“OnlineSubsystemUtils.IpNetDriver”)

[OnlineSubsystem]
DefaultPlatformService=Steam

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName=“OnlineSubsystemSteam.SteamNetConnection”

After putting in the code restart your project and go into plugins, enable the Steam plugin and when you launch your game in “standalone” you should see the steam overlay at the bottom left, make sure you have logged into Steam.

From “Unable to listen for Steam connections.” I understand is something wrong with your firewall.

From Ottoman’s reply above - this was indeed a windows firewall setting. I went in and added Steam.exe to the exceptions list and voila - it worked!

Thanks @OttomanEmpire!

From “Unable to listen for Steam
connections.” I understand is
something wrong with your firewall.