Skip to main content

Construct file definitions for the Retro Studios game engine files

Project description

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retro_data_structures-0.34.0.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

retro_data_structures-0.34.0-py3-none-any.whl (4.0 MB view details)

Uploaded Python 3

File details

Details for the file retro_data_structures-0.34.0.tar.gz.

File metadata

  • Download URL: retro_data_structures-0.34.0.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for retro_data_structures-0.34.0.tar.gz
Algorithm Hash digest
SHA256 526f22121e3925d3817df54a32de4dd00b83ea9d2f4aafeb5261f767e8068e60
MD5 cdac80e3d14c4d1701f7e630d7f9975d
BLAKE2b-256 3d6b92d5d71d520e6773f9ad2898737ddeae6718a272dc9225ad2f9d1f55cc22

See more details on using hashes here.

Provenance

The following attestation bundles were made for retro_data_structures-0.34.0.tar.gz:

Publisher: python.yml on randovania/retro-data-structures

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file retro_data_structures-0.34.0-py3-none-any.whl.

File metadata

File hashes

Hashes for retro_data_structures-0.34.0-py3-none-any.whl
Algorithm Hash digest
SHA256 faccaf59af42fe41fac5a3ec3ce61bc594c1ef1174a9f6683e872c80ce22a954
MD5 d6b2425d04a8f1dee9763b37c8af5c7f
BLAKE2b-256 4fc96923374c3a8d50637b7f49fd2a2545bd2703a8beef67338389e3ca6cf9c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for retro_data_structures-0.34.0-py3-none-any.whl:

Publisher: python.yml on randovania/retro-data-structures

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page