So I was told I should have a projectname.server.build.cs file in my source folder after packaging my dedicated server.
My dedicated server is working, package works and it runs fine, but I cannot find that file anywhere and need it so I can input some steam settings to get my servers to show up in game.
Has anyone ever heard of this happening / have any ideas about it?
build.cs files are for defining a code module, I’ve never made one for my servers. Are you looking for ProjectNameServer.Target.cs? That’s the file that defines a build target which you need for a dedicated server. It should in your source directory next to ProjectNameEditor.Target.cs and ProjectName.Target.cs
If it is something you need to add to a .build.cs file, you should be able to add it to your ProjectName.Build.cs which will be in Source/ProjectName/
Thank you for the response GrumbleBunny!. I did indeed look at my projectname.build.cs file, but when I inputted the lines needed there was a packaging error when I try to re-package it as a server.
error CS0103: The name ‘GlobalDefinitions’ does not exist in the current context.
I have the servers working otherwise, just they never show up in-game in the server browser, Only in the steam server browser. So was told this would help but maybe thats the wrong information?
// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class SCPFFServerTarget : TargetRules //Change this line according to the name of your project
{
public SCPFFServerTarget(TargetInfo Target) : base(Target) //Change this line according to the name of your project
{
Type = TargetType.Server;
DefaultBuildSettings = BuildSettingsVersion.V2;
ExtraModuleNames.Add(“testgame”); //Change this line according to the name of your project