From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:SV6 (RollerCoaster Tycoon 2)" |
|---|
| claim | "Unverified: the 32-bit value after the last chunk of an SV6/SC6 file is the sum of all preceding bytes of the file modulo 2^32, as in Chris Sawyer's Locomotion files." |
|---|
| scope | | level | "software" |
|---|
| applies_to | "Software:RollerCoaster Tycoon 2" |
|---|
| observed_in | |
|---|
|
|---|
| data | | effect | "stored u32 at end of file == sum(file[0:len-4]) mod 2^32" |
|---|
| condition | "theory; OpenRCT2 does not validate the SV6 checksum" |
|---|
|
|---|
| evidence | | type | "comparison" |
|---|
| detail | "OpenLoco SawyerStream.cpp validateChecksum/writeChecksum use a plain byte sum for Locomotion SV5/SC5 files, which use the same chunk encoding. OpenRCT2's S6Importer reads only the chunks and never checks the trailer. Test: sum the bytes of an SV6 written by the original game, excluding the last 4, and compare with the trailer (the Code page's 'chunks' command prints both)." |
|---|
|
|
|---|
| confidence | "low" |
|---|
| related | |
|---|
| key | "SV6 trailing checksum is a byte sum" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T02:40:24.714Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T21:36:04.279Z" |
|---|
| result | "partial" |
|---|
| method | "Read OpenLoco src/OpenLoco/src/S5/SawyerStream.cpp at 6d7f5b1 (lines 55-81, 222-228): Locomotion checksum is a uint32 sum of bytes, confirmed. OpenRCT2 develop S6Importer.cpp has no checksum handling, confirmed. The SV6 claim itself remains untested." |
|---|
|
|
|---|