Compilation/Build Troubles

Hi,

Received an error when trying to select the Rebuild option for my unreal project. I had experienced some issues with UE in the past and just want to get a bit of clarity to my problems. I just performed a fresh install of windows 10 and am working on 4.10 in VS2015. Looked up the Error MSB3073 code 255, and came up with nothing concrete.

Output in question is here:

1>------ Rebuild All started: Project: <MyProject>, Configuration: Development_Editor x64 ------
1>  \Epic was unexpected at this time.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(42,5): error MSB3073: The command ""E:\Program Files (x86)\Epic Games\4.10\Engine\Build\BatchFiles\Rebuild.bat" <Project>Editor Win64 Development "E:\Workspace\<Project>\<Project>.uproject" -rocket -waitmutex" exited with code 255.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

So in the past I’ve been having trouble deciding exactly how to develop on UE since I seem to have horrible luck and random issues every time I would like to start a project, the last occasion a few days ago a .dll file vanished and wouldn’t allow the project to be build or the editor to be brought up.

I’d like to know if there is something I am missing to compiling projects properly, is it supposed to be done in editor (Which works despite this error)? through VS debugger (Still works as well)? How should I go about Building/Rebuilding/Cleaning my solutions and how does it affect the project or if I should take some of these errors seriously since its VS and not the build and header tools (UBT/UHT)? I get that software is unstable sometimes and doesn’t work but I think I’m using UE incorrectly because it seems to be really unstable for my use.

I have used C++ and VS previously for regular or much simpler applications however for this I’m just having trouble understanding how to go about writing code in some projects.

NOTE: I should mention that I can build the project solution just not rebuild it, which I thought is significant since the UE docs page seems to indicate that is how you can compile your code.
Src:Compiling Game Projects | Unreal Engine Documentation

Thank you folks hope I can get an answer soon and that it is nothing :slight_smile:

Cheers

bump could use the help

Check answer below

Try this:

Solution

I was running into this too and the
problem is in “C:\Program Files
(x86)\Epic
Games\4.10\Engine\Build\BatchFiles\Rebuild.bat”.
The parentheses in the engine path
seem to interfere with the IF (…)
ELSE (…) statements. For now I have
fixed it by replacing every occurrence
of %~dp0 with %~dps0 in order to use
the short paths instead, which do not
contain parenthesis (ex.
“C:\PROGRA~2…”).

Newest answered Dec 01 '15 at 11:05 PM

I had a similar issue. For me the solution was to add quotes around the %~dp0 in the echo statements. It seems that the parens in, for example, C:\Program Files (x86)\Epic Games\4.10\Engine\Build\BatchFiles interfere with the parens of the ELSE block. The original script ran fine from the command line, but not when launched by Visual Studio 2015.

@echo off

REM %1 is the game name
REM %2 is the platform name
REM %3 is the configuration name

IF EXIST "%~dp0\Clean.bat" (
	call "%~dp0\Clean.bat" %*
) ELSE (
	ECHO Clean.bat not found in "%~dp0" 
	EXIT /B 999
)

IF EXIST "%~dp0\Build.bat" (
	call "%~dp0\Build.bat" %*
) ELSE (
	ECHO Build.bat not found in "%~dp0" 
	EXIT /B 999
)

See also:
https://github.com/EpicGames/UnrealEngine/pull/2210

P.S. Duplicate of: