Files and formats#
The disc's media/ folder is 7.18 GB in 2,385 files. Most of it is 524 ZIP archives holding 258,936 members, nearly all compressed with the Xbox's XMem LZX codec, which ordinary ZIP tools list but cannot extract. The rest is loose FMOD sound banks, XML, compiled shaders and one SQLite database.
| Folder | Size | What is in it |
|---|---|---|
tracks/ |
2.9 GB | Colorado's scenery archive (230,057 members) and the UI studio tracks (World and tracks) |
cars/ |
1.5 GB | one archive per car: .carbin models, .xds textures, livery masks, physics XML |
audio/ |
1.4 GB | 984 FMOD .fsb banks and 34 .fev event files, the radio (Audio and radio) |
ui/ |
0.7 GB | textures, fonts and UI scene archives (UI, HUD and input) |
wheels/ |
135 MB | rim models |
stringtables/ |
7 MB | one archive of .str tables per language |
db/ |
3 MB | gamedb.slt, the game database |
| top level | gamemodes.zip (flow scripts), renderscenarios.zip, camera.zip, physics.zip, Livery.zip, UI.zip and loose XML |
The v4 title update adds one media.zip whose members the game prefers over the disc's (Title update v4).
Media layout and file access#
| Address | Finding | Confidence |
|---|---|---|
| — | media folder census media/ on the disc is 7.18 GB in 2,385 files: 524 ZIP archives with 258,936 members, 984 loose FMOD sound banks (.fsb) and 34 event files (.fev), 431 loose XML files, 174 compiled effects (.fxobj), 120 loose .carbin models and the SQLite game database. By size: tracks 2.9 GB (Colorado's bin.zip alone 2.9 GB, 230,057 members), cars 1.5 GB, audio 1.4 GB, ui 0.7 GB, wheels 135 MB.Established by Directory walk and ZIP central directories of the base disc. | Confirmed |
default.xexmedia/v4same | game folder layout An extracted game folder holds default.xex, the two facade modules and the media tree. On the supported dump media/db/gamedb.slt is 2,903,040 bytes and media/gamemodes.zip 1,032,991 bytes.Established by Extraction listing and file hashes of the supported dumps. | Confirmed |
update media loaderimage offset 0x1378Cv4same | update media mount order The loader opens game:\update\media.zip, then update:\media.zip. The strings sit at image offset 0x1378C, identical in base and v4, so both builds read update media and prefer the update's copies over the disc's.Established by Strings in both images; v4 runs used the update's game flows and database. | Confirmed |
sub_82C05530sub_82BFFDA00x82C057D00x82C0580Cv40x82CC4C000x82CC4C3C | per-block SHA-256 dirty-disc check The title checks some game files block by block against a SHA-256 table of the originals (32 bytes per block). The block reader sub_82C05530 calls sub_82BFFDA0 for each block; the block results are at 0x82C057D0, and at 0x82C0580C for the last block. A mismatch raises the dirty-disc error. The table is in the executable and names files relative to their root (db\gamedb.slt, zipmanifest.xml).Established by Hooks on the block check, triggered with modified files; replaced files load once the hooks accept them. The XE mod's executables differ from the disc's only in two names in this table. | Confirmed |
XamShowDirtyDiscErrorUI (xam import) | a failed open of a needed file stops the title When the title can't open a file it needs, it calls XamShowDirtyDiscErrorUI, and once that returns it stops itself with a breakpoint exception: exit 0x80000003 in pinyon_shift.exe, with the same offset for every player of a release (+0x244f878 on 0.7.1, +0x2be7328 on 0.7.0). The last NtCreateFile failure logged before the call names the file. Crash reports detect this stop (pinyon_crash.disc_read_error) and the launcher reports it as a file read error rather than a crash.Established by About 25 crash reports from #901 and a reproduction from pinned seeds (XE 1.0 with UDLC, | Confirmed |
sub_82C03E900x82C041A4sub_82A7CDB8v40x82CC359C | file size check sub_82C03E90 opens a game file and compares its real size (from sub_82A7CDB8) with the size in the hash table. At 0x82C041A4 the path is at r1+92, r6 holds the real size and r31 the table size. media/db/gamedb.slt is opened loose and checked this way.Established by Hook on the comparison; replaced files pass once it accepts them. | Confirmed |
| — | loading is guest work, not disk The game's file I/O during play is small: one run read 189 MB in 4,538 reads for 91 ms of read time, and 1,203 opens took 108 ms; a warm town window had 161 reads (2.5 ms) and 47 opens (5.5 ms). Load time sits in the game's own work (asset decompression, texture reloads: one transition frame reloaded 75-350 textures in 212-343 ms) and in its waits. Established by Host I/O counters during a 2026-09-28 play session. | Confirmed |
sub_82518390sub_82C60498 | cache utility partition sub_82518390 mounts cache: through sub_82C60498(1, 64 KiB, 20480), most likely XMountUtilityDrive, compares game:\hash.manifest (not on the supported disc) and has a path that clears cache:\*.* while keeping $cache$. FilesToCache.xml lists 77 entries to copy there (game modes, physics, UI, shaders, ribbon; bin.zip excluded), but the cache folder of a long-played save holds only replay and ghost streams, so the install-to-HDD copy does not appear to run.Established by String cross-references in the base image; the cache folder of the reference save. | ProbableA count of cache: writes during boot would confirm (CE-0.4). |
Archives#
The extra field is easy to read with Python's zipfile, which lists method-21 members even though it cannot decompress them:
import struct, zipfile
def payload_offsets(path):
"""(name, method, size, payload offset) for each member of an FH1 archive."""
with zipfile.ZipFile(path) as archive:
for info in archive.infolist():
extra, pos = info.extra, 0
while pos + 4 <= len(extra):
tag, size = struct.unpack_from("<HH", extra, pos)
if tag == 0x1123: # little-endian u32: absolute payload offset
yield (info.filename, info.compress_type, info.file_size,
struct.unpack_from("<I", extra, pos + 4)[0])
pos += 4 + size
for name, method, size, offset in payload_offsets("media/gamemodes.zip"):
print(f"{offset:#010x} method {method:2} {size:8} {name}")
Where a local header exists, the offset equals the header's position plus its 30 bytes, name and extra field; a method-21 payload then starts with a frame header (0xFF and two big-endian sizes for a short frame). To decompress, use pinyon_shift_fh1_archive_extract (Methods and tools) or an LZX decoder with a 64 KiB window over the joined frame bodies.
| Address | Finding | Confidence |
|---|---|---|
| — | compression methods in use 99.3 % of archive members (257,122) use method 21, the Xbox XMem LZX codec; 1,415 are stored (method 0) and 399 deflated (method 8). Every member carries extra field 0x1123, which the game reads for the absolute payload offset.Established by Central directory census; the | Confirmed |
ZIP method 21extra field 0x1123v4same | ZIP container quirks FH1 archives are ZIP files whose central directory carries, for each member, extra field 0x1123 (4 bytes): the absolute offset of the member's payload. The title reads that offset, so a rewritten archive must update it along with the local-header offsets; ordinary ZIP repacking leaves it pointing into unrelated data. Some archives omit local headers, and their directory offset is then the payload itself. The CRC is of the decompressed data.Established by Archive reader and writer ( | Confirmed |
ZIP method 21 (XMem)v4same | XMem LZX frame format A method-21 payload is a run of frames, each 32 KiB of output. A full frame starts with a big-endian u16 compressed size; a shorter frame starts with 0xFF and big-endian u16 uncompressed and compressed sizes. The frame bodies concatenate into one LZX stream, decoded with a 64 KiB window (falling back to 128 or 32 KiB). A stream of LZX uncompressed (type 3) blocks with the E8 transform off also decodes.Established by Host extractor decoding every member it reads and checking the CRC, checked against all UI archives and byte for byte against QuickBMS; a writer of type-3 streams validated by the extractor. | ConfirmedWhether the title itself accepts type-3 streams is not tested. |
media/zipmanifest.xmlmedia/FilesToCache.xmlv4same | archive manifest and file access Most game data lives in archives listed in media/zipmanifest.xml, which gives each archive a dirsize that includes the end record. One archive's end record disagrees with the manifest: Colorado's 230,057-entry track bin.zip. The title reads archives through C streams and enumerates some directories with wildcards from FilesToCache.xml. Packed game-flow members take precedence over loose XML: a loose file under media/GameModes does not replace a gamemodes.zip member.Established by Archive and manifest reads; file-open and directory-listing traces; a loose-file override test. | Confirmed |
| — | archive member types Inside the archives: .bin (115,538, mostly track geometry and scenery), .bix (43,589 scenery models), .pgeo (41,884), .fiz (17,035), .xds textures (9,646), .xml (6,433), .carbin (5,435 car and part models), .sh (4,768), .soundscape (4,724), .pvsz visibility zones (3,551), .str string tables (2,481), and UI scenes as .bgf/.bsg/.fbf triples (about 300 each). Five Lua scripts and one Python file ship inside archives.Established by Extension census over every archive's central directory. | Confirmedwhat .fiz, .pgeo and .sh hold is not established |
String tables#
All UI text is in .str tables, one archive per language under media/stringtables/. A string is found by a 16-bit key; the game database refers to strings as _&N, where N combines a table hash and the key (Cars, events and DLC). This reads a table's directory:
import struct
def read_str_table(data: bytes) -> dict[int, str]:
"""Key -> text for one extracted .str (LSB2) table."""
assert data[:4] == b"LSB2"
chunk = struct.unpack_from(">I", data, 12)[0] # offset of the string chunk
count = struct.unpack_from(">I", data, chunk + 4)[0]
entries = [struct.unpack_from(">HI", data, chunk + 8 + 6 * i) for i in range(count + 1)]
pool = chunk + 8 + 6 * (count + 1) # NUL-terminated UTF-16BE strings
strings = {}
for key, offset in entries[:-1]: # the last entry is the 0xFFFF sentinel
start = pool + 2 * offset
end = start
while data[end:end + 2] != b"\0\0":
end += 2
strings[key] = data[start:end].decode("utf-16-be")
return strings
tools/fh1-strings.py does the same with extraction included, and mods replace an entry with set_ui_string.
| Address | Finding | Confidence |
|---|---|---|
.str (LSB2)v4same | LSB2 string table format A .str table is big-endian, with an LSB2 header whose u32 at +12 is the offset of the string chunk and whose u32 at +16 counts the chunk pointers from +20 (four in a 36-byte header). The chunks are contiguous and unaligned: the strings ([u32 size][u32 count], then count + 1 entries of (u16 key, u32 character offset) in ascending key order, the last a 0xFFFF sentinel pointing at a trailing empty string, then a pool of NUL-terminated UTF-16BE strings), the IDS_ names (key, 1-based position in the key-order chunk, byte offset, an ASCII pool in source order), optional translator notes, and the key order. A key is a 16-bit hash of the lower-case name: start at 0xFFFF and, for each character, XOR it in and rotate left by 7; it matches all 10,415 names in the 113 English tables. A new key must go into chunks 0, 1 and 3 (7 tables have no chunk 3); tools/fh1-strings.py adds keys and rebuilds tables byte-identical to the originals. set_ui_string replaces only existing keys, because the game's own count of a loaded table is kept apart from the chunk, where was not found. Tables live LZX-compressed in media/StringTables/<language>.zip.Established by Parser and writer in | Confirmed |
sub_82CAFF28sub_82CAC5B8sub_82CB1FB00x82CAFFA00x82CAC7040x82CAC7400x82CB00AC0x82CB2018v40x82D71A880x82D6E25C0x82D6E2980x82D71B940x82D73B00 | string table loader and lookup sub_82CAFF28 builds the path game:\media\StringTables\<table><language>.str (at 0x82CAFFA0 the stack string at r1+96 holds it with .str appended) and sub_82CAC5B8 parses the chunk into a fresh allocation (0x82CAC704 is the allocation, r3 the size). At 0x82CAC740 (r30 payload, r29 length, r26 flag) the payload is copied verbatim when the ownership flag is set; otherwise it is expanded into a fixed-stride table. 0x82CB00AC stores the parsed handle the localization manager keeps, and sub_82CB1FB0 looks a key up: at 0x82CB2018 r3 holds the resolved string and r29 the key. The title reads a string up to its NUL and reads a table when it next loads it. Tables load in name order. In pausemenu.str, key 0xDD6B is IDS_Multiplayer, the MULTIPLAYER pause row label (IDS_MultiplayerOption reads the same), and 0xDED7 is PHOTO MODE.Established by Hooks on load, parse and lookup, used to rewrite and extend strings (the pause row reads SETTINGS); rewriting | Confirmed |
—v4same | longer strings can be appended The title reads a string up to its NUL, so a longer string can be appended after the pool if its entry and the sentinel are moved. Pause row art stretches to fit a longer label. Established by Rewriting tables at load: PHOTO MODE replaced by a 27-character label rendered in full. | Confirmed |
Textures and models#
A car's models are .carbin files in its archive: one for LOD1-5, one for LOD0, the cockpit, and a caliper and a rotor per wheel. Each is a list of named parts (body, hood, bumpers, glass, lights). A part has a box, a pool of 28-byte vertices and one index buffer per material and LOD. A vertex stores its position relative to the box's offset as a direction and a length: a unit vector in three 16-bit values, and a fourth value giving the length as a fraction of the length of the box's half-extent vector. The game passes the offset and that length to its vertex shader as one constant per part, so the boxes are tight:
position = (x, y, z) / 32767 * w / 32767 * |half_extent| + offset
tools/fh1_carbin.py reads every base car's models and writes them back byte for byte (roundtrip), and dump lists the parts. It is the first step of the car importer (#496). set_positions refits a part's box to new positions and re-encodes them; an XKR-S rewritten 1.2 times wider this way is clean in game. Decoding each axis with its own half-extent looks right for an unchanged model but breaks as soon as a box changes, which is what an Autoshow frame dump sorted out.
| Address | Finding | Confidence |
|---|---|---|
.xdsv4same | XDS texture header An .xds texture is a 0x34-byte (52-byte) header, first u32 = 3, holding a Xenos texture fetch constant at 0x1C (format, width and height, pitch, tiling, endianness, swizzle, mip count, packed mips), followed by the texture data. A base level no larger than 16 texels sits in the packed mip tail.Established by | Confirmed |
media/UI archivesFonts.zipHorizon.zipv4same | UI textures and fonts The four UI archives hold 4,373 .xds textures (2,825 uncompressed), in 8888 and DXT1/3/5 formats (also as 16_16_16_16 variants) and DXT3A/DXT5A, tiled with a packed mip tail, plus vector fonts and fontmap.xml. The Latin fonts are GPU meshes, not bitmaps: no installed TTF matches their advances within 5 %, and their coverage rule is in the title's shader. UI layout is a 1280x720 space with a 90 % safe area; Fonts.zip and Horizon.zip hold the fonts, selection mask and button art.Established by | Confirmed |
.carbin (media/cars/<MediaName>.zip)v4same | carbin layout A car model is a header (not decoded), a big-endian part count that is not always 4-byte aligned, the parts, and a 24-byte footer. A part is: u32 5; 9 floats (offset, then the half-extents as minimum and maximum, minimum = -maximum); 28 bytes (mass, centre of mass and damage fields, not decoded); a u32 count of 16-byte records (glass parts); 4 bytes; a u32 count of shorts; 12 bytes; the name (u8 length); u32 version 3; the LOD vertex pool; 4 bytes; the sub-sections; 4 bytes; the LOD0 vertex pool; the damage tail. A pool is u32 count, u32 stride (28), u32 bone-weight count, a u32 part id when that count is not zero, then the vertices. <car>.carbin parts fill only the LOD pool (LOD1-5); _lod0, _cockpit, caliper and rotor carbins fill only the LOD0 pool.Established by | Confirmed |
.carbin vertexv4same | carbin vertex (28 bytes) Big-endian: the position as a direction and a length, four int16: a unit vector (x, y, z over 32767) and its length over 32767 as a fraction of the length of the part's half-extent vector, so position = (x, y, z) / 32767 x w / 32767 x |half-extent| + offset; UV0 and UV1 as two uint16 over 65535 each, before the sub-section's UV offset and scale; a tangent frame as a unit quaternion of four int16 over 32767; four bytes of baked lighting (not decoded). Established by The direction has unit norm (1.0000) on every vertex of 1,560 pools and the quaternion on every vertex of the base cars. Decoded this way every part fills its box exactly (within 0.03 %): the XKR-S body spans 0 to 1.19 m in height, 1.89 m in width and 4.47 m in length. A frame dump of the Autoshow showed the vertex bytes unchanged on the GPU and one shader constant per part, (offset, |half-extent|), with the per-axis extents nowhere in the frame (#496 phase 1, 2026-11-05). | Confirmed |
.carbin part boundsv4same | carbin part box in game The game takes each part's offset and the length of its half-extent vector from the file's box and passes them to the vertex shader as one constant per part. A rewritten model with every box refitted (offset to the centre, half-extents to the new size) and every vertex re-encoded as a direction and a length renders as written: the XKR-S widened by 1.2 in the LOD, LOD0 and cockpit models is clean in the Autoshow, its wheels inside the widened arches. Phase 0c's first attempt decoded x, y and z separately with the per-axis half-extents, which only works while the box is unchanged; refitted boxes then rendered parts scaled and displaced. The box also changes how the Autoshow camera frames the car, and wheel positions come from the physics, not the model. Established by Frame dump of the Autoshow ( | Confirmed |
.carbin sub-sectionv4same | carbin sub-sections and index buffers One per material and LOD: 5 bytes; 8 floats (UV0 and UV1 offset and scale); 36 bytes; the material name (u32 length); an i32 LOD (0 indexes the LOD0 pool, 1-5 the LOD pool); a u32 index type; 56 bytes; two words 4, 0; u32 index count; u32 index size (2 or 4); the indices; 4 bytes. Type 6 (all but 11 of 118,629) is a triangle strip restarted by 0xFFFF, or 0x00FFFFFF with 32-bit indices; type 4 is a triangle list. The material name is a car shader technique.Established by Corpus walk of the base cars with | Confirmed |
.carbin damage tailv4same | carbin damage tail After a part's pools: u32 1, a u8 flag (1 when the part deforms), then one block per pool (LOD, then LOD0): u32 3, u32 vertex count, u32 stride (4), u32 extra word count, a 4-byte word per vertex and the extra words. Parts that do not deform (glass, seats, interior, the steering wheel, cockpit parts, wheels) have empty blocks. The per-vertex word is reported by public tools as a packed outward deformation vector; its encoding is not checked here.Established by The layout accounts for every byte between parts in all base carbins; the per-vertex meaning is a guess. | Probable |
FIA_595_68 roof1FOR_F350SuperDuty_08_lod0.carbinv4same | empty car parts A part can be empty: the Fiat 595's roof1 has no vertices and bounds of +/-FLT_MAX (an empty box). The F-350 Super Duty's _lod0.carbin is a 1,232-byte header with no parts at all, so that truck has no LOD0 model.Established by Corpus walk with | Confirmed |
stripped_*.carbinv4same | stripped carbin twins Every carbin has a stripped_ twin (lower-case name) with the same parts and empty vertex pools but its index buffers kept. Its sub-sections' second version word is 2 instead of 0 and is followed by a block that is not decoded, so tools/fh1_carbin.py does not read them yet. Which code reads them is not known. A car whose models were rewritten with the same vertex counts loads and renders with its original twins, and putting the rewritten models' bounds into the twins changed nothing visible.Established by Byte comparison of the XKR-S lod0 twin with its model; buy-car routes with rewritten models, with and without updated twins (phase 0c of #496). | Probable Negative |
Game database#
gamedb.slt is an ordinary SQLite 3 file, so any SQLite tool reads it (open it read-only). What its tables mean for cars and events is on Cars, events and DLC.
sqlite3 "file:media/db/gamedb.slt?mode=ro" "select name from sqlite_master where type='table' order by name"
| Address | Finding | Confidence |
|---|---|---|
| — | gamedb.slt schema media/db/gamedb.slt is a plain SQLite 3 database of 2.9 MB: 221 tables, one index, no views, 43,949 rows. Table prefixes: List_ (80 tables: upgrade parts, physics, wheels, manufacturers), NewProfile (19, the starting profile), Rewards (6), Data_ (5, among them Data_Car), Livery (5) and Combo (4). The largest tables are Livery_DecalsSortOrder (2,436 rows), GraffitiPoints (2,063), CarPartPositions (1,760), Combo_Colors (1,281), TurnSections (1,095), StartGridPositions (1,073) and PlayerLevelDef (1,000).Established by Read-only SQLite queries of the schema and row counts. | Confirmed |
media/db/gamedb.sltv4update media db/gamedb.slt | database merge files The title opens gamedb.slt loose, as an ordinary SQLite file. DLC and title updates add rows through merge databases under db/patch/: 1401000_merge.slt in v4, 1600000_merge.slt in Rally.Established by Opening the files with SQLite; a patched copy loads in game through the mod overlay. | Confirmed |
UI scene files#
UI scenes are described with the rest of the interface on UI, HUD and input.
Other formats#
| Address | Finding | Confidence |
|---|---|---|
media/shaders/**/*.fxobjdefault.xex | shader corpus Shader programs ship in media/shaders/**/*.fxobj, some inside method-21 bin.zip archives (197 archived members). The retail disc has 4,293 containers with 3,349 unique raw programs (1,615 vertex, 1,734 pixel); its 34 vertex declarations patch the fetch templates into 8,377 more vertex programs. default.xex holds further programs and vertex declarations used by the map and motion passes; with them there are 3,819 raw programs in 4,770 containers, and 12,846 programs counting derived vertex variants (10,818 vertex, 2,028 pixel). In 6 minutes of Mac free roam, 264 of the 266 pixel shaders drawn were disc programs, but 89 of 224 vertex shaders were not. Most are a disc program of the same size with some exports turned into no-ops and others moved to another output register, the shape of a link step that fits a vertex shader's outputs to its pixel shader's inputs; others also have vertex fetches reformatted for a layout the shader files do not hold, and a few have instructions inserted. Of 1,594 stored shaders from long play on Windows and the Mac, 925 are disc programs as stored and 636 are such edits of one (at most a quarter of their words changed); 33 are neither. Both shaders of every on-disc pipeline pair (138) came from the same source file.Established by Extraction over loose assets, LZX archives and the loaded executable image; leaving out the executable's programs gave a blank map and smeared cars. The play census joined stored pipelines and microcode ( | Confirmed |
Radio_Music.fsbRadio_VO_<lang>.fsbv4same | FSB4 bank layout The radio banks are FSB4 version 0x40000, header mode 0x40: a 48-byte header (magic, sample count, header and data sizes, version, mode, 24 reserved bytes) and 80-byte sample headers (size, 30-byte name, lengths, loop points, mode, frequency, volume, pan, priority, channels, 3D and variation fields). Each music sample header is followed by a SYNC block of three points, each a 32-bit sample offset and a 256-byte name (SongStart, EventStart, IdentStart). The header block and each sample's data are zero-padded to 32 bytes. Every music sample's mode is 0x90000200: 0x200 is FMOD's MPEG flag; the two high bits are unexplained.Established by | ConfirmedOne stock sample spells its first sync point SongSTart. |