Game won't build if folder names are too long #1468

Closed
opened 2026-11-10 04:02:13 +00:00 by Micchi-108 · 0 comments
Micchi-108 commented 2026-11-10 04:02:13 +00:00 (Migrated from github.com)

Builder version

v2.0.11

How you built

Hookshot Builder app (Windows)

Game files given to it

A .nup

The error

ChatGPT said:

For this build error, the important clue is FileNotFoundError while creating a .part file. Hookshot's extractor is trying to write a file, but Windows/Python cannot find or create the destination path. This looks more like an extraction-path or directory-creation issue than a compiler problem.

My first suspect is the very long folder and filename combination. Your game is nested several folders deep, and the failing asset also has a long name.

I checked the exact path length:
- Full failing path: 262 characters
- Traditional Windows MAX_PATH limit: 260 characters
That makes a Windows path-length limitation a very strong suspect. Some applications support longer paths, but not every executable or library in a toolchain does.

After changing folders to short names or single letter names it works..

my error is:
Hookshot Builder v2.0.11 on Windows 10.0.26200.0
The build stopped: nup.py stopped (exit status 1): FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Games\\The Legend of Zelda Ocarina Of Time Remake\\The Legend of Zelda Ocarina of Time Remake final\\.game\\romfs\\Event\\EventSetting\\EventSettingComponent\\ExceptionalActorSetting\\FlowchartEvent_MiniGame_FrogTenors.engine__event__ExceptionalActorSetting.bgyml.part'

build: up to 6 compilers at once (one per CPU thread), as the memory allows; HOOKSHOT_JOBS=<n> to change
the compiler: C:\Users\qwe\AppData\Local\HookshotBuilder\versions\v2.0.11\HookshotBuilder\tools\llvm-mingw (no Visual Studio needed)
@@stage read Reading your game files
The Legend of Zelda Ocarina of Time [0400486024DEC000][v131072].nup: 25.62 GB, 2 titles, 1199 dirs, 372587 files
title 0: 0400486024dec000 v65536  exefs 5 files (main 29840183, main.npdm 1828, rtld 10521, sdk 7834834, subsdk0 533397)  romfs 185994 files, 26.23 GB
title 1: 0400486024dec800 v131072  exefs 5 files (main 29953289, main.npdm 1828, rtld 10524, sdk 7833714, subsdk0 533396)  romfs 186583 files, 26.24 GB
extracting title 1 (v131072) to E:\Games\The Legend of Zelda Ocarina Of Time Remake\The Legend of Zelda Ocarina of Time Remake final\.game (105 GB free)
  5000 files, 0.7 GB
  10000 files, 1.6 GB
  15000 files, 2.0 GB
Traceback (most recent call last):
  File "C:\Users\qwe\AppData\Local\HookshotBuilder\versions\v2.0.11\HookshotBuilder\tools\nx2\nup.py", line 511, in <module>
    sys.exit(main())
             ~~~~^^
  File "C:\Users\qwe\AppData\Local\HookshotBuilder\versions\v2.0.11\HookshotBuilder\tools\nx2\nup.py", line 493, in main
    n, total = extract(nup, t, a.extract, a.only)
               ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\qwe\AppData\Local\HookshotBuilder\versions\v2.0.11\HookshotBuilder\tools\nx2\nup.py", line 417, in extract
    with open(dst + ".part", "wb") as g:
         ~~~~^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Games\\The Legend of Zelda Ocarina Of Time Remake\\The Legend of Zelda Ocarina of Time Remake final\\.game\\romfs\\Event\\EventSetting\\EventSettingComponent\\ExceptionalActorSetting\\FlowchartEvent_MiniGame_FrogTenors.engine__event__ExceptionalActorSetting.bgyml.part'
@@error nup.py stopped (exit status 1): FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Games\\The Legend of Zelda Ocarina Of Time Remake\\The Legend of Zelda Ocarina of Time Remake final\\.game\\romfs\\Event\\EventSetting\\EventSettingComponent\\ExceptionalActorSetting\\FlowchartEvent_MiniGame_FrogTenors.engine__event__ExceptionalActorSetting.bgyml.part'

Visual Studio or Build Tools version, and Windows SDK version

No response

Operating system and free space on the output drive

Windows 11 26H2

Before you send it

  • I'm on the newest release, or it still fails on it.
  • I searched the open issues for this error.
  • I'm not attaching game files or anything built from them.
### Builder version v2.0.11 ### How you built Hookshot Builder app (Windows) ### Game files given to it A .nup ### The error ```text ChatGPT said: For this build error, the important clue is FileNotFoundError while creating a .part file. Hookshot's extractor is trying to write a file, but Windows/Python cannot find or create the destination path. This looks more like an extraction-path or directory-creation issue than a compiler problem. My first suspect is the very long folder and filename combination. Your game is nested several folders deep, and the failing asset also has a long name. I checked the exact path length: - Full failing path: 262 characters - Traditional Windows MAX_PATH limit: 260 characters That makes a Windows path-length limitation a very strong suspect. Some applications support longer paths, but not every executable or library in a toolchain does. After changing folders to short names or single letter names it works.. my error is: Hookshot Builder v2.0.11 on Windows 10.0.26200.0 The build stopped: nup.py stopped (exit status 1): FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Games\\The Legend of Zelda Ocarina Of Time Remake\\The Legend of Zelda Ocarina of Time Remake final\\.game\\romfs\\Event\\EventSetting\\EventSettingComponent\\ExceptionalActorSetting\\FlowchartEvent_MiniGame_FrogTenors.engine__event__ExceptionalActorSetting.bgyml.part' build: up to 6 compilers at once (one per CPU thread), as the memory allows; HOOKSHOT_JOBS=<n> to change the compiler: C:\Users\qwe\AppData\Local\HookshotBuilder\versions\v2.0.11\HookshotBuilder\tools\llvm-mingw (no Visual Studio needed) @@stage read Reading your game files The Legend of Zelda Ocarina of Time [0400486024DEC000][v131072].nup: 25.62 GB, 2 titles, 1199 dirs, 372587 files title 0: 0400486024dec000 v65536 exefs 5 files (main 29840183, main.npdm 1828, rtld 10521, sdk 7834834, subsdk0 533397) romfs 185994 files, 26.23 GB title 1: 0400486024dec800 v131072 exefs 5 files (main 29953289, main.npdm 1828, rtld 10524, sdk 7833714, subsdk0 533396) romfs 186583 files, 26.24 GB extracting title 1 (v131072) to E:\Games\The Legend of Zelda Ocarina Of Time Remake\The Legend of Zelda Ocarina of Time Remake final\.game (105 GB free) 5000 files, 0.7 GB 10000 files, 1.6 GB 15000 files, 2.0 GB Traceback (most recent call last): File "C:\Users\qwe\AppData\Local\HookshotBuilder\versions\v2.0.11\HookshotBuilder\tools\nx2\nup.py", line 511, in <module> sys.exit(main()) ~~~~^^ File "C:\Users\qwe\AppData\Local\HookshotBuilder\versions\v2.0.11\HookshotBuilder\tools\nx2\nup.py", line 493, in main n, total = extract(nup, t, a.extract, a.only) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\qwe\AppData\Local\HookshotBuilder\versions\v2.0.11\HookshotBuilder\tools\nx2\nup.py", line 417, in extract with open(dst + ".part", "wb") as g: ~~~~^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Games\\The Legend of Zelda Ocarina Of Time Remake\\The Legend of Zelda Ocarina of Time Remake final\\.game\\romfs\\Event\\EventSetting\\EventSettingComponent\\ExceptionalActorSetting\\FlowchartEvent_MiniGame_FrogTenors.engine__event__ExceptionalActorSetting.bgyml.part' @@error nup.py stopped (exit status 1): FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Games\\The Legend of Zelda Ocarina Of Time Remake\\The Legend of Zelda Ocarina of Time Remake final\\.game\\romfs\\Event\\EventSetting\\EventSettingComponent\\ExceptionalActorSetting\\FlowchartEvent_MiniGame_FrogTenors.engine__event__ExceptionalActorSetting.bgyml.part' ``` ### Visual Studio or Build Tools version, and Windows SDK version _No response_ ### Operating system and free space on the output drive Windows 11 26H2 ### Before you send it - [x] I'm on the newest release, or it still fails on it. - [x] I searched the open issues for this error. - [x] I'm not attaching game files or anything built from them.
Commenting is not possible because the repository is archived.
No milestone
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Hookshot#1468
No description provided.