Retro-data-structures
Construct type definitions for Retro Studios game
| Format | Prime 1 (Read) | Prime 1 (Write) | Prime 2 (Read) | Prime 2 (Write) | Prime 3 (Read) | Prime 3 (Write) |
|---|---|---|---|---|---|---|
| PAK | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| MLVL | ✓ | ✗ | ✓ | ✗ | ✓ | ✗ |
| MREA | ✗ | ✗ | ✓ | ✗ [2] | ✗ | ✗ |
| MAPA | ✓ | ✗ | ✓ | ✗ | ✗ | ✗ |
| CMDL | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| ANCS | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| ANIM | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| CSKR | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| CINF | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| PART | ✓ | ✓ | ✓ | ✓ | ✓ [1] | ✓ [1] |
| HIER | - | - | ✓ | ✓ | - | - |
| STRG | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| SAVW | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
- [1] All existing files parse, but not checked if exhaustive for what the game supports.
- [2] Missing re-calculation of how sections are split between blocks.
Example Usage
from retro_data_structures.formats.pak_gc import PAK_GC
def read_file(path):
with open(path, "rb") as f:
return f.read()
PAK_GC.build_file({
'named_resources': [
{"asset": {"type": 'TXTR', "id": 201335801}, "name": 'TXTR_ElevatorIcon_1'},
{"asset": {"type": 'TXTR', "id": 239414538}, "name": 'TXTR_ElevatorIcon'},
{"asset": {"type": 'TXTR', "id": 564256465}, "name": 'TXTR_QuaterCurve'},
{"asset": {"type": 'TXTR', "id": 568030977}, "name": 'TXTR_SaveStationIcon_1'},
],
'resources': [
{
"asset": {"type": 'TXTR', "id": 201335801},
"compressed": 1,
"contents": {"value": read_file("ElevatorIcon_1.TXTR")},
},
{
"asset": {"type": 'TXTR', "id": 201335801},
"compressed": 1,
"contents": {"value": read_file("ElevatorIcon.TXTR")},
},
{
"asset": {"type": 'TXTR', "id": 201335801},
"compressed": 1,
"contents": {"value": read_file("QuaterCurve.TXTR")},
},
{
"asset": {"type": 'TXTR', "id": 201335801},
"compressed": 1,
"contents": {"value": read_file("SaveStationIcon_1.TXTR")},
},
]
}, "Game.pak")
Metadata
Release files for retro-data-structures 0.44.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| retro_data_structures-0.44.1.tar.gz | 2.0 MB | With provenance | Details for retro_data_structures-0.44.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| retro_data_structures-0.44.1-py3-none-any.whl | Python 3 | none | any | Details for retro_data_structures-0.44.1-py3-none-any.whl |
Total release size: 5.9 MB
Release files / retro_data_structures-0.44.1.tar.gz
| Download URL | retro_data_structures-0.44.1.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
415367f44d3234d852644bdd84ef87f61d14714089b0fb9d128c335c6a51ed93
|
|
BLAKE2b-256 checksum How to use checksums |
2b9afc088b87f012f7021aed61cbe78101598ab2b341d6ceae8bb1ad065728b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency logRelease files / retro_data_structures-0.44.1-py3-none-any.whl
| Download URL | retro_data_structures-0.44.1-py3-none-any.whl |
|---|---|
| Size | 3.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1988db17570a09e169550d13dec3c0f34294677e0a71671e9892d2f926c28de9
|
|
BLAKE2b-256 checksum How to use checksums |
a3238a9072defbd1d42898952052de086a9830c09b7e50c7fd17566a5162fa0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency logSecurity for retro-data-structures 0.44.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for retro_data_structures-0.44.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.