Introduction
An RPA file is an archive used by the Ren’Py visual novel engine to hold a game’s files. Several variants exist, among them RPA-1.0, 2.0, 3.0, 3.2 and 4.0, and some games use their own.
Structure
RPA-2.0 and RPA-3.0 files start with a text header, RPA-2.0 or
RPA-3.0 , giving the position of the index in hexadecimal. The index is a
zlib-compressed Python pickle that maps each file name
to the places of its data. RPA-3.0 also gives a key, and the stored positions and
lengths are XORed with it. RPA-1.0 has no text header: its index is a separate
.rpi file.
Not described
This page is a first outline. The layout is not yet described in full here.
Known, not yet covered
- Reference: the exact header and index entries of each variant.
- Viewer: the site has no viewer for this format.
Links
Software
Reference
- loader.py – the engine’s source code that reads the archives (Python)
- unrpa notes – the supported variants