From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:TD6 (RollerCoaster Tycoon 2)" |
|---|
| claim | "TD6/TD4 files end in a uint32 equal to a rotating checksum of all preceding bytes minus a constant: 0x1D4C1 (120001) for TD6, 0x1A67C (108156) or 0x1A650 (108112) for TD4. The rotating checksum adds each byte into the low 8 bits (carry discarded) and then rotates the 32-bit value left by 3." |
|---|
| scope | | level | "software" |
|---|
| applies_to | "Software:RollerCoaster Tycoon 2" |
|---|
| observed_in | | "Software:RollerCoaster Tycoon" |
|
|---|
|
|---|
| data | | effect | "c = 0; for b: c = (c & 0xFFFFFF00) | ((c + b) & 0xFF); c = rol32(c, 3). stored = c - 0x1D4C1 (TD6) / c - 0x1A67C or c - 0x1A650 (TD4)" |
|---|
| function | "ValidateTrackChecksum (OpenRCT2, based on rct2: 0x006770C1)" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "OpenRCT2 commit 2107821, src/openrct2/sawyer_coding/SawyerCoding.cpp ValidateTrackChecksum and EncodeTD6; FileClassifier.cpp uses it to detect track designs." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Track design checksum" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T02:40:25.464Z" |
|---|
| verifications | |
|---|