Improve dev building with scripts #267

Closed
opened 2026-11-07 18:16:59 +00:00 by Heliumrich · 4 comments
Heliumrich commented 2026-11-07 18:16:59 +00:00 (Migrated from github.com)

Hi,

I'm trying to build the port from source, from a git clone and following your instructions in the readme.

I got this

...
no wgpu-native at C:\Users\Niels\Desktop\TOTKPort\third_party\wgpu-native (WGPU_NATIVE): building without the renderer
233 files, 8 jobs, -D_CRT_SECURE_NO_WARNINGS -O1 -DA64_POLLING -DA64_WRITE_TRACK
...
E:\OOTR - PC\Hookshot\nx2\..\host\nn_video.c:19:10: fatal error: 'libavcodec/avcodec.h' file not found
   19 | #include <libavcodec/avcodec.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
...
@@progress 0.991
  code_021.c         18 MB     370s  (790s)
@@progress 0.996
compiled in 790s, 1 failed
@@error build.py stopped: compiled in 790s, 1 failed

I don't understand why it's trying to load stuff from the desktop... when my terminal and the clone is in "E:\OOTR - PC\Hookshot"

Regardless, I think there should be a .log file generated instead of having everything in the terminal

Hi, I'm trying to build the port from source, from a git clone and following your instructions in the readme. I got this ``` ... no wgpu-native at C:\Users\Niels\Desktop\TOTKPort\third_party\wgpu-native (WGPU_NATIVE): building without the renderer 233 files, 8 jobs, -D_CRT_SECURE_NO_WARNINGS -O1 -DA64_POLLING -DA64_WRITE_TRACK ... E:\OOTR - PC\Hookshot\nx2\..\host\nn_video.c:19:10: fatal error: 'libavcodec/avcodec.h' file not found 19 | #include <libavcodec/avcodec.h> | ^~~~~~~~~~~~~~~~~~~~~~ ... @@progress 0.991 code_021.c 18 MB 370s (790s) @@progress 0.996 compiled in 790s, 1 failed @@error build.py stopped: compiled in 790s, 1 failed ``` I don't understand why it's trying to load stuff from the desktop... when my terminal and the clone is in "E:\OOTR - PC\Hookshot" Regardless, I think there should be a .log file generated instead of having everything in the terminal
Heliumrich commented 2026-11-07 18:34:15 +00:00 (Migrated from github.com)

I found why this was happening, I was doing cmd style SET, while I had to do it powershell style.
I think it would be good to add .bat/.ps1/.sh scripts that automatically download the tools folder, set the paths accordingly, and then ask for the path to the game and the path for the output, in an interactive way.

Make it way easier to do it from the repo.
And why ? because your builder in the releases is not always up-to-date with the repo itself.

I found why this was happening, I was doing cmd style SET, while I had to do it powershell style. I think it would be good to add .bat/.ps1/.sh scripts that automatically download the tools folder, set the paths accordingly, and then ask for the path to the game and the path for the output, in an interactive way. Make it way easier to do it from the repo. And why ? because your builder in the releases is not always up-to-date with the repo itself.
Heliumrich commented 2026-11-07 18:44:54 +00:00 (Migrated from github.com)

The game looks like this on my RTX4080, huh is this to be expected ??
Image

No grass or foliage, broken shadows (including on the side of the screen weirdly) and broken textures.

The game looks like this on my RTX4080, huh is this to be expected ?? <img width="3840" height="2160" alt="Image" src="https://github.com/user-attachments/assets/f6ec0a90-3958-42fe-a73d-902cb9a25e88" /> No grass or foliage, broken shadows (including on the side of the screen weirdly) and broken textures.
NotRexed commented 2026-11-07 19:40:39 +00:00 (Migrated from github.com)

Glad you found it. Hookshot Builder (or the Linux AppImage) downloads the tools and sets the paths itself, so it's the easier route; the command-line route is for development. Missing foliage and dark shadows are tracked in #35 and #36, and https://github.com/NotRexed/Hookshot/releases/tag/foliage-linux-updater brings EvilOOT's foliage and lighting work. I'm keeping this open as the request for setup scripts.

Glad you found it. Hookshot Builder (or the Linux AppImage) downloads the tools and sets the paths itself, so it's the easier route; the command-line route is for development. Missing foliage and dark shadows are tracked in #35 and #36, and https://github.com/NotRexed/Hookshot/releases/tag/foliage-linux-updater brings EvilOOT's foliage and lighting work. I'm keeping this open as the request for setup scripts.
NotRexed commented 2026-11-09 05:45:54 +00:00 (Migrated from github.com)

Thanks for the idea. Feature requests are now collected in #1007, which lists this one with a link back here, so closing it in favour of that list (this is not a decision against the idea).

Thanks for the idea. Feature requests are now collected in #1007, which lists this one with a link back here, so closing it in favour of that list (this is not a decision against the idea).
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#267
No description provided.