Skip to content

Grapnel 0.2.0: the builder on Windows, the ocarina at the microphone

Choose a tag to compare

@morpheus302 morpheus302 released this 24 Nov 17:52
· 2 commits to main since this release

Grapnel 0.2.0: the builder on Windows, the ocarina at the microphone

English · Français

Grapnel's builder now runs on Windows 10 and 11 (64-bit), in a step-by-step window, as well as on Linux. It makes the PS5
title Grapnel (GRPN00001) from your own copy of the game, on your PC. Neither download holds a game file.

Downloads

  • Windows: Grapnel-Builder-0.2.0-windows-x64.zip (168 MB). SHA-256: ff43bb2cdd93f8aa38a66db828865355f896dcb465d44ed6d7b816ef7d4c1060.
    This is a portable folder: unpack it and start Grapnel.exe. LLVM, Python and the console toolchain are in it.
  • Linux: grapnel-toolchain-0.3-linux-x64.tar.xz (18 MB), the console toolchain for the command-line builder.
    SHA-256: 3aea4e20d2c0c1e843dd6dc2fd7b6493ca654e08112a29763666b7e406c5b400.

What is new

  • The builder on Windows, in a window with six steps: your game, the options, the check of your PC, the game's build,
    the shaders and the console. "Copy the report" gives what to send with a problem. Grapnel-console.cmd runs the same
    build without the window.
  • The same eboot as on Linux. Windows and Linux compile the game to the same eboot.bin, byte for byte. A player's
    Windows PC gave the CRC32 that the Linux builder gives.
  • The shaders prepared on Windows too. The shader cache made on Windows is the one Linux makes: the same 57,210 keys and
    contents, checked on a player's PC and played on the console (no compile in play).
  • Step 6 sends the title to the console (optional), over FTP:
    • It uses the console's FTP server if one answers (port 2121). Otherwise it sends
      ftpsrv (GPL-3.0) to the console's ELF loader (port 9021).
    • Before replacing anything, it copies your saves to the PC and asks for confirmation.
    • It touches only /data/homebrew/GRPN00001 and /data/grapnel.
    • It sends the game file only when the console does not have it, and carries on a cut send where it stopped.
    • At the end it reads the sizes and the eboot's CRC32 back. ShadowMountPlus then registers the title.
  • A faster compiler on Windows. The package's LLVM 19.1.7 is built for Grapnel: static, and on the same C++ library as
    Linux's, so its code is Linux's. It compiles the game's files 22 to 31 % faster than WinLibs' build.
  • The ocarina can be played into the DualSense's microphone (player 1's, on by default), when the game's own
    microphone option is on. The voice never leaves the console: nothing is sent or recorded, and the controller's mute button
    cuts it. Tried on firmware 12.60; HOOKSHOT_PS5_MIC=0 in /data/grapnel/hookshot_env.txt turns it off.
  • A shaders' time left you can trust, worked out step by step from the preparation's own pace.
  • A build in another output folder is offered back. A game built by an older package is built again.
  • Fixes for Linux too:
    • a PC without git no longer stops the build before its first step;
    • the shaders' preparation is built for any x86-64-v3 processor, not for the PC that made it;
    • a preparation silent for 15 minutes is ended and goes on where it stopped.

Measured on a player's PC

Ryzen 5 3600X, 16 GB, Windows 11, two builds:

Step Time
The translation 155 and 266 s
The compile 1,980 and 2,066 s (33 and 34 min)
The shaders' preparation 1,318 and 2,839 s (22 and 47 min, its check included)

The eboot and the shader cache were identical to Linux's. Ten minutes of play followed on the console with the cache made on
Windows: no shader compiled in play.

Windows SmartScreen and antivirus

Grapnel.exe is not signed. Windows may say "Windows protected your PC": click More info, then Run anyway.

An antivirus may scan or block the builder's programs (clang.exe, ld.lld.exe, zbic_unpack.exe, ps5-native-tool.exe),
which compile the game for the console. If it removes one, step 3 says the tools are incomplete: restore it or exclude the
folder, and unpack again.

What your PC needs

  • Windows 10 or 11 (64-bit), or Linux on x86-64, with a processor that has AVX2.
  • 8 GB of memory at the least (16 GB is much faster).
  • About 12 GB of free disk space besides your game file (25.6 GB).

Sources and licences

  • Grapnel is GPL-3.0-or-later.
  • The four changes the Windows preparation's driver needs are in ps5/mesa-patches/windows/, with the recipe that builds it
    (scripts/grapnel-builder/make_prepare_driver.sh).
  • The static LLVM's recipe is scripts/grapnel-builder/make_windows_llvm.sh.
  • Every part's licence is in the zip (NOTICE.txt, LICENSES\, llvm\LICENSES\, toolchain\NOTICE.md) and in the toolchain
    (NOTICE.md).

Français

Le constructeur de Grapnel tourne maintenant sous Windows 10 et 11 (64 bits), dans une fenêtre pas à pas, en plus de
Linux. Il fabrique le titre PS5 Grapnel (GRPN00001) à partir de votre propre copie du jeu, sur votre PC. Aucun des deux
téléchargements ne contient de fichier du jeu.

Téléchargements

  • Windows : Grapnel-Builder-0.2.0-windows-x64.zip (168 Mo). SHA-256 : ff43bb2cdd93f8aa38a66db828865355f896dcb465d44ed6d7b816ef7d4c1060.
    C'est un dossier portable : décompressez-le, puis lancez Grapnel.exe. LLVM, Python et la chaîne d'outils console sont
    dedans.
  • Linux : grapnel-toolchain-0.3-linux-x64.tar.xz (18 Mo), la chaîne d'outils console du constructeur en ligne de
    commande. SHA-256 : 3aea4e20d2c0c1e843dd6dc2fd7b6493ca654e08112a29763666b7e406c5b400.

Ce qui change

  • Le constructeur sous Windows, dans une fenêtre en six étapes : votre jeu, les options, la vérification du PC, la
    construction du jeu, les shaders et la console. « Copier le rapport » donne ce qu'il faut envoyer en cas de problème.
    Grapnel-console.cmd fait la même construction sans la fenêtre.
  • Le même eboot que sous Linux. Windows et Linux compilent le jeu en un même eboot.bin, octet pour octet. Le PC Windows
    d'un joueur a donné le CRC32 que donne le constructeur Linux.
  • Les shaders préparés sous Windows aussi. Le cache des shaders fait sous Windows est celui que fait Linux : les mêmes
    57 210 clés et contenus, vérifiés sur le PC d'un joueur, puis joués sur la console (aucune compilation en jouant).
  • L'étape 6 envoie le titre à la console (facultative), par FTP :
    • elle passe par le serveur FTP de la console s'il répond (port 2121), sinon elle envoie
      ftpsrv (GPL-3.0) au chargeur d'ELF de la console (port 9021) ;
    • avant de remplacer quoi que ce soit, elle copie vos parties sur le PC et demande confirmation ;
    • elle ne touche que /data/homebrew/GRPN00001 et /data/grapnel ;
    • elle n'envoie le fichier du jeu que si la console ne l'a pas, et reprend un envoi coupé là où il en était ;
    • à la fin, elle relit les tailles et le CRC32 de l'eboot. ShadowMountPlus enregistre ensuite le titre.
  • Un compilateur plus rapide sous Windows. Le LLVM 19.1.7 du paquet est construit pour Grapnel : statique, sur la même
    bibliothèque C++ que celui de Linux, donc son code est celui de Linux. Il compile les fichiers du jeu 22 à 31 % plus vite que
    celui de WinLibs.
  • L'ocarina peut se jouer au micro de la DualSense (celle du joueur 1, allumé par défaut), quand l'option micro du jeu
    est activée. La voix ne quitte jamais la console : rien n'est envoyé ni enregistré, et le bouton muet de la manette coupe
    tout. Essayé en firmware 12.60 ; HOOKSHOT_PS5_MIC=0 dans /data/grapnel/hookshot_env.txt l'éteint.
  • Un temps restant des shaders juste, calculé étape par étape d'après le rythme de la préparation.
  • Une construction dans un autre dossier de sortie est proposée. Un jeu fait par un ancien paquet est reconstruit.
  • Des corrections utiles sous Linux aussi :
    • un PC sans git n'arrête plus la construction avant sa première étape ;
    • la préparation des shaders est construite pour tout processeur x86-64-v3, plus pour le PC qui l'a faite ;
    • une préparation muette pendant 15 minutes est arrêtée puis reprend là où elle en était.

Mesuré sur le PC d'un joueur

Ryzen 5 3600X, 16 Go, Windows 11, deux constructions :

Étape Durée
La traduction 155 et 266 s
La compilation 1 980 et 2 066 s (33 et 34 min)
La préparation des shaders 1 318 et 2 839 s (22 et 47 min, contrôle compris)

L'eboot et le cache des shaders étaient identiques à ceux de Linux. Dix minutes de jeu ont suivi sur la console avec le cache
fait sous Windows : aucun shader compilé en jouant.

SmartScreen et antivirus

Grapnel.exe n'est pas signé. Windows peut afficher « Windows a protégé votre ordinateur » : cliquez sur Informations
complémentaires
, puis Exécuter quand même.

Un antivirus peut examiner ou bloquer les programmes du constructeur (clang.exe, ld.lld.exe, zbic_unpack.exe,
ps5-native-tool.exe), qui compilent le jeu pour la console. S'il en retire un, l'étape 3 dit que les outils sont
incomplets : rétablissez-le ou excluez le dossier, puis décompressez à nouveau.

Ce qu'il faut sur le PC

  • Windows 10 ou 11 (64 bits), ou Linux x86-64, avec un processeur qui a l'AVX2.
  • 8 Go de mémoire au moins (16 Go, c'est bien plus rapide).
  • Environ 12 Go libres, en plus du fichier du jeu (25,6 Go).

Sources et licences

  • Grapnel est sous GPL-3.0-or-later.
  • Les quatre changements dont le pilote de la préparation a besoin sous Windows sont dans ps5/mesa-patches/windows/, avec la
    recette qui le construit (scripts/grapnel-builder/make_prepare_driver.sh).
  • La recette du LLVM statique est scripts/grapnel-builder/make_windows_llvm.sh.
  • La licence de chaque partie est dans le zip (NOTICE.txt, LICENSES\, llvm\LICENSES\, toolchain\NOTICE.md) et dans la
    chaîne d'outils (NOTICE.md).