Read-only copy of github.com/holdmysocks/SixNG · Asset extractor for your own GTA VI install (Xbox Series, RPF9): CLI and desktop app; models to glTF, textures, map data. GPL-3.0.
  • Rust 96.6%
  • WGSL 3%
  • Python 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Brandon Villar bab14f0821
Map 3D cells: join neighbouring batches into one draw (#475)
Cell batches go to the GPU ordered by pass, texture chunk and distance range. Batches in range that touch draw as one call, also across a batch out of range when that adds at most half the call's indices; the vertex shader already drops placements out of range. The chunk's bind group is set only when it changes.
2026-11-27 09:54:26 -05:00
.cargo Audio: find sound banks in audio.rpf, play and export them 2026-11-20 20:16:32 -05:00
.github/workflows Metal4: finish submission slots and resource pooling (#246) 2026-11-25 01:09:57 -05:00
assets/logo Initial commit: SixNG, a GTA VI (Xbox Series, RPF9) asset extractor 2026-11-20 19:07:58 -05:00
crates Map 3D cells: join neighbouring batches into one draw (#475) 2026-11-27 09:54:26 -05:00
docs/images Initial commit: SixNG, a GTA VI (Xbox Series, RPF9) asset extractor 2026-11-20 19:07:58 -05:00
scripts Hair export: strand colours (COLOR_0) and a coloured Blender material (#344) 2026-11-25 23:09:03 -05:00
.gitignore macOS support: file-manager buttons, settings folder, memory budget (#2) 2026-11-21 15:41:34 -06:00
Cargo.lock Version 0.12.0 (#469) 2026-11-27 01:30:57 -05:00
Cargo.toml Version 0.12.0 (#469) 2026-11-27 01:30:57 -05:00
LICENSE Initial commit: SixNG, a GTA VI (Xbox Series, RPF9) asset extractor 2026-11-20 19:07:58 -05:00
README.md Map 3D cells: join neighbouring batches into one draw (#475) 2026-11-27 09:54:26 -05:00
THIRD_PARTY_NOTICES.md Notices: thank the gta6-namehash contributors (#179) 2026-11-24 11:14:17 -06:00

SixNG

License: GPL v3

SixNG Extractor

An asset extractor for your own GTA VI install (Xbox Series build, RPF9 archives). It is meant for personal modding.

There is one Rust core library with two front ends:

  • sixng: a CLI with JSON output, filters, categories and resumable runs.
  • sixng-gui: a desktop app to open an install, browse and search it, preview items and extract a selection.

Game data never goes in git. Indexes, extracted output and scratch files all go under work/ (or any --out you choose). work/ and every *.png/*.dds/*.glb file are in .gitignore.

Updating the Metal-Rust pin

SixNG pins metal-rust and metal-rust-ffi to the same exact Git revision in Cargo.toml, and Cargo.lock must resolve both packages to that same revision. Before updating the pin, verify that the upstream change passes Metal-Rust's inventory, safety, unit and GPU tests. Then update both patches and regenerate the lockfile:

cargo update -p metal-rust -p metal-rust-ffi --precise <commit>
python3 scripts/check_metal_rust_pin.py

The pin checker is part of CI and rejects mismatched or incomplete revisions.

Shaded UV checker + wireframe
Model viewer, shaded Model viewer, UV checker

Screenshots show the app with a generated demo scene (crates, a barrel and a ground plane), not game content.

BCPack: all six BC formats decode. BCPack is the Xbox Series hardware texture compression, with one codec per BC format and no public specification. About 12 % of the game's textures have their full-size image stored in BCPack. Almost all of them are BC1, which SixNG decodes, so they export at full size. BC3 decodes too (only 17 textures use it), and so do BC7 (1,872 textures), BC4 (40), BC5 (91) and BC6H (98). Their preset tables are fitted, so some blocks can be off (speckles, mostly in BC7 and BC6H). If a chunk ever fails to decode, SixNG uses the largest smaller mip that is stored normally, or a flat fallback colour flagged as texture_fallback in model.json.

Status

Area State
RPF9 header works: parsed and shown by sixng info
Listing / search works: carving index plus name recovery. On levels.rpf: 523,532 entries (1.12 M zlib streams, 98.3 % byte coverage), 236,604 named (drawables, fragments, texture dictionaries). A full index takes about 3 min. Since 2026-11-24 (index version 6), a resource whose system page continues in a stream that happens to start on a resource boundary stays one entry: its page-map pointer says how much system page it needs. Before, 22 resources were split in two (20 map models in levels.rpf, one in anim.rpf, one in story000.rpf), and the models came out empty. An index from an older version is upgraded in place by sixng index (since 2026-11-25): entries are grouped again from the saved stream scan, a segment saved by the scan before index version 7 is kept unless a stored 64 KiB chunk follows a full chunk in it (only those 256 MiB segments are scanned again), and names of unchanged entries are kept (from version 7 and older, names read from a <name>.#<tag> string are recovered again). From version 6 to 8 this takes about 3 min for levels.rpf (7 of 284 segments scanned again), and the result is byte-identical to a fresh --force index. sixng index reports per archive whether the index was reused, upgraded, resumed, rescanned or new; the GUI's Jobs page lists the same.
Textures in texture dictionaries and models works for BC1/BC2/BC3/BC4/BC5/BC6H/BC7: Xbox tiling removed, PNG and DDS output, checked visually. RGBA8 tiling is unverified. Arrays and cube maps export every slice: the DDS is a 2D array or cube map, and <name>_slices.png stacks the slices top to bottom. In the texture dictionaries, block-compressed arrays are stored slice by slice, each slice with its whole mip chain. The bulk stores use level-by-level order instead. Since 2026-11-25 every layer of the BC7 blood and crumple-normal arrays has mip 1 matching its mip 0 averaged (38–99 dB), where level-by-level order gives 11–16 dB. Before that, only slice 0 was written. Since 2026-11-26 the one block-compressed volume (a BC5 128×128×128 cloud volume with 8 mips) exports whole, as a 3D DDS with all mips. It uses 4×8×8 bricks of BC blocks and the same per-layer mip chain as the R8 fog volume, and its tail mips sit in the same slots plus byte 0. Each mip matches the one above averaged at 38–52 dB, and the brick seams are as smooth as the inside. Before, it exported a garbled first slice. BCPack-only textures get a flat fallback colour, flagged texture_fallback in model.json. Since 2026-11-21, small textures with mips whose whole chain fits in one 4 KiB mip-tail block (32×32 BC3 HUD icons and the like) decode from that block; before, they came out blank. Which materials are affected, and how much of the map they cover: sixng texture-gaps → work/texture_gaps.json. Tint palettes: the tintpalettetex slot (2c8d7182) of almost every map model points at a one-row RGBA8 palette embedded in the model itself (13 to 2,051 colours). Since 2026-11-21 the exporter finds it by its store key and writes textures/<hash>.png next to model.json (status ok (embedded in the model)); before, these showed as "not in any ttpf store" (30 K of the 33.8 K such hashes in a full map export). The vertex colour's blue channel is the palette index (checked on 36 models: never past the palette's real entries; tinted parts have near-grey base textures), so the GLB carries the tint as COLOR_0 = palette entry in linear RGB, which glTF viewers and importers multiply into the base colour: white pool tiles come out pool-blue, white cables black, grey or blue. Palettes hold rows of colour variants (a shelf's 4 colour schemes, a filing cabinet's 16): the width is a power of two plus k extra texels, and a row holds 256 >> k entries (1024 wide = 4 rows of 256, 131 = 4 × 32, 260 = 16 × 16, 13 = 1 × 8). Each placed instance picks its row with the entity tint value (field 3c852527), written as tint_row in sixng placements (absent = 0; 22 % of the 1.6 M entities on models with a palette use a row other than 0, and 99.8 % of those are within the palette's rows). model.json gives each palette's tint_rows and tint_row_length, so an instance's colour is palette entry tint_row × tint_row_length + COLOR0.b. The GLB uses row 0, the default. The game does not always apply the full palette colour. Since 2026-11-26 model.json gives each tinted material a tint_weight, read in the pixel shaders of prop_batch_dirt, standard, standard_dirt and standard_decal_blend (the standard, decal and prop_batch families). There the albedo is multiplied by lerp(1, palette colour, w) with w = 1 − (1 − speculartex2.a) × strength (constant 381999f3), and a second control (73511514) smooths w and blends toward a colour (b1b16aaf). In a sample of 8.6 K tinted map materials, strength is 1 on 2.6 K (w = the mask's alpha), 0 on 2.0 K (the full colour) and unset on the two-layer shaders, which use 381999f3 for something else; their weight is not decoded. COLOR_0 still holds the full colour. The sixng-gui model viewer shows it too, with a tint checkbox under View (on by default; --no-tint for screenshots); models cached from before are exported again when opened. The remaining 3.7 K referenced hashes (139 K references in a full map export) are in no store and no resource of the install; two of them (1e2c9340e14a7d07, aa3eeff23a15dc75) account for half of those references and are probably engine defaults. Since 2026-11-21 each such reference gets a texture_fallback in model.json (reason "not in the install") with a value by slot: engine-default hashes white (5d7a3a87cc19967d, the vehicle paint slot; 1e2c9340e14a7d07, assumed); a missing base colour on a model with a tint palette white, so the tint shows; other colour slots the average of the model's decoded colour textures; normal maps flat; known data slots their typical value (median of the decoded textures in that slot); other data mid grey. A decal whose base colour is missing gets alpha 0, so it no longer draws as a white strip (bathroom decal sample: white edge strips and a white pillar gone).
Bulk texture stores (data/ttdb/*.ttpf, pack/*/data/ttdb/*.ttpf) works for all 357 K textures by the chunk-table check (mip 0 outside undecodable BCPack chunks; 99.97 % before BC6H BCPack decoding, 99.94 % before BC4/BC5, 99.4 % before BC7, 86.8 % before BC1): maps 99.2 %, props 99.5 %, peds 99.2 %, interiors 99.7 %, vehicles 98.9 %, terrain 97.4 %, ui 91.1 %. The layout is AMD Gfx10: tile mode 0 = SW_64KB_D, modes 1–3 = SW_4KB_S, with the addrlib mip tail. That covers all sizes, including the car body/detail textures and the small ones. Each mip was checked against the next one downsampled, and the results were viewed on UI images, atlases, billboards, vehicle detail maps and normal atlases. BCPack (the Xbox Series hardware texture codec, one codec id per BC format, no zlib copies): 12.4 % of textures have mip 0 in BCPack chunks. BC1 BCPack chunks (codec 0x04) decode since 2026-11-21, which brings 11.6 % of all textures to full size; if a chunk does not decode, the texture falls back to the largest mip outside BCPack as before. BC3 BCPack chunks (codec 0x0C) decode since 2026-11-22 (35 chunks; 17 more textures at full size). Its preset table and colour index codebook were fitted against the neighbouring mips: decoded mips match the next mip within 27–47 dB RGB, mostly 31–39 dB. BC7 BCPack chunks (codec 0x1C) decode since 2026-11-22 (5,167 chunks; 1,872 more textures at full size, mip 0 coverage 99.41 % → 99.94 %). Its 256-slot preset history table was fitted against the neighbouring mips, so blocks whose reference chain starts in a mis-fitted slot (near the start of a chunk) can come out speckled; the rest matches the next mip closely. The last 34 endpoint preset slots (1.05 % of BC7 blocks, 17.7 % in the content-pack stores; none of those textures has a plain neighbour mip) were fitted on 2026-11-22 against the decoded next smaller mip, so no BC7 block is left unfitted: on the 71 affected textures mip 0 agrees with mip 1 at a median of 33 dB (53 at 30 dB or better, 4 under 20 dB). Fitting those slots from block-edge continuity alone was not enough: where every block of a texture starts from the slot, a constant offset per channel keeps the edges continuous (blue came out shifted by up to 129 levels). BC4 and BC5 BCPack chunks (codecs 0x10, 0x14) decode since 2026-11-22 (77 BC4 and 333 BC5 chunks; 40 and 91 more textures at full size, mip 0 coverage 99.94 % → 99.97 %). Their preset tables and index-pair tables were fitted against the neighbouring mips, then against decoded neighbours for textures stored only in BCPack: decoded mips match the reference within 35–50 dB (BC4) and a median of 43 dB (BC5); The last 13 BC5 preset slots (0.04 % of blocks, in textures with no neighbour mip to compare against) were fitted on 2026-11-22 by making block edges continuous with their neighbours, so no BC5 block is left unfitted. BC6H BCPack chunks (codec 0x18) decode since 2026-11-22 (268 chunks; the last 98 textures at full size). Its preset tables were fitted against the neighbouring mips: on textures with a plain neighbour, 86 % of blocks match the parent mip within 0.15 stops (tonemapped 27 dB; per texture 18–49 dB). Since a later fix on 2026-11-22 (how a one-region block hands its state to a two-region block), blocks no longer come out speckled where the reference chain changes BC6H mode: 81 % and 23 dB before, up to 26 dB better on single prop textures. A refit on the same day that scores the endpoint presets with the decoded indices (the index-free score was lenient on the second region) brings this to 88 % and 28 dB; the median texture went from 29 to 35 dB, up to 21 dB better on single prop textures, and on textures stored only in BCPack 62 % of blocks match their decoded neighbours (58 % before). The last 17 BC6H endpoint preset slots (1.7 % of blocks) were fitted on 2026-11-22, 15 against the next smaller mip and 2 (lighting textures stored as mip 0 only) by making block edges continuous, so no BC6H block is left unfitted. If a chunk fails to decode, the texture is exported at a lower mip that sits in zlib chunks (mip_used in model.json) when there is one. sixng ttpf <store> lists a store or decodes textures by hash; --all decodes a whole store in parallel and writes index.json with each texture marked complete, partial (part of the data in BCPack chunks that did not decode, so part of the image is blank or noise) or bcpack_only (no PNG written). Store names must be unique: use the full id (data/ttdb/ui/ttdb_ui.ttpf) when a short one matches several. Texture arrays (2–64 slices) and cube maps (6 faces, tile modes 9–12) decode since 2026-11-20 (earlier they came out as a mosaic or not at all). Models use slice 0 / face 0; sixng ttpf <store> --hash <h> --all-slices writes every slice. Mip counts are corrected from the store layout since 2026-11-21: the descriptor's mip field undercounts on about 44.9 K textures (most 1024² terrain normal maps in tile modes 1 and 2, about 2.7 K UI sprites, and some vfx, ped, map and prop textures). Mip 0 comes last, so those decoded with a scrambled band of the smaller mips across the top, or as noise for small UI sprites. Re-export affected textures; cached PNGs re-decode on their own. 1-byte formats (A8, used for decal and mask textures, and R8) decode in all tile modes since 2026-11-21 (126 textures; before, they failed with "tile mode N / format 65 not supported"). Checked the same way: mip 1 against mip 0 downsampled, median 63 dB. 4-, 2- and 8-byte formats (RGBA8 / BGRA8 and their sRGB forms, R16_FLOAT, R16G16B16A16 UNORM and FLOAT) decode in all tile modes since 2026-11-21 (2,730 textures: terrain and prop masks, UI and graphics sprites, LUTs, height and data maps). Mode 0 RGBA8 matches its mip 1 to within 0.07 levels on average and modes 1 and 2 were viewed; R16_FLOAT shows as grey clamped to 0–1, and R16G16B16A16_FLOAT is clamped to 0–1. Uncompressed textures in modes 1–3 usually hold mip 0 only, whatever the mip field says; the mip-count correction now also covers texture arrays. 3D textures decode since 2026-11-22. They are marked by d1 bits 20–23 = 6 (2 = 2D, 4 = cube, 10 = 2D array), and their array-size field is the depth. The stores hold three: two R16G16B16A16_FLOAT volumes (32×64×32 and 32×32×32) and one R16_FLOAT 256×32×8 lookup that was earlier read as an 8-slice array. They use the 3D SW_4KB_S pattern from AMD addrlib, with Z interleaved inside each 4 KiB brick. Neighbouring depth slices now differ by 5.2–5.7 levels on average (37.5–85.6 before), and the R16_FLOAT one by 0.36 (42.4 before). Only single-mip volumes are mapped, with 1-, 2-, 4- and 8-byte elements; the 1- and 4-byte patterns were found on texture dictionary volumes. Also since 2026-11-22: a single mip starts at offset 0 even when it would fit the mip tail (addrlib builds a tail only for more than one mip), and a mip field of 1 in tile mode 1 means one mip. That fixes 2,251 small textures (16×8 RGBA8 sprites and similar) that decoded blank. Cube mip counts are the mip field + copies − 1, so cubes keep their smallest mips: a 64×64 BC7 cube has 7 mips, down to 1×1. Content-pack stores: the 11 stores under pack/<name>/data/ttdb (4,654 textures, 1.2 GB) hold the textures of the models in that pack's archive (story000 map models, minigame maps, core_restofworld peds and props). The exporter and the texture viewer use them since 2026-11-21, where they show as <pack>/<store> (story000/ttdb_maps.ttpf). On 40 sample models each, missing textures dropped from 944 to 135 (story000), 288 to 96 (shared_minigame000) and 344 to 234 (core_restofworld, where one placeholder hash used by gore and body shaders makes up most of the rest). Only 4 hashes are in both a pack store and data/ttdb, with the same texture. De-duplicated textures (since 2026-11-25): the install stores identical textures once. A table (magic EDUP, u32 count, then pairs of u64 dropped hash and u64 kept hash sorted by the dropped hash) maps the other hashes to the stored copy. There are two: a plain file in textures.rpf (17,431 pairs) and one appended to core_restofworld's pack setup XML (33 pairs, gore textures); a search of every archive found no others. Texture lookups fall back to them, so 7,789 texture hashes referenced by models that were in no store now resolve (map props, clothing, decals, water, gore, and the painted body skins of most characters); model.json gives such a texture's stored_as hash and the PNG is named after it. The tables are read from the indexes of textures.rpf and the content packs and cached as <work>/index/texture_dupes.json. Of the referenced hashes still in no store, all but 620 are tint palettes embedded in the models (read from the model, see above). The 620: the engine default 5d7a3a87cc19967d (54,889 models; white), 403 placeholder textures of head models that get a face preset in their place, 177 other character textures (body-detail spec maps, a few animals and accessories), 20 gore textures and 19 map and prop textures; the install names them only in the models that use them.
Models (drawables .#dr, fragments/vehicles .#ft) works (geometry, LODs, skeleton, skinning); partial (materials): one GLB per LOD (model.glb, model_lodN.glb), with triangle meshes, normals and every UV set (UV0–UV3), one node per geometry, Y-up, metres. Fragments carry their skeleton as glTF joints with correct pivots and a skin (JOINTS_0/WEIGHTS_0 from the game's bone streams; u16 joints for skeletons over 255 bones, fixed 2026-11-20: earlier vehicle exports have wrong bones on interior, lamp, window and bumper geometries and should be re-exported). Checked in a glTF viewer (three.js) on phoenix_mid and three map pieces: shaded, normals, UV checker, joint markers, textured. Materials link ttpf textures (base colour and normal map, picked from the parameter hash and format) where they decode: on the map samples about half the materials get a base colour and a normal map. Shader and parameter names resolve since 2026-11-21 (all 344 shaders, about 75 % of parameter uses; see sixng names); texture names are still 64-bit hashes. Tangents (TANGENT, decoded from the game's tangent stream) are written where the mesh has one. Vertex colours are raw. Both models that had no geometry in the placement test now decode: a second small system stream is now detected, which recovered geometry for about 10 % of multi-stream models that had none. Cables and pool/fountain water (float-position vertex blobs) decode since 2026-11-20; cables are widened into crossed 2 cm ribbons because the game widens them in a shader. Since the same date, a stricter system-stream rule recovers fragment props and some 64 m _hd ground tiles whose graphics page was being read as system data. In a BeamNG test box this took the models with no geometry from 74 to 0. Fragments get a real bbox in model.json (drawable.bounds; bounds_raw is meaningless on fragments). Occluder and water-vegetation LOD buffers are still not decoded. LOD levels come from the main drawable's LOD group since 2026-11-20. Earlier exports ranked every model array, so fragment props (streetlights, signs) got a small base plate or bracket as model.glb and buildings got trim strips as model_lodN.glb; re-export those. Embedded-drawable models now go to model_parts.glb. Two-layer blend materials (walls, ground pieces; since 2026-11-22 also prop_2lyr_batch 89c8fe07 on rocks, containers and barriers) get a multilayer block: base/layer-2 colour, normal and data textures, UV set, and since 2026-11-25 the layer weight as the shader code computes it (multilayer.blend: steps, the material's constants and the formula with them filled in). Its input is the second vertex colour set's red (_COLOR1.r), sharpened by blendsoftness and the blend mask (slot 11), then saturate(s x blendintensity + blendoffset). Exports before that date name COLOR0.a, which was a guess from vertex statistics; COLOR0.a scales the dirt overlay. Four-layer ground (standard_uber_4lyr and its 17 variants; four of them since 2026-11-22, all 18 since 2026-11-24, when the uv3 variant's second layer UV set also changed from TEXCOORD_2 to TEXCOORD_1) gets a multilayer block with family: "four_layer", also in the GLB material extras: per layer colour / normal / data textures and UV, the section-wide lookuptexture that weights them (TEXCOORD_0; R, G, B → layers 0–2, the rest → layer 3) and the section-wide tint, tint-normal and grass-mask maps. A top-down render from these fields matches the game's baked low-detail map of the section. All 18 variants have the same 17 texture slots; multilayer.variant says what was checked for the material's own shader: for the nine variants found on 14 surveyed tiles the main pixel program was compared with the one read in full (same layer UV selection, tint and height-blend code), for the other nine only the tables were compared and the description is by analogy (low confidence). It also lists what the variant's program does differently where that was seen (uv3: a second tangent frame; dfm: three more engine textures; pxm, spx: more samples), none of it traced. multilayer.uv_fit (all multilayer materials) measures each UV set as a plane over model position (metres per unit, planar or not), and detail_uv.recommended uses it: TEXCOORD_0 × 64 on map section tiles, a planar detail set (TEXCOORD_1 at 3 m per unit on the street-trash grounds) on set pieces that reuse the ground shaders, else position / 8 m. multilayer.params adds the material's shader constants: per_layer[k] holds the vec4s whose component k follows layer k's texture (hash → value; meanings not decoded, see per_layer_notes), material the rest. Beside each model, materials.json lists every material in a readable form: its shader, its textures by slot (file, size, format, guessed role) and the values of its parameters, by name where the name is known and by hash where it is not. Parameter values were wrong in exports made before 2026-11-24 and should be re-exported: a parameter's descriptor holds its component count (1 to 4 floats), its byte offset and which of the material's constant buffers it is in (one buffer for most materials, two for the four-layer ground shaders), and the material's constant block starts with one pointer per buffer. The old reader took the offset as a float index into the block itself, so nearly every value came from the wrong place and a second buffer was not read at all. Checked on about 13,000 materials of three archives: every parameter lies inside its buffer; a ground material now gives all 86 of its values (28 before, wrong), a head 38 of 38. Scalars are written as one number, vectors with their own 2 to 4 components. Since 2026-11-24 each value also carries its type (type in drawable.shaders[].constants), joined from the shader archive's own tables by shader and parameter (kept in <work>/index/shader_params.json, built from shaders.rpf on first use, about 2 s): float to float4, and int / int3, which are written as the integers their bits hold instead of as tiny floats. A parameter whose shader or name is not in those tables keeps no type and is written as floats.
Strand hair and fur (grooms) works (strand geometry, linked to characters and animals): sixng grooms [packs] --out <dir> [--roots] [--ribbons MM] [--full] [--density N] [--animal ROOT] [--only HEX,…] [--list] finds the 20,010 strand grooms among the unnamed resources of packs.rpf (hair, beards, brows, lashes, stubble and animal fur) and writes each as a GLB, one polyline per guide strand (5.57 M strands, 35.3 M points, about 0.8 GB, under a minute), in model space so they sit on the head drawables. Lines carry the per-point width (_WIDTH, about 0.5 mm along the strand, about 3 mm at the root; inferred) and the strand's root UV (TEXCOORD_0, inferred). --ribbons writes crossed ribbon meshes instead, which render in any viewer. --roots adds the scalp triangles between strand roots. --list writes catalog.json: every groom with its bones (named for 97 % of references), root box, body region (scalp, face, brows / lashes, body, animal, other) and LOD chain (5,732 chains; read from the files' names <piece>_lod1 … where the table of contents can be read, else inferred from neighbours, which gave 5,915). A character's hair and an animal's fur are linked to their grooms through name ids (see "Hair on characters" below); the model viewer's "Hair and fur" panel also lets you pick any grooms by region and bone and shows them on the current model with a chosen width and colour (--hair HEX,… for screenshots). Full hair (--full, optional --density 0..1): a groom stores only guide strands plus what to grow between them, so --full writes the full strand set instead of the guides: 154 guides become 29,347 strands on one hair piece, 279 become 3,905 on a face groom, 3,517 become 34,390 on an animal coat (hair and animal fur go through the same path). How it is grown, so it can be rebuilt in Blender or elsewhere: (1) the strand roots are joined by root triangles, each naming three guide strands; (2) every root triangle stores four bytes: the strands to grow in it, the strands that belong to clumps, the number of clumps, and one unknown value; (3) a grown strand sits at a point inside its triangle, and each of its points is the same weighted blend (the barycentric weights of that point) of the matching points of the three guides, so it follows their shape and length; (4) the groom stores a strand width (0.2 to 0.5 mm where present) and a 16-step taper from root to tip. --full writes <offset>.growth.json beside each GLB with exactly that data (root triangles, the four counts per triangle, width, taper, curl values), and Blender imports the GLB as edges with the _WIDTH attribute (checked in Blender 5.3). The strands are grown as the game does (see "Hair in Blender" below), with root UV, width, clump and colour variant on every point; curl and noise follow the groom's first style group (curl in the growth JSON: fade-in length, noise amplitude and frequency, curl radius and frequency), with the root triangle's normal standing in for the game's per-strand twist, so the direction a curl starts in may differ. For a character, sixng outfit --hair writes the hair beside the model. Lower LODs cap the counts at 255 per triangle; use the densest groom of a chain (lod 0). Animal fur (--animal <root>): writes the grooms of an animal's default body and head fur (sixng grooms --animal crm_cat_feral_m_00 --full), in the animal's model space, so they sit on the model sixng outfit <root> exports (cat: 12 grooms, strand roots a median 5 mm from the exported mesh's vertices); <root>.fur.json lists the variants, their grooms and each groom's LOD chain (read from the files' names for 1,688 of 2,369 fur pieces). The link is read from the game as for hair: a fur variant's asset id is the name id of its placeholder (<root>_fur_body_short_00), the piece table lists its pieces by the name ids of their files, and the archive's table of contents gives every file its id (570 fur variants, 3,148 of their 3,149 pieces found). Where the table of contents cannot be read, the link is inferred from archive order, piece counts and distance to the skin, with an agreement score; that guess was wrong for some animals (the coyote wore another animal's pieces). For people the model viewer's Hair and fur panel has an export button: "Export N shown groom(s)" writes the grooms shown on the current model (a character's hair, brows and beard, an animal's fur, or the ones ticked in the list) to <work>/out/hair/<model>/grooms/packs/, with a "full strands" option that does what --full does at the panel's density. On the command line, pass the same offsets with --only. The other groom data (per-strand and per-point attributes, render-strand weights) is not decoded.
Cloth and soft bodies works (simulation mesh): sixng cloth [packs] --out <dir> [--only HEX,…] decodes the 13,067 verlet cloth resources (flags, awnings, tarps, garment pieces; 702 of them soft bodies around ped hips and chests) to GLB lines: particles (x, y, z, w) and constraint edges (rest length, stiffness?, flags), both particle / edge sets. 1.00 M particles and 4.45 M edges in the first set, 0 errors, 30 s. An edge's rest length equals its particles' distance on a median 85 % (cloth) and 97 % (soft body) of edges. index.jsonl lists the counts, bounds and the names found in each (tuning profiles, bones). The rest of the cloth data (per-instance structures) is not decoded. Since 2026-11-22 cloth also decodes the box volume sets (same family, type byte 5): oriented boxes (centre, quaternion, half extents) plus a group table, written as wireframe GLB with the boxes and groups in index.jsonl (8 sets in the minigame pack).
Text (UI, subtitles, item names, speech) works: sixng text [data] --out <dir> decodes the localised text tables (unnamed 0x7a resources, one copy per language): 14,482 tables with 4.21 M strings in data.rpf (21 s) and 78 tables with 23 K strings in pack/shared_minigame000 (the arcade minigames' subtitles), 0 errors. Each table becomes <offset>.json (label hash -> string) with index.jsonl. Labels are joaat(lowercase label); a subtitle's label is its voice-line name plus a 2-digit variation (AG_SUR_GEAR_FIRST1_01). --label NAME,… prints a label's string from every table (every language), --plain drops the inline markup (~sl:…~ subtitle timing, ~b~, ~n~, button icons). --find REGEX searches every string (case-insensitive, on the text without markup) and prints label hash, text and table count per hit, without writing files (about 30 s on data.rpf). Which table is which language is not stored; most label names are not recovered.
Head identity deltas works: sixng head-deltas [packs] --out <dir> [--build] [--only HEX,…] reads the 6,757 per-head vertex offsets from each class's base head (head_<class>_base_000_*, LOD0-3), recovers their vertex order from heads that exist as drawables and matches every delta to its head: 1,198 of the 1,208 head drawables reproduce to a median 2.7 µm. Many head drawables share one shape (several heads, one mesh and identical deltas). 434 heads have deltas but no drawable (mr1 263, fr1 148 and a few others; 247 more LOD0-only deltas sit apart), and --build writes each of them as a GLB (673, 0.5 GB, 40 s): the base head with every vertex moved, or the head's own drawable where its name follows from the order. index.jsonl gives each delta's class, LOD, matched head and the two matched heads around it in name order. Base heads have no colour texture in the install, so the new heads are untextured unless named.
Face expression shape keys works (geometry, control names); control mapping not in the game files: heads store no morph targets. The game moves a face with a small network per face (table-of-contents types 95 and 114, stored under the head drawable's own name: <head> for LOD0, <head>_lod1 for LOD1). It has no activations or biases, so it is linear: every control is an exact shape key. Model and outfit GLB exports of a head carry them as glTF morph targets (sparse, extras.targetNames = face_000…), which Blender imports as shape keys. The viewer's Expression panel has a slider per control. 147 heads have a named network (cutscene and story characters and the two players, 370–445 controls, 5,154 driven vertices at LOD0 and 1,287 at LOD1); about 60 more networks belong to heads whose names are not recovered. Facial control names (sixng clips <dictionary> lists each clip's facial_controls): facial clips animate 91 controls through float tracks of kind joaat(facialtranslation) whose id is joaat of the control name; 80 names are recovered by joaat search (FACS style, `face_[l_
Vehicles partial: the body exports with pivots, skin and LODs; ^phoenix gives 248 parts with 0 errors, including the _dmg_mod_* damage parts and mod-kit parts. Wheels are shared models (rim_*, tyre_*) placed at model.json → wheel_mounts. A test fit in all four arches looks right. Since 2026-11-21 sixng vehicles gives the rim and tyre of each spawn configuration and the per-model wheelScale / wheelScaleRear. The model viewer fits the configuration's rim and tyre and sizes them as 1.625 × wheelScale (front and rear separately). The factor is fitted by eye on phoenix (0.37 at wheelScale 0.2277); mesa and ridgway look right with it too. It is not the game's verified rule. Textures: 33 of phoenix_mid's texture hashes now decode: interior, lights, trim, the shared detail masks (dirt, grime, scratches, decals) and normal atlases. Paint: the body's colour slot is an engine-default white texture; the colour is applied at runtime from the vehicle tables (see Car paint below). Handling: sixng handling. Vehicle data (2026-11-21): sixng vehicles packs --out <dir> writes <out>/vehicles/vehicles.json from the game-data meta resource, covering 373 models (305 named). Each has model_info (vehicles.meta-like, about 50 GTA V names resolve: wheelScale, wheelScaleRear, wheelType, handlingId, txdName, lodDistances …), configurations (4,063: body colour plus the part models, with one rim_* and one tyre_* in 3,339), palettes (2,377 weighted paint-colour lists of 1 to 400 entries; colours repeat, e.g. phoenix's 400 entries hold 10 distinct colours, so repetition reads as the draw weight) and weighted part_groups.
Textures in unusual formats (R32 float, R10G10B10A2, R16G16 float, …) works: since 2026-11-24 every format in the texture dictionaries decodes, and a full texture dictionary export (2,365 dictionaries) gives no "unsupported format" warnings (5 before) and, with the index fix of the same day, no warnings at all (11 "texture data out of range" before, from a split map model that was taken for a texture dictionary). R32_FLOAT (DXGI 39–41) shows as grey clamped to 0–1, like R16_FLOAT; R16G16_FLOAT (33, 34) as red and green clamped to 0–1 with blue 0; R10G10B10A2_UNORM (23–25) as the top 8 bits of each channel with the 2-bit alpha scaled to 0–255. DDS keeps the original data. They are 4-byte formats, so they use the 4-byte Gfx10 layout in every tile mode, in dictionaries and stores alike. The dictionaries hold 5 such textures (2 R32 float, 2 R10G10B10A2, 1 R16G16 float) and the bulk stores none. Checked: on the one with a mip chain (a 32×32 R32 float glow with 6 mips), mips 1–5 are exact 2×2 averages of the mip above. Since 2026-11-25 mip 0 is one too, read with the mip-chain layout below. The 256×256 R32 float noise decodes to mean 0.000 and standard deviation 0.999, and the R10G10B10A2 noise centres on 512 with alpha always 3. R16_FLOAT and R16G16B16A16 decode since 2026-11-21, including the R16_FLOAT 256×32×8 lookup volume (see 3D textures under Bulk texture stores). None of these remain in the bulk stores. R16_UNORM (DXGI 56, also 53 / 57) decodes since 2026-11-22 as grey from the high byte: the 12 water height maps of the minigame pack. Since 2026-11-25, single-mip textures with 2- or 4-byte elements in texture dictionaries are untiled as Gfx10 SW_4KB_S blocks, not as 16×16-element tiles. These are R16 height maps, RGBA8 tint palettes and profiles, and BGRA8 tiles, and before the fix they decoded with stripes and scrambled blocks. Neighbour smoothness confirms the layout on 1,051 of the 1,064 such textures of 32×32 or more. The rest are noise textures, small volumes and flat tiles, where smoothness tells nothing. Also since 2026-11-25, uncompressed textures with a mip chain (RGBA8, R8, A8, R32 float) are untiled with the Gfx10 SW_4KB_S mip-chain layout, packed tail included. Before, they were read as 16×16-element tiles at the block-compressed mip offsets. Each mip now matches the mip above averaged 2×2. On the R32 float glow the match is exact on every mip. The A8 textures of data.rpf score 60–68 dB through the tail, the R8 puddle layout 40–59 dB, and mips 0 to 1 of the RGBA8 caustic 51 dB. Its smaller mips hold a finer caustic pattern, and every other offset matches worse. With the 16×16 tiles the scores were 11–25 dB. DDS export now writes these chains whole. Since 2026-11-25 every other uncompressed texture uses SW_4KB_S too, read with the header's dimension byte (+0x3E: 1 = 2D or array, 2 = cube, 3 = volume). Single-mip 1-byte textures: the 4×4 A8 blanks now read as one value, and the 4×4 R8 dither offsets as 16 distinct levels 16 apart. Before, the decoder picked up the padding between rows. A 512×512 R8 light-animation table reads as clean per-row curves, where it was block-scrambled before. Single-mip 8-byte textures: the layout is identical to 16×16 tiles up to 16 rows, and the 256×16 RGBA16 float identity LUT decodes exactly. Arrays (dimension 1, depth > 1) and volumes (dimension 3) export every slice: the DDS is a 2D array, cube map or 3D texture, and <name>_slices.png stacks the slices top to bottom (<name>.png stays slice 0). Before 2026-11-25 only slice 0 was written. All 32 layers of the 64×64 R16 blue noise are full permutations of 4,096 values, and the four layers of both shore wave profiles are distinct smooth curves. Volumes are untiled with the 3D SW_4KB_S pattern. Before, they were read as 2D images. The dictionaries hold 110 RGBA16 float 17×17×17 colour-grading LUTs, the 33×33×33 identity LUT (now exact), a 32×16×16 skin LUT, an R8G8 cloud volume and 4-byte noise and direction volumes. The 4-byte 3D pattern (8×16×8 bricks) was found by trying every bit order. On a 64×64×32 R16G16 float direction field it is clearly smoother than every other order. The same search recovers the known 8-byte pattern from the identity LUT. The 1-byte pattern (16×16×16 bricks) came out of the same search on the R8 noise volume. Its axis labels are fixed by the brick seams: with the right order, neighbours across a brick boundary differ as little as inside one, while every relabelling is 2.5–3× rougher at the seams. The search confirms the known 8-byte and the new 4-byte patterns the same way. The one volume with mips (an R8 32×32×32 fog noise with 6 mips) stores, per 16-deep brick layer, the mip-tail block, then mip 1, then mip 0. Mips 2–5 sit in the tail at bytes 2048, 768, 512 and 256. Each mip matches the one above averaged 2×2×2 (33–66 dB), and mip 0 is as smooth across the layer seam as inside a brick. Its DDS is a 3D texture with all 6 mips. Before, it was read as a 2D image.
Map placements works: sixng placements decodes the map files (self-describing 0x7a resources, the GTA V .ymap equivalent): 2,249,490 entities in 30,785 files in levels.rpf, 95 % resolved to a named, exportable model. The count rose from 1.47 M after the resource stream-split fix. Position, rotation, scale, flags and GUID are decoded. LOD hierarchy: each entity has lod {level (HD/LOD/SLOD1–4/ORPHAN_HD), parent_index, parent_instance, num_children, lod_dist, child_lod_dist, priority, priority_name} (priority REQUIRED / OPTIONAL_HIGH / OPTIONAL_MEDIUM / OPTIONAL_LOW, names from the executable's enum table). After sixng lod-links it also has archetype_lod_dist, hd_texture_dist, effective_lod_dist (lod_dist -1 means the archetype's) and a resolved parent: an LOD entity in another map file, or an instance of a *_batchlod prop batch (99.0 % of 1.05 M batch-linked HD entities and 99.9 % of 215 K entity-linked ones resolve, each with a method and confidence). Time archetypes: entities of the few dozen models shown only at certain hours (shop open/shut variants, beach loungers) also get time {time_flags, hours} (the in-game hours 0–23 they show at), which is also stored in archetype_lod.jsonl. Archetype kind: after sixng lod-links each entity also has archetype_kind {asset_type, entity_type} with the raw values: the archetype's assetType (FRAGMENT, DRAWABLE, DRAWABLEDICTIONARY, ASSETLESS) and its MapEntityType (BUILDING, ANIMATED_BUILDING, DUMMY_OBJECT, COMPOSITE_ENTITY, INTERIOR_INSTANCE, GRASS_BATCH, PROP_BATCH), both named from the executable's enum tables. Interiors: each file has a space. world files hold world positions. interior files (961 interior archetype files, 540 K entities) hold interior contents in interior-local space, which the world places only through interior instances (sixng interiors). group files (6.3 K, 40 K entities) are group-local. Interior entities carry interior {interior, room, entity_set}; sixng interior-entities also writes them to work\index\interior_entities.jsonl. Other fields are kept by hash. data.rpf and packs.rpf contain no map files. Checked visually: two map files (a tower block with its base, walkway and planting, and an industrial site) rendered from their exported models line up.
Collision (physics bounds) works (geometry, most surface names): sixng collision [levels] decodes the unnamed bound resources in levels.rpf (the GTA V .ybn equivalent: composite → geometry bounds with triangles, boxes, spheres, capsules, cylinders) to one GLB per file in world coordinates, split into one primitive per surface id, plus index.jsonl (bbox, polygon counts, materials, primitive list) and surfaces.json. A surface id is 18 + elf(name) % 32749: the Unix ELF/PJW hash of a physics material's name as written in the material XML of common.rpf (ROAD_TARMAC → 1c31). sixng annotate names them: 257 of the 398 ids in levels.rpf (84 % of collision triangles), in surface_names.json, names_by_surface_id in surfaces.json and name in surface_categories.json. The other ids belong to materials in the first 64 KiB block of that XML, which is not zlib and is not read. 31 of those, the natural-ground materials (TERRAIN_SAND_WET, TERRAIN_GRASS_LUSH …, 21 % of the triangles), are recovered by hash since 2026-11-23: the suffixes of the readable ground categories (DEFORM_, SUBMERGED_, TRACK_, STUNT_, VEG_) under TERRAIN_ give an unnamed id for 31 of 76, where chance would give fewer than one. Checked visually: a building with window openings, a car park with railings and pillars, and terrain with coherent surface patches. A sample of 400 entries gave 353 bounds; the whole archive is about 87 K files, ~15 GB of GLB. Since 2026-11-22 bounds whose vertices sit in a small separate stream, or uncompressed after the last zlib stream, decode too (before, they came out with no triangles): minigame pack 374 → 491 bounds, and about 3.7 K more world bounds in levels.rpf (a 4,000-entry sample changed 268 entries, all composites; their meshes fit their bounding boxes).
Lights works (position, colour, direction); partial (other attributes): sixng lights [levels] follows the light extensions on archetypes and entities (GTA V CExtensionDefLightEffect / CLightAttrDef equivalent) through the meta pool references and writes lights/levels/sets.jsonl (136,466 light sets, 274,819 lights with local position, RGB colour, direction/tangent and every other field by hash) and world.jsonl (624,184 placed lights in world space, transformed by each entity that uses the archetype). Checked visually: the whole-map plot reads like a night satellite view, and a 1 km city cell shows lamp rows along both edges of a bridge and the arterials, and grids over car parks. The light fields are now named from their own member hashes (case-sensitive joaat of the GTA V CLightAttr names): intensity, falloff (range), falloffExponent, cone angles, corona, volumetric and fade distances, timeFlags; 774,847 placed lights including interiors. Since 2026-11-25 world.jsonl carries every field of each light (time_flags, falloff_exponent, corona, volumetric and fade fields, the second and third colours, tangent, and every field by name under fields, including the members that are not plain scalars: the embedded distant-light settings 092999c9 (timeMultiplier, 5b92fa4b, fdafb23b, offset; the distant record copies timeMultiplier from here on 99.6 % of sampled lights), eight culling planes 5d5b85c4 (plane as x, y, z, w, fade, flags), boneId, volOuterColour (8822fbce) and a second colour 3a615dea, the capsule extents, and half-float and bool members not identified yet). Builds 0.8.0 to 0.9.0 wrote intensity, range and type as 0 in world.jsonl: the light fields had been given names, and the export still looked them up by hash. They are now read by member hash; exports from those builds should be redone. Distant / LOD lights (GTA V distantlights / lodlights equivalent): each map file's CMapData has DistantLODLightsSOA and LODLightsSOA (joaat of the GTA V names), arrays with one value per light. 2,873 distant light files (flag 2) hold 492,298 distant lights in world space; each is paired with the LOD light file whose parent is its name (2,871 files, same count, joined by index). distant.jsonl has one line per light: position, colour (u8 R, G, B plus a fourth byte, 254 or 255 on most lights), intensity, light type, flags, hash, a half-float time multiplier (1.0 on 93 %, 0 on 4.6 %; distant flags 2 and 7 occur only with 0; copied from the placed light's embedded distant settings 092999c9; meaning not known), random (a half float spread evenly over 0..100 and independent of every other field, the source light, its hash and its position: a per-light random value), and from the LOD file direction, range, falloff exponent, cone angles (u8 = degrees × 255 / 180; for capsules the outer value is the capsule extent), tangent (8e6f0ba9: octahedral-encoded as two half floats in 0..1; matches the placed tangent on 99.8 %; 0x7fff7fff on 370 lights stores none) and u16_0e852fda (two u16, the second one more than the first: a per-file id shared by the lights of one object, nearby lights of one type, 95 % of them from one source entity; 0 / 0 on 47 %); every stored column is kept under distant_raw / lod_raw. The distant intensity is the placed one converted for a light seen from far away: points keep it; a spot's is multiplied by F + (1 − F) · p, with F = 2 / ((1 − cos inner) + (cos inner − cos outer) / 3), i.e. 4π over the solid angle of a cone whose falloff is squared from the inner to the outer angle, and p the placed field 47d5d47a (0 on most spots: full conversion; 1: none; 0.25 and 0.5 blend). 40° / 65° gives 5.74 and 10° / 40° gives 22.70. A capsule's is divided by (1 + L)², L being its length (extents x), when bit 0x20000 of the placed flags 684c08c5 is set, and kept otherwise. These rules match 92.5 % of sampled points, 97.3 % of spots and 93.4 % of capsules exactly; the others sit where several placed lights overlap, so the positional join can pick the wrong one. world.jsonl gives every light this value as distant_intensity, and its capsule size as extents (2d3f79c0, an inline array the scalar fields did not include). Checked against the placed lights: of 725 sampled distant lights, 709 sit within 5 cm of a placed light, with the same direction and type; range and cone match. distant_groups.jsonl keeps, per distant file, its name, flags and the members that are not one value per light (light groups as boxes with index lists, a category and two more lists). Timecycle modifier regions: CMapData.timeCycleModifiers is empty in every file; GTA VI keeps its modifier boxes in another CMapData array (8471928b): 586 boxes in 221 files, each with the modifier name hash (581 resolve to a sixng timecycle modifier name), center, rotation, scale, range (falloff in metres), percentage (strength, 100 on 90 %), startHour / endHour (0 / 0 on 92 %), a shape and a light group (854db4c2, set on 25, written as light_group). Placed lights carry the same hash in their field 58122c00 (light_group in world.jsonl; 575 groups): a road tunnel's modifier and its 662 lights share one, and the other volumes with a group are interior states (dim / bright, clean / dirty, blackout, show lighting), so the hash reads as a switchable light group that turns the modifier and its lights on together. The group names are not known. The shape (fe27ffde) is box (469), cylinder (103, axis local z; every TC_cylinder… modifier) or ellipsoid (14). A box's scale is its full size, a cylinder's or ellipsoid's its radii: the map files that hold one volume have extents of radius
Navmesh, road surface works (navmesh, road polygons, lane graph): sixng navmesh [--roads-only] decodes the navmesh tiles in navmeshes.rpf (GTA V .ynv equivalent, 128 m tiles) to GLB in world coordinates, one primitive per polygon flag; flag 0x2000 = road surface (checked visually). sixng paths levels writes the road/path-node graph (GTA V .ynd equivalent): 63,808 nodes with speed limit, street (after sixng annotate: street_key, street_label and street_text, e.g. Catalan Blvd, on 20,689 of the 21,049 named nodes), named node flags (34 of 51: NoGps, Junction, InTunnel, Highway slip / exit, Stop, Yield, Bridge, WaterNode …), road class and density; 145,518 links with length, lane counts per direction and named flags (GpsCanGoBothWays, LeadsToDeadEnd / LeadsFromDeadEnd from the game's names; unpaved / track, two-way and no-ambient-traffic (bit 6) inferred); and 1,546 junctions with entrances, turn paths and, for 369 signalised ones, traffic-light phases (duration and the placed traffic-light props, matched by entity hash for 99.6 %).
World height map (common.rpf) works (2026-11-24): sixng heightmap [common] -o <dir> [--preview] [--map 0|1] [--check <work>\map] decodes the whole-world height map (2048 × 2048 u8 samples, 9.77 m per pixel, 2.16 m per step over X -13000..7000, Y -9000..11000, Z -50..500) to a 16-bit greyscale PNG (north up), heightmap.json (world box, metres per pixel, height scale, sea value) and an optional hill-shaded preview. The archive holds two copies; the default is the one with more land. Checked against the collision top surface of the map bake (8 m grid, 752 K land samples): median difference -1.9 m, 72 % within 3 m, 96 % within 10 m. It is a surface map (city blocks stand out), sitting slightly below the collision top. What sets the two copies apart is not known. Map 3D uses it for far-field terrain where the bake has no collision (left as sea, e.g. outside a --bbox collision export): such 8 m cells take the height map's height where it has land and are drawn in a plain land colour. With a full collision export that is only about 20 cells; with a 2 × 2 km export, 1.15 M.
Water system (fog atlas, water height map, shoreline waves) works (2026-11-25): sixng water -o <dir> [--fog-px N] [--height-px N] [--shore-px N] [--height-tiles] [--inland] [--pools] [--detail] places the three streamed water grids of the 32 × 66 grid of 512 m cells: the water fog atlas (1,312 tiles, scattering and extinction per texel; textures.rpf), the water height map (738 tiles, ground, roofs and seabed at 1 m per texel; levels.rpf) and the shoreline wave grid (268 tiles; levels.rpf). Tile placement is checked by seams (98.6 % / 99.3 % of fog, 1,396 of 1,400 height and 268 of 271 shore seams continue), the heights against sixng heightmap (slope 1,599 m per unit, correlation 0.998) and the shore channels against ShoreWavePlacementData (wave group 99.6 % of 21,157 samples). Also writes the grid definitions, OceanSimPresets, OceanWaveCalmingCurves, PatchConstants and ShoreWavePlacementData as JSON and every water_* timecycle key (71 variables, 27 cycles, 302 modifiers). About 30 s. One stored fog tile (probably the map-swap override) is not placed. Inland water (2026-11-26): --inland also writes inland/inland.json and inland/inland.glb, the surfaces of rivers, canals, creeks, reservoirs and ponds placed in world space. These are ordinary map drawables named <area>_water_<region>_<kind>_<n>, with kind codes rvr river, cnl canal, crk creek, rsr reservoir, glf golf course pond, stm stream, dtc ditch, mill mill pond, drn drain, and nuc for the water of the power plant. There are 958 tiles, each at most 64 m across and each placed once by a map file: 623 river, 126 canal, 81 creek, 46 reservoir, 33 golf pond, 22 power plant, 10 ditch, 8 mill pond, 7 stream and 2 drain. Each tile has its LOD 0 mesh in world space, its box, and its surface height (the median vertex height). Checked against the water height map: 877 of the 958 surfaces lie between the lowest ground under them (the bed, a median 1.5 m below for rivers and 3.6 m for reservoirs) and the highest (the banks). All 81 others lie below the lowest ground in their box, and the check lists each one under outside. 61 of them are slivers: pieces under 6 m across or with fewer than 30 vertices, where the 64 m tile grid cuts a channel at its edge and the samples fall on the bank. With --height-px 512 the check samples the height map at its full 1 m instead of 4 m, and 69 tiles fall outside. 54 of these are slivers, and 8 more miss by 0.65 m or less, mostly river mouths at sea level. That leaves 7 tiles where the height map puts ground 1.2 to 6 m above the water: six river tiles, at heights from sea level to 150 m, and one reservoir tile. Their cause isn't known. On a map the rivers follow the valleys, and the reservoir sits at 102–112 m in the hills. Pools, hot tubs, fountains and standing water are exported separately with --pools; the algae and oil scum decals are left out. Small water bodies (2026-11-26): --pools writes pools/pools.json and pools/pools.glb, covering pools, hot tubs, fountains, waterfalls, standing water and other small water placed in world space by the map files (not interiors). A drawable counts when its name marks it as water and one of its LOD 0 geometries draws with a water shader. Only those geometries are kept, so the deck and walls around a pool are left out. There are 2,283 placements of 2,259 drawables: 1,353 pools, 500 standing water, 119 water effects (spray and splash meshes, not surfaces), 94 hot tubs, 86 other water, 54 tanks, 41 fountains, 17 waterfalls, 16 ditches and 3 ponds. Most draw with water_micro_geom, the same shader as the rivers. Fountains use standard_alpha_water and water_bucket, and waterfalls use standard_alpha_waterfall. Each placement lists its shaders, surface height, area and the water height map under it. Pools sit a median 0.13 m above it, and standing water 0.07 m below. 150 named drawables, 45 of them pools, are not placed outside interiors. Interior placements are not exported. Shading: every tile draws with the water_micro_geom shader and has its own flow texture and water height texture, written to inland/textures/ and listed under each tile's shading. A flow texture is BC3, 256 x 256 on 944 tiles and 512 x 512 on 7. It holds the flow direction in red and green, centred on 128. The other 7 tiles, which are still water, carry a 4 x 4 placeholder. A water height texture is R16 float, 128 or 256 pixels square, with values from 0 to 1. It holds the surface height relative to the tile's origin: z = origin z + (2 v - 1) * H. H, given as water_height_scale_m, is the largest distance of a surface vertex from the origin's height, and a texel of 0 has no water. Checked by sampling the texture under every surface vertex. On 319 of the 333 sloped tiles the median error is under 10% of H, and on 304 it is under 3%. Of the 607 flat tiles, 473 read 0.5 under the surface. The other 134, mostly river tiles near sea level, carry varying values over a flat mesh, and their scale isn't known. The texels with water cover the mesh and reach a little under the banks. Both cover the tile's 64 m square: on the surface vertices, UV0 is world x / 64 and -world y / 64, so north is at the top of the image. This fits all 952 tiles that have surface vertices exactly. The skirt vertices below the surface carry other UVs. inland.glb keeps UV0. Ripple scale is 0.04 and ripple bumpiness 1 on every tile. Each tile's shader lists all its textures and constants; most constant names are still unknown hashes. Run-time water textures (2026-11-26): the water drawables carry 4 x 4 placeholders for their bump, detail and iridescence slots, so the game probably binds the real ones at run time. --detail writes the water textures found in the global dictionaries to detail/, each as a PNG preview and a DDS of mip 0, with detail/detail.json. There are 21. From textures.rpf: waterbump and waternoise (data in green and alpha only), waterfoam, bubblefoam, water_foam_height, caustic, rainrippleuvoffset, ocean_sim_gaussian_noise (R32 float), the three shore wave profiles, and the map-wide underwaterfog, onoffshorewind, puddle_control and two puddle layouts. From levels.rpf: the map-wide water_quality_control, ocean_wetness_control, ocean_wave_control, ocean_roughness_control and mean_sea_level. The uses come from the names and content, not from shader code.
Audio (audio.rpf) works (Opus streams, multichannel music, PCM; XMA2 as lossless remux): sixng audio finds the sound banks (ADAT containers, the GTA V .awc equivalent) by scanning the archive (~2.5 min, index ~30 MB): 7,160 banks, 1.6 M streams, about 1,300 hours. Opus streams (99.7 %) export as Ogg Opus (lossless remux) or WAV (decoded with libopus, 16-bit, 48 kHz) and play in the GUI's Audio page. Multichannel music (3,008 streams) holds 1 to 8 sub-streams (stems), each its own mono or stereo Opus stream; it exports as one .opus or .wav per sub-stream (<bank>_<stream>_<sub-stream id>), but does not play in the GUI. In blocks after the first, a sub-stream can start with a copy of the previous block's last packets (a decoding pre-roll, its length in samples in the block header; about 5 % of blocks). These are dropped since 2026-11-24; earlier music exports repeat that audio, so their stems drift up to about 0.3 s apart and lose the same amount at the end, and should be re-exported. The codec id is the byte at 0x1C of the format chunk: besides Opus there are 1,818 XMA2 streams (mono, 32 kHz), 227 float PCM and 19 16-bit PCM streams. PCM exports as WAV (samples as stored, bit-exact) and XMA2 as .xma (RIFF WAVE with an XMA2WAVEFORMATEX header, a lossless remux of the 2 KiB XMA2 packets, readable by standard XMA2 decoders). Indexes from older versions read the codec from the wrong byte and must be rescanned (sixng audio --rescan, or Scan in the GUI). A stream id is the low 29 bits of joaat of the wave name; 874 banks store their streams' names themselves (below), the other streams are listed by bank offset and stream id. The Opus encoder delay is taken as the default 312 samples and the end is trimmed to the stream's sample count. Bank and stream names (2026-11-24): a bank's container hash is joaat of <pack>/<bank> in lower case (core.resident/gun_pistol). sixng audio-meta audio records each bank's container in <work>/index/audio_containers_audio.json: from the sound files (3,713 banks) and from the bank list, a class-27 object in a schema-26 metadata file that lists 5,955 banks as container, size and group, nearly in archive order. The list has no offsets, so it is placed by bank size between the banks the sound files already pin (checked by holding a quarter of those back: 901 of 908 placed right), looking at most 128 banks past the last one placed (an entry whose bank is in another archive would otherwise match a far bank of the same size and skip every bank before it), which gives 5,942 of 7,160 banks a container. The same command on pack/story000/story000.rpf places its bank list (68,784 entries for 63,861 banks) for 59,395 banks (1,380 before the lookahead limit); only 175 of them get a name, since the story pack names are not known. Its bank list names 8 of its 9 groups: speech.scripted (59,623 entries), cutscene (5,502), speech.player, script, streams and three small speech groups; the minigame pack's 637 banks are mostly speech.scripted (591). These names come from also trying each pack's parent (speech of core.speech.ped) and each word alone. audio-meta reports each named group with its entry count (groups_named), and the group names join the dictionary. The story bank names themselves are still unknown: neither the stems of their own stream names nor the 2,824 cutscene names, under any likely pack name, match more often than chance. Several banks hold the same lines, which suggests one bank per voice. It then searches the audio pack names times the dictionary's identifiers and the snake-case words of data.rpf's text tables (song titles, animal names; <work>/names/text_words.json) for them, keeping a match only when a neighbouring named bank in the archive has the same pack, and tries each bank's own stream-name stems. Each bank-list entry also has a group: joaat of a category named after the bank's pack without core. (speech.ped, props) or a sub-category (resident.combat, ambience.bankloaded.birds); trying each pack with each word names 48 of the 64 groups, which gives most unnamed banks their pack, and each is then searched within that pack, plainly and with _01 .. _99, _1 .. _9 and _a .. _z (a suffixed name only when the same stem names a second bank of the pack, or is itself one; the same searches on scrambled hashes keep nothing). 1,189 banks get a name (radio tracks and DJ banks, resident, ambience and animals, character voice-effect sets, vehicles, police scanner, script, speech and props). About 1 % of the names from the neighbour search may still be chance matches. Stream names: 874 banks (mostly speech) give each stream a name-tag chunk (type 0x5C), an embedded resource that holds the stream's wave name as text (panic_communicate_01) next to its full joaat. sixng audio reads a name when its joaat is stored in the chunk and its low 29 bits are the stream's own id: 409,881 of the 414,570 streams of those banks. The story pack has them too: 225,281 of its 231,816 streams get a stored name, and the minigame pack 1,957 of 4,322. For other streams, dictionary and text-table words with _01.._99 and _a.._z are tried, but only stems whose own joaat is the name of an audio metadata object (sounds are mostly named like their waves): 612 more streams. Without that check this search is unreliable: with 29-bit ids, one chance match of a variation makes the next ones likely to match too, and shuffled words gave about a third as many runs as real ones (an earlier version kept 17,335 such names, many of them wrong). Searched names go to <work>/index/audio_stream_names_audio.json; stored ones are in the audio index (rescan with sixng audio --rescan). sixng audio lists each stream with its bank offset, index in the bank, id, name, where the name came from (stored or search) and the name's full joaat. sixng audio and the GUI's Audio page show the container, bank name and stream names. Not named: 1,217 banks are in neither the sound files nor the bank list; about 4,750 containers have names in none of these sources: about 2,000 radio DJ and ad banks (whose group is not named; ten runs of them are numbered in order, <stem>03 .. <stem>09, but the stems are unknown), 704 core.speech.ped voice banks, 198 core.speech.player and 350 prop banks.
Video (movies.rpf) works (carved as-is; frames not decoded)
UI graphics (menus, HUD, phone, loading screens) partial (2026-11-21)
XML / text metadata works: exported as is.
PSO / RBF metadata PSO decoded (2026-11-21); RBF decoded to XML (2026-11-24). RBF (RBF0) files are binary XML: a token stream with tag and attribute names stored as text on first use, typed values (integer, bool, float, 3-float vector, string) and text content. sixng rbf [data] --out <dir> writes <out>/rbf/<archive>/<offset>.xml plus index.jsonl (per file its stats, or why it did not decode). All 1,263 RBF files in data.rpf decode (UI screens and prefabs, animation node graphs, movie subtitles, feedback and safezone configs, tuning files), as do the 9 in levels.rpf and 1 each in anim.rpf and packs.rpf; common.rpf has none. All names are real text (no hashes). The viewer's Archives preview shows RBF entries as XML. PSO files are the plain-file form of the self-describing meta format: schema section LSCH (struct names are 64-bit hashes, field names 32-bit case-sensitive joaat, the same type codes as the 0x7a resources plus maps, count-first arrays, inline arrays, bit sets and tagged values). sixng pso data --out <dir> decodes 2,225 of the 2,281 PSO files in data.rpf to JSON (<out>/pso/data/<offset>.json). The other 56 use the older GTA V layout (PMAP/PSCH) and are not decoded yet. Field names resolve where the dictionary knows them (GTA V handling names such as fMass match exactly); most stay hashes. Self-describing 0x7a resources: the root struct is now found by the struct no other struct references (header +0x4A is the enum count, not a root index); all 787 in the minigame pack get a root type (map types, light effects, scenario points …).
Minigame pack (pack/shared_minigame000, arcade games) works (all asset types except bvh4 and script code) (2026-11-22): the archive holds the arcade games' maps, models, textures and data: 1,050 drawables, 10 fragments, 18 texture dictionaries, 787 meta, 73 PSO, 530 other resources. All 1,608 models export with 0 errors (missing textures are the ones not in the install and get the usual fallbacks); textures come from the pack store shared_minigame000/ttdb_maps.ttpf (766) and the terrain store (12). Placements (20,339 entities, 3,317 prop and 592 grass batches), lights (1,452 sets, 3,620 placed), collision (491 bounds), text (78 tables, 23 K strings), PSO 73 / 73 and the audio banks (638 banks, 4,322 Opus streams) use the normal commands with the pack archive id. Shaders (sixng shaders <archive> --out <file>): the pack's 1,060 models use 78 shaders, all named; 65 of their 77 texture parameters are named (7 of them, the water surface-detail and interior maps, found by joaat search on 2026-11-23). The 12 unnamed ones are the 4-layer ground shader's four extra per-layer textures, a BC1 texture shared by the 2-, 3- and 4-layer shaders, one interior map, five water micro-geometry textures, and one parameter in almost every shader with no texture bound. Their names are not in any readable file of the install (the shader strings are already in the dictionary, and the install has no plain game executable). Searches over the naming patterns these shaders use (<word>texture_layer0..3, lyr0<word>tex, single and paired words with the usual suffixes) found no name that fits more than one layer, so none is added. Clip dictionaries in map packs: sixng clips <archive>.rpf@<offset> reads them (2 here: 5 and 24 clips with tracks); single-animation clips (animation pointer at +0x68 with start / end / rate) and inline short names are handled since 2026-11-22. Audio metadata (the sound, game-object, curve, music, mixer and synth definition files listed in the pack's text file): sixng audio-meta <archive> --out <dir> decodes the header, the two leading tables and the object index (name hash, offset, size, class id) to JSON (8 / 8 files). In the sound file (schema 166) each simple sound gets its wave (container hash = bank, stream id = low 29 bits of the wave hash, and the bank offset when the archive's audio index exists: 2,050 of 2,051 found in the pack's banks), randomized, sequential and wrapper sounds get their children, and every sound its reachable streams (bank offset, stream id): 2,006 top-level sounds reach 2,001 distinct streams. References are indices into the objects in data order. The sound header decodes for 4,392 of 4,395 sound objects (header: fields by mask and bit, then body: the class bytes after it, as hex): byte 1 says which sub-mask bytes follow, each sub-mask bit adds a fixed-size field (the 8-byte tristate flag block, 1-, 2- and 4-byte values), and two nested masks add u16 values at the end. It ends exactly where every simple sound's container hash starts, and 2,015 of 2,016 wrappers then have their 12-byte body. Field meanings are not named (one reads like a volume in mB: ±300, ±600, ±1200), and the body fields of the other classes are given as bytes, except their child sounds: class 15 holds a list of (child, f32, u8) entries (70 of 70), class 24 a count byte and that many child refs at the end of its body, and classes 1, 2, 3, 5, 9, 10, 19, 20, 27, 28, 29, 30, 31, 36, 40, 41, 46 and 48 hold child refs at fixed body offsets: 2,236 of 2,325 sounds of the pack reach a simple sound. The offsets and the header field sizes are checked on audio.rpf's main sound file (241,999 objects, 176,428 sounds): a ref offset counts when at least 96% of its values are valid object indices that sit nearer the parent in data order than chance (offsets that only held in the small pack file were dropped), and the header field sizes are fitted so that fixed-size classes get one body length (97% do). That file is indexed as two entries with three stored 64 KiB chunks between them that are not zlib (they fall in its second hash table, past the object data); audio-meta joins the two pieces, fills the gap with zeros and notes it as stitched (the same holds for two files in story000, one with 52 stored chunks; every audio metadata file of those archives now decodes). 92% of its sounds get children; about half reach a simple sound, mostly through class 16 (9,093 objects; fields for 8,248: three name hashes, a slot bit count and mask, a value, and ⌊bits/2⌋ child slots). Every one of its 26,329 child slots is empty (0xff) in the file, so the game fills them at run time and the file has no link to follow. Classes 50–77 are game objects: the class byte, then 4 bytes of 2-bit flags (header.flags, 0xaa = all unset) instead of the sound header. Class 54 (fields): its own name hash (2,557 of 2,557), a group hash, a count, an f32 weight and two optional hashes; class 57 is a fixed table of small u16 settings (no refs or hashes) whose meaning is not recoverable without field names. Classes 51 (u16 count, refs), 52 (u16, u16 count, pairs of refs) and 56, 61, 62, 64 and 68 (fixed offsets) point at sounds, which gives 1,928 game-object links in the main file and 6 in the minigame pack (its three class-56 objects); the other fields of those classes are not decoded. There are no Scaleform movies in the pack (the 87 in data.rpf are loading screens, fonts, decorations, the startup screen and vehicle dashboards). shared_minigame000_bvh4 holds 1,237 ray-tracing acceleration structures (header version 06000281, bounding box, then 24-bit node / triangle indices, no vertices); 668 match a model's bounding box exactly, so they index that drawable's own triangles. Their header holds a version word (06000281) and the bounding box at +0x110 / +0x11c; the node data (sentinel fill 0x81, big-endian child counts 2–4) is the console's private hardware layout. It is a mostly empty buffer: across all 1,241 files 90.7 % of the bytes are zero and only 0.15 % of the words read as coordinates inside the box, so there are no boxes or triangles to export. The runtime builder fills it from the model, and the file holds nothing the model does not. The node blocks (from a file-dependent offset, every 0x2000 bytes: 64 big-endian child counts, then little-endian child ids = byte offset >> 3) are given for reference only. Two bin files are prop-batch instance pages, already read by placements --batches. One small lookup table (offset 3044fa20) is two hash maps (16 control bytes, then 32-byte slots of a u64 key and a value pointer; 4 and 7 entries) whose values are short hash lists; what it is for is not known. Script code is not readable: the compiled scripts sit in a 51.7 MB block of pack/story000/story000_script.rpf (and 0.3 MB of script.rpf) with entropy 7.85–8.0 and no compression headers, so it looks encrypted, and SixNG does not decrypt.
Ped wardrobe variations (packs.rpf) works (parts by texture link) (2026-11-23): sixng ped-variations <offset>... decodes the wardrobe meta resources (2,713 in packs, one per ped model; struct f795e8ba). Records link by id: a variation lists items; an item has a slot (Category), a parent item (a colour variant points at its base garment), a tag map (head, hair, garment name, style, colour, length) and texture sets. Most garment names are not recovered, so each item's drawable is found as the model that uses most of its textures (texture-users index). The arcade zombies (2b21010 female, 2b34010 male): 84 of 118 variations get parts; each is a clothing set (police duty, tactical, casual, beachwear ...) or a head set (head, eyes, teeth). Every variation's parts string goes straight to outfit <name> --parts. Each variation also lists its tags (head set or BodyShapePreset, style, colour, and the dirt or blood preset such as AM_Dirtdefinition_BloodEffect or AM_DirtSettings_NoZone_Default_Dusty, which the game applies at run time and the export does not; dirt gives each preset's definition from common.rpf's graphics definitions: colour, dirt-mask channels and probabilities, cloth and skin strengths) and tex_remap, the item textures that differ from the drawable's own (mostly eye colour and brows), for outfit --tex-remap old=new,.... listed gives the model's variation-list entry from a packs PSO (model hash, outfit type, body scale): for the zombies it lists exactly the clothing sets (10 female, 18 male; the outfit type is shared between the two models), while head sets are not listed and go with any of them. Heads already export with the variation's skin. Eyes and teeth found by shared textures may come from another body type. Clothing colours (2026-11-23): most clothing shaders bind no colour texture; the packed data map (slot 739e3d0d) holds the fabric shade in G, and the colour comes from a tint palette, one of 21 64×256 sRGB textures in textures.rpf (ped_tint_generic_clean, ped_tint_vstation_generic …; stored in the Gfx10 SW_4KB_S layout; each row is one colour as a dark-to-light ramp in texels 2–55). An item names its palette by the joaat of that name (5ecf9331) and gives three tint bytes, the rows of tints 0–2 (c4d75d79, f4fb3dec, ab5d2a85; 255 = off). The first item up the parent chain whose bytes are not 255,255,255 (inherit) or 0,0,0 (unset) sets the tint, with its own palette or ped_tint_vstation_generic when it names none. Checked against the items' own colour tags (48 K items tagged black, white, blue, red or green): row tint 0 of that palette matches on 61 % (68 % for vstation_generic, 27 % for generic_clean, whose bytes look like run-time placeholders); 39 % of tagged items store a tint at all, so the rest are coloured by the game at run time. Each item lists its tint and each variation tints, for outfit --tint drawable=palette:r0.r1.r2,…: the export colours the part's shade map through palette row tint 0 (texel 2 + G × 53 / 255) as its base-colour texture (ped_tint in the material extras); parts without a tint are shaded grey. Tints 1 and 2 are not applied (how the data map's R and B pick them is not decoded), so multi-colour garments show their main colour. On the zombies, 10 of 43 female and 12 of 75 male variations store tints (duty shirt navy, casual shirt magenta, chinos cream, flip-flops navy); their other garments are grey.
Layered-material libraries (clothing and weapon colours, data.rpf) works (colours); partial (other parameters) (2026-11-23): sixng materials reads the two PSO files with root struct 8419ab01: the clothing library (7,994 base materials, 13,071 layered presets) and the weapon library (556 / 2,635), 10 s. The clothing and weapon shaders bind no colour texture; a material has up to 8 sub-materials and a preset gives each one a colour (parameter f574261b, u32 with red in the low byte; entry 0 is the base colour, entry 1 a second shade the game blends towards by a per-part byte that is not located). A wardrobe item's GarmentPreset names a clothing preset (1,292 of the lead character's 2,393 listed items have one) and a weapon family file names one per component (1,005 of 1,006 resolve) and per variant. The command writes <work>/index/material_presets.json; ped-variations then adds preset_colours (per drawable: preset and the 8 sub-material colours) and each item's preset. Byte order checked against the items' colour tags: 83 of 85 tagged blue, navy, brown, red, orange or yellow items agree, 2 do not. --preset <hex> prints a preset in full with the three gradient stops the game derives from each colour (matlib::stops). Names (2026-11-23): 68 of the 99 parameter names are recovered (lower-case joaat: tiletint is the colour above, tilescale, tilerotation, tintmaskmap, tintmasktint, stitchtint, dirttint, sheencolor ...) and 13 field names of the library (TilePresets, TilePresetNames, Tiles, TileNameOverrides, TransmissionProfiles, FloatParameters ...). Tiles: every base material names a tile record (the third map) with the tiling surface textures tilematerialmap and tilenormalmap (in the loose ped texture store); the index lists per preset and sub-material the tile, both textures, tilescale and tilerotation (all 125,640 sub-materials resolve a tile). Weapons: a component record's 873ef899 is the joaat of its model name, so the index maps weapon models to presets (894 models, 863 named in data.rpf); --weapon <regex> lists them with their sub-material colours (w_ar_adb_01: 1f1f1f throughout). Viewer: clothing takes the base colour per sub-material, and an assembled weapon takes its parts' preset colours: the sub-material of a weapon vertex is the green byte of its raw colour stream divided by 4 (60 of 62 parts checked hold only values 4k + 2 there; no weapon part has a materialid texture), so a pistol shows its black frame, brown grips and bare steel barrel. Export: a weapon model's glTF carries the colours too (COLOR_0 per vertex, white base factor, weapon_preset in the material extras), so a part opened or exported on its own is coloured. Weapon surfaces: each weapon sub-material also gets a metalness and a roughness from two library parameters whose names are not recovered (0e555ef5, 83472381; read from the data: roughness has a median of 0.15 on gold, 0.40 to 0.45 on steel greys, 0.75 on wood browns), carried in the vertex colour's alpha, so grips come out matte and non-metallic beside steel (Windows and Linux renderer). Finishes: the weapon family files also list variant presets per part type (frame, slide, grip, barrel ...: 1,301). They are joined from the records themselves: a weapon (bc92474a, 168) has a part set (5ad6772f, its own or its weapon type's) that lists component options per part type, and a mod list; a finish mod (a5791c62) lists variant records (6724161c), each for one part type. Every one of the 1,299 weapon and variant pairs finds its part type in the weapon's part set, so a model is offered exactly the finishes of the weapons that use it: 1,276 of the 1,301 finishes reach a model (621 models; 994 before, when the part type was guessed from the model name), the other 25 are in no weapon's mod list. The viewer's parts panel offers them per shown part (labelled by their colours, since variant names are not recovered; 53 of the 54 part types are named; #finish=<part type>:<preset> in the model query), e.g. a gold frame and slide on the pistol. Default finish: a weapon's default mod (72 of 168 weapons name one) is never a finish mod, so a weapon without one shows each component's own preset, which is what the viewer and the export use. Not read: the named weapon presets (825 records that pick mods for a weapon, 111 of them with a finish mod) and the conditions that swap a component when a mod is fitted. Defaults (2026-11-26): a parameter that neither a preset nor its base material sets takes the game's default, from $(target)/data/dynamic_art/muv_parameter_default_values (content type DYNAMIC_ART_MUV_PARAMETER_DEFAULTS_FILE, a PSO in data.rpf reached through the table of contents only): 80 floats, 10 colours, 6 ints and 5 textures by parameter name, kept in the index and printed by sixng materials under defaults. The tint-mask layers and the tile scale and rotation fall back to them (opacity 1, scale 1, rotation 0, flags 8), so 22,985 masked layers with an opaque tint but no opacity of their own now show (checked in the viewer on four characters: a swim short's wave print and a polo's knit stripe appear, a pair of jeans takes its light wash layer; SIXNG_NO_MUV_DEFAULTS=1 turns the defaults off for comparison). The weapon roughness stays 0.5 when missing: the file's 0 is a blend target in the weapon shader, not the base roughness. PSO maps now read every hash-table group, not only the first 16 slots. Not done: the clothing export applies the base colours only; 31 parameter names; how the tint-mask, pattern, stitch and dirt layers are composed; the per-part byte that blends colour entry 0 towards entry 1 (an item's colour tag fits entry 0 whatever its Tint0..2 are: mean RGB distance 71 against 109 for entry 1 over 4,607 tagged items).
Shader bindings (shaders.rpf) works (declared resources and constants); partial (meaning) (2026-11-24): sixng shader-bindings reads the game's own reflection tables from the uncompressed part of shaders.rpf (about 2 s; no shader code is decoded). The archive holds two shader databases (24,804 programs and 910 effects; 1,699 programs and 22 effects, the immediate-mode and image-filter ones) and both are read. Every compiled program (26,503: 11,518 vertex or mesh, 12,101 pixel, 195 geometry, 2,689 compute) is followed by a table of the resources it declares (texture, sampler, constant buffer and other kinds, each with a register index and a name hash) and of the members of its constant buffers (name hash, type, byte offset). Every effect (a material's shader; 932, of which 900 have a table) has one table for the whole effect: the material's textures with their slot in the material's texture list, the material constant buffer with each parameter's offset, and the samplers by name. sixng shader-bindings '^standard$' prints an effect's textures, constants, samplers, program names and techniques; --programs adds each program's own resources. Techniques and passes: an effect lists its techniques by name (depthonly_drawmeshlets, forwardmirror_drawskinnedmeshlets, vfxvbuffer_draw ...: a variant and a draw kind), each with its passes and the program of every stage of a pass. All 912 effects that have programs are read: 25,037 techniques and 28,798 passes, and every program of every effect is named by at least one pass. A texture has two name hashes: the shader variable (SpecTexture, BumpTexture, EmissiveTexture) and the material parameter (speculartex, bumptex, emissivetex); they differ for 12 of the 139 texture parameters. This does not name the unnamed texture parameters: the tables hold hashes only, and for 47 of the 48 unnamed ones the variable hash equals the parameter hash. What it adds for them is the slot, whether the texture is an array (0cd27763, 7c0055b9, two vehicle textures and one weapon texture are), and the effects that use it; the summary lists all 48. Material textures are not bound to registers: a material passes a list of texture indices, and the slot is the position in that list. Effect records are read in sequence, field by field, with no searching: the state tables (64 rasterizer, 124 depth-stencil, 398 blend and 10,650 sampler items, printed as raw bytes), techniques, passes, the effect's table, its parameter blocks (10,432 stored in the record, 3,247 references to the database's shared blocks, all resolved) and the names. A pass says which rasterizer, depth-stencil and blend state of its effect it sets and its stencil reference (rasterizer, depth_stencil, blend, stencil_ref); every such index is in range. The size each record states for itself once loaded equals the size worked out from its parts for all 932. Not done: the fields inside a state item, the 0x50 bytes before the state tables, a pass's last eight bytes and one more flag bit, the contents of the parameter blocks, the 140-byte state block after each program, resource kinds other than texture, sampler, constant buffer and read-write texture (given as kind_xx), member types other than float vectors and matrices, how the multilayer, tint, stitch and dirt inputs combine (that needs the shader code). Pipeline cache (--cache, about 6 s; needs sixng index shaders.rpf): the archive's compressed entry holds 25,471 graphics and 2,693 compute pipelines; each stage has a metadata blob that lists the resources the compiled code uses (access, type, register, space) and a 16-byte digest that is also in the compiled program, which joins a stage to a program. 19,595 of the 26,503 programs are a stage of some pipeline (953 of them from the second database); the other 6,908 are in none. A read record's space and register equal a declared resource's (flags 0x40 = space 1, 0x80 = space 2, the material's; register = index, plus 256 for kinds with bit 0x80): this holds for all 316,224 read records, none unmatched. So with --programs --cache every declared resource of a program says used: true or false, i.e. whether the compiled code reads it, and compiled.pipelines how many pipelines use the program. Not matched: the 32,579 write records (their registers follow another numbering), samplers (the cache has no sampler records), the cache's location records (0x41), state and vertex-layout blobs, and the code itself.
Script data documents (script.rpf) works (structure, values); partial (names) (2026-11-22): sixng script-docs [script] --out <dir> converts the 1,012 PSO files of script.rpf to XML (<out>/script_docs/script/<offset>.xml + index.jsonl, 8 s). Each holds one binary XML document: elements with first child, siblings and parent, and typed attributes (integer, float, bool, vector, string). They are the scripts' data (law and wanted tuning, regions, positions and headings, persistent characters …). String text is not readable (the string block looks encrypted), but every attribute stores the joaat of its value text, so values resolve by name lookup (REGION_AMBROSIA, law). 36 % of tags and attribute names and 7 % of string values resolve with the current dictionary; the rest are written as _<hash> and #<hash>. None names a minigame.

Setup and build

You need Rust 1.80+ (stable) on Windows, and CMake (for libopus, used by audio decoding; .cargo/config.toml sets the CMake policy libopus needs with CMake 4). Without CMake, build with cargo build --release --no-default-features -p sixng-cli -p sixng-gui: everything works except Opus to WAV export and audio playback in the GUI (Opus streams still export as lossless .opus).

cd SixNG
cargo build --release

This produces target\release\sixng.exe (CLI) and target\release\sixng-gui.exe (GUI).

macOS (minimum macOS 11.0; Apple Silicon, tested on macOS with Rust 1.100): the same cargo build --release works once CMake is installed (brew install cmake) and uses the existing WGPU renderer. cargo build -p sixng-gui --release --features metal4-poc opts into the experimental native Metal 4 window. It is used only on macOS 26 or later with a Metal 4-capable GPU; otherwise the app falls back to WGPU. Some GPU-dependent views are not yet ported to Metal 4. scripts/macos-app.sh builds dist/SixNG.app (GUI and CLI, ad-hoc signed, not notarised); scripts/macos-app.sh --universal makes it run on both Apple Silicon and Intel Macs (needs rustup target add aarch64-apple-darwin x86_64-apple-darwin). The app keeps its settings and default work folder in ~/Library/Application Support/SixNG, never inside the bundle; plain binaries keep them next to the exe like on Windows.

There is no default game folder; you set it once:

  • CLI: --game <folder> or the SIXNG_GAME environment variable, or the folder saved by the GUI. Without one, the CLI stops with a message that says how to set it.
  • GUI: on first start a setup wizard asks for the game folder (the one with the .rpf archives) and the work folder, and saves them to sixng-settings.json next to the exe (or %APPDATA%\SixNG\settings.json if that folder is not writable). Change them later on the Settings page. SIXNG_GAME overrides the saved folder.

The work directory (indexes, output, caches) defaults to ./work for the CLI and to a work folder next to the exe for the GUI; override it with --work, SIXNG_WORK or the saved setting. The GUI does not search parent folders, so it behaves the same wherever it is launched from. Restart after saving new folders.

Disk space

The install is about 224 GB. With every archive indexed and the side tables built, work/index takes about 3.3 GB:

  • about 2.4 GB of scan segments (<archive>.segs/, levels.segs alone is about 1.2 GB). Keep them: they let a newer SixNG upgrade an index in place instead of scanning the archive again.
  • about 0.5 GB of index JSON (levels.json is about 104 MB).
  • about 0.5 GB of side tables, mostly lod_parents.jsonl (about 320 MB, from sixng lod-links), vehicle_parts.json (about 200 MB) and archetype_lod.jsonl (about 90 MB).

Output sizes depend on what you extract:

Extract Items Approximate output
one vehicle (vehicles --name '^phoenix') 248 parts about 100 MB (incl. GLBs)
textures (every texture dictionary, PNG) 2,486 about 5.4 GB
map (levels.rpf drawables + PSO/RBF/XML) 183,200 about 93 GB raw, plus GLBs; on the samples GLBs roughly double the output, so plan for ~180 GB
vehicles (every fragment not matching the prop/char prefix list) 37,056 about 8 GB raw; ~15 GB with GLBs
meta (XML/PSO/RBF/text from data and common) 3,763 about 0.2 GB
all of levels.rpf decompressed 523 K about 175 GB
sixng placements levels 27,946 map files about 1.3 GB JSON, ~1.5 min
sixng placements levels --batches-only 906,922 instanced batches: 24.9 M prop + 219 M grass instances about 5.8 GB (0.3 GB batches.jsonl, 1.1 GB batch_props.bin, 4.4 GB batch_grass.bin), ~2.5 min
sixng collision levels ~77 K bounds files about 15 GB GLB
sixng navmesh --roads-only 27,644 tiles about 0.25 GB GLB (a full navmesh export is ~25 GB)
sixng lights levels 188 K meta files scanned about 0.7 GB JSONL, ~1.5 min
sixng interiors levels / sixng paths levels 2,590 interiors / 63,808 nodes + 1,546 junctions about 15 MB / 40 MB JSON
any of collision, navmesh, placements, lights with --bbox=minx,miny,maxx,maxy one region e.g. a 500 m box: about 110 MB of collision
ttpf textures linked by models (PNG, --tex png) shared about 0.6 MB per texture (1–4 MB for the 2048 px vehicle maps). Each texture is written once per output folder: phoenix_mid writes 33 (≈ 60 MB). A full map extract references most of the ~200 K map/terrain store textures, about 85 % of which decode: plan for ~100 GB of PNG on top of the figures above. --tex dds alone skips them.

These figures come from --dry-run on this install; the map and vehicles totals are decompressed sizes. The vehicles category is a name heuristic, so it also catches some non-vehicle fragments. Narrow it with --name.

Always run with --dry-run first. It prints the selection count and the decompressed byte total without writing anything.

CLI

All commands print one JSON document on stdout; add --pretty to indent it. Progress goes to stderr as NDJSON events: {"event":"progress","stage":…,"done":…,"total":…,"pct":…}. --quiet turns them off. On error the CLI prints {"ok":false,"error":…} and exits with code 1.

# What is in the install, and what is indexed
.\target\release\sixng.exe info

# Build indexes (resumable: re-running continues from checkpoints).
# Takes about 6 min for levels.rpf on NVMe. With no arguments, indexes every RPF9 archive.
.\target\release\sixng.exe index levels textures packs data common

# List entries (filters: --kind, --rtype, --name <regex>, --exclude-name, --id, --id-file, --min-size, --limit)
.\target\release\sixng.exe list levels --rtype txd --limit 20 --pretty
.\target\release\sixng.exe list levels --rtype ft --name '^phoenix' --ndjson

# Search names across all indexed archives
.\target\release\sixng.exe search 'elegy|buffalo' --archive levels

# Speed check: times indexing, search, texture decoding and model export on your install and prints a
# checksum of every result (the same checksums before and after a code change = the same output).
# Needs the archives indexed; writes nothing to the work dir. Times vary with what else the PC is doing:
# compare the best of a few runs. --bench-only index,search,textures,models runs some parts only
.\target\release\sixng.exe --bench --pretty

# Name dictionary for shader, parameter and meta field hashes (~2 s, needs the common index).
# Built from your install into work\names\names.json; exports and the app use it.
.\target\release\sixng.exe names
.\target\release\sixng.exe names --lookup bcf03fc1,c8e8c282
# Optional: names from public GTA V lists (gta6-namehash dictionary.json) for hashes nothing else names
.\target\release\sixng.exe names --namehash dictionary.json

# Describe one entry without writing files
.\target\release\sixng.exe inspect 'levels.rpf@10f2d2d010' --pretty

# Extract by filter
.\target\release\sixng.exe extract levels --rtype txd --name '^island' -o work\out --tex both

# Map placements (entity lists: model, position, rotation, scale) for all of levels.rpf, ~1.5 min, ~1.3 GB JSON
.\target\release\sixng.exe placements levels -o work\out
# Instanced grass / prop batches (instance transforms; binary, ~5.8 GB, ~2.5 min). --batches adds them to the normal run
.\target\release\sixng.exe placements levels -o work\out --batches-only
# Collision GLBs split by surface id (~15 GB), road polygons from the navmesh, placed lights
.\target\release\sixng.exe collision levels -o work\out
.\target\release\sixng.exe navmesh --roads-only -o work\out
.\target\release\sixng.exe lights levels -o work\out
# Interior instances (world transform, entities, matched collision) and the road/lane graph
.\target\release\sixng.exe interiors levels -o work\out
.\target\release\sixng.exe paths levels -o work\out
# Inferred collision surface categories (after collision, paths, placements --batches; ~3 min)
.\target\release\sixng.exe surfaces levels -o work\out
# Surface material names and street names into those outputs (after collision, surfaces, paths; ~25 s)
.\target\release\sixng.exe annotate levels -o work\out
# Link archetypes whose drawable has no recovered name (bbox + archive-order match; ~9 min, once after indexing).
# Writes work\index\archetype_links.json; placements / lights pick it up automatically
.\target\release\sixng.exe link-archetypes levels
# Archetype LOD distances and resolved LOD parents (~2.5 min). Writes work\index\archetype_lod.jsonl and
# lod_parents.jsonl; placements pick them up automatically (re-run them)
.\target\release\sixng.exe lod-links levels
# Interior membership: per map file its space (world / interior-local / group-local), per entity its
# interior, room and entity set (~1.5 min). Writes work\index\interior_entities.jsonl
.\target\release\sixng.exe interior-entities levels
# PSO metadata to JSON, and vehicle handling (both a few seconds)
.\target\release\sixng.exe pso data --out out
.\target\release\sixng.exe handling data --out out
# Vehicle model info (wheel scale/type), configurations (colour, rim, tyre, parts), paint palettes
.\target\release\sixng.exe vehicles packs --out out
# Bink videos: list (movies.json); add --extract [--only <hex offsets>] to write the .bk2 files
.\target\release\sixng.exe movies movies --out out
# UI graphics: named dictionaries (loading screens, HUD, gauges) and the UI texture store
.\target\release\sixng.exe extract data --rtype txd -o out
.\target\release\sixng.exe ttpf data/ttdb/ui/ttdb_ui.ttpf --all --out out\ui\ttdb_ui
# A float lookup table with its real values (the PNG clamps to 0..1): <hash>_m0.f32, little-endian
# 32-bit floats, every slice in order, channels interleaved; the result gives the dimensions
.\target\release\sixng.exe ttpf ttdb_graphics --hash <hash> --float --out out\lut
# BCPack texture gaps: every material with flat / low-mip textures, slot roles, class, terrain-layer
# surface guesses and placement weight (~6 min; uses placements, batches, collision, surfaces)
.\target\release\sixng.exe texture-gaps levels -o work\out --file work\texture_gaps.json --placements work\out\placements\levels
# Which materials (and their other slots) use each texture: index for the Textures tab (~10 min)
.\target\release\sixng.exe texture-users
# Audio banks in audio.rpf: scan once (~2.5 min), then list (--min-seconds, --limit)
.\target\release\sixng.exe audio --min-seconds 30 --limit 10 --pretty
# Export a bank's streams as Ogg Opus / WAV / both, or the raw bank (awc); --stream <hex> for one, --all for every bank
.\target\release\sixng.exe audio-export --bank 12a2000 --format both -o work\out\audio
# Or every world-data step in order (placements, batches, collision, navmesh, paths, lights, interiors, surfaces)
.\target\release\sixng.exe world all -o work\out
# Restrict the big exports to one region (RAGE metres; use "=" so negative values parse)
.\target\release\sixng.exe collision levels -o work\out --bbox=-1500,-1500,-1000,-1000

# Schema index of every self-describing meta resource (0x7a) in an archive; --dump adds JSON;
# --instances also writes every struct instance (for resources such as the ped wardrobe
# records, whose records the root does not point to)
.\target\release\sixng.exe meta data -o work\out

# A character as ONE rigged GLB (one armature in Blender): its outfit parts on one shared skeleton,
# optionally with an animation clip. --list shows the parts; --parts / --add pick others (regexes)
.\target\release\sixng.exe outfit player_story000_00 --list
.\target\release\sixng.exe outfit player_story000_00 -o work\out\lucia.glb --clip "gameplay@locomotion@female_character@kat@normal@standing@walk@stance_neutral/move"
# A character with its strand hair (hair, brows, lashes, beard) in jason.hair.glb, then as Blender hair curves
.\target\release\sixng.exe outfit player_story000_01 --look 0 --hair -o work\out\jason.glb
blender --python scripts\blender_hair_curves.py -- work\out\jason.hair.glb --model work\out\jason.glb
# A character made only of shared items (no parts named after it) exports its first outfit; ped-parts lists all its parts
.\target\release\sixng.exe outfit cs_mandy --hair -o work\out\mandy.glb
# Game text: all text tables to JSON, or one label's string in every language
.\target\release\sixng.exe text data -o work\out
.\target\release\sixng.exe text pack__shared_minigame000__shared_minigame000 --label AG_SUR_GEAR_FIRST1_01 --plain
# Animation clips in anim.rpf: find dictionaries (first run ~20 s, cached), list a dictionary's clips
.\target\release\sixng.exe clips --name "male_character@.*@walk"
.\target\release\sixng.exe clips "gameplay@locomotion@male_character@raul@normal@standing@walk@stance_neutral"
# Audio metadata files (sound / game object / curve … definitions) of a pack: object index, and for the sound file
# the wave, children and reachable streams of each sound (scan the pack's audio first: sixng audio <archive>)
.\target\release\sixng.exe audio-meta pack__shared_minigame000__shared_minigame000 -o work\out
# RBF binary XML (UI, subtitles, tuning ...) to XML text
.\target\release\sixng.exe rbf data -o work\out
# Script data documents (script.rpf) to XML
.\target\release\sixng.exe script-docs -o work\out
# Wardrobe variations of a ped model (here the arcade zombie, female): parts per variation
.\target\release\sixng.exe ped-variations 2b21010
# One variation in its stored clothing colours (--parts, --tex-remap and --tint come from ped-variations)
.\target\release\sixng.exe outfit zombie_m -o work\out\zombie.glb --parts '^shirtduty_mr1_000_regular_c_oc_tu_short_full$','^pantscargo_mr1_000_regular_mw_boottuckmid_full$' --tint shirtduty_mr1_000_regular_c_oc_tu_short_full=a7c8d8e0:145.0.50
# Clothing and weapon material presets: builds the index ped-variations reads; --preset prints one in full
.\target\release\sixng.exe materials --preset 8337d622
# Weapon models with their preset and sub-material colours
.\target\release\sixng.exe materials --weapon '^w_ar_adb_01'
# Every character and animal `outfit` can build (name, kind, archive)
.\target\release\sixng.exe characters --kind animal --name deer
# An animal (root fragment + its parts on the animal's own skeleton), with two clips as two animations
.\target\release\sixng.exe outfit crb_deer_whitetailed_m_00 -o work\out\deer.glb --clip "gameplay@creatures@land@mammal@deer@normal@run@fast/move,gameplay@creatures@land@mammal@deer@idle/idle"
# Clip-only GLB (skeleton + animations, no meshes or textures) for the model above
.\target\release\sixng.exe outfit crb_deer_whitetailed_m_00 -o work\out\deer_walk.glb --anim-only --clip "gameplay@creatures@land@mammal@deer@normal@walk@slow/move"
# An ad-hoc character: any name plus --parts (regexes over every drawable in the archive)
.\target\release\sixng.exe outfit hiker_m -o work\out\hiker.glb --parts '^head_mr1_cau_000_m_full','^hand_mr1_000_tshirt','^feet_mr1_000_shortsmid','^tshirtcrewneck_mr1_000.*_full$','^shortscargo_mr1_000','^bootshiking_mr1','^backpackhiking'
# Particle effect dictionaries: names, rule names, keyframe curves
.\target\release\sixng.exe ptfx data --name scr_arc -o work\out
# Timecycle modifiers, weather cycles, time samples, weather types, custom clouds (common.rpf, ~2 s);
# prints the arcade set (or --name <regex>), -o writes everything
.\target\release\sixng.exe timecycle -o work\out
# Whole-world height map: 16-bit PNG + world box JSON, --preview adds a hill-shaded PNG (common.rpf, <1 s);
# --check compares with the map bake's collision heights
.	arget
elease\sixng.exe heightmap --preview -o work\out
# Water: fog atlas, water height map and shoreline wave grid placed in world space, ocean and shore-wave
# settings as JSON, water timecycle keys (common, textures and levels indexed; ~30 s)
.\target\release\sixng.exe water -o work\out
# UI fonts (Scaleform font libraries) as TrueType + three.js typeface JSON
.\target\release\sixng.exe fonts data -o work\out
# A vehicle with its body colour (sRGB hex; e.g. srgb_if_linear from vehicles.json)
.\target\release\sixng.exe extract levels --name '^stanierg2$' -o work\out --paint 8a1a12

# Built-in categories: textures | map | vehicles | meta
.\target\release\sixng.exe extract-category vehicles --name '^phoenix' -o work\out
.\target\release\sixng.exe extract-category map --limit 200 -o work\out --dry-run

Characters (sixng outfit, since 2026-11-22): the parts of a character (the GUI's default look: head, eyes, hair, top, outer, bottom, shoes …, or --parts) are skinned to the shared ped skeleton plus their own helper bones and written as one GLB with one skin: the joint lists are merged by name (a helper bone that two parts define differently is kept twice, the second as <name>.<part>) and each part's vertex joints are remapped to the merged list. --clip <dictionary>/<clip> adds the clip as a glTF animation: each bone track drives the joint whose joaat(lowercase name) is the track's bone id (rotation, translation, scale tracks; the mover / root motion and float tracks are left out), sampled at the animation's own frames on the clip's time line. Joint nodes are written as TRS so they can be animated. The JSON report gives per part the vertices, joints and weighted influences whose bone is in no skeleton, and for the clip how many bone tracks land on a joint. Checked on five characters (player_story000_00 and _01, cs_raul, cs_iris, u_m_m_farm_monster_man) with female and male walk clips: Khronos validator 0 errors; Blender 5.2 imports one armature with every skinned mesh on it; rest-pose skinning matches the stored vertices within 3e-7 m; 95.6 % of the clips' bone tracks land on a joint; joints whose own translation is not animated keep their length to the parent within 4e-7 m over the clip; rotation keys sit a median 3.6° from the rest pose (22° for the conjugate). The clip's own movement over the ground (its mover tracks) is written on the root joint's translation and rotation, so a walk travels in Blender as it does in the viewer; --in-place leaves it out, and the report's ground_movement gives the distance and the turn. Not done: facial animation, cloth simulation. Hair parts are 3-vertex stubs in the model; the hair itself is written with --hair (next section). One field jacket names 16 palette bones that are in no skeleton found yet (2,161 influences, weight moved to the other influences).

Hair in Blender (sixng outfit --hair, since 2026-11-25): writes the character's strand hair to <out>.hair.glb beside the model, in the same space. Per piece (the hair, brows, lashes and beard of the outfit --look picks, or the first; --hair-slots for others such as chesthairfull, all for every one; --hair-style REGEX adds another style or beard of the character by its placeholder name) it holds the full strand set the game grows from the guide strands, as line strips (with the curl and noise the viewer draws), and the guides as <piece>_guides. Every point carries the strand's root UV (TEXCOORD_0, a coordinate in one of the head mesh's UV sets; see below), its width in metres (_WIDTH), its clump (_CLUMP, 0 = none) and its colour variant (_VARIANT, 0-3: which of the four colour ramps of its colour set the game uses), and the grown strands their colour (COLOR_0, linear RGB, root to tip of the strand's variant), the colour the viewer gives the slot: the outfit's colour set for the slot, else the one the item names, from the game's strand tables, else the item's own colour presets; each mesh's extras give the points per strand, the slot, placeholder, bones and groom offset, the colour set (colour_set, its name hash, and colour_source), and head_mesh / head_uv_set: which of the exported head's UV sets (TEXCOORD_n) the root UVs are in. The groom does not say which: the export matches the root UVs against every set of the head at the guide roots. On Jason scalp hair is in set 3 and brows, lashes and beard in set 2, to a median 0.000 to 0.023 (the next best set is 0.06 or more off). Size: --hair-density 0..1 (share of the stored strands), --hair-max N (strands per piece) and --hair-points N (points per strand, resampled along the strand). Jason's default look (player_story000_01 --look 0): 11 pieces, 146,441 strands, 23 MB, about 15 s. sixng grooms --full writes the same attributes per groom; with --head <model.glb> (a model outfit wrote, or a head drawable exported on its own) each groom also names its head UV set, and so does the viewer's "Export shown grooms" button, matched against the shown character's head. The set cannot be told from the kind of piece: on five characters most scalp pieces are in set 3 and the face pieces in set 2, but some scalp pieces (ponytails, long hair) are in set 0, and a few match no set of the head they are shown on.

scripts/blender_hair_curves.py turns the file into hair curves objects (blender --python scripts/blender_hair_curves.py -- <hair.glb> [<hair.glb> …] --model <model.glb> [--save <file.blend>]; several files for the per-groom files of grooms --full): one per piece, with radius, clump, variant, root_uv and, when the file has colours, colour, which drives the piece's hair material (Principled Hair BSDF, colour parametrization, the colour squared by a Gamma node: the BSDF reads its colour as the hair's overall colour, and the game's colours as they are render far too pale; pieces without colours get a plain brown one). With --model each object is parented to the head bone of the armature and gets the head mesh as its surface: its surface UV map is the head's UV set head_uv_set (the importer names TEXCOORD_n UVMap, UVMap.001 …) and surface_uv_coordinate is the game's own root UV, so Blender's hair tools and the Deform Curves on Surface node work on it. A piece whose set was not found, or whose set overlaps itself under its roots (one of Jason's lash pieces: a UV there names more than one place), takes the head's first UV map under each root instead. The guides come in hidden, in a collection of their own. Checked in Blender 5.3: strand roots lie a median 0.1 to 0.8 mm from the head surface, and the head point at each strand's surface UV lies a median 0.1 to 1.2 mm from its root (2 to 4 mm on the scalp pieces whose guide roots sit that far above the skin).

How the game grows the strands (hairgen, Groom::coat), to rebuild or restyle the hair:

  1. A groom stores guide strands (tens to a few hundred per piece, a fixed number of points each) and root triangles between their roots, each naming three guides. Each triangle has four count bytes: the scattered strands' density weight, the strands in clumps, the number of clumps, and one not decoded.
  2. Scattered strands: strand i picks a root triangle by hash, taking it with a probability proportional to its density byte (up to four tries), and a root point in it, uniform over the triangle (weights 1 - sqrt(r1), (1 - r2) sqrt(r1), r2 sqrt(r1)). Every point of the strand is the same weighted blend of the three guides' matching points, so it follows their shape. Its length is the blend of the guides' lengths, shortened by a random factor (the groom stores how much, and the lowest factor); points past it stay at the tip. This part is the game's own arithmetic, checked against its compiled program on random inputs.
  3. Clumped strands: each triangle has its clump centres at hashed points; a clump's centre line is the guide blend there. A member starts at a random offset in a square of the clump radius (a per-guide byte, in millimetres) in the plane of the root triangle, and is pulled toward the centre line along its length by a 16-step profile the groom stores (255 = on the line). Some grooms instead put one clump around each guide's root. Read from the program's clump variant with medium confidence; the hashes are the viewer's own, with the same spread.
  4. Width: the groom's strand width (0.2 to 0.5 mm) times a 16-step taper from root to tip. Variant: a random value against three per-guide thresholds gives each strand one of four colour ramps.

Under a hat in the outfit the scalp pieces are pressed in as the viewer does (a stand-in, not the game's method; see the model viewer below): the guides before the strands are grown and the grown strands after, every point beyond the hat's lining pulled to 3 mm under it; then every strand is followed from its root against the hat's own triangles, and a point whose segment crosses the hat goes back under it (the coarse press alone let tufts through the side of a cap). Their extras name the hat (under_hat) and the summary the points moved (hat_pressed). On Jason's look 1 (a cap worn backwards, over his long hair) 411,913 of 1.19 M points move, and 2 of 1.1 M strand segments still cross the cap (one strand at its lower edge; 69,923 with the press alone). Not in the export yet: the game's run-time strand count (it draws fewer strands at a distance; the export writes all it stores). To restyle in Blender, edit the hidden _guides objects and grow new strands from them with Blender's Interpolate Hair Curves node (it blends nearby guides much as step 2 does) and Clump Hair Curves.

Animals and ad-hoc characters (since 2026-11-22): an animal's root fragment (crb_eagle_bald_m_00, crb_deer_whitetailed_m_00) holds its skeleton, and its parts are the drawables named <root>_<part>_NN. outfit skins them to that skeleton. Parts bound to one bone (eyes, tongue, rigid props) are attached to that bone. The 3-vertex fur placeholders are left out by default; --add fur brings them back. A name that is not a known character plus --parts makes an ad-hoc character from any drawables, for example the generic hikers. --clip takes several clips (comma-separated or repeated), one glTF animation each. --anim-only writes only the skeleton and the animations. sixng characters lists every character and animal outfit can build (327 characters and 263 animals), and under models every ped model of the game's outfit list (2,713; --kind model for these alone). The list stores only name hashes: 581 models are named from index names, the name dictionary and the text tables. Ambient names (a_f_y_<word>_NN) from a single text word are marked uncertain (8): a control search with prefixes no ped model has finds as many such hits as the real prefixes, so a wider word search does not name the ambient models (2,132 stay unnamed; a few of the story names may also be chance hash hits), the rest are listed as ped_0x<hash>. ped-look and outfit: take either form, and the viewer's picker lists them all. 125 models also get the name the game shows (display: "Mandy" for cs_mandy), from the character table of data.rpf and the text tables; the picker shows it beside the model name and finds a character by either. The animal clips were checked by rendering (eagle flap, deer walk/run/idle: 91–97 % of tracks land on a joint). Animals have a 180° yaw on SKEL_ROOT in the bind pose that the clips do not carry, so an animated animal faces the other way from its bind pose.

World height map (sixng heightmap, since 2026-11-24): two MHIU blobs in common.rpf, about 1.2 MB each. The 0x2C-byte header holds the magic, a u16 version (1), a u16 width and a u32 row count (2048 each), the world box as six f32 (min x, y, z, max x, y, z), a u32 byte count of everything after the header, the fill byte 0x17 (sea) and three bytes whose meaning is not known. Then come one 8-byte descriptor per row (u16 first column, u16 count, i32 offset, biased so that column x reads samples[offset + x]) and the u8 samples, whose counts add up exactly. Row 0 is the south edge. A sample v is min_z + v * (max_z - min_z) / 255; cells outside every run are sea. 1.17 M (first copy) and 1.19 M (second copy) samples are stored; 892 K of the shared ones are equal and 139 K differ by one step. Against collision the second copy agrees better (median |difference| 2.0 m, p90 5.9 m; first copy 1.8 m and 7.1 m, with more land missing).

Timecycle and fog (sixng timecycle [archive=common] [--name <regex>] [-o <dir>], since 2026-11-23): the timecycle data are plain XML files in common.rpf, so every variable comes out by name. The archive has no file names; documents are recognised by their root element, and some entries hold several documents back to back (all are read). Modifiers (4,593 in 50 files): name, description, group_apply_tag, local_apply_index, user_flags, submodifiers, and per variable its two numbers as value (what the modifier sets) and b (meaning not known: 0 in 88 % of records, 1 in 10 %); animated modifiers add axes (control value, blend type, one number per keyframe), the weather modules add high_level_vars blocks (input/output ranges), and a variable written twice with different numbers is listed under repeated (one case; the JSON keeps the last). Each modifier file is named from the game's own list (TC_Files.meta) by aligning the packing order (case-insensitive name order) with the modifier names (fit in files.json: share of names that carry the area code or a word of the file name); all 50 listed files are matched. Weather cycles (27 keyframe files, W_<NAME>.XML from the weather list): per region (GLOBAL, URBAN) one number per time sample for about 1,000 variables (light, sky, fog, clouds, post-fx, water …), plus the High_Level_Vars; the 13 samples are hours 0, 4, 5, 6, 7, 9, 12, 16, 18, 19, 20, 21 and 22 with their interpolation (time_samples.json). weather.json (25 weather types and their mods) and custom_clouds.json (26 scripted cloud groups) are the same XML as generic JSON. variables.json lists the 1,426 variable names with their family (fog, sky, postfx …) and how many modifiers and cycles set them. The arcade minigames use the 34 modifiers of TC_mods_Arcade_Games.xml (ARCADE_*: per-game looks, fog sections, DOF and colour submodifiers), the arcade modifiers of TC_mods_APFX.xml (Overlay_ArcadeCabinetCRT: postfx_noise 1.0, postfx_noise_size 0.6, postfx_exposure_perpixel_amount 0.75; ArcadeGame_*, ArcadeShooter_*) and the arcade_TwinStickShooter cloud group; the default selection prints those with the 6 submodifiers from other files that they use. The minigame pack itself has no timecycle files. What the engine does with each variable, how strongly a modifier is applied at run time (script or volume strength), and the meaning of b and of user_flags are not in the data.

Water system (sixng water, since 2026-11-25): four GridAtlasInfo documents in common.rpf (clients waterfogatlas, waterfogatlas2, WaterSystemHeightMap, shorelinegrid1) define one grid. origin (-5120, 7680) is the centre of a 16,384 × 33,792 m box (x -13,312..3,072, y -9,216..24,576) cut into 512 m cells: 32 columns by 66 rows, cell = row × 32 + column with row 0 at the north edge. Each document names its tile texture and a global fallback that covers the whole grid at low resolution. A tile is a texture dictionary per cell, named prefix + cell number. The archives keep no names, but the dictionaries are stored in name order, so the cells come in decimal-string order ("1000", "1001", …, "2111", "800", …, "999"). Which cells have a tile is not stored: the export aligns the stored tiles with the string-ordered cells by comparing each with its cell of the fallback, then checks every shared edge (the difference across a seam is 28 to 470 times smaller than against an unrelated tile). Fog (textures.rpf): 1,313 dictionaries, each with waterfog (scattering) and waterfog2 (extinction), 128 × 128 BC6H UF16, plus waterfogatlas_gfb / _gfb2 (512 × 1056 BC6H, 16 texels per cell). 1,312 tiles cover cells 800..2111 (rows 25..65, every column); the last stored tile sorts after every number and is left unplaced. The values are RGB coefficients; × 1000 they are in the units of the timecycle keys water_clip_scattering_* / water_clip_extinction_* (open-sea extinction × 1000 is (8.05, 6.64, 6.65); the weather cycles hold (11.19, 6.60, 6.60); inferred). Open sea is clear (extinction about 0.007 per unit), lakes, bays and swamps up to 30 times denser. Height (levels.rpf): 738 tiles of 512 × 512 R16_UNORM, 1 m per texel, plus watersystemheightmap_gfb (1024 × 2112, 32 texels per cell). Height = (v − 0.5) × 1600 m: a top-down surface of ground, roofs and seabed with 0.5 at sea level (fitted against the terrain height map: slope 1,599 m, offset −1.1 m, correlation 0.998). The tiles form rows of 13 to 27 cells. Shore (levels.rpf): 268 tiles of 256 × 256 B8G8R8A8, 2 m per texel, plus shore_wave_placement_set1_gfb (1024 × 2112 BC7). Read as RGBA: B holds the wave group in its top two bits and the distance across the band below (groups 0..2: 64 × group + 63 × distance; group 3: 192 + 32 × flag + 31 × distance, the flag set for waveType 4). G and A hold the band direction, (v − 128) / 127, against x and along y of the placement direction. R is the along-shore coordinate. The empty texel is (0, 128, 0, 128). Checked at 7,839 control points of ShoreWavePlacementData (sampled at ¼, ½ and ¾ of maxDistance seaward): the wave group matches for 99.6 %, the flag for 8,961 of 8,965; correlations are 0.84 for the distance, −0.90 / 0.88 for G / A and 0.69 for R. The 2- and 4-byte tiles are stored in SW_4KB_S blocks. Output <out>/water/: grids.json; fog/ (scattering.f32, extinction.f32: f32 RGB mosaics, rows north to south, --fog-px texels per cell (default 32); the fallbacks; cells.json with both terms and the source per cell; tile records; log-scale previews); height/ (height.png, 16-bit, --height-px texels per cell (default 128 = 4 m); fallback.png; sources.png; cells.json with placement and the check; --height-tiles adds every tile at 1 m); shore/ (tiles/<cell>.png at 2 m, mosaic.png, fallback.png, cells.json); settings/*.json; timecycle_water.json (every water_* key of the 27 weather cycles per region and time sample, and of the 302 modifiers that set any). Not decoded: how the game picks an OceanSimPresets entry for a place.

Particle effects (sixng ptfx): the effect dictionaries are unnamed resources with small embedded keyframeTextures (16 × 4 half-float RGBA curves) and no geometry (146 in data.rpf). The command lists each dictionary's name (scr_arc_tl), its effect and emitter rule names, and with -o the keyframe curves and the rules (rules in <offset>.json): each effect's events, which pair an emitter rule with a particle rule (scr_arc_svr_blood_melee fires decal, mist, main, splash, droplets and burst); every emitter rule's ten keyframe properties and every particle rule's properties grouped by behaviour, with keys [time 0..1, value vec4]; and the index of each particle rule's keyframe texture (null for the 7 % that have none). Property ids are joaat of <class>:m_<member>KFP, so names resolve: every effect property (ptxEffectRule:m_colourTintMinKFP …) and emitter property (m_spawnRateOverTimeKFP, m_particleLifeKFP, m_sizeScalarKFP …) and about 70 % of behaviour properties (ptxu_Size:m_whdMinKFP, ptxu_Rotation:m_angleMinKFP, ptxu_Light:m_rangeKFP …), which also names each behaviour's class. The colour over life is in two unnamed ptxu_Colour properties (RGBA, min/max pair; marked with role). The keyframe textures are not the behaviour curves (no row matches one); they look like the particle shader's variables. All 146 dictionaries decode (2,816 effects, 11,228 events, 8,224 particle rules). Sprites (since 2026-11-22): texture_refs are texture-store hashes, and 237 of the 242 distinct values are textures in data/ttdb/vfx/ttdb_vfx.ttpf (99 % of the 10,817 references). With -o, particles[].sprites gives each one's slot, hash, store, size and format, and --sprites also writes them to <out>/ptfx/<archive>/sprites/<hash>.png (237 PNGs, 277 MB for data.rpf, a few seconds). By format the slots hold flipbook atlases and colour sprites (BC7, BC6H), masks (BC4), normal or lighting maps (BC5) and 4-pixel-high colour ramps; which slot does what is inferred from formats only. The other 5 values are in no texture store. Flipbooks: particles[].frames is the frame count, read from the ptxu_AnimateTexture behaviour (last frame id + 1; 2,569 particles). The atlas grid is not stored, so --sprites adds grid_guess {cols, rows, score} to each sprite of an animated particle: the even grid under which consecutive frames differ least (score = adjacent / shuffled frame difference). On the big smoke and fire sheets it is clear (0.1-0.25): 2048 x 1024 with 32 frames gives 8 x 4, 2048² with 64 frames 8 x 8. Near 1 the sheet holds random variants, not an animation. Take the grid from the colour atlas; small lighting maps of the same particle can come out differently.

UI fonts (sixng fonts): the Scaleform font libraries in data.rpf (fontlib_efigs, Chinese, Japanese and Korean) hold their fonts as SWF DefineFont3 outlines. 29 fonts are written as TrueType (.ttf, for CSS @font-face) and as three.js typeface JSON. Several are subsets of a full font (digits only, a few icons). The fonts belong to their owners; use them locally with your own install.

Emissive and paint: materials of the emissive shaders (standard_emissive, standard_emissive_layer …, by recovered shader name or known family) get their colour texture as emissiveTexture in the GLB, so lamps, neon and screens light up in viewers and engines. The character glow layers (ped_standard_emissive_layer_alpha) are the exception: the game lights them through a layer blended in at run time, which is not in the install, so they are drawn unlit (emissive_source "none"); lit by the colour map, a face came out white. --paint RRGGBB (or AARRGGBB) sets the colour of car-paint materials (linear baseColorFactor, and paint.colour in model.json). Map wreck props (prop_am_wreck_*) have no car-paint material: their colour is in their textures.

Output options: --tex png|dds|both|none (DDS = original BCn with a mip chain; none writes no texture files, which is useful for geometry-only re-exports), --raw (also write the decompressed bytes), --force (redo items already done), --no-embedded-textures, --dry-run.

Resumable runs: every item writes a marker file when it finishes, and items that already have outputs are skipped. To continue a stopped extract, run the same command again. Each run appends one line per item to <out>/manifest.jsonl.

The summary JSON gives exported, skipped, error_count and errors (item failures), plus warning_count and warnings (non-fatal problems, for example one texture in an unsupported format). Each list shows at most 50 items; the manifest has everything.

GUI

.\target\release\sixng-gui.exe

The GUI renders with wgpu (Direct3D 12 / Vulkan).

First start. A setup wizard asks for the game and work folders, then offers to prepare everything in the background: index the archives, link unnamed buildings to their models, export the world data and bake the map. Each step can be skipped and run later (Settings → Run setup again).

Pages (tabs along the top):

  • Library (home): models by category as thumbnail grids, with readable names made from the model names (game display names are not decoded). Thumbnails render in the background with the app's own renderer and are cached in <work> humbs under a size limit set in Settings. Recently opened models and favourites are listed on the home page. An item page shows the model's details, Open in 3D viewer, favourites, Export (glTF + textures) (queued as a job) and a Files panel for the exported files (Show in Explorer, Open, Copy path). Clicking a model on either map opens its item page.
  • People and Animals are categories of their own. An animal's entry (crr_iguana_green_m_00) is only a skeleton with a placeholder plane; the viewer puts its default parts together (body, eyes, head, fur, teeth …, without accessories like harnesses or costumes), each with its own textures. Named characters (cs_…, u_…, player_story…) are listed as one entry that puts one item per outfit slot together (head, hair, top, jacket, trousers, shoes …; sixng outfit exports the same set as one rigged GLB). Single ped pieces are hidden as variants. Names are made readable: "Iguana (green, male)", "Dog (rottweiler, female)", "Farm monster man".
  • Named characters wear their own outfits (since 2026-11-23). A character such as cs_ali owns only a head, eyes and a hair placeholder; what it wears is in the game's outfit list (one packs PSO, joaat(model name) → outfits in order) and the model's wardrobe resource. The viewer reads both (pedlook; needs the texture-users index, built from the Textures tab or with sixng texture-users) and shows the first listed outfit: clothes, shoes, jewellery, the skin meshes (hand_* = upper body, feet_* = lower body), the head with the face the outfit item names, eyes and teeth. The Character panel has an Outfit list (every outfit of that character, in the game's order), the body sliders and notes on what was filled in. sixng ped-look <model> prints the same data (per outfit: slot, drawable, how it was found, tint, colour, hair asset, body-shape preset, unresolved items). What is not game data, and is said so in the panel:
    • Body skin tone. The body items' painted skin textures are used for 2,602 of 2,628 characters (both upper and lower body; normal maps too). Most of them are not stored under the hash the item names: the install stores identical textures once, and a de-duplication table in textures.rpf maps the named hash to the stored one (see the bulk texture store row). Before 2026-11-25 only 19 characters had both body textures; the rest took the colour of the face texture at the neck. Since 2026-11-26 the characters whose outfit data names no body set (a few cutscene characters such as cs_ghost, cs_kent_paul and cs_papa_audacity, whose whole-body meshes are added as "default") get an approximate skin from other characters' body sets: the lower-body skin other characters wear with this one's upper-body skin (and the other way round), else the skin of that mesh whose mean colour is nearest the face texture's. The table comes from the same pass over every wardrobe as the asset table (cached in asset_drawables_v2.json); an item counts for the whole-body mesh its GUID names (the GUID is the name id of its drawable). The look gives skin_from (paired, tone or common) and the viewer says so in its notes. That covers all 26 body parts that had no skin (17 adult mr1 parts on 10 characters, 9 child lower bodies feet_mk1, which only one body set wears); the face colour at the neck stays the fallback. Body normal maps come from the body item since 2026-11-26. An item lists its colour texture twice, the first time without a normal map, and the export took that first entry, so the body kept the whole-body mesh's own normal map: a smooth generic body, the same for every character of a fit. The item's normal map is the character's own body (an old woman's ribs, loose skin and knees, a muscular man's chest and abdomen) and now replaces the mesh's. Of the 2,645 characters with a body skin, 1,042 change (1,798 body parts); 1,288 parts already had the same map, and 2,204 whose item names no stored normal map keep the mesh's. The same change applies to heads whose outfit item names their face: 1,138 heads now take the face's own normal map (wrinkles, brow and age detail) over the head mesh's, which is generic, and on some heads (cs_benedict_halifax) is not a normal map at all. Heads that borrow a face from another character through the head skin table keep their mesh's normal map when it is stored (22 heads), so they don't take another person's wrinkles. Body spec maps come from the item's material asset since 2026-11-26. The skin shader (ped_standard_skin) has two spec slots, speculartex (c6f46e79) and speculartex2 (739e3d0d). On every main hand_* and feet_* mesh both bind placeholders that are in no store. Each texture state of a wardrobe item names a Material asset id beside its colour and normal map; the material assets (47 PSO asset sets in packs.rpf) list that material's textures by key, and keys 179eb44a and 4cf41ef4 are the two spec maps. On the stored first-person hands the record names exactly the maps the mesh binds. The export puts the maps in the placeholder slots of the body, hand and feet meshes (and of heads, where the face's material has them), and records the material in model.json (spec in the part's skin record). A colour texture whose states name more than one material (shared defaults) is left out. The maps are carried as stored, in the material extras and as PNGs. They are not RMA. The skin pixel program (PS_DeferredPedTexturedNC, read on 2026-11-26) uses the channels this way. speculartex R is a translucency mask: `saturate(R
      • c)goes to a G-buffer target of its own, and it is non-zero only on thin parts such as the finger segments. G is roughness (about 0.6 on skin): overlay layers blend it toward their own value, the detail map adjusts it, a view-dependent factor and specular anti-aliasing widen it, and the G-buffer stores 1 - roughness. B is occlusion,lerp(1, B, strength), stored in 6 bits (mostly 1). speculartex2 R is the detail strength mask; G is a skin region number (16 x G, the high nibble, 0-15). A per-draw table turns the region into a layer of the detail normal and detail control atlases (2D arrays 0cd27763and7c0055b9), sampled at the UV times a tiling constant. R scales how much they change the normal, the colour and the roughness. There is no metalness. The game's forward skin program (PS_StudioPedTextured_Eight) reads only speculartexG andspeculartex2R: roughness G (GGX alpha = roughness squared), no metal, and F0 = 0.04 x (1 +fresnel), the material's specularfresnelconstant (-0.3 on the body skin, so F0 = 0.028). The GLB maps that as glTF does:speculartexis the material'smetallicRoughnessTexture(glTF reads roughness from G; the metallic factor is 0, so B is not read as metal), andKHR_materials_specularhasspecularFactor= 1 +fresnel. The raw maps and their channels stay in the material extras (skin_spec). The viewer shades skin the same way. **Detail atlases**: no mesh binds the two detail slots, and the engine falls back to two arrays of 48 tiles (256 x 256) in data/ttdb/graphics/ttdb_graphics.ttpf: detail normals (e4bb0ab707979121, BC5) and detail control (3e830fd3713f2e21, red). Tiles 16-31 are skin pores and wrinkles, 0-15 fabric. The material's region table (a6b9e97a) turns the region in speculartex2 G into a tile; on people it is tile 16 + region. The export writes each material's 16 tiles in region order as two 4 x 4 sheets (textures/ttpf/skindetail_n_.png, skindetail_c_.png) and records them in extras.skin_spec.detail with the tiling (6022028b zw, 34 to 39 on people) and the strengths (6022028bxy, 1 and 1). The game darkens the colour bysaturate(1 + x * mask * (2c - 1))(c = control, mask =speculartex2R) and addsy * masktimes the detail normal to the tangent-space normal; the viewer does the same. Two per-ped engine values also scale these terms (record3b316b01, +0x74 and +0x30). The engine's default record sets both to 0, which turns the detail normal and colour off. What a ped writes there is not traced, so the viewer takes 1. A per-tile roughness term is not traced either (taken as 0). **Occlusion** (speculartexB) enters the G-buffer aslerp(1, B, strength), the strength being material constant 4d1ecedd. The lighting multiplies the diffuse ambient by it and the specular ambient by its fourth root, and leaves direct light alone. The strength is 0 on human body skin (every hand and foot material read) and 1 on teeth. So the game does not use B on body skin. Where the strength is above 0 the GLB gets an occlusion texture (B copied to red, _occ.png) with that strength, and the viewer applies it as the game does. **Translucency** (speculartexR, minus constant381999f3) goes to a G-buffer target of its own. The lighting turns it into a thickness through a profile picked per entity and adds a Burley-style transmittance per light (the formula is in extras.skin_spec.translucency). The profiles are loaded data that is not found yet, so translucency is recorded but not shaded and not mapped to a glTF extension. Both skin programs also scale F0 by a window on the albedo's brightness, saturate((max(r, g, b) - lo) / (hi - lo))on the linear albedo. The engine sets the bounds every frame from two constants, sRGB 5 and 20 (linear 0.0015 and 0.0070), the same at any time of day, so only near-black albedo loses its specular and skin keeps all of it. The viewer applies the window; the GLB records it inextras.skin_spec.albedo_window. The table is built from the packs.rpfindex on first use and cached as/index/skin_spec.json`.
    • Fabric shading. The colour is shaded by the green channel of the garment's own packed map (speculartex: seams and folds, mid grey on plain cloth). From the clothing pixel shader (ped_standard_muv, read by the shader research): speculartex G is overlaid on the base colour and B is added as linear light, both neutral at 0.5, and R masks a second colour set; speculartex2 (the small map every garment also binds) never enters the colour: its G modulates gloss and its R is the amount of a wear overlay. Used as the shade (as before 2026-11-24) its G mottled every garment. The viewer applies G only, as a multiply about mid grey: the shader's pivots, powers and strengths are per-material numbers that were not found, and B is left out. In the game the base colour is a three-stop gradient over a fine tiling fabric texture named only in a run-time parameter block, with up to eight sub-materials picked by materialid or a per-vertex id (see the garment presets below).
    • Clothing colours from garment presets. An item's GarmentPreset is a key into the clothing material library of data.rpf (matlib, sixng materials), which holds one base colour per sub-material of the garment. The viewer colours each texel with the colour of its sub-material, read from the garment's materialid texture (red x 63, as the clothing shader does); a garment without that texture numbers its parts per vertex (raw vertex colour green = 4 x id + 2, ids 0-7), and each vertex takes its part's colour, so belts, soles and laces get their own. sixng outfit --look exports carry the same colours: baked into the base texture, or as GLB COLOR_0 over a shade-only texture for the per-vertex garments. The viewer builds <work>/index/material_presets.json itself when it is missing. A garment whose textures are not in the install (some hats: no store holds them) has no shade texture to bake into; the viewer gives it the same colours per vertex, without fabric shading (before 2026-11-25 it was shown white). An item that stores no colour either (no preset, tint row, flat colour or colour tag; 19 items in the named characters' default looks, mostly watches) is shown neutral dark grey, which is not the game's colour.
    • Fabric in the viewer. Where the preset's library is read, the viewer bakes the fabric into the garment's base texture (at 2048 texels): each sub-material's tiling fabric texture (tilematerialmap green, at tilescale over the second UV set) under the three-stop gradient of its colour (matlib::stops), then its tint-mask layers in order (lerp(colour, gradient(tint), mask x opacity x tint alpha)): denim weave and wash, trims, prints. The gradient, layer order and blend are read from the shader; assumed are the UV transform order (scale, rotation, translation), the tile's scale for a layer that stores none, and linear texture values. The game samples the tiles per pixel. On opaque garments the Windows and Linux renderer does the same for the garment's main sub-material: its texels are baked at the tile's mean grey value and the shader brings the weave back per pixel (SIXNG_NO_FABRIC_DETAIL=1 turns that off). The other sub-materials, cutout garments and the Metal renderer keep the baked weave, which blurs close up; where two halves of a garment share texture space the later one's fabric wins. Not applied: colour set B of the layers, the layer flags other than invert, the tile normal map, stitches, dirt and sheen. outfit --look exports do not have the fabric yet. Stitches are described, not drawn: a clothing material's record in model.json and materials.json has a stitches block. The game draws stitches from one shared 2048 x 128 atlas of stitch styles (ped_stitches_d, with the normal map ped_stitches_n; both in the game's global graphics texture dictionary and exported with it) sampled with the mesh's third UV set (TEXCOORD_2): vertices away from a seam are gathered in a small empty patch of the atlas, the others are laid over a stitch line with V running along the seam. The block gives the texture names and channels (alpha = coverage, green = grey value, red and blue = tint masks), the rest point, roughly how many of the material's vertices are away from it, and the weight and colour maths read from the shader code. Until 2026-11-24 the block named a 128 x 128 mask from the graphics texture store instead; that was the wrong texture. Not decoded: which preset supplies a lone model's stitch amount and tints, the default amount, and the third stitch texture (ped_stitches_ma). Not applied anywhere: the second colour the game fades towards and the tint rows of items that have a preset (over 6,100 items with a colour tag, a preset and a tint row, the preset's colour matches the tag on 2,970 and the tint row on 390, so the preset leads). Items without a preset fall back to the rules below.
    • Clothing colours. An item's stored colour is used when it has one; else row tint 0 of its tint palette (for ped_tint_generic_clean only when the row is the colour the item's colour tag names, because those rows are often placeholders); else the colour tag itself: one of 18 words (black, blue, khaki, navy …) shown in a plain shade of ours. Second and third tints are not applied.
    • Skin under clothes. The game's own way (since 2026-11-25): the nude_cull skin meshes carry a region per vertex (mesh stream 13, first byte; exported as _REGION), every worn item names a layer for its own vertices and lists, per layer, a 256-bit set of regions it hides (ped-look: layer, hides; region n is bit n - 1). A skin triangle is dropped when all its vertices are in regions that a worn item hides on the skin's layer (upper body b4d9d470, lower body e0622b84). Checked on one woman's 272 outfits: long sleeves hide 94 to 100 % of the arm vertices, T-shirts 60 to 88 %, tank tops under 20 %, long trousers all of the hips and thighs. Not decoded: a second mask list per item with keys 1 to 3, and clothes hidden by clothes (garments have _cull_00 twins that carry regions; the _full ones shown do not), so layered clothes still use a distance test, as do skin meshes without regions.
    • Hair under headwear. A hair item has states that name another hair asset (hathairalt, helmethairalt, beaniehairalt, bandanahairalt, maskhairalt, hoodiehairalt, hairhidden). With a hat, helmet, beanie, bandana or mask in the outfit the state of that name is used when the item has it (ped-look: hair_state); which state the game picks is inferred from the state names, not read from data. Many hair items have no such state and keep their hair.
    • 292 of the 318 named characters resolve (sixng ped-look "^"). Most by model name (116) or through their head: the outfit list has them under another model name, and the wardrobe that names their head is theirs. A few through the ped model table's character name (cs_lucia -> the one model named "lucia", player_story000_00; cs_jason -> player_story000_01; with the character's own head when it has one), through the listed model they are a variant of (a second head of the same person, hc_cs_chuck -> cs_chuck; a crowd-style name, u_f_o_rhonda -> cs_rhonda), from their own parts when they have a full set of clothes (cs_ghost), or by head shape when one head stands far out (at most 0.6 of the median distance; u_m_m_deal_dook -> cs_dook); looser shape matches linked unrelated people and are not used. The rest are heads on their own (crowd heads hc_*) and the sc_* creatures, shown as before. The panel says which way a character was found. An outfit whose head item does not resolve takes the model's own head (cs_maleek_rivers). The outfit shown first is the first listed one, unless it has no clothes in the data read here and a later one has (about twenty characters): then the first dressed one, with shoes when one has them; the panel says so. Each item is found by its asset GUID first: the GUID is the name id of the item's own drawable, _full included (shortswork_mr1_001_regular_mw_long_full), as for hair. Before 2026-11-25 items were matched by name and textures only, which picked a sibling variant for about one item in eight (a closed jacket for an open one, hood down for hood up, a combined piercing set) and found no model for 148 items, most of them shoes and beards. A head item's GUID names the base head template, so the head stays the one the item names. An item whose GUID names no drawable and whose own textures lead to no model takes the model another wardrobe's item with the same asset GUID resolved to (found_by: asset id; the table is built once, a few minutes, as <work>/index/asset_drawables_v2.json). Game-wide 68.5 % of the shoe items resolve by their own textures and half of the rest share a GUID with one that does. One-piece swimwear and bodysuits count as a one-piece garment and the sports base layers as a top or a bottom, so such an outfit is dressed (and hides the skin under it). Of the 292 characters, 266 now open with head, body, clothes and shoes, 12 dressed without shoes and 14 without a top and a bottom (4 items of 3 characters stay unresolved); most of the 17 are stored that way (shirtless in shorts, costumes), and a garment whose model is found under no texture and no GUID is listed in the panel as not found instead of being left out silently. Items left out on purpose are listed apart, as not_shown with the reason: the first-person arms (player Jason) and the anatomical body layer, whose models are in a content pack and which clothing covers. Across all 3,103 outfits of the 292 characters, 2 items stay unresolved (before 2026-11-25: 472, nearly all of them these two kinds). sixng ped-look "^" lists every character with what its default outfit has. sixng outfit <name> --look N exports outfit N as one rigged GLB (parts, the face, stored tints; not the viewer's skin tone, colour words or hidden skin). A model with no parts named after it (cs_mandy) exports outfit 0 without --look. Some character prefixes are outside the outfit list, but their own parts are worn by another model's wardrobe. Such a prefix takes that model's outfits (cs_roxy: her clothes on cs_nastydimez_roxyrashad). The link needs an outfit that wears the prefix's head, or two of its parts for a set with no head.
    • Stand-in clothes. Eight cutscene characters are only a head or a hair, and nothing in the files links them to an outfit: cs_blair, cs_byron_dugal, cs_connie, cs_cousin_02, cs_gator_trainer, cs_ilarus, cs_mischa and cs_vern. They are shown in stand-in clothes, and the note says so. The stand-in is the listed model whose head is nearest in shape, of the same fit, ethnicity and age code (crowd heads included), with everyday clothes, which come first. The character keeps its own head, eyes, hair and accessories (Connie's bandana, Mischa's piercing). For a hair with no head (cs_byron_dugal), the stand-in is a model that wears the same kind of hair, with the character's own hair in its place.
    • Full set. The Character panel's Full set section lists every part a character uses. That covers each drawable of all its listed outfits, plus the variations of its wardrobe that no listed outfit reaches. Parts are grouped as body, hair, clothing and accessory, with each texture and colour variant (one wardrobe item on that drawable) and the outfits that wear it. Clicking an outfit number shows that outfit. The game links a character to these parts in three steps: the outfit list maps the model to its outfit variations, the wardrobe resource holds those and the head, body, brow and lash sets they include, and each item names its drawable by asset GUID. The grouping into kinds is read from the drawable names; the wardrobe stores none. Run sixng ped-parts cs_mandy --out <dir> to write <dir>/cs_mandy/parts.json, and sixng ped-parts "^" --out <dir> to write one for every character, with a summary. That covers the 292 characters with parts of their own and the 461 other named models of the outfit list (Mandy is one: all her parts are shared items). All 753 have every item resolved. Items left out on purpose (first-person arms, the anatomical body layer) are listed apart and do not count as missing. The body layer is found by its category (2a7a13a4) or by an asset GUID that names a bodygenitalsgen_<fit>_<nnn>_regular_ws00_full drawable, which Raina's nude outfit stores under another category. Mandy (9 outfits, 40 parts, 47 variants), Vicki (15, 48, 53) and Viper (3, 18, 18) are complete. 30 characters have a wardrobe variation that no outfit uses; in each case it is a spare head set (head, eyes, teeth).
    • The first character opened builds <work>/index/ped_models.json (about a minute) and loads the texture-users index (about 10 s).
    • Watches and rings are modelled at their own root bone and moved onto their attach bone (the left wrist when there are two).
  • Hair on characters. A hair asset's strand grooms are read from the game (hairlink): the asset's id is the name id of its placeholder model, a table lists the asset's pieces by the name ids of their files, and the archive's table of contents gives every file its id. That links 878 hair, beard, brow, lash and body-hair assets to their grooms; the Character panel lists them. A piece's LOD files are read by name too (<piece>_lod1 …) when its piece word is known (2,859 of 3,419 groom pieces), else attached by bones and strand counts. It needs the table of contents (Windows, the supported game build); without it the link is inferred from name words, archive order, piece counts and geometry with a model probability, which is often wrong. The panel then shows that percentage, a style starts shown at 50 % or more (20 % or more when every piece is rooted on this head), and pieces whose strand roots do not lie on the head are left out. The hair is grown to its stored strand count (capped per piece) and drawn 6 mm wide so it reads as hair (--hair-width MM). Colour: row tint 0 of ped_tint_hair for the items that name that palette (a few hundred, mostly named characters); the others leave the colour to the game, so the viewer starts dark and has a colour picker. Each hair piece (hair, brows, lashes, beard ...) has its own row: its own colour, its stored colours, or the same colour as another piece. Brows, lashes and the rest start linked to the hair. The game's hair palette is shown as swatches that paint the chosen piece (--hair-colour r,g,b for all of them, --hair-pieces "brows:r,g,b;beard:r,g,b" for some). The panel also lists the character's other hair styles (its own placeholders that have grooms placed) to tick (--hair-style TEXT). Under a hat the scalp hair is pressed in: strand points beyond the hat's lining are pulled to 3 mm under it (then each strand is checked against the hat's triangles, so none comes through it), and an opening the hat encloses (over a cap's strap) counts as closed. This is a stand-in, not the game's method: of the 6,886 outfits with a hat and hair, 6,840 ask for the plain hair state, and no stored rule says how the game keeps it under the hat. Hair items do have other states (hathairalt, maskhairalt, hairhidden), each with its own hair asset; an outfit that asks for one gets it. player_story000_00's default ponytails have no groom files in any archive of the install (packs, the story packs and the other packs were scanned), so that character starts without hair; four other styles of hers are offered, at low confidence (which of her styles a piece belongs to is not settled). Hats do not flatten the hair.
  • Pose (Character panel; --pose rest|down|walk|sit|wave for screenshots): every part of a character is bound to the shared ped skeleton, and the panel turns its main bones: shoulders (shrug, forward, on the collar bone), arms (raise, swing, twist), elbows, forearm twist, wrists (bend, side), legs (lift, spread, twist), knees, ankles, spine (bend, twist, lean), head (nod, turn, tilt) and eyes (left, up, on the eyeball bones of the face rig, which join the shared skeleton under the head), with five presets and a reset. Zero is the stored pose (arms out); the limits are a person's rough range, not from the game. Limits: a part's own helper bones are moved in the game by data that is not decoded, so clothing on them takes the bone weights of the nearest skin vertex; the first four of a vertex's eight bone weights are used; twist and muscle helper bones follow their parent rigidly, so shoulders, elbows and knees bend more simply than in the game. Hair, brows and beards ride on the head bone as one piece (no strand simulation). --pose-head nod,turn,tilt, --pose-spine bend,twist,lean and --pose-joints name=left:right,… (shoulder-shrug, shoulder-forward, arm-raise, arm-swing, arm-twist, elbow, forearm-twist, wrist-bend, wrist-side, leg-lift, leg-spread, leg-twist, knee, ankle; eyes=left:up) add to a preset for screenshots.
  • Animation (Character panel; --anim <dictionary>/<clip> [--anim-pos 0..1]): a clip of anim.rpf played on the character's skeleton, with play / pause and a position slider. Two dropdowns pick it: first the clip dictionary, then a clip in it (or its default clip). Each dropdown has a filter field (every typed word must be in the name), and the dictionary list holds the dictionaries that fit the model: for a character every one that is not for animals, for an animal those of its species (all dictionaries lists every one). Clips whose animation data is stored elsewhere are greyed out. The lists are read in the background: the dictionary names once per run (the first time this reads anim.rpf for about a minute and caches the list as index/anim.clipdicts.json, as sixng clips does), a dictionary's clips when it is picked. ✏ opens a text box for a typed or pasted <dictionary>[/<clip>], an entry id or a cutscene (cin@<scene>). Walk loads a walk clip of the game for the body type. Bone tracks are matched to the shared skeleton by name hash, so the clip also drives the twist and muscle helper bones the Pose controls leave alone. The clip's own movement over the ground is applied: its mover tracks (moverabsolutetranslation, moverabsoluterotation) move and turn the root, each loop carries on from where the last one ended, the camera goes with the character and every tenth grid line is brighter so the ground is seen to pass; in place leaves it out. On the female walk clip (6.65 m in 3.7 s) each planted foot stays within 1 cm on the ground while it is down. Float tracks (facial and other controls) are not applied, and the Pose angles are added on top. sixng clips --name <regex> lists dictionaries. Animals have the same Animation section: its dictionary list holds the clip dictionaries of the animal's species (gameplay@creatures@…@cat@normal@walk@slow, or every animal dictionary when none has the species word), and a dictionary alone plays its move or idle clip. For this an animal's parts are bound to its skeleton by bone name, parts without bones (eyes, teeth, tongue) ride on the nearest bone, and each fur vertex takes the bone weights of the nearest skin vertex, so the fur moves with the body (the fur's own bone weights are not decoded). Of 39 animal dictionaries sampled, 31 hold animation data that decodes; the others list clips whose animation is stored elsewhere (the plain cat walk is one) and say so.
  • Cutscenes (sixng cutscenes [<scene>] [--name <regex>] [--cast <regex>] [--summary]): the story pack's 2,824 scenes, each with its cast (scene handle, ped model, whether outfit can assemble it), props, cameras, the clip names of every object and the set-dressing models its scene file places. Two kinds of files describe a scene. Its clip dictionary cin@<scene> holds one clip per animated object, named after the object's handle (lucia, lucia_face, rs_camera_8, prop_am_drink_soda_03a^2); cin@<scene>-<N> dictionaries (25,341) hold the streamed animation sections. Its scene file (a meta resource, 2,301 of them) names the scene by hash and lists the peds by the joaat of their handle with the 64-bit asset id of their model, cameras and placed objects with model ids. The first run reads the whole archive (about 3 minutes) and caches <work>/index/pack_story000_story000.cutscenes.json. Measured on the whole pack: 2,314 scenes have a scene file, 4,724 cast entries are characters outfit assembles (player_story000_00 / _01, cs_raul, cs_andrea …), 271 more are other peds with a named model, 3,244 peds have a model id that does not resolve to a known name and 1,764 have no record; 11,259 props, 9,240 cameras and 5,205 other objects (vehicles, lead-in / idle clips) whose model is not known; 2,835 of 2,838 set-dressing model ids resolve. sixng outfit <character> --clip cin@<scene> plays that character's own clip of the scene (--clip cin@<scene>/<clip> picks one), and sixng clips cin@<scene> lists a scene's clips. A scene clip plays the scene in sections, one per camera cut; each section plays a stretch of a pooled animation (cinematic_q8@female@0@60_0.anim: 60 frames a second, every female ped of the scene), and most of those animations are streamed in the section dictionaries. Both commands join them back in, so a clip runs the whole scene (Lucia in air_beach_ext_p1_t05: 48.6 s, 11 sections, 2,917 frames, no jump where sections meet). All 143,374 streamed windows find their animation, so every character cast entry plays in full. Six section dictionaries are named after a longer name with no scene of its own (cin@mtl_mont_int_p0l_t01fixme-<N>); they join the scene whose name starts theirs. Not decoded: the scene files' timing, events and state transitions.
  • Story names (sixng story-names [--tags]): arc and mission names for the scenes. The story pack's protected ambient-rule files (read through the table of contents, so Windows x64 with the game executable) name the content tags the story flow sets, one per finished mission: Flow<arc words><mission words>Complete. A scene's mission id (<arc>_<mission>) is a short form of those words, so the two are paired by that rule: the arc parts shorten the first words, the mission part a later run of words, and when several ids fit a tag, the one whose letters fall in the fewest words wins. Ids that start other ids are arcs. A tag that still fits two ids, or an id with two tags, names nothing. An arc's words end where its tags' shared words end, or for an arc with one tag, where the mission part starts. Measured: 25 of the 324 mission ids in the scene names and 12 arcs get names. The tags are cached in <work>/index/story_flow_tags.json. The Scenes tab shows the names as the scene's Story and its name search finds them. The tags do not give the order of the missions in the story.
  • Body sliders (weight −1…1, muscle 0…1, breasts −1…1 and butt 0…1, the game's gcbreasts and gcbutt controls, and under Regions the 12 weight and 12 muscle regions, and under Shape details breast height and spacing, chest height, cleavage, hip width and height, belly roundness, head scale, biceps, triceps and plastic breasts; the overall weight and muscle set every region): an outfit opens in its own body-shape preset (since 2026-11-26 read the way the game does it: the outfit's BodyShapePreset variation includes body-shape kits, and their tags name preset items of the body-shape preset PSO in anim.rpf that list control values, applied kit by kit in include order, a later value replacing an earlier one; an outfit that includes two presets gets both, the later one winning where they set the same control; Mandy opens with muscle 0.2, fuller hips, thighs and breasts, Lucia with fuller hips, thighs and butt, Jason muscular. The Average / Skinny words are only labels: the same word gives different values per character. An outfit without kits falls back to common.rpf's body-type XML profile BODYSHAPE_<word>), Reset goes back to it and Neutral sets every control to 0. outfit --look exports use the preset too unless --body-shape is given. --body <w>,<m>[,<b>,<t>] or --body with a --body-shape spec sets the shape for screenshots instead of the preset. The skin and head are posed with the game's body-shape rig on the shared skeleton. Clothes and accessories follow the skin under them (each point moves with the nearest skin vertices), because the data the game shapes clothes with is not decoded. Small accessories move as one piece. Bones are posed the way the game's skeleton update does it (read from its code, since 2026-11-25): each bone keeps a model-space rotation, translation and scale; a child's rotation is the parent's times its own, its translation is the parent's plus the parent's rotation applied to its own translation scaled per axis by the parent's scale, and its scale is the parent's times its own, per axis. So a helper bone's scale reaches the bones under it in each bone's own axes, without the shear a matrix product adds; before, the matrix product tore the chest of heavy male shapes. --body-shape exports pose the same way (the joint world matrices match the game; a joint's local matrix can carry shear, which TRS joint nodes cannot hold). The game's rig and its body-shape presets have no face controls, so the face does not change with the sliders. Each rig also reads 14 inputs that no control drove before 2026-11-26. They come from 11 more controls in the same preset PSO (anim.rpf@106153000), each item of which pairs control values with the rig input values they set: gcbreastheight, gcbreastspacing, gcchestheight, gccleavage (male rig only; the body-type XML's GCCleavage), gchipheight (-1..1, a negative value drives the other input by its size), gcbellyround, gchipwidth, gcmusclebiceps, gcmuscletriceps (0..1), gcheadscale (-1..1) and gcplasticbreasts (-1..1; at 1 the breasts are large, round and set high). Its name was found by a word search for joaat b0eae798 and fits how it looks. Every item that sets one control alone sets its input to exactly the control's value (8 to 15 items each). The names are joaat of the control ids; the rig inputs themselves have other hashes. gcheadscale is two-sided: the input 5ebebbe7 (head and neck), which no preset item sets, shrinks the head as the other input grows it, so -1..1 scales the head bone from 0.01 to 2 (1.5 at 0.5; since 2026-11-26, before that 0..1). The head scale is on BM_Head. The default earring roots hang from SKEL_Head beside it, so they are posed under BM_Head, as the ears are, and the viewer's strand hair and brows ride on BM_Head too. Without this, a scaled head leaves its earrings and ponytail at full size. The game also has head-scale compensation rigs, which are not run here. They smooth the neck and mastoid bones, from two inputs of their own. allmuscle keeps to the twelve regional muscle controls. The game has two body-shape rigs, female and male. The body type comes from the part's fit tag: every tag that starts with m (mr1, mb1, mo1, mc1, msk1) gets the male rig and skeleton. Before 2026-11-25, only mr1 did, and the other male bodies were shaped as female ones. Kid (mk1) and infant (mi1) parts get their own reference skeletons, ambient_kidbody and ambient_infantbody. Before, they were bound to the adult female skeleton, which put their bones up to 0.65 m away from the mesh. They have no body-shape rig, so the sliders leave them as they are.
  • The viewer's Parts panel lists every part an animal or character has, grouped by slot (body, eye, crown, shirt, harness …; head, top, outer, bottom, feet, hat, glasses …). Pick one per group or "none"; accessories (hats, harnesses, holsters …), lash cards stored as head parts and alternate sets start off. A character with no part in an outfit slot (one full-body model) shows the first part of each group. Characters outside the game's outfit list (cutscene heads and the like) still get their strand hair: the grooms linked to their hair parts by name, in the hair picker's colour. Animal sets that span several parts (08 collarharness: body + harness, 09 corpse roadkill) have a button each, and Defaults goes back. Only the parts shown hide skin under them: a garment switched off no longer leaves its hole in the body (before 2026-11-25 it did). The camera stays put while parts change, and the item page's Export and Files follow the parts shown in the viewer.
  • Head skins (since 2026-11-21): ped heads bind no textures in the model, so SixNG adds the face (colour and normal map). For about 900 heads (named characters such as cs_jada_watts and most ambient head_* faces) the game's material data names the head, and that face is used. Other heads (a_head_base_*, crowd hc_* heads, characters whose materials are in archives not indexed yet) get a face of the same sex, body type and ethnicity from that library. Since 2026-11-25 a cs_ head that no preset lists takes the face of the same character's other head first: the ped model table gives each model a character name, and when exactly one model carries the head's name without cs_, its head with the same sex, body type and ethnicity code is used (ages may differ between young and middle-aged, not into old or child). Of the 29 such cs_ heads this links one, cs_lucia, which now shows Lucia's player face instead of another woman's; the rest have no character model, or only a head of another age, body type or ethnicity. The viewer shows Head skin ◀ n / N ▶ to switch through the faces; exports take the Head skin number next to Body shape, or extract --head-skin N. model.json records the choice (head_skin: linked, character (with the donor head as group) or auto, index, count, texture hashes). The table is built from the packs index on first use (about 5 s) and kept in <work>/index/head_skins.json. Other head maps (2026-11-24): a face's material data holds colour and normal map only; there is no roughness, specular or detail texture for heads in it. Through the male or female base head it inherits three more textures, listed by key (the key names are not recovered). Two are in the game files and are exported beside the face, under their key as the parameter hash in model.json (also head_skin.extra_textures): e12585d1, the wrinkle region masks (one 512 x 512 array of 3 slices shared by every head; each colour channel of a slice marks one of 9 face regions; all slices are written as <hash>_s0.png ...), and 85858f5e, a face region mask (1024 x 512, shared). The third, 2633887d (one per sex, and one each for about 60 named characters), is in no texture store of the install, so it is listed as missing; it is probably the wrinkle normal map that the masks blend in. The head shader (ped_standard_head) also has slots named speculartex, speculartex2, materialctexture, diffusetexanimatedblend and three unnamed ones; head models bind no textures at all, and what the game puts in those slots at run time is not decoded. The GLB material still carries colour and normal only.
  • Colours are never guessed. Many ped clothing and skin materials have no colour texture that SixNG can read (clothing colour is in BCPack; skin is built by the game at run time). Such materials render plain white, and the viewer says how many materials have no colour texture; the material list marks each one. Normal maps and decals still show.
  • Ped clothing sits in the game's transparent render bucket, but the alpha channel of its colour texture is one constant value (64 or 128), not opacity. Such materials are exported and drawn opaque; model.json says so in classification.alpha_note. Textures with real cut-outs (lace, crowns, hair) keep their transparency.
  • Model viewer, Map 2D, Map 3D, Textures: below.
  • Jobs: every CLI command as a form (built from sixng --help, so it stays in step with the CLI). Jobs run one at a time in the background with a queue, progress bars, Cancel, the log and the result, and a button to open the output folder. sixng.exe must sit next to sixng-gui.exe.
  • Status: archives indexed, models per category, world data and map state, the BCPack texture-gap summary, and disk use per folder in the work folder with the change since the last check.
  • Settings: game, work and export folders, the thumbnail cache size, and Run setup again.
  • Archives (advanced): the raw entry browser. Pick an archive on the left (Index it first if needed), filter entries by regex, kind and type, preview them on the right (decoded textures, model JSON, text or hex) and extract the ticked or filtered entries. Its World data row runs the whole-map exports (same as sixng world <step>).

Ctrl+K (or 🔍 Search at the top right) opens a search box over all models and pages; with an empty query it lists favourites and recent models. Arrow keys and Enter pick a result.

Model viewer

Pick a model from the Models list on the left. It holds every drawable and fragment in levels.rpf and packs.rpf (about 254 K), in these categories: Vehicles (about 240, plus their _hi copies), Vehicle parts, Wheels, Weapons, Props, Vegetation, Interiors, Buildings & map, and Unnamed.

  • Search box: words match names and ids.
  • hide LOD copies (on by default) hides _lod/_slod/batch-LOD/_mid copies. Clothing pieces that come as several entries with one name keep one (the largest); pieces of a named character are listed through its outfit entry.
  • ☆ marks favourites; there's a favourites only filter and a Recent list. Both are saved in <work>/gui_models.json.
  • Click to load. Up / Down (or ◀ ▶) step through the list.
  • ☰ Models hides the panel.

You can also open by entry id (levels.rpf@10f266d010), by name regex (^phoenix_hi$, searched in levels; data:^w_pi for another archive), from an exported .glb, or with Open in model viewer in the Archives page. Entries are exported on the fly into <work>/gui_cache_v4 (models plus PNG textures; v3 since the 2026-11-20 normals fix; older gui_cache_v* folders can be deleted).

  • Shading: base colour, normal map (DirectX green, in a tangent frame the viewer builds from the first UV set: the frame stored in the models follows the second UV set), packed roughness/metal/AO with a channel-order switch, alpha / cutout / decal / glass classes (blended back to front), emissive.
  • Car paint: primary, secondary (per material 2nd; rims use it), pearl colour and amount, finish (metallic, matte, chrome, gloss).
  • LOD buttons switch between model.glb and model_lodN.glb.
  • Debug views: albedo, normals, UV checker, single texture slot (base, normal, packed, emissive), BCPack gaps (green ok, amber low-mip, red flat, from the export's texture status), vertex colour, lighting only; wireframe overlay, normal lines.
  • Skeleton with joint axes and labels. The Rig sliders spin the wheels and open the four doors. Cars with wheel_mounts get the shared rim and tyre (default rim_muscle_001_hi / tyre_muscle_001_hi at scale 0.37, fitted by eye; vehicles.json now has each car's rims and wheelScale, but the viewer does not use them yet).
  • Orbit camera (drag, right-drag pan, wheel zoom, double-click to frame), or fly camera (WASD/QE, Shift); time of day, exposure, ambient, emissive strength and a wet look.
  • Per-material list: class, alpha mode, gap status, every texture slot with size, format and status; show/hide and solo.
  • Screenshot saves the 3D view and the whole window to <work>/screenshots/.

Map 2D

First bake the map from the world exports (sixng world all output in work/out, plus full placements in work/placements_full). When both work/placements_full and the World-data placements in work/out exist, the bake reads whichever was exported last (since 2026-11-26; before, the full export always won, so an old one left square holes where newer decoding finds the models). map/bake.log names the one it used. After updating SixNG, export the placements again and re-bake to pick up models the new version resolves.

🍞 Bake map (or 🔄 Re-bake map) at the top of the Map 2D and Map 3D tabs does this in the app:

  • It runs in a separate process, with progress from the log, a Cancel button and the elapsed time. Both map tabs reload when it finishes; it takes about 2 minutes.
  • It lists missing world data. Placements are required; the other layers are optional, and the button says which world-data steps to run (from the Status page, Archives → World data, or Jobs).

From the command line:

.\target\release\sixng-gui.exe --bake-map

This writes work/map/ (log in work/map/bake.log):

  • Raster tile pyramid: tiles/<layer>/<z>/<x>_<y>.png, 256 px tiles, 2 m per pixel at the top level. Layers:
    • terrain: hill-shaded top collision surface;
    • collision surface categories;
    • building footprints;
    • navmesh;
    • vegetation/prop density;
    • texture-gap heatmap;
    • LOD regions;
    • water / no collision.
  • Vector data: roads.json, junctions.json, lights.bin, entities.bin, strings.json, interiors.json, and the 8 m height grid heights_8m.bin.

The Map 2D tab shows it:

  • Pan with drag; zoom with the wheel, around the cursor.
  • Pick a base layer (terrain, surfaces or water). Every other raster layer is an overlay with its own opacity.
  • Lane graph: coloured by speed limit, lane count or road class. Width follows the lane count; one-way links get arrows.
  • Junctions: signalised ones cycle through their phase durations; stop and yield entrances are marked.
  • Lights: exterior/interior toggles, and an hour slider that applies each light's on/off-hours mask (time_flags).
  • Interiors are drawn as outlines.
  • Inspect: hover shows the footprint under the cursor; click opens the placement (model id, archetype, kind, LOD level, position in game and glTF axes, size, map file, lights inside). Open in model viewer goes to the model.
  • Search: by name, model id or archetype hash; all hits are circled and listed.
  • Measure: click points; right-click clears.
  • Box select: shows the --bbox for region exports.
  • The readout gives game x/y/z and the glTF/BeamNG (x, z, −y) position.

Map screenshots: --tab map2d --center X,Y --mpp M --base N --overlays 2,3 [--lights --hour H] [--search name] --screenshot out.png --exit.

Map 3D

The Map 3D tab is a fly-through of the placed models, streamed from the baked map (entities.bin; bake first with --bake-map):

  • Fly: drag to look, WASD/arrows to move, Q/E down/up, Shift faster. The speed scales with height above ground.

  • Models are exported on demand into <work>/gui_cache_v4 (the model viewer's cache) by background workers and drawn instanced: one GPU model per model id, all its placements as instances. Loads go nearest surface first (size only breaks near-ties), on screen before off screen; placements outside the view (widened a little) are not drawn but stay loaded for turning round. Sharper texture reloads wait until every wanted model has its first load, so a complete view comes first. The workers (¾ of the cores, 2–12) run below normal priority so the frame keeps its CPU. GPU uploads run on one upload thread at normal priority, and replaced or evicted models are freed on another thread, so neither stalls the frame. A model's meshes share one vertex, one index and one material buffer.

  • Smooth streaming: the visible set is worked out on all cores. While the camera moves, models in range of where it will be in 2 s (up to 800 m ahead) are loaded but not drawn yet. A placement already drawn keeps its place until it is 6 % past its limit (no flicker at the edge), and a parent LOD/SLOD that its children would replace stays up to 2.5 s longer while buildings in its 128 m cell are still loading, so hand-offs do not open holes. A child already drawn stays out to 1.5× its distance while its parent's model is still loading. Eviction runs in 3 ms slices, not in one burst.

  • Sky, light and frame from the game's timecycle (sixng daylight; pick the weather next to the time of day, or --weather W):

    • The sky is the timecycle's physical atmosphere (sky_new_*: planet radius, atmosphere top, Rayleigh and Mie scattering with their scale heights, Mie absorption and phase, two-layer ozone), rendered with look-up tables: transmittance, multiple scattering, the sky seen from the camera and a 32³ froxel volume of aerial perspective (haze over distance, 40 km deep near the ground, out to the horizon from higher up). The sun's disc, a full moon opposite it, stars and the night air glow (sky_air_glow_*) are drawn on top.
    • Surfaces are lit in physical units: the sun's illuminance (sky_scattering_sun_illuminance, ~100 000 lux) times the light colours, through the air to each point (so a low sun turns orange and fades); the moon likewise. The sky's own light is an ambient cube integrated from the sky table each frame, scaled by ambient_sky_intensity, plus the sun's light bounced off lit surroundings from every side (ambient_bounce_intensity times a 15 % ground albedo, our choice). The timecycle's two height fog layers (local_atmosphere_fog_*, e.g. Misty and Fog) are drawn too.
    • The frame is HDR. An exposure meter sets the exposure: mostly the light falling at the camera (sun, moon and sky), partly a histogram of the frame between the timecycle's low and high percentiles, with its key value and adaptation rate and postfx_exposure as an offset; then bloom (postfx_intensity_bloom), contrast and saturation, and a filmic curve.
    • Our own choices (not decoded): the scale from the timecycle's colour values to scattering per km (so its defaults give the usual Earth atmosphere), the moon's illuminance (0.25 lux), star and air-glow brightness, the incident meter's 3:1 share against the histogram (a low sun or moon counted as if 20° up), night scenes metered up to 3 stops darker than mid grey, baked map tiles lit at 60 % of their colour, sun dimming by cloud cover (no clouds are drawn yet), the brightness of emissive surfaces (6 cd/m² at strength 1) and the filmic curve. Without the timecycle (no index) the built-in Sunny values are used.
  • Sun and moon shadows (HDR map, on by default; sun and moon shadows turns them off): four cascaded shadow maps, 2048² each, over the nearest 900 m (the timecycle's dir_shadow_num_cascades), split logarithmically (to about 12, 52, 216 and 900 m), snapped to whole texels so they do not shimmer, and filtered over 4×4 compares with a blend between cascades. The two near cascades are drawn every frame and the two far ones in turn. Each cascade draws only the models that can shadow it (the bounding sphere of their instances), and all but the nearest skip models smaller than three of their texels. Models and map cells cast (opaque and cut-out surfaces); skinned, see-through and decal surfaces do not. Only what the camera draws casts: a caster just outside the view leaves no shadow.

  • Clouds (HDR map): one cumulus layer between the timecycle's local_atmosphere_cloud_height and _height_top (200 and 1500 m). Its cover is a drifting noise field (drift from local_atmosphere_cloud_wind_velocity_scale), thresholded by the weather's cloud cover; the sky and every surface behind the layer are seen through it, and its shadow moves over the ground. A cloud has a dome-shaped top whose height follows its cover and a base that rises where it thins, and is sampled along the whole ray through the layer (8 to 48 samples for the sky, at most 10 for the ground behind the layer), the step growing with the distance (120 m plus 4 % of the distance, more where the samples would not reach the end) from a start set per pixel by interleaved gradient noise with a little white noise (no slices; less grain); a cloud thins out at its rim. A cloud is lit by the sun or moon through the cloud above it (forward-peaked) and by the sky. Our choices: the noise (2.5 km features), the extinction (0.004 per m at full density) and the drift speed (12 m/s at scale 1); the game's cloud map and noise textures are not used. --no-clouds, or the clouds checkbox, turns them off.

  • Terrain ground (HDR map): the baked map tiles hold only a colour by height with their own hill shading (the bake's terrain layer), and cells the bake left out are filled flat green from the game's height map. The land is drawn as a ground made up from height, slope and noise instead: sand just above the sea, dry grass and scrub inland, darker woods in patches, rock on steep slopes, lit by the scene with the terrain's own normals. The tiles' hill shading, which holds relief finer than the terrain mesh (embankments, building pads), is kept at half strength: the tile's brightness over the bake's colour for that height. The tiles' water paint still marks the sea (our choice; the game's terrain materials are not decoded).

  • Placed lights (HDR map): the map's exterior lights that are on at the hour (their hour mask and night flag) light the scene and glow. Those within about 500 m of the camera are shaded on every surface: inverse square, windowed to zero at the light's range, at most 32 lights per 12 m cell of a grid around the camera, brightest first. Every lit light within 600 m, and the brighter ones (intensity 50 or more) to 3 km, draw a corona (small decorative lights only within 150 m): the share of the light's irradiance at the eye that its glass shows, spread over a small Gaussian of at least a pixel, dimmed by the haze. Our choices: one intensity unit gives 0.65 lux at 1 m, a corona shows 12 % of the light, all lights shine as points (spot cones and the falloff exponent are not used yet). --no-placed-lights, or the placed lights shine checkbox, turns them off.

  • Water (HDR map): the sea and the game's water meshes are shaded from the timecycle's water_* values. Wind waves set the normal: the peak wavelength comes from water_ocean_beaufort_scale and water_ocean_fetch (Beaufort wind speed, fetch-limited JONSWAP peak, no lower than a fully developed sea), and the slope variance from the Cox-Munk fit. Ten waves are drawn, and those shorter than about eight pixels (from the screen derivatives, so grazing views too) become roughness. The sky is mirrored by Fresnel (water_fresnel_rescale*), the sun or moon glints (with the shadows), and the body colour comes from water_clip_scattering_* and water_clip_extinction_* (a third of the single-scattering albedo). The map tiles' painted water (their water and no-data colour, which also covers some land cells) is shaded as water on the terrain's sea cells (no height, or deeper than 4.5 m below sea level), blending over one cell at the shore; on higher cells the same paint is left as ground (wet sand, beaches). A water plane under the terrain reaches the horizon. Our choices: the scale from the timecycle's water units to coefficients per metre (0.03), the wind direction, and the share of the slope drawn as waves (60 %). Where the game's water maps are loaded (the fog atlas's and the water height map's whole-map fallbacks, read once and cached in <work>/cache/water_view_v1.bin; this needs current indexes of levels and textures, and an index from an older version is reported on the console and the water stays as before), each place takes its own water: the body colour from the fog atlas's scattering over extinction there, and the bed shows through shallow water (the water height map's ground under the surface, light down to the bed and back up through the water's extinction). Inland water meshes (lakes, marsh, canals) are measured from their own surface, the sea from 4 m below 0 (where the beaches end). Inland water (a surface above the sea's) has short fetch: its waves are 0.15 times as long and a third as steep. Where the sea is shallower than 1.6 m past its visible edge it foams: bands that roll in towards the shallower water, broken up by noise along the shore. The sea drawn on the terrain takes its depth from the terrain's own 8 m heights (finer than the water height map's 16 m); where the water height map has no height (it leaves out many coasts), the map's 8 m heights give the seabed, so those beaches get shallows and surf too. It surfs along the terrain's coastline (where its cells turn from land to sea) whatever the depth data says. The sea plane and the placed water also measure their height over the surface seen through them from the scene's depth (the opaque surfaces are drawn first, then the blended ones read that depth), so a beach model running down into the sea gets a line of foam at the visible waterline and broken bands where it is under 0.5 m deep (a few metres out on a gentle beach). Inland water does not foam. Our choices: the bed's reflectance (sand and mud, 0.22 0.20 0.15), the sea's level, and the foam (depth, bands, 0.75 reflectance). Not yet: the shoreline grid's wave placement, refraction and underwater fog.

  • Fewer draws per model (since 2026-11-26): a model's meshes share one vertex and one index buffer, and their indices address the whole vertex buffer, so neighbouring meshes are drawn as one range. In the main pass that joins neighbouring meshes with the same material; in the sun shadow pass it joins all neighbouring solid meshes, whatever their material (only cut-out ones need theirs). SIXNG_MAP_DRAWLOG=1 prints, with each automation tick, the draw calls per frame of the main and shadow passes and the ten models with the most.

  • Map cells (far placements merged per area): a placement more than 0.3× the HD distance from the camera can be drawn from its cell instead of one by one (SIXNG_CELLS_NEAR sets another fraction). The cells are built for 0.6×; drawing them from 0.3× showed no visible change downtown from 60 m and took the frame there from 25 to 44 fps (draws 6,859 to 3,706: the CPU cost of a frame follows its draw count). A cell holds one LOD level's placements in one square of the map (128 m for HD, 256 m for LOD, 512–2048 m for SLOD1–4), merged into a few batches with one draw each:

    • geometry is placed in the cell, from the low drawable LOD where a model has one, and simplified by vertex clustering to about two pixels at 0.6× the HD distance;
    • base-colour textures go in at 64 px, in BC3 texture arrays;
    • each vertex carries its placement's index. The vertex shader checks that placement's own LOD distance range, so LOD hand-offs stay per placement;
    • since 2026-11-27 a cell's batches go to the GPU ordered by pass, texture array, then distance range. Neighbouring batches in range draw as one call, also across a batch out of range when that adds at most half the call's triangles (its placements are dropped in the vertex shader), and a texture array is bound only when it changes.

    Built cells are cached in <work>/gui_cache_v4/cells (capped at 4 GB), so a revisited area loads with one file read per cell. The cache is keyed by the bake (a fingerprint of entities.bin and strings.json), so after a re-bake cells are built again and those of the old bake are deleted. Until a cell has loaded, its placements load and draw one by one as before. A cell the camera comes close to keeps drawing until its placements' models have loaded. LOD and SLOD cells are small and built on demand. HD cells are the heavy ones (a downtown HD cell is several MB), so new ones are only built while the camera is slow (under 15 m/s); while flying, only HD cells already on disk are used. Cells need BC textures and the default view settings (every kind and LOD level, no proxies); SIXNG_MAP_NO_CELLS=1 turns them off, and SIXNG_MAP_CELL_LEVELS=2,3 merges only those levels (0 HD to 5 SLOD4); the rest draw per placement, where they can be picked.

  • Texture streaming: a model first loads with 64 px base-colour textures only (normal and data maps come with the sharper reload), read from block-compressed 64 px copies in <work>/gui_cache_v4/bc64 (a few KB each, capped at 1 GB; about 20× faster than decoding a PNG), else from reduced PNG copies in lowtex128 (≤ 128 px, capped at 2 GB) and lowtex (≤ 256 px, capped at 4 GB), all written on first use. It then reloads with sharper textures as the camera comes closer (full size in the HD band, then 1/2, 1/4, 1/8). Textures are shared between models and go to the GPU block-compressed (BC1, or BC3 with alpha: 4–8× less GPU memory) where the adapter supports it; SIXNG_MAP_NO_BC=1 uploads them uncompressed.

  • Quality (low / medium / high / ultra, saved in <work>/gui_settings.json) sets the detail, a triangle budget, a draw-call budget, the far-field error and the texture cap. Over either budget the smallest objects on screen are dropped first (the Stream window shows the size cut); both budgets have their own sliders.

  • Detail slider: sets the LOD distance bands (HD, LOD, SLOD1–4), prop and vegetation density and the minimum screen size. Each can be tuned on its own, together with the drawable LOD file and the texture cap.

  • HD fallback (on by default): most LOD-level placements have no linked model yet (unresolved archetype hashes; about 88 % around downtown), so large HD models stay visible out to 1.75× the HD distance and the LOD level is skipped. SLOD placements mostly carry a placeholder unit-cube bbox, so they are never culled by screen size. Water-plant tiles (*_waterveg) are left out of this and keep the game's own LOD distance (130 m): kept out to about 1 km they drew as flat green squares and diamond patterns over the fields (since 2026-11-26). The HD ground tiles beside them have the same size and almost the same LOD distance, so they are told apart by name.

  • Coverage fallbacks (no holes near the camera): a SLOD placement (or a LOD with HD fallback off) with nothing finer to hand over to (no LOD link, or children that all lack a model) keeps drawing nearer than its own band, but only on pixels no real surface has covered. Real surfaces write a stencil mark as they draw; the fallbacks draw after them and only where the mark is missing (far-field terrain, ocean or sky), with back faces culled so a coarse block the camera is inside stays invisible. Since 2026-11-26 an unlinked SLOD3 or SLOD4 tile fills in only one band nearer than its own (SLOD4 from about 7.7 km, SLOD3 from about 4.4 km at full detail): these tiles span kilometres, and nearer the camera their flat ground patches and water pieces covered the terrain as hard-edged green squares and diamond-tiled water. The finer levels still fill in all the way to the camera. Before, such areas showed flat far-field terrain next to the camera while the same LODs farther away were drawn. Needs the 32-bit depth + stencil format (most desktop GPUs); without it the fallbacks draw plainly.

  • Building glass: glazing materials carry only a light dirt texture (the game adds reflections and interiors behind them), so on the map they are drawn as dark, mostly opaque reflective glass; the model viewer keeps the see-through look.

  • Whole-map terrain (far field): the whole map is always drawn, out to the horizon, as a quadtree of tiles over the baked 8 m top-surface heights, coloured with the 2D map's terrain tiles (coarse tiles for coarse nodes, so the colour sharpens as nodes refine). Nodes refine by screen-space error (terrain error, px) and frustum; children replace a parent only once all four are loaded, so nothing pops out. Beyond the SLOD3 band the tiles keep the roofs (max-pooled heights), so buildings show as blocks instead of a void; nearer, where buildings or their LODs are drawn, a tile switches to ground heights (a morphological opening that removes buildings) once at least 90 % of the building and LOD models on it have loaded, so coarse blocks do not swallow the LODs. Ground tiles draw in the coverage pass (only on pixels no real surface covers, so they never cover a street or sidewalk that sits a little lower) and 2 m above the ground estimate, so where the map data has no ground model near the camera, the 2D map's colours show instead of a pale coarse SLOD slab. Coarse SLOD placements near the camera also load their texture atlas at full size (they cover a whole area with few texels per metre). Built in the background from the map data already in memory (about 0.3 s); no extra bake. A sea plane fills the rest.

  • Overlays: roads (by speed) and exterior lights (by hour) as lines; a draggable Minimap window (click to move there) and a Stream window (entities, models wanted/loaded, queue, instances, triangles, textures, per-band counts, memory). Click a model to inspect it (bbox outline, name, model id, LOD level, kind, position) and Open in model viewer.

  • LOD hand-off: the bake keeps each placement's resolved LOD parent, lod_dist and child_lod_dist. A parent LOD/SLOD stays drawn until the camera is inside its child_lod_dist and every child has loaded; then the children replace it, so the two are never drawn together. A child whose parent has no model stays out to the parent's distance. Unlinked placements use the distance bands. Distances scale with the detail slider.

  • Proxies hidden: interior-shell, shadow, light and VFX proxies, placements without a model and degenerate (< 1 cm) models are not drawn; show proxies / placeholders draws them (--show-proxies). The same rule writes render: false + render_reason into the placements.

  • Decals and depth: decal-bucket materials (markings, grime, signage, terrain blend layers) are drawn after opaque geometry, by layer order, with a small depth bias; the depth buffer is reversed-Z 32-bit float. decal depth bias (--no-decal-bias) turns the decal pass off for comparison; the model viewer has the same toggle.

  • Memory: the limits scale with the installed RAM. Above 20 % of RAM (the soft cap) the streamer loads only nearby models at 64 px and drops everything off screen; above 30 % (the hard cap) it also drops the farthest visible models. The texture budget is RAM/16 (0.5–3 GB) and the model cap is 180 per GB (800–12,000). When a view wants more models than the cap holds, the nearest load first and the view counts as complete once the cap is full (the tick line says "model cap full"). The Memory panel shows usage against the caps; untick automatic to set your own limit with the slider. It is saved in <work>/gui_settings.json. The process figure includes memory the graphics driver commits for GPU buffers and textures, so it grows with what is on the GPU (about 3 GB plus the estimated GPU memory downtown).

  • GPU memory: the dedicated and shared GPU memory of the process are read once a second from the Windows performance counters. When the driver starts moving the map into shared (system) memory (more than 384 MB), the streamer takes 85 % of what was in use at that point as the GPU budget and sheds models above it, like the RAM caps. Freed models give their GPU memory back: the renderer records no render bundles, because the graphics library version in use never frees a bundle, nor anything it draws.

  • GPU device loss: when the driver loses the GPU device (a driver reset, or out of GPU memory), the viewer cannot draw any more. It logs the reason, shows a message box asking for a restart (not with --exit), and exits with code 3 instead of crashing. SIXNG_TEST_GPU_LOSS=N destroys the device after N frames, to test this.

  • Lighting: ambient light comes from a mostly desaturated sky, and the fog fades towards a half-desaturated sky, so surfaces keep their texture colour instead of turning blue-white. packed data (Light panel) picks how the packed material-data texture is read; the default ignore packed is used because its channel order is unverified and the common maps (R = G = 0, B ≈ 0.5) read as "R = roughness" made every surface a mirror. The model viewer's default is the same (--rma 3).

  • Placeholder textures: textures of 8 px or less (engine defaults such as a 4×4 all-zero data map or a flat-black normal map) are ignored in the normal and packed slots (they made walls black). Opaque materials whose every decoded texture is such a placeholder are hidden on the map (they showed as floating black boxes); the model viewer still shows them.

Map 3D screenshots: --tab map3d --center X,Y --height H --yaw DEG --pitch DEG [--quality low|medium|high|ultra] [--detail 0-1] [--tod H] [--weather W] [--no-shadows] [--no-clouds] [--no-placed-lights] [--lights] [--roads] [--no-terrain] [--fog F] [--max-tex PX] [--no-textures] [--no-hd-fallback] [--kinds a,b] [--lods a,b] [--ram-cap GB] [--no-windows] [--no-decal-bias] [--show-proxies] [--fly X,Y,H,SECONDS] [--no-vsync] --screenshot out.png --exit. The shot waits until every wanted model is loaded (15-minute limit) and also saves out_ui.png with the panels. --fly first waits for the start view, then flies to (X, Y, H metres above ground) and logs the frame times of the flight. Timings (open time, time to a complete low-texture view, frame times, RAM, estimated GPU memory, draw calls, loader times) go to stderr and <work>/map3d_perf.log.

Screenshots from the command line (for checks and docs):

.\target\release\sixng-gui.exe --model levels.rpf@10f266d010 --mode 0 --yaw 2.4 --pitch 0.25 --screenshot car.png --exit

Options: --lod N, --mode 0-7 (shaded, albedo, normals, UV, slot, gaps, vertex colour, lighting), --slot 0-3, --rma 0-3, --wire, --skeleton, --normals, --tod H, --weather W (the game's lighting for that weather type at --tod, see below), --paint r,g,b, --finish 0-3, --pearl A, --wet A, --exposure E, --spin R, --door R, --yaw R, --pitch R, --zoom F, --size WxH.

Time of day and weather. The model view's Light section has the hour slider and a weather list: viewer default keeps the viewer's own light set-up (the default, so screenshots and checks are unchanged); any of the game's 12 weather types (Sunny, Clear, Clouds, Overcast, Overcast dark, Misty, Fog, Drizzle, Shower, Rain, Thunderstorm, Hurricane) lights the model from the game's timecycle at the chosen hour (sixng daylight prints the same numbers). A weather is built as the game's weather list does: the weather type's base cycle (GLOBAL region, 13 time samples) with its eight modifiers and their submodifiers applied in order, and interpolated between the two time samples around the hour, eased with the earlier sample's easing (linear, or quartic in-out at 04, 20, 21 and 22 h; which sample's easing applies is our reading). From the timecycle: the directional colour and multiplier (light_dir_col_*, light_dir_mult, with the sun's light_dir_sun_mult, sky_scattering_sun_intensity_multiplier, sky_scattering_sun_col_* or the moon's light_dir_moon_mult, sky_moon_col_*), the ambient (ambient_sky_intensity, indirect_light_sky_multiplier, tint ambient_sky_color_mult_* x sky_scattering_sky_col_*), postfx_exposure and the high-level cloud cover. The game feeds these into a physical sky and eye adaptation that are not decoded, so the rest is our own simple model: sun path at 25.8° N at the summer solstice with the clock one hour ahead of solar time (sunrise ~06:10, sunset ~19:50, where the cycle's colours turn from moonlight to sunlight and back), a full moon opposite the sun, Rayleigh/aerosol air-mass tint of the sun near the horizon, sky brightness over the day, the sun dimmed by 85 % of the cloud cover, and an exposure that brightens dark scenes. Directional and ambient strength are scaled so that Sunny at 12:00 matches the viewer default. The table is decoded from common.rpf (needs its index) on first use, ~once, and cached in <work>/cache/daylight.json.

Textures

The 🖼 Textures tab lists every texture in the game's texture stores (data/ttdb/*.ttpf, about 352 K), filtered by store, format, minimum size and hash. Pick one to see a decoded mip (the largest one that is not in an undecodable BCPack chunk, at most 2048 px, by default; any mip from the list), as RGBA, RGB or a single channel, zoomed to fit or 0–8×. Export PNG saves the shown mip to <work>/out/textures/<hash>_m<mip>.png, and Show in Explorer opens it. To browse, scroll the mouse wheel over the preview (one texture per notch, at fit zoom; zoomed in, the wheel pans) or press ↑ / ↓ (Page Up / Page Down: 10 at a time). Textures have no names, only their 64-bit hash, the same hash64 that model.json lists for each material slot: in the Model viewer, open a material and click view on a slot to jump here. From the command line: --texture <hash> (or --tab textures) with --window-screenshot out.png --exit.

For a texture no model binds, Used by turns to the wardrobe data. Ped skin (a head's face, the body's normal, detail and mask maps, the eyes' colour) has no texture in its drawables: wardrobe items name them. The panel then lists the heads the items name and the named characters whose wardrobe has the texture (click one to open it), and counts the wardrobes of models without a name in the index. The table is built from the packs index the first time it is needed (about a minute) and kept in <work>/index/wardrobe_textures.json.

Used by, on the right, lists the materials that use the selected texture, most-used first: each with its shader, its other texture slots (a base colour leads to its normal map, packed roughness/metal and so on; click a hash to view it) and a few of the models that have it (click one to open it in the Model viewer). It reads <work>/index/texture_users.jsonl.gz, which Build index (or sixng texture-users) writes from the indexed archives: about 10 min for the whole install (349 K models, 1.09 M distinct materials, 391 K textures, 44 MB). sixng texture-users --texture <hash> prints the same list as JSON.

Audio

The 🔊 Audio tab (or the Library's Audio card) lists the sound banks in audio.rpf. The first visit offers a scan, which reads the archive once (about 2.5 min) and saves <work>/index/audio_audio.json.gz; sixng audio writes the same index. Filter banks by bank offset or stream id (hex) and a minimum length; pick a bank to see its streams with length, rate field and layout. ▶ Play decodes a stream and plays it on the default output device; the speaker button mutes and unmutes, and the slider next to it sets the volume. .opus / .wav export one stream, Export all .opus / .wav the whole bank, and Export bank .awc its raw bytes, all to <work>/out/audio/. Music and other-codec streams are listed but only export raw. From the command line: --tab audio [--bank <hex>] --screenshot out.png --exit.

Scenes dialogue

The Scenes tab can show subtitle occurrences from a local <work>/scene_dialogue.json. The file is read when Scenes first opens. To build it, run:

sixng text data --out text-export
sixng audio 'local/fixture.rpf'
sixng scene-dialogue --input turns.json --text-table 'text-export/text/data/1000.json'

Substitute your archive ID and text table path. Choose tables from one locale and repeat --text-table as needed. Use the exact scene names from sixng cutscenes. The input lists verified turns in scene order with the full native speaker hash, display label and localization key. Supply these facts from local scene analysis. The command joins the text by key and fills the encoded range from the current SixNG audio index. A missing or ambiguous subtitle is reported by turn number. A rejected audio address leaves the text and speaker visible.

Example turns.json with synthetic values:

{
  "schema_version": 1,
  "turns": [
    {
      "scene": "fixture_scene",
      "speaker": "Guide",
      "speaker_hash": 1,
      "subtitle_key": 3,
      "audio": {
        "archive": "local/fixture.rpf",
        "bank_offset": 4096,
        "stream_index": 1,
        "stream_id": 66
      }
    }
  ]
}

An external tool can also write the Scenes file directly. Its generated form adds the text and encoded byte range:

{
  "schema_version": 1,
  "scenes": {
    "fixture_scene": [
      {
        "speaker": "Guide",
        "speaker_hash": 1,
        "subtitle_key": 3,
        "text": "The lights are on.",
        "audio": {
          "archive": "local/fixture.rpf",
          "bank_offset": 4096,
          "stream_index": 1,
          "stream_id": 66,
          "data_offset": 4352,
          "data_size": 512
        }
      }
    ]
  }
}

archive is the game-relative archive ID, bank_offset and data_offset are absolute byte offsets in that archive, and stream_index is zero-based in the bank. All numeric fields are decimal JSON integers. Open in Audio checks the full address against the local audio index and highlights the selected stream. Use Scan in Audio or run sixng audio <archive> to prepare an index. Omit audio when the occurrence has no verified audio address. The subtitle and speaker remain visible for those rows.

For an excerpt of a shared voice stem, include a "stem": {"channel_id": 52, "start_frame": 48000, "end_frame": 96000} object inside audio in the input or the output. The outer address points to the parent stream, and channel_id identifies its sub-stream. Frame offsets count from the start of the decoded channel at 48 kHz after SixNG applies Opus pre-skip, with an exclusive end. Open voice excerpt highlights the parent stream and Play excerpt plays only that channel and frame range. The full bank is still available in Audio.

Output layout

<out>/
  manifest.jsonl                       one line per exported item
  textures/<archive>/<name>_<off>/     a texture dictionary
    dictionary.json
    <texture>.png / .dds / .json       mip 0, plus per-texture metadata
  models/<archive>/<name>_<off>/       a drawable or fragment
    model.glb, model_lodN.glb          triangle meshes per LOD (glTF 2.0, Y-up, metres;
                                       fragments: skeleton joints + skin):
                                       root > modelN > geomNN_<off> nodes, POSITION,
                                       NORMAL, TANGENT, TEXCOORD_0..3, _COLOR0 (raw), one
                                       double-sided material per shader
    model_parts.glb                    models of embedded drawables (fragment children,
                                       building sub-drawables): parts, not LODs (2026-11-20)
    points.glb                         only for mesh blobs with no index buffer
    model.json                         name, type, source streams, vertex/triangle
                                       counts, coordinate_system, surface_hint,
                                       meshes[] (material, uv_sets, normals, ...),
                                       drawable.models[] / shaders[] (hashes),
                                       drawable.skeleton[] (node hierarchy),
                                       buffers (+ mesh-blob headers),
                                       embedded textures, strings (bones / attach points)
    buffers/NN_<gfxoff>.bin            raw GPU buffers
    sys.bin                            decompressed system page
    textures/                          embedded textures (PNG/DDS)
  textures/ttpf/<hash>.png / .json     textures from the data/ttdb stores, shared by
                                       all models (written once; .json = size, mean
                                       colour, normal-map test). GLB materials link
                                       them as ../../../textures/ttpf/<hash>.png
  raw/<archive>/<name>_<off>.<ext>     anything else (xml, pso, rbf, bin…)
  placements/<archive>/<off>.json      one map file (`sixng placements`): entities[] with
                                       archetype (joaat), name + model_id when the model
                                       is indexed, position (RAGE Z-up), rotation (as
                                       stored = inverse), rotation_world, scale_xy/scale_z,
                                       flags, guid, gltf {translation, rotation, scale}
                                       ready for placing model.glb in a Y-up scene, and
                                       every other scalar field by hash; render: false +
                                       render_reason for proxies/placeholders; plus the map
                                       file's own fields (extents, parent hash)
  placements/<archive>/index.jsonl     one line per map file: id, entity count, resolved
                                       count, position bounding box

Entry ids are <archive>@<hex offset> (for example levels.rpf@10f2d2d010). They are stable for a given install, so you can use them in scripts and with --id.

Using the output downstream (game engines, BeamNG.drive, Assetto Corsa)

The extractor's output is meant as an intermediate format for mods, for example in a custom game engine, BeamNG.drive or Assetto Corsa. This table says what each of them needs and what the output provides today.

Need Status in the output
Scale and axes Done. 1 unit = 1 m. Source data is RAGE Z-up, right-handed. model.glb (and points.glb) are glTF Y-up, with glb(x, y, z) = rage(x, z, −y). Blender's glTF importer converts back to Z-up. The same note is in every model.json (coordinate_system) and in the GLB scene extras.
Meshes → FBX (Blender/assimp → ksEditor → KN5) Usable. model.glb holds real triangle meshes. Each geometry is its own named node and mesh (geomNN_<offset>) with one material, grouped under modelN nodes. Blender's glTF importer, followed by FBX export, keeps the split. phoenix_mid models 0–2 are the intact car; 3–5 are an alternate set (probably damage) with the same layout, so delete or hide them. Small bone-space parts (hubs, rods) are offset until pivots are solved. About 3 % of triangles were re-wound to match the stored normals; all materials are double-sided.
Per-mesh material names Partial: stable but hashed. Every geometry has a material named shaderNN_<shader-name-hash>, for example shader03_77d8ab27. Geometries that share a shader share a material. The hashes (shader, parameters, texture references) are kept in the material extras and in model.json → materials[] / drawable.shaders[]. Texture hashes resolve to ttpf textures (see below). Shader and parameter names are joaat of the lower-case name: since 2026-11-21 model.json and the material extras carry shader_name (all 344 shaders, e.g. standard_vehicle_2lyr) and each texture slot's param_name (diffusetex, bumptex, lyr1normaltex …; 77 of 229 parameters, about 75 % of uses). The material names in the GLB stay shaderNN_<hash> so existing pipelines keep working.
Vertex normals, UV sets (incl. UV2) Done. NORMAL (decoded from octahedral) and TEXCOORD_0..3 (the second set, UV1, is TEXCOORD_1, which ksEditor's UV2 needs) are written wherever the mesh has them. meshes[] lists uv_sets, uv_slots and normals per geometry. TANGENT (x, y, z, w) is the game's own tangent where the geometry has one (most vehicle parts; about a sixth of map geometries); elsewhere let the importer generate it.
Textures as DDS Done for texture dictionaries; PNG only for ttpf. Use --tex both or --tex dds. The DDS keeps the original BCn data (untiled, not re-encoded), with a DX10 header and a mip chain down to 128 px. The smallest mips are left out because their packed layout is not solved for BCn; a partial chain is valid DDS. Uncompressed textures keep their whole chain. ttpf textures linked by models are written as PNG (mip 0) to textures/ttpf/.
Drivable surface split (1ROAD, 1GRASS, 1KERB …) Partial. The collision export (sixng collision) splits every collision mesh by surface id (one glTF primitive each). sixng annotate names 221 of the 389 ids (64 % of triangles) with the game's physics material names (ROAD_TARMAC, DEFORM_SAND_WET, STRUCT_CONCRETE …). Inferred categories (road surface, dirt track, hard surface, paved ground, grass / vegetated soil, forest floor, wetland, walls, shore, seabed, generic) cover 98.3 % of collision area (90.8 % at high or medium confidence; sixng surfaces): collision/<archive>/surface_categories.json. Separately, model.json → surface_hint (road, kerb, sidewalk, grass, dirt, vegetation or null) is guessed from the model name, e.g. ap_road_upper_a → road.
Vehicle node hierarchy and pivots Done. model.json → drawable.skeleton[] gives every node with its parent and its model-space pivot / bind_matrix (from the game's inverse bind matrices). In the GLB, the skeleton is a glTF joint hierarchy with matching local transforms. Verified on phoenix_mid: wheels at (±0.79, 1.37) / (±0.76, −1.36), bonnet and boot hinges, door hinges and lamps all symmetric and in place. glTF forward is −Z (RAGE +Y).
Handling / physics metadata Decoded (2026-11-21): sixng handling data --out <dir> writes <out>/pso/handling.json, 1,097 handling records (301 named by model, e.g. phoenix), each a list of typed components: body (fMass, fInitialDragCoeff), transmission (fGearRatios, fFinalDriveRatio), engine (RPM and torque curve), fuel, wheels/steering/brakes (fSteeringLock, fBrakeForce, fWheelMass), suspension, damage. Many fields are still hashes.
AI lines, pit/start positions Partial. The lane graph (sixng paths: node positions, links, lane counts, speed limits) gives road centrelines to derive an AI line from; road polygons come from the navmesh. No start positions found.

Recommended flags for these consumers:

# Car: every part, DDS + PNG, metadata incl. skeleton
.\target\release\sixng.exe extract-category vehicles --name '^phoenix' -o work\out --tex both
# Track pieces whose names look like roads, with surface hints
.\target\release\sixng.exe extract levels --rtype dr --name 'road|_rd_|kerb|carpark' -o work\out --tex both --dry-run

Custom Shaders Patch (CSP) needs

For Assetto Corsa mods that target CSP, this table tracks what the extractor provides for each one and steers what gets decoded next.

Status key:

  • now: exported.
  • partial: exported, but incomplete or unverified.
  • raw: the data is exported but not decoded.
  • unknown: not located yet.

Format limits

CSP need Status Notes
KN5 16-bit indices (≤ 65,535 vertices per mesh) now meshes[].vertex_count and meshes[].exceeds_kn5_16bit_limit per geometry. The game's own remap is u16, so a single geometry never exceeds the limit, but merging meshes in the converter can.
Normals now NORMAL.
Tangents done Stream slot 11 (format 0x27) is R10G10B10A2: xyz in model space, A2 = bitangent sign. Written as glTF TANGENT (w = ±1), orthonormalised against the normal. Checked against tangents computed from UV0 (mean |dot| 1.000, sign agreement 0.999) and rendered with normal maps. Geometries without the stream have no tangents; let the importer generate them there. Normal maps are DirectX convention (green down).
UV2 (.uv2: scenery AO, car stickers) now Every UV set is written. TEXCOORD_1 is the game's second set. Values are as stored, so they are not guaranteed to be in 0..1; check before using half precision.
Vertex colours (tint, AO bake source) partial _COLOR0 holds the raw RGBA8 of stream 1. Blue is the tint palette index (see textures above; applied as COLOR_0); alpha is the layer-2 weight on multilayer shaders. Red and green are still unverified, but narrowed down (4,000 sampled models): red looks like a baked shading term (mostly 255; soft dark blobs on ground tiles where trees stand outside the model; 23 on average on trees) but is ~252 on interior shaders, so it is not sky occlusion alone, and ray-cast sky visibility does not explain it, neither from the model's own geometry nor from the neighbouring placed world (two ground tiles with all models within 120 m: correlation about 0), and neither do nearby instanced trees, the grass batches' AO byte or distance to the road. Green equals red on 63 % of ordinary vertices; on ground shaders it is low and varies widely within one collision surface (standard deviation about 54 of 255 on a road surface), so it is not a surface-type mask either. Streams 12 and 13 (also RGBA8) are not exported.

Materials

CSP need Status Notes
Stable, readable mesh and material names partial The names are stable (geomNN_<offset>, shaderNN_<hash>, textures/ttpf/<hash>.png). Shader names (all) and most parameter names are in model.json and the material extras (shader_name, param_name); texture names are unresolved 64-bit hashes.
The game shader or material class per material works (name); partial (classified) Every material has its game shader name (shader_name, e.g. standard_decal_hbb, ped_standard_skin, standard_vehicle_glass). Each material in model.json has a classification: class (opaque / alpha / cutout / decal / glass / window / emissive / water / terrain_multilayer / car_paint), render_bucket from the shader record flags, alpha_mode (glTF OPAQUE/MASK/BLEND, also set in the GLB), instanced_or_batch_lod, the shader family where known, and for decal-bucket materials decal {bias_m, order, order_source, depth_write}: draw after opaque geometry in ascending order (terrain blend layers 0, other decals 1; no per-material priority is known), offset by bias_m toward the camera. Buckets come from flags measured over 254 K drawables. Glass, window, emissive and terrain classes come from a list of known shader families. Emissive has no flag, so unknown emissive shaders show as opaque.
PBR maps (albedo, normal, roughness, metal, AO) and channel layout partial Base colour and normal map are linked in the GLB when they decode. model.json → materials[] lists every slot with its parameter hash, format, size, tile mode, role_guess, slot_role (what a known slot holds), and the PNG path or why it is missing. Normal maps are DirectX (green down): invert G for glTF/Blender/OpenGL. Engines that use the DirectX convention take them as they are; check each converter. Roughness/metal/AO sit in packed linear slots (739e3d0d, c6f46e79). They are exported as PNG but not mapped. Channel statistics and a visual sheet suggest c6f46e79 = R binary mask (metal?), G roughness or gloss, B AO/cavity, A unused; this is not confirmed.
Emissive flag and emissive textures partial Shader names now show the emissive families (standard_emissive*, signs_emissive, *_emissive_layer*) and the emissivetex slot; the viewer's classification does not use them yet.
Transparency / alpha-blend flag (glass) unknown It is probably in the shader record's +0x38 bytes or the draw bucket, which is not decoded.
RainFX classes (asphalt, lines, grass, glass, cloth) partial surface_hint from model names only.
Terrain RGBA blend masks, multilayer layers partial Two-layer families: multilayer with the layer weight from the shader code (since 2026-11-25; multilayer.blend): w = saturate(s x blendintensity + blendoffset), where s is _COLOR1.r widened by the blend mask (slot 11, channels picked by 59eb15c5) and sharpened by blendsoftness, and colour = lerp(base, layer 2, w). The deferred pixel programs of standard_2lyr and prop_2lyr_batch were read in full, the pxm and decal ground ones compared; a per-instance value that can scale w is not exported (1 assumed). Earlier exports named COLOR0.a (on prop_2lyr_batch 1 − COLOR0.a), a guess from vertex statistics; COLOR0.a scales the dirt overlay. The prop_2lyr_batch dirt overlay follows TEXCOORD_2 (a seam test), and on rocks TEXCOORD_2 is parked at one point, so their dirt is uniform; the wall families get TEXCOORD_2 for the dirt too, by analogy, at low confidence.. Four-layer ground (standard_uber_4lyr_*): multilayer.family = "four_layer" with the lookup (splat) texture, its channels per layer, and the macro maps; the channel order is from a seam-continuity test and, since 2026-11-24, confirmed from the shader code (one deferred pixel program of standard_uber_4lyr): R, G, B weight layers 0, 1, 2 and the remainder layer 3; each layer's shaded result is multiplied by its weight and the four are added; a layer with weight 0 is not sampled. The second vertex colour set (_COLOR1) can replace the lookup weights (mix(lookup.rgb, colour.rgb, colour.a)), and on map tiles it mostly does: on 14 re-exported tiles (about 150,000 ground vertices) its alpha is 1 on 98 % of the vertices of the most used variant and on 58 to 100 % of the others, and its r + g + b stays at or below 1. Each material's multilayer.weights says where its weights come from (source: vertex colours, lookup texture, or mixed per vertex) with the shares measured on its own vertices (vertex). The lookup texture picks the same dominant layer as the vertex colours on only 20 to 59 % of vertices on the tile checked, so blending from the lookup alone gives a different picture there; and the four unnamed data maps are one per layer (3022de38, 42110214, 0cd6179f, 3ea37b39 for layers 0 to 3), sampled with the layer's own UV, with the alpha channel as the layer's tint mask. Each layer's UV comes from the material's constants (since 2026-11-24): 724bed95 says per layer whether it uses the first UV set (scaled and offset by 4344d2cc) or the second (9ecaaa1e); on most map section tiles that is TEXCOORD_0 times 128, one repeat per 4 m, where 64 was assumed before. multilayer.layers[] carries uv_set, uv_scale, uv_offset per layer. The height-based blend is read from the shader code (most used variant, medium confidence) and written out as steps in multilayer.height_blend: the data map's B channel is the layer's height; height times weight is normalised by the largest, raised to an exponent set by blendsoftness (20 for a hard edge down to 1), renormalised, and used only for layers whose switch f24b51f2 is 1 (on 14 tiles 49 of 57 materials have it 0 on all four layers, so their weights are not changed). The shared texture array 0cd27763 is a detail array (normal in red and green, a brightness term in blue). A second sampling of a layer at another scale and the data maps' G channel (roughness-like) are not decoded, and the tint is not applied, but its formula is written out per material in multilayer.tint_formula (from the shader code, medium confidence): the steps, the material's three tint switches, and per layer the mask (the data map's alpha or its inverse), the vertex tint and texture tint modes (multiply or luminance), intensities and blend amount. On 14 tiles 189 of 203 ground materials have the same switch settings; the exporter and the viewer do not use the vertex override or the tint mask.
Window, water, screen and horizon tagging partial Shader names identify glass (standard_vehicle_glass, standard_glass_breakable*), water (standard_alpha_water, water_micro_geom, standard_alpha_waterfall) and signs; not yet used for tagging. Water type (sea, lake, pond, pool) is not located.

Map

CSP need Status Notes
Instancing and placements (archetype, transform, LODs) works (transform); partial (LODs) sixng placements writes every entity with its model name, entry id, a ready-made glTF transform and its tint palette row (tint_row, see textures above). Models are still exported once per archetype, never baked. LOD parent/child links are in the per-entity fields but not interpreted. Interiors: sixng interiors gives each of the 2,590 interior instances a world transform and its entity list. Instanced batches (grass, weeds, debris, fences, reflectors, *_batch_slod LODs): --batches[-only] writes batches.jsonl (one line per batch: archetype, model name, bbox, LOD distance, first / count into the binary) plus batch_props.bin (44 B per instance: position f32×3, quaternion xyzw f32×4, scale f32×3, tint RGBA u8×4), batch_props_layer.bin (2 B per instance in the same order: layer_blend, the 2-layer shaders' per-instance value b = byte / 255, then layer_aux, read beside it) and batch_grass.bin (20 B per instance: position f32×3, normal x/y u8, colour u8×3, scale u8, AO u8, pad). All 906,922 batches decode, 99.76 % with model names. Fixed 2026-11-23 (two causes; together 130,066 of 24.9 M prop instances in 23,352 batches came out with positions of 0 or 1e10–1e35 and scales of 0, 1e3–1e18 or inf, now 0): (1) a pool reference whose byte offset is 0x500–0x5FF or 0x600–0x6FF with a zero low byte (0x5000_0003 = block 3, offset 0x500) also reads as a system or graphics pointer, and the pointer reading won; pool references now resolve first, for every meta pointer (this also fixes about 950 entity and 4,500 archetype and other extension arrays). (2) When a map file's system stream fills whole 64 KiB chunks (105 files in levels, 2 in the minigame pack), its graphics page is a separate zlib stream a few KiB further on, not stored data right after the system stream; load_meta now looks for a stream that inflates to the block extent (or that rounded up to 64 KiB) there. Re-export batch_props.bin (and anything built from it) made before then.
Trees and bushes separately, with LODs and placements works (placements); partial (LODs) Tree and plant models export like any drawable, and their instances (e.g. veg_pot_hedge_lrg_02 × 25 in one sample) come out of sixng placements with scale.
Light emitters (position, colour, range, cone, night flag) works sixng lights: 774,847 placed lights in world space, interiors included. Intensity, falloff (range), falloff exponent, cone, corona, volumetric and fade fields are named from the game's own field hashes.
Collision split by surface type; walls identifiable works (split); partial (names) sixng collision: one GLB per bounds file, one primitive per surface id, in world coordinates. Surface ids are named by sixng annotate (221 of 389 ids, 64 % of triangles); inferred categories (sixng surfaces) cover 98.3 % of area, each with a confidence (90.8 % high or medium), from plants and props standing on each surface, path-link density, slope and height. Interior collision: sixng interiors links 70.7 % of interior archetypes (collision_linked, ~91 % precision on the ordered links); its second pass links the rest by fitting the interior's entities onto candidate collision floors, for 97.8 % in all, 79.3 % at high or medium confidence.
Dynamic props: mass, centre of gravity, collider primitives unknown Fragment physics data is not decoded yet.
Animated props, rail and tram paths partial (clips); unknown (props, paths) anim.rpf clip dictionaries decode since 2026-11-22 (sixng clips): all 61,506 dictionaries with 0 errors, 316,150 clips (294,822 bind animations; the rest are in dictionaries whose animations are not decoded yet), 191,031 animations, 12.7 M tracks (examples/clipcensus.rs). They apply to characters with sixng outfit --clip. Which clips drive props, and rail / tram paths, are not decoded.
Tunnel and bridge extents; billboard, TV and skyline meshes unknown
Road/lane graph, traffic lights, pit and start positions works (lane graph, junctions, traffic lights, road surface); unknown (pit/start) sixng paths: node graph with lanes, speed limits and named node flags (tunnel, highway slip/exit, no-GPS, stop, yield …); junctions with turn paths and traffic-light phases linked to the placed signal props; sixng navmesh --roads-only: road polygons per 128 m tile. Link flags: 4 of 11 names recovered, 2 inferred (unpaved / track, two-way). Start positions not found.

Cars

CSP need Status Notes
Node hierarchy with pivots now Skeleton joints with model-space pivots, in model.json and as glTF joints.
Bonnet and boot as their own parent nodes partial bonnet and boot are joints with correct hinge pivots, and their vertices are skinned to them (slot 8). They are not split into separate mesh nodes: a converter can split by joint (most parts use one bone per vertex). Separate _dmg_mod_bonnet_* / _boot_* fragments also exist.
Skinning (bones and weights) now glTF skin: one joint per vertex for car bodies (slot 8, format 0x00), and up to 4 joints and weights for wheels and tyres (slot 8 format 0x25 + slot 6). Since 2026-11-21 ped clothing gets 8 influences (JOINTS_1 / WEIGHTS_1 from slots 9 and 7; before, the second four were dropped) and is bound to the right bones: its joint indices go through each model's bone palette (sorted bone-name hashes) to the shared ped skeleton (596 bones, read from ambient_femalebody / ambient_malebody in packs.rpf, so packs must be indexed) plus the file's own GM_U01_* helper bones. Earlier ped clothing exports used the file's own bone order and are wrongly skinned; re-export them. Since 2026-11-22 the GM_U01_* helper joints hang under the shared bone their bone record names (u32 joaat at record +0x2C, e.g. SKEL_Spine3, RB_L_Thigh01, SKEL_L_Clavicle), with their parent-relative bind moved to model space, so they follow the body when it is posed or animated (sports top: helper joints 0.36 m → 0.07 m median from the vertices they drive), and the GLB skin passes the Khronos validator (before: SKIN_SKELETON_INVALID, joints with zero weight not 0). Some T-shirts name 8–9 palette bones that are in neither skeleton (warning with their hashes); their weight goes to the other influences. Body shape (since 2026-11-21): extract --body-shape "gcweightbelly=0.5,gcmusclechest=1" (or the Body shape field in the GUI) poses the shared ped skeleton with the game's own body-shape rig (LOD0_Body_Shapes_Female / _Male from the rig dictionary in anim.rpf, so anim must be indexed with this version too). Controls: gcweight<region> -1 (thin) to 1 (heavy) and gcmuscle<region> 0 to 1 for back, belly, butt, calf, chest, forearm, hip, muffin, neck, shoulder, thigh, upperarm, plus gcbutt and gcbreasts; allweight=v / allmuscle=v set a whole group. The shape is in the joint node transforms (the inverse bind matrices stay neutral), so Blender and other glTF viewers show it; the GUI model viewer draws the bind pose and does not. Checked on a female sports top (thin, heavy and belly look right, left/right symmetric). On male T-shirts with palette bones in neither skeleton the belly can come out as a spike. Heads, jackets and other 0x8c-skinned parts are skinned since 2026-11-22 (before, they came out with no skin): slots 8 / 9 format 0x8c hold 4 × u32 per vertex with the joint index in the low 12 bits (stream 8 keeps other data in the rest; 8 influences with slots 6 / 7), through the part's bone palette; low-detail copies whose palette names only shared bones are bound the same way. A part can hold several bone arrays (torso, upper-arm and forearm helper sets: a biker jacket has 69 + 32 + 24 + 16 + 9 bones) and its palettes name bones of all of them; all are now joints, which binds the arm helpers that used to count as "in neither skeleton" (biker jacket: 98 helper joints used, median 3 cm from the vertices they drive; 0 unresolved influences). The bind pose is model space.
Damage or deformation variants partial Damage parts are separate fragments (<car>_dmg_mod_<part>_NNN, with _hi/_mid) and are exported. How the game swaps them in is not decoded. (phoenix_mid models 3–5 are LOD1, not damage.)
Light meshes by function, or light IDs unknown
Car paint (smCarPaint: colour, flakes, clear coat; liveries) partial (colours decoded 2026-11-21) sixng vehicles gives each model's spawn configurations with a body colour and its paint palettes. Colours are stored as ARGB u32 and are all dark, so they are probably linear. srgb_if_linear gives the sRGB reading (phoenix: steel blue, sage green, navy …; not checked in game). Secondary/pearl colours and liveries are not identified. Material side: paint materials have classification.class = \"car_paint\" and a paint block in model.json (mask slot hashes, a neutral default colour); in the GLB they get a grey baseColorFactor, metallic 0.6 and roughness 0.25. Take the colour from vehicles.json. The model viewer applies a car's first spawn configuration (colour, rim, tyre) when it opens, lists the other configurations, and shows the palettes as swatches with their shares. Palette colours rarely match the configuration colours (168 of 4,024), so they are a separate random-paint pool.
Tyre, rim, disc and caliper per corner, with widths and radii partial Rims and tyres are shared models, exported separately, at unit scale for the left-front corner. Wheel centres are in wheel_mounts. sixng vehicles gives per configuration the rim, tyre, brake disc and caliper model names (e.g. rim_uni_steel_007, tyre_muscle_001, brakedisc_std_001, caliper_2pot_001) and per model wheelScale / wheelScaleRear (probably the rim radius in metres). The tyre width and the exact scaling rule are not established.
Animated parts and clips (spoiler, roof, doors, pop-ups) unknown
Handling: mass, centre of mass, inertia, gearing, torque, hardpoints, springs, anti-roll bars, tyres, aero partial sixng handling (see above). Mass, drag, gear ratios, final drive, brakes, steering lock, wheel mass, suspension travel and damping, anti-roll bar force and fuel are named; the engine torque curve and most other fields are decoded values with hashed names.

Layout of this repo

crates/sixng-core   library: rpf9, scan (carving index), classify, resource,
                    texture (decode + deswizzle), drawable, export, game
crates/sixng-cli    `sixng` binary
crates/sixng-gui    `sixng-gui` binary (eframe/egui)
docs/images/        README screenshots
work/               indexes and output (git-ignored)

Metal 4 rendering

The standard build uses the WGPU renderer. The experimental Metal 4 path is opt-in with metal4-poc; it is selected at runtime only on macOS 26 or later with a Metal 4-capable GPU. Otherwise the GUI falls back to WGPU.

cargo run -p sixng-gui
cargo run -p sixng-gui --features metal4-poc
cargo run -p sixng-gui --features metal4-poc -- --metal4-window

The 3D map renderer uses MTL4 for streamed models, far-field terrain, and road/light overlays. WGPU-specific viewer features and screenshot capture are not yet at full parity on the MTL4 path. The pinned metal-rust fork and its Apache-2.0 license changes are documented in THIRD_PARTY_NOTICES.md.

Licence

SixNG is free software under the GNU General Public License v3.0 only. Third-party notices (AMD addrlib, MIT): THIRD_PARTY_NOTICES.md.