Error: Getting an "Illegal characters in path" error

So, when I was packaging my game, my computer crashed, so I restarted it and when I tried to package it again, it’s now giving me this “Illegal characters in path error”. I’m so screwed right now, if I can’t package my game I can’t release this game, and I made so much progress. Please, someone help me with this!

Here’s the part of the log that got the error:

UATHelper: Packaging (Windows (64-bit)): ERROR: System.ArgumentException: Illegal characters in path.
UATHelper: Packaging (Windows (64-bit)): at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
UATHelper: Packaging (Windows (64-bit)): at System.IO.Path.GetFullPathInternal(String path)
UATHelper: Packaging (Windows (64-bit)): at Tools.DotNETCommon.FileReference…ctor(String InPath)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.DynamicCompilation.RequiresCompilation(List1 SourceFileNames, FileReference AssemblySourceListFilePath, FileReference OutputAssemblyPath) UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, List1 SourceFileNames, List1 ReferencedAssembies, List1 PreprocessorDefines, Boolean DoNotCompile, Boolean TreatWarningsAsErrors)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.RulesAssembly…ctor(IReadOnlyList1 Plugins, List1 ModuleFiles, List1 TargetFiles, Dictionary2 ModuleFileToPluginInfo, FileReference AssemblyFileName, RulesAssembly Parent)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly(FileReference ProjectFileName)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.UEBuildTarget.CreateTarget(TargetDescriptor Desc, String[] Arguments, Boolean bCompilingSingleFile)
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile)
UATHelper: Packaging (Windows (64-bit)): Took 1.3346707s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): ERROR: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\DotNET\UnrealBuildTool.exe Mini_Horror_Vol_1 Win64 Development -Project=“C:\Users\Administrator\Documents\Unreal Projects\Mini_Horror_Vol_1\Mini_Horror_Vol_1.uproject” “C:\Users\Administrator\Documents\Unreal Projects\Mini_Horror_Vo
l_1\Mini_Horror_Vol_1.uproject” -NoUBTMakefiles -remoteini=“C:\Users\Administrator\Documents\Unreal Projects\Mini_Horror_Vol_1” -skipdeploy -noxge -generatemanifest -NoHotReload. See logfile for details: ‘UnrealBuildTool-2018.03.05-20.06.26.txt’
UATHelper: Packaging (Windows (64-bit)): (see C:\Users\Administrator\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

Hey Dave, best thing to do is close the editor. copy your C:\Users\Administrator\Documents\Unreal Projects\Mini_Horror_Vol_1\Saved folder to somewhere else (or delete it). Then repackage.

This should result in a clean package of your game.

/T

It didn’t work. It’s still giving me that error for some reason.

Alright, I fixed it by creating a brand new project and transfered the content folder from the previous project into the new project and It works like a charm. Thanks all for trying to help me with this.

Have the same problem