x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] Steam API disabled! shipping version is server and client at same time?

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:

https://docs.unrealengine.com/latest/INT/Programming/Online/Steam/index.html https://wiki.unrealengine.com/Steam,_Using_the_Steam_SDK_During_Development

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: https://docs.unrealengine.com/latest/INT/Engine/Deployment/Releasing/index.html

My engine version is 4.10.2 from github.

PLEASE EPIC A LITTLE HELP HERE.

my game is this: http://store.steampowered.com/app/378930/

Product Version: UE 4.10
Tags:
more ▼

asked Jan 05 '16 at 04:36 AM in Packaging & Deployment

avatar image

jasielmacedo
26 2 4 5

avatar image jasielmacedo Jan 05 '16 at 05:13 AM

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" } );
         
     }
     
 }
avatar image TTaM Jan 05 '16 at 12:23 PM

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

avatar image jasielmacedo Jan 05 '16 at 01:31 PM

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

avatar image jasielmacedo Jan 05 '16 at 02:18 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Jul 13 '16 at 06:43 PM by Samantha Sutton for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

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.

more ▼

answered Jan 05 '16 at 04:19 PM

avatar image

jasielmacedo
26 2 4 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question