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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file retro_data_structures-0.42.0.tar.gz.
File metadata
- Download URL: retro_data_structures-0.42.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.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18fe1ebfb7da0c3f8dbbbc6d70e4a074a96637eb6c774d18ed0896c622584c79
|
|
| MD5 |
737af505de2d386136c4bf319504db24
|
|
| BLAKE2b-256 |
e9e3eb0fa68d2e83709be414b3d4d407257a925e4e89fc85170e861c75b3d431
|
Provenance
The following attestation bundles were made for retro_data_structures-0.42.0.tar.gz:
Publisher:
python.yml on randovania/retro-data-structures
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
retro_data_structures-0.42.0.tar.gz -
Subject digest:
18fe1ebfb7da0c3f8dbbbc6d70e4a074a96637eb6c774d18ed0896c622584c79 - Sigstore transparency entry: 1569486083
- Sigstore integration time:
-
Permalink:
randovania/retro-data-structures@f93c6460ffca69cf32421ac844c8483970d5ffa5 -
Branch / Tag:
refs/tags/v0.42.0 - Owner: https://github.com/randovania
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@f93c6460ffca69cf32421ac844c8483970d5ffa5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file retro_data_structures-0.42.0-py3-none-any.whl.
File metadata
- Download URL: retro_data_structures-0.42.0-py3-none-any.whl
- Upload date:
- Size: 3.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf7eb5d14eb6baa4f0df37eab6f73e1c08c7ffb674f87c38bd10b70cebaf7080
|
|
| MD5 |
11a80f6a8a1262671fdb9136b5a540c5
|
|
| BLAKE2b-256 |
16f0c1829ddb08babcdbbaf26834963631ed8c99d71070b218ce0a31de00fb34
|
Provenance
The following attestation bundles were made for retro_data_structures-0.42.0-py3-none-any.whl:
Publisher:
python.yml on randovania/retro-data-structures
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
retro_data_structures-0.42.0-py3-none-any.whl -
Subject digest:
cf7eb5d14eb6baa4f0df37eab6f73e1c08c7ffb674f87c38bd10b70cebaf7080 - Sigstore transparency entry: 1569486087
- Sigstore integration time:
-
Permalink:
randovania/retro-data-structures@f93c6460ffca69cf32421ac844c8483970d5ffa5 -
Branch / Tag:
refs/tags/v0.42.0 - Owner: https://github.com/randovania
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@f93c6460ffca69cf32421ac844c8483970d5ffa5 -
Trigger Event:
push
-
Statement type: