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"

problem with cook for dedicated server of project

hi i use unreal 4.15 and try to package it for dedicated server i use this tutorial https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux) in this section 1. Target file instructions for engine version 4.15 for create mygametarget.cs i create a file name b562server.Target.cs and copy past this code

 using UnrealBuildTool;
 using System.Collections.Generic;
 
 [SupportedPlatforms(UnrealPlatformClass.Server)]
 public class b562ServerTarget : TargetRules
 {
     public b562ServerTarget(TargetInfo Target)
     {
         Type = TargetType.Server;
         bUsesSteam = false;
     }
 
     //
     // TargetRules interface.
     //
 
     public override void SetupBinaries(
         TargetInfo Target,
         ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
         ref List<string> OutExtraModuleNames
         )
     {
         OutExtraModuleNames.Add("b562");
     }
 }

but when i generat code for visual studio have a error

Running D:/unreal source//Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="E:/server/b562/b562.uproject" -game -engine -progress Discovering modules, targets and source code for project... UnrealBuildTool Exception: ERROR: Expecting to find a type to be declared in a target rules named 'b562Target'. This type must derive from the 'TargetRules' type defined by Unreal Build Tool.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 09 '17 at 08:50 PM in Packaging & Deployment

avatar image

mblogest
45 7 9 11

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

1 answer: sort voted first

Hey mblogest,

https://wiki.unrealengine.com/4_13%2B_Network_Guide#Dedicated_Server

Give that guide a try instead. However, note that you'll need to omit the last three functions in your Target.cs file for 4.15. I've successfully built a dedicated server using that method multiple times. Also, give it a shot in a clean project to ensure that there is not an issue with your current project.

Let me know if that helps

more ▼

answered Mar 13 '17 at 01:14 PM

avatar image

Sean L ♦♦ STAFF
43.5k 485 152 443

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question