From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Sawyer chunk encoding" |
|---|
| claim | "Encoding 3 stores each byte rotated left by 1, 3, 5, 7, 1, 3, ... bits (shift starts at 1 and advances by 2 modulo 8); decoding rotates right by the same amounts. The length is unchanged." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Format:Sawyer chunk encoding" |
|---|
| observed_in | | "Software:RollerCoaster Tycoon 2" |
|
|---|
|
|---|
| data | | trigger | "chunk encoding 3" |
|---|
| effect | "byte i decoded = ror8(byte i, shift_i), shift_0 = 1, shift_(i+1) = (shift_i + 2) mod 8" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "OpenRCT2 commit 2107821, SawyerChunkReader.cpp DecodeChunkRotate and SawyerCoding.cpp EncodeChunkRotate." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Independent Python decoder reproduces OpenRCT2's rotatedata test vector (1024 -> 1024 bytes)." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Rotate encoding" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T02:40:24.618Z" |
|---|
| verifications | |
|---|