Hey Unreal experts- I am still having issues packaging my project.
I posted about a similar issue- and it turned out I was missing some visual studio build elements. I installted those, packaged a few builds for QC.
And now it’s suddenly stoped packing the project again- I’m getting the bellow errors:
I’m once again, completly out of my element as far as troubleshooting goes.
Blockquote
ATHelper: Packaging (Windows): Errors generated while parsing ‘D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs’
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(3,18): error CS1514: { expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(3,18): error CS1513: } expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(3,18): error CS8803: Top-level statements must precede namespace and type declarations.
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(3,35): error CS1002: ; expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(3,35): error CS1022: Type or namespace definition, or end-of-file expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(3,37): error CS0116: A namespace cannot directly contain members such as fields or methods
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(4,2): error CS1513: } expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(5,9): error CS0116: A namespace cannot directly contain members such as fields or methods
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(5,41): error CS1003: Syntax error, ‘,’ expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(5,49): error CS1002: ; expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(5,49): error CS1022: Type or namespace definition, or end-of-file expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(5,63): error CS1002: ; expected
UATHelper: Packaging (Windows): D:\Dropbox\Dropbox\Personal_projects\Games\FirstPerson_demo\Intermediate\Source\Bird-Hell_Game.Target.cs(11,1): error CS1022: Type or namespace definition, or end-of-file expected
UATHelper: Packaging (Windows): ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
UATHelper: Packaging (Windows): at AutomationTool.ProjectUtils.CompileAndLoadTargetsAssembly(ProjectProperties Properties, FileReference TargetsDllFilename, Boolean DoNotCompile, List1 TargetScripts) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:line 840 UATHelper: Packaging (Windows): at AutomationTool.ProjectUtils.DetectTargetsForProject(ProjectProperties Properties, List
1 ExtraSearchPaths) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:line 818
UATHelper: Packaging (Windows): at AutomationTool.ProjectUtils.DetectProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, List
1 ClientTargetConfigurations, Boolean AssetNativizationRequested) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:line 634
UATHelper: Packaging (Windows): at AutomationTool.ProjectUtils.GetProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, List
1 ClientTargetConfigurations, Boolean AssetNativizationRequested) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:line 175
UATHelper: Packaging (Windows): at AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectParams.cs:line 2306
PackagingResults: Error: System.NullReferenceException: Object reference not set to an instance of an object.
UATHelper: Packaging (Windows): at AutomationTool.ProjectParams…ctor(FileReference RawProjectPath, BuildCommand Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, String UnrealExe, String UE4Exe, String SignPak, List
1 ClientConfigsToBuild, List1 ServerConfigsToBuild, ParamList
1 MapsToCook, ParamList1 MapIniSectionsToCook, ParamList
1 DirectoriesToCook, String DDCGraph, String InternationalizationPreset, ParamList1 CulturesToCook, ParamList
1 C
lientCookedTargets, ParamList1 EditorTargets, ParamList
1 ServerCookedTargets, List1 ClientTargetPlatforms, Dictionary
2 ClientDependentPlatformMap, List1 ServerTargetPlatforms, Dictionary
2 ServerDependentPlatformMap, Nullable1 Build, Nullable
1 SkipBuildClient, Nullable1 SkipBuildEditor, Nullable
1 Cook, Nullable1 Run, Nullable
1 SkipServer, Nullable1 Clean, Nullable
1 Compressed, Nullable1 ForceUncompressed, String AdditionalPakOptions, String AdditionalIoStoreOptions, Nullable
1 IterativeCooking, String IterateSharedCookedBuild, Nullable1 IterateSharedBuildUsePrecompiledExe, Nulla ble
1 CookAll, Nullable1 CookPartialGC, Nullable
1 CookInEditor, String CookOutputDir, Nullable1 CookMapsOnly, Nullable
1 CookOnTheFly, Nullable1 CookOnTheFlyStreaming, Nullable
1 UnversionedCookedContent, Nullable1 OptionalContent, Nullable
1 EncryptIniFiles, Nullable1 EncryptPakIndex, Nullable
1 EncryptEverything, Nullable1 SkipCookingEditorContent, String AdditionalCookerOptions, String OriginalReleaseVersion, String BasedOnReleaseVersion, String CreateReleaseVersion, String CreateReleaseVersionBasePath, String BasedOnReleaseVersionBasePath, String ReferenceContainerGlobalFileName, St ring ReferenceContainerCryptoKeys, Nullable
1 GeneratePatch, Nullable1 AddPatchLevel, Nullable
1 StageBaseReleasePaks, String DiscVersion, String DLCName, String DLCOverrideCookedSubDir, String DLCOverrideStagedSubDir, String DiffCookedContentPath, Nullable1 DLCIncludeEngineContent, Nullable
1 DLCPakPluginFile, Nullable1 DLCActLikePatch, Nullable
1 CrashReporter, Nullable1 DedicatedServer, Nullable
1 Client, Nullable1 Deploy, String DeployFolder, String GetFile, Nullable
1 FileServer, Nullable1 Foreign, Nullable
1 ForeignCode, Nullable1 LogWindow, Nullable
1 NoCleanStage, Nullable1 NoC lient, Nullable
1 NoDebugInfo, Nullable1 SeparateDebugInfo, Nullable
1 MapFile, Nullable1 NoXGE, Nullable
1 SkipPackage, Nullable1 NeverPackage, Nullable
1 Package, Nullable1 Pak, Nullable
1 IgnorePaksFromDifferentCookSource, Nullable1 IoStore, Nullable
1 Cook4IoStore, Nullable1 ZenStore, String NoZenAutoLaunch, Nullable
1 SkipIoStore, Nullable1 GenerateOptimizationData, Nullable
1 Prereqs, String AppLocalDirectory, Nullable1 NoBootstrapExe, Nullable
1 SignedPak, Nullable1 PakAlignForMemoryMapping, Nullable
1 RehydrateAssets, Nullable1 NullRHI, Nullable
1 FakeClient, Nullable1 Edito rTest, Nullable
1 RunAutomationTests, String RunAutomationTest, Nullable1 CrashIndex, Nullable
1 SkipCook, Nullable1 SkipCookOnTheFly, Nullable
1 SkipPak, Nullable1 PrePak, Nullable
1 SkipStage, Nullable1 Stage, Nullable
1 Manifests, Nullable1 CreateChunkInstall, Nullable
1 SkipEncryption, Nullable1 Unattended, Nullable
1 NumClients, Nullable1 Archive, String ArchiveDirectoryParam, Nullable
1 ArchiveMetaData, Nullable1 CreateAppBundle, String SpecifiedClientTarget, String SpecifiedServerTarget, ParamList
1 ProgramTargets, Nullable1 Distribution, String PackageEncryptionKeyFile, Nullab le
1 Prebuilt, Nullable1 RunTimeoutSeconds, String SpecifiedArchitecture, String UbtArgs, String AdditionalPackageOptions, Nullable
1 IterativeDeploy, Nullable1 FastCook, Nullable
1 IgnoreCookErrors, Nullable1 CodeSign, Nullable
1 TreatNonShippingBinariesAsDebugFiles, Nullable1 UseExtraFlavor, String Provision, String Certificate, String Team, Boolean AutomaticSigning, String Trace, String TraceHost, String TraceFile, String SessionLabel, ParamList
1 InMapsToRebuildLightMaps, ParamList1 InMapsToRebuildHLOD, ParamList
1 TitleID) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Pro
grams\AutomationTool\AutomationUtils\ProjectParams.cs:line 1223
UATHelper: Packaging (Windows): at BuildCookRun.SetupParams() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 49
UATHelper: Packaging (Windows): at BuildCookRun.ExecuteBuild() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 40
UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.Execute() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 344
UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.ExecuteAsync() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 353
UATHelper: Packaging (Windows): at AutomationTool.Automation.ExecuteAsync(List1 CommandsToExecute, Dictionary
2 Commands) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 257
UATHelper: Packaging (Windows): at AutomationTool.Automation.ProcessAsync(ParsedCommandLine AutomationToolCommandLine, StartupTraceListener StartupListener, HashSet`1 ScriptModuleAssemblies) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 156
UATHelper: Packaging (Windows): (see C:\Users\amand\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+UE_5.1\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 1s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error
LogAudioMixer: Warning: Decoder Error, stopping source [CompileFailed]