# Steam API disabled! shipping version is server and client at same time?

**URL:** <https://forums.unrealengine.com/t/steam-api-disabled-shipping-version-is-server-and-client-at-same-time/343141>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, shipping-build, UE4, CPP, question\
**Created:** [January 5, 2016, 4:36am UTC](https://forums.unrealengine.com/t/steam-api-disabled-shipping-version-is-server-and-client-at-same-time/343141 "2016-01-05T04:36:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasielmacedo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jasielmacedo](https://forums.unrealengine.com/u/jasielmacedo)\
**Post date:** [January 5, 2016, 4:36am UTC](https://forums.unrealengine.com/t/steam-api-disabled-shipping-version-is-server-and-client-at-same-time/343141/1 "2016-01-05T04:36:36Z")

</div>

Hi guys,

In the last 4 days I searched in every post, every tutorial, every wiki, doc or something,  
but nobody knows whats happening.

I follow step-by-step this tutorial:

> **[Online Subsystem Steam](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Online/Steam/)**
>
> An overview of Online Subsystem Steam, including how to set up your project for distribution on Valve's Steam platform.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

changing **DefaultEngine.ini** properly

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

[OnlineSubsystem]
;DefaultPlatformService=Null
DefaultPlatformService=Steam
PollingIntervalInMs=20

[OnlineSubsystemSteam]
bEnableSteam=True
bEnabled=True
SteamAppId=378930
SteamDevAppId=378930
GameServerQueryPort=27015
bRelaunchInSteam=False
P2PConnectionTimeout=90
bAllowP2PPacketRelay=True
bVACEnabled=1
GameVersion=1.0.0.0
Achievement_0_Id="ACH_DIE_ONE_TIME"
;others archievements removed 

[OnlineSubsystemNull]
Achievement_0_Id=ACH_DIE_ONE_TIME
Achievement_0_bIsHidden=false
Achievement_0_Title="First Blood"
Achievement_0_LockedDesc="This Archievement is not for you. Thanks Oblivion. Die a first time."
Achievement_0_UnlockedDesc="Die a first time"
;others archievements removed

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

```

**Game.Build.cs**

```
PrivateDependencyModuleNames.Add("OnlineSubsystem");
		 if ((Target.Platform == UnrealTargetPlatform.Win32) || (Target.Platform == UnrealTargetPlatform.Win64))
		 {

                UEBuildConfiguration.bCompileSteamOSS = true;

                if (UEBuildConfiguration.bCompileSteamOSS == true)
				{
					DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");
					
				}
		 }

```

Game.Target.cs

in construct method added

```
bUsesSteam = true;

```

And in Standalone Game steam works fine.

But in shipping build show this message:

```
UE4Editor-Cmd: [2016.01.05-04.25.23:668][0]LogOnline:Display: STEAM: Loading Steam SDK 1.32
UE4Editor-Cmd: [2016.01.05-04.25.23:668][0]LogOnline:Warning: STEAM: check if steam api is enabled
UE4Editor-Cmd: [2016.01.05-04.25.23:871][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.
UE4Editor-Cmd: [2016.01.05-04.25.23:872][0]LogOnline:Display: STEAM: OnlineSubsystemSteam::Shutdown()

```

**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.**

How can I set my game is only a Game without Server?

I’m compiling in a WindowsNoEditor mode, following this steps:

> **[Releasing Your Project](https://docs.unrealengine.com/4.27/en-US/SharingAndReleasing/Deployment/Releasing/)**
>
> Creating a release versioned project with cooked content for distribution.

My engine version is 4.10.2 from github.

**PLEASE EPIC A LITTLE HELP HERE.**

my game is this: [Pesadelo - Regressão on Steam](http://store.steampowered.com/app/378930/)

---

<div class="post-metadata">

**Author:** ![jasielmacedo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jasielmacedo](https://forums.unrealengine.com/u/jasielmacedo)\
**Post date:** [January 5, 2016, 5:13am UTC](https://forums.unrealengine.com/t/steam-api-disabled-shipping-version-is-server-and-client-at-same-time/343141/2 "2016-01-05T05:13:34Z")

</div>

Addicional information.

im my game.target.cs is set to Game, not server or client.  
Type = TargetType.Game;

```
using UnrealBuildTool;
using System.Collections.Generic;

public class ProjectPesadeloTarget : TargetRules
{
	public ProjectPesadeloTarget(TargetInfo Target)
	{
		Type = TargetType.Game;
		bUsesSteam = true;
	}

	//
	// TargetRules interface.
	//

	public override void SetupBinaries(
		TargetInfo Target,
		ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
		ref List<string> OutExtraModuleNames
		)
	{
		OutExtraModuleNames.AddRange( new string[] { "ProjectPesadelo" } );
		
	}
	
}
```

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 5, 2016, 12:23pm UTC](https://forums.unrealengine.com/t/steam-api-disabled-shipping-version-is-server-and-client-at-same-time/343141/3 "2016-01-05T12:23:55Z")

</div>

Is steam running on your machine? The steam client? Do you have any other games open that use steam?

---

<div class="post-metadata">

**Author:** ![jasielmacedo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jasielmacedo](https://forums.unrealengine.com/u/jasielmacedo)\
**Post date:** [January 5, 2016, 1:31pm UTC](https://forums.unrealengine.com/t/steam-api-disabled-shipping-version-is-server-and-client-at-same-time/343141/4 "2016-01-05T13:31:48Z")

</div>

Yes, steam client is running and no, I’ve no game opened.  
But I made a new shipping build after you said, closing steam client, but not changed

---

<div class="post-metadata">

**Author:** ![jasielmacedo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jasielmacedo](https://forums.unrealengine.com/u/jasielmacedo)\
**Post date:** [January 5, 2016, 2:18pm UTC](https://forums.unrealengine.com/t/steam-api-disabled-shipping-version-is-server-and-client-at-same-time/343141/5 "2016-01-05T14:18:09Z")

</div>

Is strange, because in Standalone game steam works properly, with archievements and all

---

<div class="post-metadata">

**Author:** ![jasielmacedo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jasielmacedo](https://forums.unrealengine.com/u/jasielmacedo)\
**Post date:** [January 5, 2016, 4:19pm UTC](https://forums.unrealengine.com/t/steam-api-disabled-shipping-version-is-server-and-client-at-same-time/343141/6 "2016-01-05T16:19:54Z")

</div>

Guys,

I accidentally solve that problem.

Simple: in shipping build process. Steam shutting down.

After process finished. go to:

**[yourProjectFolderName]**/Saved/StagedBuild/WindowsNoEditor/**[yourProjectFolderName]**/Binaries/Win64/

and paste a file called **steam\_appid.txt** or create one.

and finally, problem solved. Steam pop-up comes up and everything works again.
