Skip to content

WAD and Skin Generation

Isllan Toso edited this page Nov 21, 2026 · 1 revision

WAD and Skin Generation

Bullet generates skins, chromas, forms, and cosmetics directly from the League of Legends installation (DATA/FINAL/Champions/*.wad.client and shared archives) without bundling copyrighted game assets.

WAD v3.4 Reader & Overlay Writer (bullet-wad)

  • Full Compression Support: Reads raw (0), gzip (1), redirection (2), zstd (3), and zstd-chunked (4) entries, including .subchunktoc lookup for raw TEX headers.
  • Bounds-Checked Parsing: All TOC offsets and declared sizes are validated against file/buffer bounds and capped to prevent malformed-archive panics or unbounded allocations (WadError::SizeMismatch).
  • Incremental Overlay Output: OverlayManager and overlay_builder clone only modified WAD mounts, preserve original game headers and untouched compressed entries, and skip identical entries as no-ops. OverlayCache fingerprints the game build and active mod list to skip redundant rebuilds.

Skin, Chroma & Multi-Form Pipeline (bullet-classic)

  • Slot-0 Rebasing: Rebuilds the selected skin, chroma, or form onto slot 0 (skin0.bin) while preserving material overrides, linked bins, animations, VFX, and Wwise audio banks.
  • Exalted & Multi-Form Visibility (keep_default_visible): During initial form transitions (Ctrl+5), keep_default_visible(swaps, initially_hidden) ensures submeshes that start visible on the base model are never accidentally hidden when secondary form groups initialize.
  • Loading Screen Skin Names (loading_name): Generates localized loading-screen overrides (StringOverrides / RST v5) so the chosen skin name displays on the loading card.
  • TFT Cosmetics (tft): Generates bullet_tft_cosmetics mods remapping PROP .bin entries for Tacticians (Companions.wad.client), Booms/Portals (Global.wad.client), and Arenas (Map22.wad.client).
  • Custom Mod Validation & Repair (mod_compat): Validates .fantome, .modpkg, and .zip mods against the installed game patch, backs up originals under state/mod_originals/, and supports one-click restore/repair.

12-Domain Skin Audit (xtask skin-audit)

xtask skin-audit --forms validates every generated champion skin, chroma, and form across 12 technical domains:

  1. Meshes (.skn / .scb)
  2. Skeletons (.skl parent hierarchy)
  3. Animations (.anm)
  4. Animation graphs (AnimationGraphData)
  5. Materials & shaders (StaticMaterialDef)
  6. Textures (.tex / .dds)
  7. Particle systems (VfxSystemDefinitionData)
  8. Wwise audio banks (.bnk / .wpk)
  9. Submesh & Ctrl+5 form visibility
  10. Chromas & material overrides
  11. HUD icons, splash, and VO links
  12. WAD v3.4 packaging integrity

Clone this wiki locally