Error when packing a file on the Windows platform

Hi, I can’t pack my work, and I don’t understand what’s wrong. Can someone help me? The event log entry is below.
LogTurnkeySupport: Warning: Turnkey failed to run properly, full Turnkey output:
Running AutomationTool…
Using bundled DotNet SDK version: 6.0.302
Starting AutomationTool…
Parsing command line: -ScriptsForProject=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” Turnkey -utf8output -WaitForUATMutex -command=VerifySdk -ReportFilename=C:/Users/user/AppData/Local/inZOIModKit/Intermediate/TurnkeyReport_3.log -log=C:/Users/user/AppData/Local/inZOIModKit/Intermediate/TurnkeyLog_3.log -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” -Device=Win64@DESKTOP-H3PVNA1
Initializing script modules…
Total script module initialization time: 0.10 s.
Using C:\Program Files\Epic Games\inZOIMODkit\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe
Executing commands…
Failed to find command Turnkey
(see C:\Users\user\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+inZOIMODkit\Log.txt for full exception trace)
AutomationTool executed for 0h 0m 0s
AutomationTool exiting with ExitCode=1 (Error_Unknown)
BUILD FAILED
LogSlate: Window ‘SDK не настроен’ being destroyed
LogUObjectHash: Compacting FUObjectHashTables data took 0.51ms
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ““C:/Program Files/Epic Games/inZOIMODkit/Engine/Build/BatchFiles/RunUAT.bat” -ScriptsForProject=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=50152 -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” -unrealexe=“C:\Program Files\Epic Game
s\inZOIMODkit\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -installed -stage -archive -package -build -clean -pak -iostore -compressed -prereqs -archivedirectory=“C:/Users/user/Documents/inZOI/Mods”” ]
UATHelper: Упаковка (Windows): Running AutomationTool…
UATHelper: Упаковка (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: Упаковка (Windows): Starting AutomationTool…
UATHelper: Упаковка (Windows): Parsing command line: -ScriptsForProject=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=50152 -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” -unrealexe=“C:\Program Files\Epic Games\inZOIMODkit\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -installed -s
tage -archive -package -build -clean -pak -iostore -compressed -prereqs -archivedirectory=C:/Users/user/Documents/inZOI/Mods
UATHelper: Упаковка (Windows): Initializing script modules…
UATHelper: Упаковка (Windows): Total script module initialization time: 0.11 s.
UATHelper: Упаковка (Windows): Using C:\Program Files\Epic Games\inZOIMODkit\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe
UATHelper: Упаковка (Windows): Executing commands…
UATHelper: Упаковка (Windows): Failed to find command Turnkey
UATHelper: Упаковка (Windows): (see C:\Users\user\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+inZOIMODkit\Log.txt for full exception trace)
UATHelper: Упаковка (Windows): AutomationTool executed for 0h 0m 0s
UATHelper: Упаковка (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Упаковка (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

Hello there @SimaFans!

From your provided log, it seems the main error is “Failed to find command Turnkey”, meaning that the whole packing process is failing due UE not being able to find or execute the Turnkey command. Your engine installation is mostly likely corrupt, or missing components.

So, the first step is to verify your install. In the Epic Games Launcher, navigate to your UE build, then click on the dropdown arrow next to it and select “Verify.” This will epair any missing or corrupted files. If the issue persists after the process, I would suggest a full reinstallation.

The next step to check on your local setup, is to make sure that all elements related to VS and the SDK have the correct version for your UE version. You can check that following the doc below:

Finally, perform a clear cache of your project, via deleting Intermediate, Saved, and .vs folders from your main directory. After that, regenerate your project files from VS. Hope this helps!

1 Like

Thank you very much for your reply, I will try and write back.

I tried to follow all the instructions. I installed VS2022, SDK, and .Net 8.0. I went back to my project and tried to package it. I’m working on Modkit for Inzoi. But I got rejected again. Please take a look. What’s wrong with me? Thank you in advance

UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (289 >= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim_Female001/Textures/C_Costume_Full_Swim_Female001_002_D.uasset
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (289 >= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim_Female001/Textures/C_Costume_Full_Swim_Female001_001_N.uasset
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (291 >= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim_Female001/Textures/C_Costume_Full_Swim_Female001_001_ARM.uasset
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (274 >= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Content/UI/Icon/CharacterCustomize/Costume/Full/Child/Icon_C_Costume_Full_Swim_Female001_001.uasset
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (264 >= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Content/MetaHumans/Common/Materials/Textures/Clothing/Wrinkles/crease_a_tileable_N.uasset
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (289 >= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim_Female001/Textures/C_Costume_Full_Swim_Female001_002_M.uasset
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (291 >= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim_Female001/Materials/MI_C_Costume_Full_Swim_Female001_001.uasset
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (283 >= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ_W_C_GiraffesDress_SimaFans_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim_Female001/Mesh/SKM_C_Costume_Full_Swim_Female001.uasset
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Warning: Unable to find package for cooking /Game/ThirdPerson/Maps/ThirdPersonMap. Instigator: { GameDefaultObject: GameDefaultMap }.
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Warning: Could not resolve package /Game/Mod/Sample_Build/mod_7A89C62769D6 from ../../../inZOIModKit/Releases/UGCExampleGame_v1/Windows/Metadata/DevelopmentAssetRegistry.bin
UATHelper: Packaging (Windows): LogInit: Display:
UATHelper: Packaging (Windows): LogInit: Display: Failure - 8 error(s), 2 warning(s)
UATHelper: Packaging (Windows): LogInit: Display:
UATHelper: Packaging (Windows): Execution of commandlet took: 1.35 seconds
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Shaders left to compile 0
UATHelper: Packaging (Windows): LogStudioTelemetry: Display: Shutdown StudioTelemetry Module
UATHelper: Packaging (Windows): Took 37,01s to run UnrealEditor-Cmd.exe, ExitCode=1
UATHelper: Packaging (Windows): Cook failed.
UATHelper: Packaging (Windows): (see C:\Users\user\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+inZOIMODkit\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 42s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows): BUILD FAILED

Hello again!

The good news is that you were able to resolve the Turnkey issue, as that entry is no longer present in your log. Now we are facing a different problem, filename lenghts:

Couldn’t save package, filename is too long (291 >= 260)

Windows has a default max path limit of 260 characters, and your Modkit is creating long file structures during packaging, thus triggering the build failure. There are two ways to solve this, we can either allow long paths in your system, or migrate the project to a short root folder.

In order to enable long paths, there are two methods, please check them in the guide below:

If the issue continues, it means the paths are still too long. Please move your project to the system root, for example, C:\inZOIModKit. After these changes, please try to pack again.

1 Like

My God, thank you, kind person! Everything is packed! It hasn’t been a year :))) I should have written earlier. I am very grateful for your help

1 Like