Since our engine folder is in a subdirectory of our perforce stream, Horde is unable to find RunUAT.bat.
I have tried editing the template as suggested by your Unreal engine AI support by setting the engine_root environment variable, it did not help. What is the proper way to configure the engine dir in horde if it’s located in a subdirectory of the perforce stream?
"env": {
"UE_ENGINE_DIR": "%uebp_LOCAL_ROOT%\\UE5\\Engine"
},
"arguments":
[
"-EngineDir=\"%UE_ENGINE_DIR%\"",
"-Script=\"%UE_ENGINE_DIR%\\Build\\Graph\\Examples\\Parameters.xml\"",
"-Target=\"Print Parameters\"",
"-HordeExport=\"%UE_ENGINE_DIR%\\Saved\\Horde\\Exported.json\""
],
Steps to Reproduce
install and Configure Unreal Engine Horde for Build Automation for a perforce stream that has the engine in a subdirectory. (our engine folder is at depot\main\UE5\Engine\…)
execute a test buildgraph job i.e. Parameter Demo from the Horde Server UI
We see the following in the log:
Setting env var: uebp_BuildRoot_Escaped=++depot+main
Setting env var: uebp_BuildRoot_P4=//depot/main
Setting env var: uebp_CL=27846
Setting env var: uebp_CLIENT=Horde+PIP-WKS-001+HOOL
Setting env var: uebp_CLIENT_ROOT=//Horde+PIP-WKS-001+HOOL
Setting env var: uebp_CodeCL=27799
Setting env var: uebp_LOCAL_ROOT=D:\ProgramData\EpicGames\Horde\SandBox\HOOL\Sync
Setting env var: uebp_LogFolder=D:\ProgramData\EpicGames\Horde\SandBox\HOOL\Sync\Engine\Programs\AutomationTool\Saved\Logs
Setting env var: uebp_PORT=ssl:amgi.perforce.assembla.com:1667
Setting env var: uebp_USER=OptimusPrime
Executing C:\Windows\system32\cmd.exe /C ""D:\ProgramData\EpicGames\Horde\SandBox\HOOL\Sync\Engine\Build\BatchFiles\RunUAT.bat" BuildGraph -Script="\"%UE_ENGINE_DIR%\Build\Graph\Examples\Parameters.xml\"" -HordeExport=D:\ProgramData\EpicGames\Horde\SandBox\HOOL\Sync\Engine\Saved\Horde\Exported.json -ListOnly -Target="\"Print Parameters\"" -EngineDir="\"%UE_ENGINE_DIR%\"" -HordeExport="\"%UE_ENGINE_DIR%\Saved\Horde\Exported.json\"" -set:TextParameter=this-is-text-parameter-8-from-Richard -set:ListParameter=Option2 -set:MultiListOption1=true -set:MultiListOption3=true -set:TagPickerOption1=true -set:TagPickerOption3=true -set:BoolParameter=false"
The system cannot find the path specified.
Hi Richard,
There has been a recent fix to support the Unreal root hierarchy being in a subfolder of the workspace root.
See https://github.com/EpicGames/UnrealEngine/commit/2df64d521aa5db17e9caf524e2af61735d40370c
Unfortunately this hasn’t made it into a release yet, so if you want the fix straight away you will need to grab this change and rebuild Horde.
Hope this helps.
Hey Raymond,
Thanks for the reply! Not exactly the answer I was hoping for, but at least now I know what’s going on. I guess I’ll be rebuilding Horde this week.
Thanks again!