Download

Yet another Packaging Problem - Really need help Please

Hi Folks
I have a project that has reached a pretty mature stage, literally years of work and now I can’t package
I have tried the usual delete saved Intermediate Build ? folders etc routine… only this time it has not bailed me out.

Backgrond is I added a C++ actor component which works great and is absolutely fundemental to the project.

The error is
ArgumentException: Staged filesystem references cannot end with path separators (Trackside/Content/).

Desperate for assistance or even some pointers on this

Thanks Paul G

Error log attached
Package-Error.txt (7.32 KB)

Log.WriteException: ERROR: System.ArgumentException: Staged filesystem references cannot end with path separators (Trackside/Content/).
Log.WriteException: at StagedFileSystemReference…ctor(String InName) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\StagedFileSystemReference.cs:line 50
Log.WriteException: at StagedDirectoryReference…ctor(String Name) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\StagedDirectoryReference.cs:line 21
Log.WriteException: at StagedDirectoryReference.Combine(StagedDirectoryReference BaseDir, String] Fragments) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\StagedDirectoryReference.cs:line 44
Log.WriteException: at Project.StageAdditionalDirectoriesFromConfig(DeploymentContext SC, DirectoryReference ProjectContentRoot, StagedDirectoryReference StageContentRoot, ConfigHierarchy PlatformGameConfig, Boolean bUFS, String ConfigKeyName) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 354
Log.WriteException: at Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 602
Log.WriteException: at Project.CopyBuildToStagingDirectory(ProjectParams Params) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 3189
Log.WriteException: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 219
Log.WriteException: at BuildCookRun.ExecuteBuild() in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41
Log.WriteException: at AutomationTool.BuildCommand.Execute() in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 242
Log.WriteException: at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 545
Log.WriteException: at AutomationTool.Automation.Process(String] Arguments, StartupTraceListener StartupListener) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 515
Log.WriteException: at AutomationTool.Program.MainProc(String] Arguments, StartupTraceListener StartupListener) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 162
Log.WriteException: at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2() in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 88
Log.WriteException: at AutomationTool.InternalUtils.RunSingleInstance(Func1 Main) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 725 Log.WriteException: at AutomationTool.Program.Main(String] Arguments) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 88 Log.WriteException: (see C:\Users\Paul\AppData\Roaming\Unreal Engine\AutomationTool\Logs\G+Epic+Games+UE_4.22\Log.txt for full exception trace) Log.WriteException: Log.WriteException: ArgumentException: Staged filesystem references cannot end with path separators (Trackside/Content/). Log.WriteException: at StagedFileSystemReference..ctor(String InName) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\StagedFileSystemReference.cs:line 50 Log.WriteException: at StagedDirectoryReference..ctor(String Name) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\StagedDirectoryReference.cs:line 21 Log.WriteException: at StagedDirectoryReference.Combine(StagedDirectoryReference BaseDir, String] Fragments) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\StagedDirectoryReference.cs:line 44 Log.WriteException: at Project.StageAdditionalDirectoriesFromConfig(DeploymentContext SC, DirectoryReference ProjectContentRoot, StagedDirectoryReference StageContentRoot, ConfigHierarchy PlatformGameConfig, Boolean bUFS, String ConfigKeyName) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 354 Log.WriteException: at Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 602 Log.WriteException: at Project.CopyBuildToStagingDirectory(ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 3189 Log.WriteException: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 219 Log.WriteException: at BuildCookRun.ExecuteBuild() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41 Log.WriteException: at AutomationTool.BuildCommand.Execute() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 242 Log.WriteException: at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 545 Log.WriteException: at AutomationTool.Automation.Process(String] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 515 Log.WriteException: at AutomationTool.Program.MainProc(String] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 162 Log.WriteException: at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 88 Log.WriteException: at AutomationTool.InternalUtils.RunSingleInstance(Func1 Main) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 725
Log.WriteException: at AutomationTool.Program.Main(String] Arguments) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 88
Log.WriteException: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

Did you try the ‘golden oldie’ solution of migrating your maps to a new project and packaging from there?..

Hi Thanks for the reply, Yes I did try the migrating but unfortunately no luck this time.

Still searching :slight_smile:

Thanks

So you have Blueprint nativization enabled, if true, disable it, use inclusion. Otherwise I would use the debug method outlined here This helps to isolate the issue better. Perhaps it is working also when you package… have VS open with DebugEditor then CTRL + ALT + P

https://web.archive.org/web/20191120…Packaged_Games

Hi, Many thanks for your suggestions, I will try them and report back
Thanks Paul G

I don’t know if you solved your problem, you never reported back. However, I ran in the same error while packaging.

My problem was that I had added a non-asset directory in the project content folder. I wanted this content copied to the build when packaging. I solved this by adding this folder in the Project Settings, “Additional Non-Asset Directories to Copy”. If you don’t want this content copied you should be able to solve this by simply moving this folder elsewhere.

Cheers!