Download

Impossible to create a package of my project

Hi all,

My apologies if it’s the wrong section.
I’ve been trying to build a package of my project (Windows 64 bit) and it just doesn’t work.

Here is the error message I got in my log:

UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=“C:/Users/Tuyen/Documents/Unreal Projects/grip_proto/grip_proto.uproject” BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=“C:/Users/Tuyen/Documents/Unreal Projects/grip_proto/grip_proto.uproject” -cook -stage -archive -archivedire
ctory=“C:/Users/Tuyen/Desktop/New folder (3)” -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -CrashReporter -utf8output
UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Windows (64-bit)): WindowsPlatform.GetDefaultCompiler: WARNING: No Visual C++ installation was found. Please download and install Visual Studio 2015 with C++ components.
UATHelper: Packaging (Windows (64-bit)): CommandEnvironment.SetupBuildEnvironment: WARNING: Couldn’t find installation of Visual Studio
UATHelper: Packaging (Windows (64-bit)): CommandEnvironment.SetupBuildEnvironment: WARNING: Assuming no solution compilation capability.
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\Tuyen\Documents\Unreal Projects\grip_proto\grip_proto.uproject
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: System.Exception: Unrecognized token at index107
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JsonParser.ParseValue()
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JsonParser.ParseObject()
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JsonParser.ParseValue()
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JsonParser.Decode()
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JSON.Parse(String json)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.JsonObject.Parse(String Text)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.JsonObject.Read(String FileName)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.ProjectDescriptor.FromFile(String FileName)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectUtils.RequiresTempTarget(FileReference RawProjectPath, List1 ClientTargetPlatforms, Boolean AssetNativizationRequested) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectUtils.DetectProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, Boolean AssetNativizationRequested)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectUtils.GetProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, Boolean AssetNativizationRequested) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectParams..ctor(FileReference RawProjectPath, CommandUtils Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, String UE4Exe, String SignPak, List1 ClientCon figsToBuild, List1 ServerConfigsToBuild, ParamList1 MapsToCook, ParamList1 DirectoriesToCook, String InternationalizationPreset, ParamList1 CulturesToCook, ParamList1 ClientCookedTargets, ParamList1 EditorTargets, ParamList1 ServerCookedTargets, List1 ClientTargetPlatforms, Dictionary2 ClientDependentPlatformMap, List1 ServerTargetPlatforms, Dictio nary2 ServerDependentPlatformMap, Nullable1 Build, Nullable1 Cook, Nullable1 Run, Nullable1 SkipServer, Nullable1 Clean, Nullable1 Compressed, Nullable1 UseDebugParamForEditorExe, Nullable1 IterativeCooking, Nullable1 CookAll, Nullable1 CookPartialGC, Nullable1 CookMapsOnly, Nullable1 CookOnTheFly, Nullable1 CookOnTheFlyStreaming, Nullable1 Un
versionedCookedContent, Nullable1 EncryptIniFiles, Nullable1 SkipCookingEditorContent, Nullable1 NumCookersToSpawn, String AdditionalCookerOptions, String BasedOnReleaseVersion, String CreateReleaseVersion, String CreateReleaseVersionBasePath, String BasedOnReleaseVersionBasePath, Nullable1 GeneratePatch, String DLCName, String DiffCookedContentPath, Nul
lable1 DLCIncludeEngineContent, Nullable1 NewCook, Nullable1 OldCook, Nullable1 CrashReporter, Nullable1 DedicatedServer, Nullable1 Client, Nullable1 Deploy, Nullable1 FileServer, Nullable1 Foreign, Nullable1 ForeignCode, Nullable1 LogWindow, Nullable1 NoCleanStage, Nullable1 NoClient, Nullable1 NoDebugInfo, Nullable1 NoXGE, Nullable1 Package
, Nullable1 Pak, Nullable1 Prereqs, String AppLocalDirectory, Nullable1 NoBootstrapExe, Nullable1 SignedPak, Nullable1 NullRHI, Nullable1 FakeClient, Nullable1 EditorTest, Nullable1 RunAutomationTests, String RunAutomationTest, Nullable1 CrashIndex, Nullable1 SkipCook, Nullable1 SkipCookOnTheFly, Nullable1 SkipPak, Nullable1 SkipStage, Nullable
1 Stage, Nullable1 Manifests, Nullable1 CreateChunkInstall, Nullable1 Unattended, Nullable1 NumClients, Nullable1 Archive, String ArchiveDirectoryParam, Nullable1 ArchiveMetaData, Nullable1 CreateAppBundle, ParamList1 ProgramTargets, Nullable1 Distribution, Nullable1 Prebuilt, Nullable1 RunTimeoutSeconds, String SpecifiedArchitecture, Nullable1 I
terativeDeploy, Nullable1 FastCook, Nullable1 IgnoreCookErrors, Nullable1 RunAssetNativization, Nullable1 CodeSign, Nullable1 TreatNonShippingBinariesAsDebugFiles, String Provision, String Certificate, ParamList1 InMapsToRebuildLightMaps, ParamList1 TitleID) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.SetupParams() UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String] Arguments) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error


What would be the issue here?
I read somewhere that symbols like _ in the map names could prevent from cooking a package?

I’d really appreciate some help here. Thank you in advance!

UATHelper: Packaging (Windows (64-bit)): WindowsPlatform.GetDefaultCompiler: WARNING: No Visual C++ installation was found. Please download and install Visual Studio 2015 with C++ components.
UATHelper: Packaging (Windows (64-bit)): CommandEnvironment.SetupBuildEnvironment: **WARNING: Couldn’t find installation of Visual Studio

you gotta read the error logs :)**

Hi ixicalibur,

Thank you for your input!

I installed Visual Studio and this error doesn’t appear anymore. There’s another one though:

UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=“C:/Users/Tuyen/Documents/Unreal Projects/grip_proto - Copy/grip_proto.uproject” BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=“C:/Users/Tuyen/Documents/Unreal Projects/grip_proto - Copy/grip_proto.uproject” -cook -stage -archiv
e -archivedirectory=“C:/Users/Tuyen/Desktop/New folder (3)” -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -CrashReporter -utf8output
UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\Tuyen\Documents\Unreal Projects\grip_proto - Copy\grip_proto.uproject
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: System.Exception: Unrecognized token at index107
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JsonParser.ParseValue()
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JsonParser.ParseObject()
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JsonParser.ParseValue()
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JsonParser.Decode()
UATHelper: Packaging (Windows (64-bit)): at fastJSON.JSON.Parse(String json)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.JsonObject.Parse(String Text)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.JsonObject.Read(String FileName)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.ProjectDescriptor.FromFile(String FileName)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectUtils.RequiresTempTarget(FileReference RawProjectPath, List1 ClientTargetPlatforms, Boolean AssetNativizationRequested) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectUtils.DetectProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, Boolean AssetNativizationRequested)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectUtils.GetProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, Boolean AssetNativizationRequested) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.ProjectParams..ctor(FileReference RawProjectPath, CommandUtils Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, String UE4Exe, String SignPak, List1 ClientCon figsToBuild, List1 ServerConfigsToBuild, ParamList1 MapsToCook, ParamList1 DirectoriesToCook, String InternationalizationPreset, ParamList1 CulturesToCook, ParamList1 ClientCookedTargets, ParamList1 EditorTargets, ParamList1 ServerCookedTargets, List1 ClientTargetPlatforms, Dictionary2 ClientDependentPlatformMap, List1 ServerTargetPlatforms, Dictio nary2 ServerDependentPlatformMap, Nullable1 Build, Nullable1 Cook, Nullable1 Run, Nullable1 SkipServer, Nullable1 Clean, Nullable1 Compressed, Nullable1 UseDebugParamForEditorExe, Nullable1 IterativeCooking, Nullable1 CookAll, Nullable1 CookPartialGC, Nullable1 CookMapsOnly, Nullable1 CookOnTheFly, Nullable1 CookOnTheFlyStreaming, Nullable1 Un
versionedCookedContent, Nullable1 EncryptIniFiles, Nullable1 SkipCookingEditorContent, Nullable1 NumCookersToSpawn, String AdditionalCookerOptions, String BasedOnReleaseVersion, String CreateReleaseVersion, String CreateReleaseVersionBasePath, String BasedOnReleaseVersionBasePath, Nullable1 GeneratePatch, String DLCName, String DiffCookedContentPath, Nul
lable1 DLCIncludeEngineContent, Nullable1 NewCook, Nullable1 OldCook, Nullable1 CrashReporter, Nullable1 DedicatedServer, Nullable1 Client, Nullable1 Deploy, Nullable1 FileServer, Nullable1 Foreign, Nullable1 ForeignCode, Nullable1 LogWindow, Nullable1 NoCleanStage, Nullable1 NoClient, Nullable1 NoDebugInfo, Nullable1 NoXGE, Nullable1 Package
, Nullable1 Pak, Nullable1 Prereqs, String AppLocalDirectory, Nullable1 NoBootstrapExe, Nullable1 SignedPak, Nullable1 NullRHI, Nullable1 FakeClient, Nullable1 EditorTest, Nullable1 RunAutomationTests, String RunAutomationTest, Nullable1 CrashIndex, Nullable1 SkipCook, Nullable1 SkipCookOnTheFly, Nullable1 SkipPak, Nullable1 SkipStage, Nullable
1 Stage, Nullable1 Manifests, Nullable1 CreateChunkInstall, Nullable1 Unattended, Nullable1 NumClients, Nullable1 Archive, String ArchiveDirectoryParam, Nullable1 ArchiveMetaData, Nullable1 CreateAppBundle, ParamList1 ProgramTargets, Nullable1 Distribution, Nullable1 Prebuilt, Nullable1 RunTimeoutSeconds, String SpecifiedArchitecture, Nullable1 I
terativeDeploy, Nullable1 FastCook, Nullable1 IgnoreCookErrors, Nullable1 RunAssetNativization, Nullable1 CodeSign, Nullable1 TreatNonShippingBinariesAsDebugFiles, String Provision, String Certificate, ParamList1 InMapsToRebuildLightMaps, ParamList1 TitleID) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.SetupParams() UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String] Arguments) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

I think it’s this: Program.Main: ERROR: AutomationTool terminated with exception: System.Exception: Unrecognized token at index107

Any ideas on this?

Thank you!

Well, I fixed my issue! :slight_smile:

For the record, I did the following:

  • renamed all my .umap files (they had some “_” and apparently, this might be bad and could prevent from packaging)
    > it seems this has any effect as I still had this error in the log: Program.Main: ERROR: AutomationTool terminated with exception: System.Exception: Unrecognized token at index107
  • deleted Saved, Intermediate folders
    > still no effect…

I ended up creating a new project and migrate all my content in it. And I finally was able to create a package!

I still have no clues on this error though Program.Main: ERROR: AutomationTool terminated with exception: System.Exception: Unrecognized token at index107
And wasn’t able to find a proper answer through the forum nor Google…

Cheers!