Skip to content

Instantly share code, notes, and snippets.

$Source = Get-Content Setup.bat
@"
echo Installing prerequisites...
start /wait Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe /quiet
if not exist .\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe goto :no_unreal_version_selector
.\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe /register
"@ -split '\r?\n|\r' | ? { $_.Length } | % {
$Source = $Source -replace ('^(' + [Regex]::Escape($_) + ')$'), "rem ${_}"
# pull engine source
$EngineVersion = "4.26.1-release"
git init
git remote add origin https://github.com/EpicGames/UnrealEngine.git
git pull origin $EngineVersion
# setup prerequisites (needs admin rights)
.\Setup.bat
# extract console platform SDKs
@sensvos
sensvos / Gather-GameTexts.ps1
Created July 21, 2020 11:19
Simplest command line procedure altering localization data
&$Env:UE4Path $Env:ProjectPath -Run=GatherText -Config=./Config/Localization/MyProject.ini
@sensvos
sensvos / DDCEngine.ini
Last active April 17, 2019 09:25
Lines setting shared DDC path per project that are to be put in one of *Engine.ini files.
;[DerivedDataBackendGraph] ; For source engine build
[InstalledDerivedDataBackendGraph] ; For installed engine build (such as launcher version) - pick one
Shared=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, DeleteUnused=true, UnusedFileAge=19, FoldersToClean=-1, Path=\\Server\DDC, EnvPathOverride=UE-SharedDataCachePath)
@sensvos
sensvos / BuildInstalled.bat
Last active November 8, 2021 02:28
Build installed version of the engine with the capability to package a project with Test and Debug configuration
Engine\Build\BatchFiles\RunUAT.bat BuildGraph ^
-target="Make Installed Build Win64" ^
-script="Engine/Build/InstalledEngineBuild.xml" ^
-set:HostPlatformOnly=false ^
-set:HostPlatformDDCOnly=false ^
-set:WithWin64=true ^
-set:WithWin32=false ^
-set:WithMac=false ^
-set:WithAndroid=false ^
-set:WithIOS=false ^
@sensvos
sensvos / Register-UnrealEngine.ps1
Last active April 27, 2021 21:49
Add registry entry with guid of the installed engine build and its path
function Register-UnrealEngine
{
Get-Content ./Engine/Binaries/Win64/UE4Editor.version | %{$_ -imatch '"BuildId"[\s]*?:[\s]*?"(.*?)"'} | out-null
if (!$? -and !(Test-Path Engine) ) { Write-Error "Engine directory not found" ; return }
$Guid = "{$($Matches[1].ToString().ToUpper())}"
$EnginePath = Resolve-Path . | %{ $_ -replace '\\','/' }
New-ItemProperty -Path "HKCU:\Software\Epic Games\Unreal Engine\Builds" -Name $Guid -PropertyType String -Value "$EnginePath" -Force | out-null