Skip to content

Instantly share code, notes, and snippets.

@hach-que
Created January 14, 2018 08:17
Show Gist options
  • Save hach-que/f43d6bcf9ce3b0fdf8c398634de36c0b to your computer and use it in GitHub Desktop.
Save hach-que/f43d6bcf9ce3b0fdf8c398634de36c0b to your computer and use it in GitHub Desktop.
Automating lighting builds in Unreal Engine 4.18
$ContentPath = "$PSScriptRoot\Content\Levels".Replace("\", "/")
$process = Start-Process `
-FilePath "C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\Win64\UE4Editor-Cmd.exe" `
-ArgumentList @(
"$PSScriptRoot\MinuteOfMayhem.uproject",
"-run=resavepackages",
"-buildtexturestreaming",
"-buildlighting",
"-MapsOnly",
"-ProjectOnly",
"-AllowCommandletRendering",
"-SkipSkinVerify",
"-PACKAGEFOLDER=$ContentPath",
"-stdout",
"-crashforuat",
"-unattended"
) `
-NoNewWindow `
-WorkingDirectory "$PSScriptRoot\Content" `
-PassThru `
-Wait
if ($process.ExitCode -ne 0) {
Write-Output $process.ExitCode
Write-Error -Message "Lighting build failed!"
exit 1
}
@jaxzin
Copy link

jaxzin commented Oct 11, 2018

Got any info on what the undocumented arguments like -stdout -crashforuat and -SkipSkinVerify do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment