Repository navigation
Assets and Theme Generation
FTB's art is generated by scripts. Never hand-edit the generated files: change the script's tokens or inputs and rerun it.
.scripts\genTheme.ps1 writes every themed file from the color tokens at its top and the logo
master .res/logo.png (a hand-made 144 px logo). Needs ImageMagick 7 (magick), Python 3, and
devkitPro's tex3ds.
| Output | What it is |
|---|---|
romfs/*.png |
Screen backgrounds, bars, selection row, scroll bar, buttons, progress bars, info boxes, touch buttons, and the 16x16 pixel-art icons (icon_*). Battery and Wi-Fi PNGs are recolored in place. |
romfs/textcolor.cfg |
From $TEXT_COLORS, written as AABBGGRR
|
romfs/logo.png |
The logo master |
meta/icon_3ds.png |
48 px HOME Menu icon |
meta/banner_3ds.png |
Flat banner card (currently unused, see below) |
meta/logo_3ds.bcma.lz |
Launch splash, through genSplash.py
|
Main tokens: $APP_BACKGROUND, $CONTROL_ALT, $PRESSED, $ACCENT, $LOGO_FILL, $LOGO_BORDER,
$TEXT_COLORS, $TOUCH_BUTTON (must match UI_BUTTON_SIZE in source/core/ui/ui.h).
To change the logo, replace .res/logo.png and rerun.
Note
The script rewrites every PNG with new metadata even when the pixels are the same. Compare with
magick compare -metric AE <old> <new> null: and restore unchanged files with git checkout
before committing.
The launch splash meta/logo_3ds.bcma.lz is an LZ11-compressed archive of textures followed by an
HMAC-SHA256 signature. HOME Menu checks the signature at launch and crashes on a mismatch, so the
splash must be re-signed whenever it changes. genTheme.ps1 calls genSplash.py for this.
Caution
The signing key is a Nintendo secret. It lives outside the repo in
%USERPROFILE%\.3ds\logo_hmackey_text and must never be committed, printed, or pasted anywhere.
Get it once from your own console's HOME Menu code with genSplash.py --find-key <file> (the
script's header explains how to extract the file with GodMode9).
Without the key, genTheme.ps1 stops at the splash step: the PNGs, icon, and logo are already
written, but textcolor.cfg is not. The signed splash in the repo works as it is, so only splash
changes need the key.
The HOME Menu banner is a 3D model, meta/banner_3ds.cgfx:
python -P .scripts\genBanner.py <banner.blend> meta\banner_3ds.cgfx
It exports the Blender scene to glTF with the newest installed Blender, converts it with
pycgfx (a pinned checkout in %LOCALAPPDATA%\pycgfx), and
applies fixes from a hardware-tested banner converter (bone names, no skinning, matte materials,
RGB565 textures). Materials are forced single-sided before conversion so pycgfx does not duplicate
their vertices. This matches the old working banner's conversion path; the regenerated low-poly
banner is a candidate fix for the HOME Menu freeze and still needs a real-console check.
The scene needs a COMMON empty, a world empty under it (the axis HOME spins
the model around), and the meshes under world. The output must stay under 512 KB; keep it near
the hardware-tested size budget or smaller. The current low-poly output is 263,208 bytes.
The SMDH has the extendedbanner flag, which HOME Menu needs for a 3D banner. To go back to the flat
banner, point BANNER_IMAGE in the Makefile at meta/banner_3ds.png.
Home · README · Releases · Something wrong on this page? Open an issue
Get started
Screens
- CIA Installer
- Title Manager
- SD File Browser
- 3DS Web Server
- FTP Server
- Remote Install
- FBI Legacy
- Settings
Reference
Help
Contributing