From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Ren'Py RPYC" |
|---|
| claim | "A version 2 .rpyc starts with 'RENPY RPC2' followed by 12-byte records (u32 slot, u32 start, u32 length), zero slot ends the list; each slot is a zlib-compressed pickle." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Ren'Py RPYC" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "52 45 4E 50 59 20 52 50 43 32" |
|---|
| offset | 0 |
|---|
| meaning | "RENPY RPC2; then slot records; slot 1 and 2 = pickled (data, stmts) before and after static transforms; md5 of source+magic at file end" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "RPYC2_HEADER, write_rpyc_header/data/md5, read_rpyc_data (legacy path when the header is absent)" |
|---|
| repo | "https://github.com/renpy/renpy" |
|---|
| commit | "6202e7fb43fd23594ab866af83bf928525a06410" |
|---|
| path | "renpy/script.py" |
|---|
| lines | "44-47, 720-803, 872-880" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RENPY RPC2 header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T11:36:10.657Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:54:47.112Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read renpy/script.py: RPYC2_HEADER = b"RENPY RPC2" (line 47); write_rpyc_header writes it then 3 records of struct III; read_rpyc_data compares the start of the file with it (line 767) and falls back to a legacy path otherwise; md5 of source+RPYC_MAGIC written at file end (lines 747-752, 882, 996)" |
|---|
|
|
|---|