Skip to main content

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)

Source distribution for retro-data-structures 0.44.1
File Size Uploaded
retro_data_structures-0.44.1.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for retro-data-structures 0.44.1
File Interpreter ABI Platform
retro_data_structures-0.44.1-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.44.1 This release

2 release files

0.43.0

2 release files

0.42.0

2 release files

0.41.0

2 release files

0.35.0

2 release files

0.34.0

2 release files

0.33.0

2 release files

0.32.0

2 release files

0.31.1

2 release files

0.31.0

2 release files

0.30.1

2 release files

0.30.0

2 release files

0.29.0

2 release files

0.28.0

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.23.0

2 release files

0.22.0

2 release files

0.21.1

2 release files

0.21.0

2 release files

0.20.1

2 release files

0.19.2

2 release files

0.19.1

2 release files

0.19.0

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.1

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page