Hi all, still fairly new to all of this but I have been trying to work out why cooking fails... Below is the log
LogUObjectHash: Compacting FUObjectHashTables data took 0.71ms
LogUObjectHash: Compacting FUObjectHashTables data took 0.29ms
LogSavePackage: Moving '../../../../../../Users/PURE STREAMING PC 3/Documents/Unreal Projects/MyProject/Saved/Minimal_DefaultB91AA6594203DA3269451684047F433C.tmp' to '../../../../../../Users/PURE STREAMING PC 3/Documents/Unreal Projects/MyProject/Content/StarterContent/Maps/Minimal_Default.umap'
LogFileHelpers: Saving map 'Minimal_Default' took 0.058
LogSavePackage: Moving '../../../../../../Users/PURE STREAMING PC 3/Documents/Unreal Projects/MyProject/Saved/Minimal_Default_BuiltData599B1F38455DBC5F707CECA6A7DE91D3.tmp' to '../../../../../../Users/PURE STREAMING PC 3/Documents/Unreal Projects/MyProject/Content/StarterContent/Maps/Minimal_Default_BuiltData.uasset'
AssetCheck: New page: Asset Save: multiple assets
LogContentValidation: Display: Validating World /Game/StarterContent/Maps/Minimal_Default.Minimal_Default
LogContentValidation: Display: Validating MapBuildDataRegistry /Game/StarterContent/Maps/Minimal_Default_BuiltData.Minimal_Default_BuiltData
UATHelper: Cooking (Windows (64-bit)): Running AutomationTool...
UATHelper: Cooking (Windows (64-bit)): Parsing command line: -ScriptsForProject="C:/Users/PURE STREAMING PC 3/Documents/Unreal Projects/MyProject/MyProject.uproject" BuildCookRun -nocompileeditor -installed -nop4 -project="C:/Users/PURE STREAMING PC 3/Documents/Unreal Projects/MyProject/MyProject.uproject" -cook -skipstage -ue4exe="C:\Program Files\Aximmetry
DE\UnrealEngine\Engine\Binaries\Win64\UE4Editor-Cmd.exe" -targetplatform=Win64 -utf8output
UATHelper: Cooking (Windows (64-bit)): Setting up ProjectParams for C:\Users\PURE STREAMING PC 3\Documents\Unreal Projects\MyProject\MyProject.uproject
UATHelper: Cooking (Windows (64-bit)): ERROR: System.ArgumentException: An item with the same key has already been added.
UATHelper: Cooking (Windows (64-bit)): at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
UATHelper: Cooking (Windows (64-bit)): at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
UATHelper: Cooking (Windows (64-bit)): at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.ProjectUtils.RequiresTempTarget(FileReference RawProjectPath, Boolean bProjectHasCode, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, TargetType TargetType, Boolean bRequiresAssetNativization, Boolean bRequiresCookedData, String& OutReason)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.ProjectUtils.RequiresTempTarget(FileReference RawProjectPath, List`1 Platforms, List`1 Configurations, Boolean AssetNativizationRequested)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.ProjectUtils.DetectProjectProperties(FileReference RawProjectPath, List`1 ClientTargetPlatforms, List`1 ClientTargetConfigurations, Boolean AssetNativizationRequested)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.ProjectUtils.GetProjectProperties(FileReference RawProjectPath, List`1 ClientTargetPlatforms, List`1 ClientTargetConfigurations, Boolean AssetNativizationRequested)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.ProjectParams..ctor(FileReference RawProjectPath, BuildCommand Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList`1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, String UE4Exe, String SignPak, List`1 Clie
ntConfigsToBuild, List`1 ServerConfigsToBuild, ParamList`1 MapsToCook, ParamList`1 MapIniSectionsToCook, ParamList`1 DirectoriesToCook, String InternationalizationPreset, ParamList`1 CulturesToCook, ParamList`1 ClientCookedTargets, ParamList`1 EditorTargets, ParamList`1 ServerCookedTargets, List`1 ClientTargetPlatforms, Dictionary`2 ClientDependentPlatformMa
p, List`1 ServerTargetPlatforms, Dictionary`2 ServerDependentPlatformMap, Nullable`1 Build, Nullable`1 SkipBuildClient, Nullable`1 SkipBuildEditor, Nullable`1 Cook, Nullable`1 Run, Nullable`1 SkipServer, Nullable`1 Clean, Nullable`1 Compressed, String AdditionalPakOptions, Nullable`1 IterativeCooking, String IterateSharedCookedBuild, Nullable`1 IterateShared
BuildUsePrecompiledExe, Nullable`1 CookAll, Nullable`1 CookPartialGC, Nullable`1 CookInEditor, String CookOutputDir, Nullable`1 CookMapsOnly, Nullable`1 CookOnTheFly, Nullable`1 CookOnTheFlyStreaming, Nullable`1 UnversionedCookedContent, Nullable`1 EncryptIniFiles, Nullable`1 EncryptPakIndex, Nullable`1 EncryptEverything, Nullable`1 SkipCookingEditorContent,
Nullable`1 NumCookersToSpawn, String AdditionalCookerOptions, String BasedOnReleaseVersion, String CreateReleaseVersion, String CreateReleaseVersionBasePath, String BasedOnReleaseVersionBasePath, Nullable`1 GeneratePatch, Nullable`1 AddPatchLevel, Nullable`1 StageBaseReleasePaks, Nullable`1 GenerateRemaster, String DiscVersion, String DLCName, String DiffCo
okedContentPath, Nullable`1 DLCIncludeEngineContent, Nullable`1 DLCPakPluginFile, Nullable`1 DLCActLikePatch, Nullable`1 CrashReporter, Nullable`1 DedicatedServer, Nullable`1 Client, Nullable`1 Deploy, String DeployFolder, String GetFile, Nullable`1 FileServer, Nullable`1 Foreign, Nullable`1 ForeignCode, Nullable`1 LogWindow, Nullable`1 NoCleanStage, Nullabl
e`1 NoClient, Nullable`1 NoDebugInfo, Nullable`1 SeparateDebugInfo, Nullable`1 MapFile, Nullable`1 NoXGE, Nullable`1 Package, Nullable`1 Pak, Nullable`1 IoStore, Nullable`1 SkipIoStore, Nullable`1 Prereqs, String AppLocalDirectory, Nullable`1 NoBootstrapExe, Nullable`1 SignedPak, Nullable`1 PakAlignForMemoryMapping, Nullable`1 NullRHI, Nullable`1 FakeClient,
Nullable`1 EditorTest, Nullable`1 RunAutomationTests, String RunAutomationTest, Nullable`1 CrashIndex, Nullable`1 SkipCook, Nullable`1 SkipCookOnTheFly, Nullable`1 SkipPak, Nullable`1 PrePak, Nullable`1 SkipStage, Nullable`1 Stage, Nullable`1 Manifests, Nullable`1 CreateChunkInstall, Nullable`1 Unattended, Nullable`1 NumClients, Nullable`1 Archive, String A
rchiveDirectoryParam, Nullable`1 ArchiveMetaData, Nullable`1 CreateAppBundle, String SpecifiedClientTarget, String SpecifiedServerTarget, ParamList`1 ProgramTargets, Nullable`1 Distribution, Nullable`1 Prebuilt, Nullable`1 RunTimeoutSeconds, String SpecifiedArchitecture, String UbtArgs, String AdditionalPackageOptions, Nullable`1 IterativeDeploy, Nullable`1
FastCook, Nullable`1 IgnoreCookErrors, Nullable`1 RunAssetNativization, Nullable`1 CodeSign, Nullable`1 TreatNonShippingBinariesAsDebugFiles, Nullable`1 UseExtraFlavor, String Provision, String Certificate, String Team, Boolean AutomaticSigning, ParamList`1 InMapsToRebuildLightMaps, ParamList`1 InMapsToRebuildHLOD, ParamList`1 TitleID)
UATHelper: Cooking (Windows (64-bit)): at BuildCookRun.SetupParams()
UATHelper: Cooking (Windows (64-bit)): at BuildCookRun.ExecuteBuild()
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.BuildCommand.Execute()
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2()
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main)
UATHelper: Cooking (Windows (64-bit)): at AutomationTool.Program.Main(String[] Arguments)
UATHelper: Cooking (Windows (64-bit)): (see C:\Users\PURE STREAMING PC 3\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Aximmetry+DE+UnrealEngine\Log.txt for full exception trace)
UATHelper: Cooking (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
PackagingResults: Error: System.ArgumentException: An item with the same key has already been added.
UATHelper: Cooking (Windows (64-bit)): BUILD FAILED
I have had this for a while now and can't work out what is wrong. I have unistalled Aximmetry and Unreal engines and re-installed but continue to get this error. Any advise?
Cheers, Christian
Hi Christian,
Unfortunately it seems to be an Unreal-specific issue. I cannot tell for sure, but it seems there's a duplication regarding the plugin info. Maybe you have two plugins with the same name in your folder structure?