fh2_shaders.nfsp & derived pack guide
Exact Android folder paths, two-pass Linux shader compilation for Forza Horizon 2 Recompiled, and why the horizon-derived.zip setup error comes from a different Horizon port.
- fh2_shaders.nfsp
- horizon-derived.zip fix
- Title ID 4D530AA4
- Emulated fallback

Two separate open-source Android ports share the word “Horizon” and a 0.4.5 release number, which is why searches for fh2_shaders.nfsp and no derived pack: put horizon-derived.zip in the app folder land in the same results. This page separates the two projects, shows the exact folder paths each app checks, and walks through building your own pack cleanly.
This site hosts zero files: no APKs, game dumps, fh2_shaders.nfsp packs or horizon-derived.zip archives, and it never links to third-party copies. Both packs are generated on a computer from a game copy you legally own.
Which “Horizon” pack do you need?
Check the APK filename and package folder before copying anything to your phone: putting horizon-derived.zip into Forza Horizon 2 or fh2_shaders.nfsp into dev.horizonlab.horizon does nothing.
| Check | FH2 Recompiled (Forza Horizon 2) | Horizon for Android (Rust MC 26.3) |
|---|---|---|
| Repository | Gabrick75/fh2-recompiled | Rayan-XOO/horizon (fork of horizon-rust/horizon) |
| Target game | Forza Horizon 2 for Xbox 360, USA edition (Title ID 4D530AA4) | Minecraft: Java Edition 26.3 rewritten in Rust |
| User-built pack | fh2_shaders.nfsp (~72 MB first pass; 75,497,272 bytes complete) | horizon-derived.zip (~4 MB zipped / ~126 MB unpacked) |
| Android path | Internal storage/jogos/ForzaHorizon2/fh2_shaders.nfsp (or next to your .iso) | /sdcard/Android/data/dev.horizonlab.horizon/files/horizon-derived.zip |
| PC build script | tools/xenos/biblioteca.sh (Linux x86-64) | packaging/android/make_derived_pack.sh after horizon-prepare |
| Playable without pack? | Yes — pick Emulated under Graphics | No — setup waits for horizon-derived.zip or files/resources/ |
Horizon 0.4.5: no derived pack fix
If your phone screen shows the verbatim message below, you are inside SetupActivity of Horizon for Android (Rayan-XOO/horizon, package dev.horizonlab.horizon), not Forza Horizon 2. After downloading ~525 MB of SHA-1-verified client assets, crates/horizon-client/src/android_setup.rs checks home.join("horizon-derived.zip") and halts when both that file and HORIZON_DERIVED_URL are missing. For full Rust Minecraft 26.3 Android APK setup, Starling comparisons, and android-v0.4.7 notes, see the dedicated Horizon Rust horizon-derived.zip setup guide and Horizon Android APK comparison.
Horizon 0.4.5 setup: No derived pack: put horizon-derived.zip in the app folder
no derived pack: put horizon-derived.zip in the app folder
- Verify which game you meant to set up. For Forza Horizon 2 on Xbox 360, close that app and jump to where
fh2_shaders.nfspgoes. - Prepare the derived data on a PC. In a clone of
Rayan-XOO/horizonwith JDK 25 and Rust installed, runcargo run --release -p horizon-prepare -- --prepare --server-jar ~/Downloads/server.jarusing your own Java copy, then run./packaging/android/make_derived_pack.shto zip the Java-exported collision, entity models and data reports (~126 MB unpacked, ~4 MB zipped, includinghorizon-resources.jsonandfacts.json) intohorizon-derived.zip. - Open the Android app once so Android creates
/sdcard/Android/data/dev.horizonlab.horizon/files/(or note the custom directory chosen under Settings > Game folder). - Copy
horizon-derived.zipinto thatfiles/folder viaadb push horizon-derived.zip /sdcard/Android/data/dev.horizonlab.horizon/files/horizon-derived.zipor the setup screen’s folder button, then tap start again so setup unpacks it and clears.horizon-setup-incomplete. You can also skip on-phone setup altogether by pushing.local/horizon-client/26.3/.straight to/sdcard/Android/data/dev.horizonlab.horizon/files/resources/.
Where fh2_shaders.nfsp goes
In FH2 Recompiled (Gabrick75/fh2-recompiled), the native Vulkan renderer draws Xbox 360 Xenos GPU commands directly using ahead-of-time SPIR-V shaders stored in fh2_shaders.nfsp. Place the file right next to your game data so fh2_nativo_biblioteca_dir finds it on startup:
Internal storage/jogos/ForzaHorizon2/ ← extracted game folder
default.xex ← main Xbox 360 executable
XMediaFacade_default.xex
SpeechFacade_default.xex
media/ ← game data folder
fh2_shaders.nfsp ← native shader pack (fh2_nativo_biblioteca_dir)
Internal storage/jogos/ForzaHorizon2.iso ← or: your disc image read in place
Internal storage/jogos/fh2_shaders.nfsp ← right next to your .iso
- Version compatibility: release notes from
v0.4.3throughv0.4.5.1confirm that afh2_shaders.nfspbuilt for v0.4.2 works without rebuilding. Only packs older than 0.4.2 miss the Adreno faceted car paint fix. - Playing right away without a Linux PC: open Graphics in the launcher and switch Renderer to Emulated. It needs no
fh2_shaders.nfspand renders a faithful image at a lower frame rate. - Stock Adreno drivers without Turnip: per
TUTORIAL_SHADERS_EN.md, passing--fh2_nativo_sin_indexing=trueenables Method A fixed descriptor heaps ([nativo] C6: sin descriptor indexing: metodo A) when a stock phone driver lacksruntimeDescriptorArray.
Build fh2_shaders.nfsp on Linux
Because the shaders come out of your own Forza Horizon 2 executable and track .fxobj archives, the APK never bundles them. On an x86-64 Linux PC (Clang 20, CMake 3.25+, Ninja, Python 3.8+, Java 17+, ~20 GB disk and 12 GB+ RAM), follow the repository’s two-pass TUTORIAL_SHADERS_EN.md workflow:
| Step | Command & output |
|---|---|
| 1. Unpack your ISO | python3 tools/fase1_extraer.py /path/to/YourForzaHorizon2.iso -o assets/game_root unpacks your USA Xbox 360 disc into Git-ignored assets/game_root/. |
| 2. Build Linux host & codegen | ./build_pc.sh builds the ReXGlue host, translates default.xex into app/generated and compiles the Linux app (use MARCH=x86-64-v2 ./build_pc.sh on older x86-64 CPUs). |
| 3. Dump executable sections | tools/rodar_pc.sh --xex_despejar_imagem=app/out/shaders_fh2_imagem boots the PC build once to write the image sections required by biblioteca.sh, then close the window. |
| 4. First-pass shader library | tools/xenos/biblioteca.sh fetches pinned DXC v1.9.2607 (SHA-256 checked) and Android NDK 29.0.14206865 SPIR-V tools, writing app/out/shaders_fh2/fh2_shaders.nfsp (spirv ok=4074 falhou=4). |
| 5. Loose D3D shaders (pass 2) | tools/rodar_pc.sh --nfsmw_renderizador=nativo --fh2_nativo_volcar_sueltos=$PWD/app/out/shaders_fh2_sueltos records the 42 internal D3D shaders while browsing menus and a short drive; run tools/xenos/biblioteca.sh again for the complete 75,497,272-byte pack. |
| 6. Push to Android | tools/enviar_biblioteca_android.sh runs adb push to /sdcard/jogos/ForzaHorizon2/fh2_shaders.nfsp (or copy it next to your .iso). |
Check app/out/shaders_fh2/versoes.txt when finished: the two-pass reference counts are contenedores=4142, hlsl=4078, spirv ok=4074 falhou=4, sueltos=42 and nfsp_bytes=75497272. Return to the install guide and best settings to tune resolution and frame generation on your phone.
Derived pack & shader errors
Match the exact message on your screen or in /sdcard/jogos/fh2-logs/ against the upstream source checks below, or see the broader troubleshooting guide for GPU and freeze reports:
| Exact error or symptom | Cause & verified fix |
|---|---|
Horizon 0.4.5 setup: No derived pack: put horizon-derived.zip in the app folder | Thrown by SetupActivity (crates/horizon-client/src/android_setup.rs) in Rayan-XOO/horizon when HORIZON_DERIVED_URL is empty and horizon-derived.zip is absent. Put your PC-built horizon-derived.zip inside /sdcard/Android/data/dev.horizonlab.horizon/files/ (or your chosen game folder), or push PC-prepared .local/horizon-client/26.3/. to files/resources/. |
the file belongs to another app (copied with a file manager) | Android scoped storage blocked read access because an external file manager wrote horizon-derived.zip under another UID. Delete that copy and import horizon-derived.zip with the setup screen’s own folder button or adb push. |
derived pack: the link gives a web page, not a zip | The URL pasted into setup returned an HTML confirmation page (common on Google Drive large-file prompts) instead of a ZIP header. Download the archive in a browser first and place horizon-derived.zip in the app folder. |
The derived pack lacks horizon-resources.json or facts.json | The archive unpacked without the root files produced by horizon-prepare. Rebuild it from .local/horizon-client/26.3/ with ./packaging/android/make_derived_pack.sh. |
| Black screen with audio after tapping Play in FH2 Recompiled (#3, #6, #83, #84) | The Native renderer is active without a matching fh2_shaders.nfsp next to your .iso or inside Internal storage/jogos/ForzaHorizon2/. Switch Graphics > Renderer to Emulated, or copy your own fh2_shaders.nfsp into that folder. |
ERRO: imagens do executável não encontradas em .../app/out/shaders_fh2_imagem.* | tools/xenos/biblioteca.sh ran before dumping the executable image. Run tools/rodar_pc.sh --xex_despejar_imagem=app/out/shaders_fh2_imagem first, let the window open, close it and rerun biblioteca.sh. |
[aviso] sem .../shaders_fh2_sueltos: a biblioteca sai sem os shaders internos da D3D | First-pass warning: the pack boots the game but omits 42 internal D3D shaders. Run --fh2_nativo_volcar_sueltos in native mode on PC, then run tools/xenos/biblioteca.sh a second time. |
el dispositivo Vulkan no tiene runtimeDescriptorArray: no se dibuja | The phone’s Vulkan driver lacks descriptor indexing. Update to v0.4.5.1 and keep --fh2_nativo_sin_indexing=true (Method A fixed-size descriptor heaps, which works without Turnip) or load a Mesa Turnip driver on Adreno 6xx/7xx. |



Frequently asked questions
What causes “horizon 0.4.5 setup: no derived pack: put horizon-derived.zip in the app folder”?
That message is not from Forza Horizon 2 Recompiled. It comes from Horizon for Android (Rayan-XOO/horizon, package dev.horizonlab.horizon), a Rust port of Minecraft: Java Edition 26.3 that also shipped a 0.4.5 Android APK. Its first-run setup downloads base assets and then checks /sdcard/Android/data/dev.horizonlab.horizon/files/horizon-derived.zip when no HORIZON_DERIVED_URL was compiled in. Generate horizon-derived.zip on a PC from your own Java copy with horizon-prepare and packaging/android/make_derived_pack.sh, then place it in that files/ folder.
Does FH2 Recompiled ever ask for horizon-derived.zip?
No. FH2 Recompiled (Gabrick75/fh2-recompiled) reads your Forza Horizon 2 Xbox 360 USA disc image (.iso) or extracted folder (default.xex, XMediaFacade_default.xex, SpeechFacade_default.xex and media/). Its only optional user-generated pack is fh2_shaders.nfsp for the native Vulkan renderer.
Where do I put fh2_shaders.nfsp on Android?
Put fh2_shaders.nfsp directly beside your game files: either inside Internal storage/jogos/ForzaHorizon2/fh2_shaders.nfsp when using an extracted folder, or in the exact same directory as your ForzaHorizon2.iso when playing straight from the disc image.
Can I play FH2 Recompiled without fh2_shaders.nfsp?
Yes. Open Graphics in the FH2 Recompiled launcher and change Renderer from Native to Emulated. The emulated Xenos renderer translates shaders to SPIR-V while you drive and needs no fh2_shaders.nfsp file, though frame rates are lower and new shaders stutter the first time they compile.
Do I need to rebuild fh2_shaders.nfsp for v0.4.5.1?
Not if you already built one for v0.4.2, v0.4.3, v0.4.4 or v0.4.5: the release notes through v0.4.5.1 confirm that the v0.4.2 fh2_shaders.nfsp continues to work. Rebuild only if your pack predates v0.4.2 (which fixed faceted car paint on Adreno) or lacked the second-pass D3D internal shaders.
Why should I avoid downloading fh2_shaders.nfsp or horizon-derived.zip online?
Both archives contain translated material derived directly from copyrighted retail game files, so neither project distributes them. In FH2 Recompiled issue #57, third-party shader files circulated online also proved incomplete, leaving black UI boxes and heavy stutter compared with a two-pass library built from your own disc.