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"

Proper way of using UnrealBuildTool.exe from the command line?

I am trying to use this command from the command line (tweaked from what I see in the editor, with one option off):

"C:\Program Files\Unreal Engine\4.0\Engine\Binaries\DotNET\UnrealBuildTool.exe" MyProject5 -ModuleWithSuffix MyProject5 9024 Win64 Development -editorrecompile "C:\dev\Unreal\Projects\MyProject5\MyProject5.uproject"

I am getting these errors:

Could not parse Engine Version from ObjectVersion.cpp: Could not find a part of the path 'C:\Program Files\Unreal Engine\4.0\Engine\Source\Runtime\Core\Private\UObject\ObjectVersion.cpp'. ERROR: Couldn't find module rules file for module 'MCPP'.

What would be the correct command line?

Product Version: Not Selected
Tags:
more ▼

asked Apr 07 '14 at 08:35 PM in C++ Programming

avatar image

dmacesic
117 16 18 20

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

You could make a batch file like this

 call "C:\Program Files\Unreal Engine\4.0\Engine\Build\BatchFiles\Build.bat" MyProject5Editor Win64 Development "C:\dev\Unreal\Projects\MyProject5\MyProject5.uproject"
 PAUSE
 

Btw, why does it look like you are building from what looks like a directory from the installed version of unreal 4? Did you drag and drop the github stuff directly into your unreal 4 install or something? I'm pretty sure that's not how it's supposed to be done.

more ▼

answered Apr 07 '14 at 09:17 PM

avatar image

Chris528
322 20 21 36

avatar image dmacesic Apr 07 '14 at 09:23 PM

I get the same error:

Could not parse Engine Version from ObjectVersion.cpp: Could not find a part of the path 'C:\Program Files\Unreal Engine\4.0\Engine\Source\Runtime\Core\Private\ UObject\ObjectVersion.cpp'. ERROR: Couldn't find module rules file for module 'MCPP'.

The command line is pulled from the editor Output log (see attached)alt text

As for the directory, it is where I installed the binary package, although I do have the sources elsewhere.

2014-04-07_1720.png (124.8 kB)
avatar image Chris528 Apr 07 '14 at 09:30 PM

What exactly are you trying to do? If your point was to compile the engine, editor, etc, then you shouldn't be using the installed version for this. This vid might be of some help. http://youtu.be/usjlNHPn-jo

avatar image dmacesic Apr 07 '14 at 09:45 PM

I am trying to compile a project without the -FailIfGeneratedCodeChanges flag from the command line using the binaries.

avatar image dmacesic Apr 10 '14 at 08:19 PM

I've resolved my issue. Although not exactly what I was looking for I'll accept the answer

(comments are locked)
10|2000 characters needed characters left

This worked in my case:

 "path\to\BatchFiles\Build.bat" "MyUProjectEditor" Win64 Development -WarningsAsErrors "path\to\MyUProject.uproject"

Note that you have to attach "Editor" suffix to first argument. The build.bat available in BatchFiles folder calles UnrealHeaderTool. Arguments must be in this exact order.

more ▼

answered Jan 30 '18 at 04:38 AM

avatar image

sytelus
231 14 29 46

(comments are locked)
10|2000 characters needed characters left
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