Saves and profile#
A player's progress is a profile directory of about a dozen files. ForzaProfile holds the player's values and career state; PlayerDatabase is a small SQLite database of owned cars, tunes and parts; VersionFlags, liveries and thumbnails complete it. The secure files are encrypted with the console's XeKeysAesCbcUsingKey, so they are opaque on disk, but the game decrypts each one into a plaintext body in memory before it reads it, and builds a plaintext body before it encrypts one. Both points are hook sites, and both are exposed to mods.
To get plaintext bodies to study, run with save tracing on: the host then writes every body it sees to <state>/logs/save-snapshots as payload-<kind>-<size>-<hash>.bin, where the kind is plaintext on save and loaded on load.
$env:PINYON_SHIFT_M5_SAVE_TRACE = "1"
.\tools\launch-preview.ps1 -StateRoot <private copy of a state root>
tools/fh1-profile.py reads and edits the profile body's self-describing section, and re-encodes it byte for byte:
python tools/fh1-profile.py dump body.bin # every field as JSON
python tools/fh1-profile.py get body.bin Main/Credits
python tools/fh1-profile.py set body.bin Main/Credits 1000000 --output edited.bin
python tools/fh1-profile.py check body.bin # decode, encode, compare
A mod changes a save while it loads, through PINYON_HOOK_SAVE_AFTER_DECRYPT, editing the body in place without changing its size. Editing the outgoing body instead does not last: the running game keeps its own copy of every value and writes it again on the next save (Modding). Work on copies of a save, never on the only one.
Save files#
On the pinned base-disc bus profile, the decrypted PlayerDatabase body
starts with three big-endian 32-bit words: uncompressed size, compressed
size, uncompressed size. Raw DEFLATE starts at byte 12; decoding it with
zlib.decompress(body[12:], -15) yields SQLite. Comparing its
Career_Garage and Career_PurchasedParts rows before and after recovery
checks that the title kept the existing cars, tunes and parts, beyond
merely reaching free roam. The selection itself is the profile body's
Main/CareerCar garage instance ID. The recovery tool
backs up the complete encrypted profile and lets the title perform that
change through its existing load hook. This exact recovery request selects
the isolated profile without enabling the trainer or dormant cheat settings.
The four newly purchased hidden player variants' cxds thumbnails inflate
from byte 20 with raw DEFLATE. The word at byte 16 repeats the uncompressed
size, 884,788 bytes. Decoding that result as .xds with the existing host UI
texture decoder gives a 768x288 image; reviewing the pixels establishes
that the intended model rendered, beyond merely checking file creation.
| Address | Finding | Confidence |
|---|---|---|
ForzaProfilePlayerDatabaseVersionFlagsv4same | profile directory files A profile directory holds ForzaProfile plus companion PlayerDatabase, VersionFlags, livery and thumbnail files (12 files in the reference save). PlayerDatabase is an encrypted, deflated SQLite database: on the pinned base bus profile its decrypted body has a 12-byte prefix followed by raw DEFLATE (window bits -15), and the three big-endian words are uncompressed size, compressed size, uncompressed size (83,968, 8,202, 83,968). Each car is a Career_Garage row naming its livery file and holding its tune in 36 Tuning_* columns, and purchased parts are separate rows (122 in the reference save). Without the companions the title loads a fallback Corrado instead of the saved car and does not offer the expected Gauntlet activity.Established by Experiment: a profile-only fixture against a complete profile copy; save audits; reading a seed save. Native save snapshots before and after an ordinary UDLC RSX purchase confirm that Career_Garage.Id is the garage instance ID and CarId is the Data_Car model ID (instance 13, model 422 in that private fixture). | Confirmed |
sub_82555C88sub_82546460sub_82546168 | car card thumbnails Each car-select card is the profile's Thumbnails/Thumbnail_N.xdc: a big-endian cxds header (version 2, uncompressed size 884,788, compressed size) over a deflated 768x288 tiled 8888 Xenos texture. When a car is bought, a car-save task (sub_82555C88: car at +76, render flag +84, save flag +85) calls sub_82546460(&job, car, 1, 0), which loads the uithumbig and uithumbnail studio tracks, renders the car, resolves it and compresses the result on the CPU (to 3-4 %); sub_82546168 builds the file name from the car ID at +652. The screen opens only cards that exist and shows an empty card for a missing one.Established by Reading the code path and saves; the buy-car route decoding the saved card; file-open logging; captures of car select with and without cards. All four hidden player variants purchased on the base build have a repeated uncompressed-size word at cxds byte 16, followed by raw DEFLATE at byte 20 (window bits -15); inflating to 884,788 bytes and using hostui::DecodeXds yields 768x288 images visibly containing the expected cars without stripes (docs/HIDDEN_CARS.md). | ConfirmedA purchase re-saves a card (confirmed); paint and upgrades probably do. How the CPU reads the resolved image is not settled: a later trace saw no guest read of the resolved ranges. |
VersionFlagsv4VersionFlags 00000004 00000002 | a v4 save is one-way v4 loads base 0.0.0.10 saves unchanged. When v4 saves it upgrades the profile: VersionFlags goes from zeros to 00000004 00000002 after the cmss tag, and it writes ForzaProfile, PlayerDatabase, VersionFlags and a new empty NeedsAA. The base build then re-reads the file in a loop and stays on PRESS START.Established by Save, reload and cross-build runs on private seed copies. | Confirmed |
| — | missing DLC car falls back to Corrado With the stock Rally Escort or stock UDLC RSX selected, disabling its DLC on the tested base saves loads the original Corrado and preserves the owned garage. The Rally experiment also retained purchased parts and credits. In the UDLC experiment all 13 garage rows and the complete decrypted SQLite body were byte-identical before and after the disabled run. Re-enabling UDLC leaves the Corrado selected; Change Car offers the still-owned RSX and Get In Car restores it without repurchasing or repairing the save. This does not establish safe removal of purchased UDLC upgrades or every model. Established by Experiment: disable Rally with the Escort selected, play and save, re-enable and reload; save audit. Repeat with an ordinarily purchased UDLC RSX on private base copies, audit native save snapshots, then re-enable and select its original garage instance through the ordinary workshop menu. | Confirmed |
0x82BEFC50v40x82CAF1A0 | missing DLC tyre crashes at startup If a saved base car has a purchased Rally tyre and Rally is disabled, the game dereferences the absent tyre-physics record in the car's tyre constructor at startup and takes an access violation. It does not fall back to stock parts. Established by Experiment: disable Rally after a Mustang Rally tyre purchase; crash reproduced, then guarded. | Confirmed Negative |
ForzaProfile Main/CareerCar; 0x82C66594 | invalid selected garage ID invokes starter-car recovery Main/CareerCar is a garage instance ID, not a Data_Car model ID: it was 7 on the pinned seven-car bus profile. Setting it to zero after decryption through the existing cheat_set_profile_fields hook invokes the title's missing-car path. On that base profile it supplied a starter Corrado as garage ID 8, wrote ordinary saves and returned to free roam. Decrypted snapshots preserved all seven original garage rows, all 122 original purchased-part rows and 67,700 credits; the fallback added 20 part rows. This is selection recovery, not removal of the unsupported purchased car. The integrated Windows base and v4 builds both passed recovery and reload on separate private copies of this base fixture, with the v4 copy upgraded by the title. Every individual hidden model's garage/paint path still requires separate qualification. Established by Pinned i484-bus-owned seed copied by run-fh1-render-test.py; Main/CareerCar=0 on load, cheat.applied and save.upgrade_views.initialized diagnostics, normal save events and decrypted profile/database comparison. A fresh reload without a pending edit on the private Windows Release build reached free roam and car select with garage ID 8; the unmodded tree's 19 hashes matched the seed. Repeated with the trainer disabled and dormant credit, time-scale, free-camera and event flags preserved; credits remained 67,700. The recovery tool backs up the selected modded profile before queuing the existing load hook. Integration repeated the trainer-off recovery/save/reload on base and v4, checked all 20 backup-manifest entries and retained all 19 unmodded file hashes, the original seven cars, 122 parts and credits in each run. | Confirmed |
Encryption and loading#
| Address | Finding | Confidence |
|---|---|---|
sub_82C665F80x82C666D00x82C79D2C0x82C782400x82C79D28v40x82D272B00x82D3AFF40x82D390A8 | save encryption on write Saves go through a secure stream wrapper. sub_82C665F8 accumulates the body and encrypts it in place with XeKeysAesCbcUsingKey; at 0x82C666D0 the plaintext is still visible (r4 body, r5 size). The encrypted writer 0x82C79D2C and the stream transform 0x82C78240, which forwards encrypted bytes to 0x82C79D28, handle secure payloads of 19,472 bytes (the profile in older saves) and 2,928 bytes; the plaintext body grows with the profile (cars, events). Other secure files use the same path.Established by Save trace hooks and payload snapshots ( | Confirmed |
sub_82C663080x82C66594v40x82D27174 | save decryption on load sub_82C66308 decrypts a save in place with XeKeysAesCbcUsingKey (r8 = 0 selects decrypt) and clears the padding. At 0x82C66594 the plaintext body is ready before any parsing: r30 points at the body pointer and r24 is the size. Edits made here persist into the title's later saves.Established by Midasm hook | Confirmed |
0x825195F40x825684900x824ED444sub_827A1CD00x827A1DC4v40x8258369C0x825DE6900x8255994Csub_8285BAA00x8285BB94 | profile load result sites These are the first title-owned decisions after the secure ForzaProfile and PlayerDatabase reads: at 0x825195F4 the persisted profile owner (r26 success, r28 refresh requested, r30 content owner, r31 profile owner), at 0x82568490 the persisted profile result, at 0x824ED444 the front-end profile result and at 0x827A1DC4 (in sub_827A1CD0) the front-end state result. In v4 the front-end state fields moved by 4 (0x168 to 0x16C, 0x179 to 0x17D).Established by Trace hooks logging the results while investigating failed and deferred saves. | ProbableThe sites are confirmed hooks; their roles are named from register use. |
Profile values#
| Address | Finding | Confidence |
|---|---|---|
—v4same | ForzaProfile body layout The decrypted ForzaProfile body opens with a self-describing section: a big-endian field count, then per field [u32 name length][name][u32 0x20][u32 0][u8 type][value]. Types are 0x00 bool, 0x01 u8, 0x03 u32, 0x04 u64, 0x07 i32, 0x09 float and 0x0F struct (its own count and fields). Player values are under Main: Main/Credits (u32), Main/XP, Main/Level, Main/WristbandLevel and Main/TotalWinnings. Class-serialised states and 0xBB padding follow.Established by Decoding decrypted bodies at the save hooks; | ConfirmedThe archived 20,419-byte achievement-survey loaded profile also contains Main/TractionControl and Main/StabilityControl, both type 0x01 (u8) with value 1. MR-0 private-state Windows runs set both to 1 versus both to 0 through the after-decrypt hook, with per-field applied-value logs. Neither stationary five-second brake/throttle run produces visible tyre smoke. This establishes their encoding and the failed particle recipe, not each field's driving effect or why smoke is absent. |
—v4same | the title keeps its own profile values The running title keeps its own in-memory copy of the profile values, so a value written into an outgoing save lasts only until the next save. A lasting edit must be made after decryption, before the title reads the body, or through the title's accessors at run time. Established by Experiment with the before-encrypt and after-decrypt hooks. | Confirmed Negative |
0x82142440 | live credits value In the running title the profile's value tree keeps Credits as a plain u32 in a typed value (vtable 0x82142440, value at +8, type 3 at +16), in a heap below 0x40000000. Scans of the 0x40000000-0x7FFFFFFF virtual and physical heaps find only transient copies, which is why an earlier scan concluded the money was kept encoded.Established by Profile-save scan for Credits next to XP and TotalWinnings; reading the value tree. | ProbableCorrects NP-8.3's "kept encoded" reading; the scan did not cover the heap that holds the value. |
—v40x833F4A80sub_82915BE0sub_82CC7248sub_8255E4D0sub_82CC6A30 | v4 profile value-tree store In v4 the career profile is sub_82915BE0([0x833F4A80]), and profile vtable slot 88 returns its value tree. sub_82CC7248(&value, 1) builds a bool value, sub_8255E4D0(tree, path, &value) stores it at a slash path such as Main/FastTravelAnywhere (string at 0x8201949C) and sub_82CC6A30 destroys the value. The next save keeps the stored value.Established by Reading v4's purchase completion; host calls to the same functions, with the value surviving save and reload. | Confirmed |
0x83305CC4sub_828653D8v40x833F4A80sub_82915BE0 | profile resume data The free-roam return point lives in the profile: from the users global 0x83305CC4, sub_828653D8 gives the user, its vtable +88 getter a handle, handle +36 the profile and profile +56 the resume data, with a valid byte at +44, the position at +48 and the forward vector at +64.Established by Read-only trace following | Confirmed |
| — | wristband and XP fields gate events Setting Main/WristbandLevel to 8 and Main/XP to 450000 at load is kept in the title's own later saves, and the event card's goal changes from COLLECT BLUE WRISTBAND to GET TO THE HORIZON FINAL, opening the events the wristbands gate. Main/XP is the only XP field under Main (124 fields; OnlineXP is separate), and the wristband meter reads it: with Main/WristbandLevel 0, raising Main/XP from 0 to 100000 turns the pause menu's "Nxt Lvl 220 PTS" (the Green threshold in CareerWristbandLevels) into COLLECT GREEN WRISTBAND.Established by Load-time field edit on the buy-car route; a local test native mod (not in the repository) setting | Confirmed |
| — | the stored driver level is not recomputed from XP Main/Level is kept as saved, not derived from Main/XP and PlayerLevelDef when the profile loads or saves. A profile edited at load to XP 100000 at level 11 (stock PlayerLevelDef: level 11 from 95,000) was saved twice as level 11 in about two minutes of free roam, both with the stock table and with festival_pacing's default halved one, where 100,000 XP is level 18. Whether the next XP gain moves it to the new curve's level is not tested.Established by A local test native mod (not in the repository) setting | Confirmed Negative |
—v4sub_825D5C00sub_826E94B8 | Fast Travel Anywhere unlock v4 only: the token-store Fast Travel Anywhere unlock is a CVIPFastTravelConsumeAssetTransaction. Its completion sub_825D5C00 (r4 result, 0 is success) stores Main/FastTravelAnywhere = true in the profile and notifies the UI; sub_826E94B8 reads that path, and the map's Y button offers the purchase while it is absent and fast travels to any road once it is set. A profile v4 has saved carries the bool field; a base save does not, and the base disc has none of this code.Established by Reading v4's generated code; the host performs the same store and a fresh launch keeps it. | ConfirmedListed as v4's VIP perk in DLC-5. |
| — | upgrade discount on the reference save Upgrade prices on the reference save show an 85% discount: a 10,000-credit Rally tyre costs 1,500, and the Rally suspension and transmission cost 930 each. Race winnings are recorded per car as well as added to credits. Established by Purchases and save audits on the reference save. | ConfirmedConfirmed for the observed prices. Main/UpgradeDiscount holds the percentage (see "achievement progress fields"); whether it stops at 85 once every sign is found is not established. |
| — | achievement progress fields Three Main fields count toward achievements. WristbandLevel is zero-based: a save holding the Yellow and Green bands (achievements 175 and 176) reads 1, so bands received are the value plus one. UpgradeDiscount is the upgrade discount in percent; on a save with 85 of the 100 discount signs found it read 85, matching the live count. NumRaceEncountersWon (beside an unrelated NumEncountersWon) is the count for Beat 10 Festival Racers. The achievements screen uses the first two and the live sign count; the encounter field read 0 on every save tried, so its meaning is probable, not confirmed.Established by Decoded profile bodies at the save hooks ( | Probable |
| — | no fields for popularity rank, roads or speed traps The profile's self-describing section has no field for the popularity rank, roads driven or speed-trap results, the counts behind the Fame and Explore achievements that are not signs (there is a PopularitySkills option, not a rank). Those achievements show no progress bar until the counts are found elsewhere, such as the class-serialised tail.Established by Listing every field of decoded profile bodies from two saves. | Confirmed Negative |
Career progress#
| Address | Finding | Confidence |
|---|---|---|
0x833067E0v40x833F5600 | CFirstTimeCareerState The first-time career's state is a CFirstTimeCareerState in the profile's class-serialised tail under the key first_time_career_activity (type byte 0x15 at key +29, class name at +30), stored as its active byte (object +40) then a big-endian u32 stage (object +44) at key +59. Stage 1 is the opening Viper race, 2 the Corrado drive to the festival, 7 and 10 later checkpoints. While onboarding runs the title mirrors the state in the global at 0x833067E0. A new player has no profile until the title's first save.Established by Decrypted save inspection and payload snapshots; seeding checkpoints into the outgoing save and restoring stages 2, 7 and 10. | Confirmed |
sub_828E2898sub_8252AA48sub_828D7EB00x828E292C0x828E29300x828D7ED4v40x829946B40x829946B80x82989BF4 | career eligibility and checkpoint restore sub_828E2898 reads the per-profile career eligibility byte through sub_8252AA48 (at r3 + r4 + 80); the owning activity is in r31 with its state at +196. sub_828D7EB0 advances the live first-time-career controller from stage 1 (Viper) to stage 2 (Corrado). Only stages 2, 7 and 10 restore cleanly: a saved stage 1 lacks the transient route and arrival trigger, so it loads as route-less free roam.Established by Hooks at | ConfirmedThe v4 addresses are the hook sites. |