### Search in Sort by:

 Everything C++ Programming Current Space

### 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?

 0 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 dmacesic 117 ● 16 ● 18 ● 20 add new comment (comments are locked) 10|2000 characters needed characters left ▼ Viewable by all users

 0 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 Chris528 322 ● 20 ● 21 ● 36 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) 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) 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 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. 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 add new comment (comments are locked) 10|2000 characters needed characters left ▼ Viewable by all users
 0 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 sytelus 231 ● 14 ● 29 ● 46 add new comment (comments are locked) 10|2000 characters needed characters left ▼ Viewable by all users