Compile & standalone command line

G’day,

Compiling via command line still works.
The command:

    .\Engine\Binaries\DotNET\UnrealBuildTool.exe %PROJECT_NAME%Editor Win64 Development "%PROJECT_DIR%\%PROJECT_FILE%" -rocket

Generates:

    \Documents\Unreal Projects\MyProject\Binaries\Win64\UE4Editor-MyProject.dll

I can use this in the editor and I can run a standalone from the editor,
but I can’t run a standalone from the command line.

This is the command line I used to use:

    UE4Editor.exe "%PROJECT_DIR%\%PROJECT_FILE%" "%TEST_MAP%" -debug -game -log

I tried running MyProject.exe instead, but it wants cooked content.
Haven’t been able to figure out the correct command line to use.
If anyone has managed to get a project to run with uncooked content via a command line, please post here.

Thank you.

Kris

Rama posted the solution to this on the forums, of sorts.

The problem I had was not doing the full path for UE4.

Instead of:

UE4Editor.exe  

I needed to use:

C:\Program Files\Unreal Engine\4.0\Engine\Binaries\Win64\\UE4Editor.exe

The final command line looks like this:

start "" "C:\Program Files\Unreal Engine\4.0\Engine\Binaries\Win64\\UE4Editor.exe" "%PROJECT_DIR%\%PROJECT_FILE%" -game  -ResX=1280 -ResY=720 -WinX=320 -WinY=180 -log

#Full Project Path

include your entire project path, and it will work :slight_smile:

that’s what I do :slight_smile:

"E:\VictoryUE4\UnrealEngine-4.0.1-release\Engine\Binaries\Win64\UE4Editor.exe" "C:\Users\Rama\Documents\Unreal Projects\VictoryGame\VictoryGame.uproject"  -game  -ResX=1280 -ResY=960 -WinX=0 -WinY=0 -NoVSync -log -SaveToUserDir

I hate you so much right now :slight_smile:

Oh, and the %PROJECT_DIR%%PROJECT_FILE% gets filled in as “C:\Users\Rama\Documents\Unreal Projects\VictoryGame\VictoryGame.uproject” or what ever the case maybe.