Custom Program

Trying to follow the example shown in BlankProgram but cannot get my custom program to build. Is there a specific way I should be adding/creating the project? Or perhaps a specific folder I should be putting the project in? I’ve copied over all of the configuration from the BlankProgram with no luck.

Error 2 error : Couldn’t find target rules file for target ‘TestProgram’ in rules assembly ‘TestProgramModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’. D:\Development\TestProgram\EXEC TestProgram

The TestProgram.Target.cs and TestProgram.Build.cs both exist as well and are exact duplicates of the BlankProgram files.

Edit: I’ve managed to get an exact copy of BlankProgram to build but by replicating it inside the same folders as BlankProgram.

There has to be an easier way to accomplish this without having to put the project inside the Engine source folder.

Hi overlawled,

What are you trying to accomplish, and what example are you following?

Trying to write a tool for our game using the UE4 source, like SlateViewer for example. I’ve managed to get it to compile if it’s within the Engine source folder but if I try to include it from an outside directory I get the above error. Right now it’s nothing but an empty project just like the BlankProgram project.

As far as I can tell, unrealbuildtool will not find program targets outside of engine. It is probably a straightforward to change to UnrealBuildTool. We have no plans that I know of to add that functionality, but I will ask and around and see if we can do it.

Sorry it doesn’t quite do what you want.

Good to know, I’ll keep it in the Engine folder!

I would really like to make programs along side a game or even stand alone. Haven’t been able to figure it out. I’m assuming it’s just not possible at the moment.

Hi Zaucy,

As mentioned previously, this is unfortunately something that the Engine does not support, and we currently do not have any plans to support it. The closest option that might work for you would be to create the program as a plugin that can be added either to the Engine or an individual project.