Installed fresh VR template. Set start in vr. Try to run under windows
Project.RunInternal: Starting Client…
Project.LogDeploymentContext: Deployment Context **************
Project.LogDeploymentContext: ProjectFile = C:\Users\Dima\Documents\Unreal Projects\VR\VR.uproject
Project.LogDeploymentContext: ArchiveDir =
Project.LogDeploymentContext: IsCodeBasedUprojectFile = True
Project.LogDeploymentContext: DedicatedServer = False
Project.LogDeploymentContext: Stage = True
Project.LogDeploymentContext: StageTargetPlatform = Win64
Project.LogDeploymentContext: InputRootDir = C:\Program Files\Epic Games\UE_4.20
Project.LogDeploymentContext: InputProjectDir = C:\Users\Dima\Documents\Unreal Projects\VR
Project.LogDeploymentContext: PlatformDir = Win64
Project.LogDeploymentContext: StagedOutputDir = C:\Users\Dima\Documents\Unreal Projects\VR\Saved\StagedBuilds\WindowsNoEditor
Project.LogDeploymentContext: ShortProjectName = VR
Project.LogDeploymentContext: ProjectArgForCommandLines = …/…/…/VR/VR.uproject
Project.LogDeploymentContext: RunRootDir = C:\Users\Dima\Documents\Unreal Projects\VR\Saved\StagedBuilds\WindowsNoEditor
Project.LogDeploymentContext: RunProjectDir = C:\Users\Dima\Documents\Unreal Projects\VR\Saved\StagedBuilds\WindowsNoEditor\VR
Project.LogDeploymentContext: PakFileInternalRoot = …/…/…/
Project.LogDeploymentContext: PlatformUsesChunkManifests = False
Project.LogDeploymentContext: End Deployment Context **************
<>c.<PrintExceptionInfo>b__4_1: ==============================================================================
<>c.<PrintExceptionInfo>b__4_0: ERROR: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
<>c.<PrintExceptionInfo>b__4_0: Parameter name: index
<>c.<PrintExceptionInfo>b__4_0: at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
<>c.<PrintExceptionInfo>b__4_0: at System.Collections.Generic.List1.get_Item(Int32 index) <>c.<PrintExceptionInfo>b__4_0: at Project.SetupClientParams(List1 DeployContextList, ProjectParams Params, String ClientLogFile, ERunOptions& ClientRunFlags, String& ClientApp, String& ClientCmdLine) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 633
<>c.<PrintExceptionInfo>b__4_0: at Project.RunInternal(ProjectParams Params, String ServerLogFile, String ClientLogFile) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 173
<>c.<PrintExceptionInfo>b__4_0: at Project.Run(ProjectParams Params) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 115
<>c.<PrintExceptionInfo>b__4_0: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 224
<>c.<PrintExceptionInfo>b__4_0: at BuildCookRun.ExecuteBuild() in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41
<>c.<PrintExceptionInfo>b__4_0: at AutomationTool.BuildCommand.Execute() in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 112
<>c.<PrintExceptionInfo>b__4_0: at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 562
<>c.<PrintExceptionInfo>b__4_0: at AutomationTool.Automation.Process(String] Arguments, StartupTraceListener StartupListener) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 532
<>c.<PrintExceptionInfo>b__4_0: at AutomationTool.Program.MainProc(String] Arguments, StartupTraceListener StartupListener) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 174
<>c.<PrintExceptionInfo>b__4_0: at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__0() in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 100
<>c.<PrintExceptionInfo>b__4_0: at AutomationTool.InternalUtils.RunSingleInstance(Func1 Main) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 725 <>c.<PrintExceptionInfo>b__4_0: at AutomationTool.Program.Main() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 100 <>c.<PrintExceptionInfo>b__4_0: (see C:\Users\Dima\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.20\Log.txt for full exception trace) <>c.<PrintExceptionInfo>b__4_1: <>c.<PrintExceptionInfo>b__4_1: ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. <>c.<PrintExceptionInfo>b__4_1: Parameter name: index <>c.<PrintExceptionInfo>b__4_1: at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) <>c.<PrintExceptionInfo>b__4_1: at System.Collections.Generic.List1.get_Item(Int32 index)
<>c.<PrintExceptionInfo>b__4_1: at Project.SetupClientParams(List1 DeployContextList, ProjectParams Params, String ClientLogFile, ERunOptions& ClientRunFlags, String& ClientApp, String& ClientCmdLine) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 633 <>c.<PrintExceptionInfo>b__4_1: at Project.RunInternal(ProjectParams Params, String ServerLogFile, String ClientLogFile) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 173 <>c.<PrintExceptionInfo>b__4_1: at Project.Run(ProjectParams Params) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 115 <>c.<PrintExceptionInfo>b__4_1: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 224 <>c.<PrintExceptionInfo>b__4_1: at BuildCookRun.ExecuteBuild() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41 <>c.<PrintExceptionInfo>b__4_1: at AutomationTool.BuildCommand.Execute() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 112 <>c.<PrintExceptionInfo>b__4_1: at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 562 <>c.<PrintExceptionInfo>b__4_1: at AutomationTool.Automation.Process(String] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 532 <>c.<PrintExceptionInfo>b__4_1: at AutomationTool.Program.MainProc(String] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 174 <>c.<PrintExceptionInfo>b__4_1: at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__0() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 100 <>c.<PrintExceptionInfo>b__4_1: at AutomationTool.InternalUtils.RunSingleInstance(Func1 Main) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 725
<>c.<PrintExceptionInfo>b__4_1: at AutomationTool.Program.Main() in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 100
<>c.<PrintExceptionInfo>b__4_1: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
I have been getting the same error for every single template and marketplace items now. I tried doing a verify, installing extra visual studio components. Did you get this working by any chance?
Launcher. it looks like the templates actually do work, but as soon as I added a few blueprints (following a tutorial series by Virtus Learning Hub) then it gives one error message with no clues as to why. Everything compiles 100% so not sure what the issue is.
LogPlayLevel: Copying UFSFiles to staging directory: D:\Unreal Projects\SilentNight\Saved\StagedBuilds\WindowsNoEditor
LogPlayLevel: ********** STAGE COMMAND COMPLETED **********
LogPlayLevel: ********** PACKAGE COMMAND STARTED **********
LogPlayLevel: ********** PACKAGE COMMAND COMPLETED **********
LogPlayLevel: ********** DEPLOY COMMAND STARTED **********
LogPlayLevel: WARNING: Win64 does not implement Deploy…
LogPlayLevel: ********** DEPLOY COMMAND COMPLETED **********
LogPlayLevel: ********** RUN COMMAND STARTED **********
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 3.509161
LogPlayLevel: Starting Client…
LogPlayLevel: ERROR: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
LogPlayLevel: Parameter name: index
LogPlayLevel: at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
LogPlayLevel: at System.Collections.Generic.List1.get_Item(Int32 index) LogPlayLevel: at Project.SetupClientParams(List1 DeployContextList, ProjectParams Params, String ClientLogFile, ERunOptions& ClientRunFlags, String& ClientApp, String& ClientCmdLine) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 633
LogPlayLevel: at Project.RunInternal(ProjectParams Params, String ServerLogFile, String ClientLogFile) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 173
LogPlayLevel: at Project.Run(ProjectParams Params) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 115
LogPlayLevel: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 224
LogPlayLevel: at BuildCookRun.ExecuteBuild() in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41
LogPlayLevel: at AutomationTool.BuildCommand.Execute() in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 112
LogPlayLevel: at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 562
LogPlayLevel: at AutomationTool.Automation.Process(String] Arguments, StartupTraceListener StartupListener) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 532
LogPlayLevel: at AutomationTool.Program.MainProc(String] Arguments, StartupTraceListener StartupListener) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 174
LogPlayLevel: at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__0() in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 100
LogPlayLevel: at AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 725
LogPlayLevel: at AutomationTool.Program.Main() in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 100
LogPlayLevel: (see C:\Users\person\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+(x86)+Epic+Games+UE_4.20\Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Run Task, Time: 0.000041
LogPlayLevel: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error
LogSlate: FSceneViewport::OnFocusLost() reason 0
The error seems to be triggered by the automation tool, but it doesn’t show why. You should find more information in the Log.txt file: see C:\Users\person\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+(x86)+Epic+Games+UE_4.20\Log.txt for full exception trace.
@HPrendering This error is tricky because it is typically triggered by something wrong in your project, like a corrupted asset or something wrong with the foliage, etc. It is not easy to tell what causes it because there is no indication of the source. You can try to migrate your level to a fresh project and see if that helps to solve the error.
Tried packaging random projects already started (result same error)
Tried packaging two newly created projects: Twinstick Shooter & Third Person Project (result same error)
I have been able to package successfully with this version of the engine in the past: 4.20.3
Tried to package a game previously successfully packaged a year ago.(result same error)
Uninstalled/Reinstalled UE4.20.3 (After trying all above.) (result same error)
Tried deleting Config and Intermediate folders in Project Directory (result same error)
Tried packaging projects that are stored on the same drive as the installation (ie. C drive) as well as other drive (D drive) (result same error)
It appears something has changed locally on my machine and the Automation tool is failing to find/communicate with whatever code/file contains the Index it is trying to read from or that file has become corrupt in some manner.
One more detail that may be important: When I packaged before I was running Windows 7. I have not been able to successfully package a project since updating to Windows 10 (but I’ve only recently tried.)
My issue was a problem with UE4 communicating w Visual Studio after upgrading to Windows 10. Resolution: Installed Visual Studio 19 w/C++ Game Development component and selected it in the Editor under Editor Preferences/General/Source Code/Accessor. *Found full instructions here: How to setup Visual Studio for Unreal Engine