Where are build.cs and target.cs?

I am trying to follow the instructions for including the Steam module into my project using these instructions: https://docs.unrealengine.com/latest/INT/Programming/Online/Steam/index.html

I get to the point where it says “In your game’s build.cs you need to include this:” and I’m not able to continue.

Where is the “build.cs” file that you are referring to?
Where is the “target.cs” file that you are referring to?

Neither of these files exist in my project directory.

I was able to find “Config/DefaultEngine.ini”, but cannot find “build.cs” nor “target.cs”.

I have also tried following Rama’s tutorial at the location shown below, but ran into the same problem :confused:
https://wiki.unrealengine.com/Steam,_Using_the_Steam_SDK_During_Development#Engine.2FBinaries.2FThirdParty.2FSteamworks

Is your project a Blueprint project or c++ project? If its a blueprint project then add some code in it using Unreal Editor and it will create visual Studio project files

Thanks,

1 Like

Mine is a Blue print project, and I’m having the same problem.

when you say “add some code in it using Unreal Editor…” you mean any code at all???

If anyone can give me an exemple will help a lot.
I’m an artis trying to program here.

tnx in advanced

Yes, any code at all. It will create Source folder in your project directory that will contain those kind of files

1 Like

tnxk man, it worked.

Where does one simply go to add the code in the editor to create the Source folder?

1 Like

Menus at top of editor screen Go to File - New C++ Class.
A new window will open. There is an empty class called None. That will do. Just name and save it.
Visual Studio C++ will open automatically expecting you to write your code in it. But, you don’t have to write any code.
You will need to have visual studio community edition installed. If you try packaging a game using File - package project then you will eventually come to a point where the unreal engine will tell you it is not installed and will offer you an executable to run to install it. You need to do this and, when the install runs I would suggest you do not accept the quick install. Do the custom and tick everything. I am using midi and it would not package because I needed a full install so that I got comm component support. So, get the lot. Using the update to add extra components later did not work for me - I had to do a complete cleanout and re-install so best do a complete install first time is my advice.
It is a big download and install so have a cup of tea.

1 Like

Just for clarity I will add it should be in the folder
ProjectName>Source>ProjectName>

With a filename
ProjectName.Build.cs

If you just search Build.cs hundreds of files come up, mine was at the bottom of the list.

Hope this helps someone!

5 Likes