Skip to main content

A libray of SupyrStruct structures and objects for games built with the Blam engine

Project description

Reclaimer

What is this repository for?

  • Reclaimer is a library of supyr_struct structure descriptors and tag definitions for creating and modifying data files for video games utilizing the Blam engine. These descriptors and definitions are currently limited to Halo 1(xbox, custom edition, and the community made "open sauce" variant) with some support for Stubbs the Zombie. There are plans to branch into Halo 2, though for now the "he2k" sub-module is just a placeholder. Some of the tag definitions have an accompanying object class with methods for manipulating the tag(recalculating inertial matrices in physics tags for example).

Installing

First install any version of Python 3(The newest version is recommended).

There are two ways to install reclaimer from this point:

  • Open a command prompt and execute pip install reclaimer

or

  • Extract a copy of the repository into a directory titled "reclaimer".
  • Move the file "setup.py" into the directory containing "reclaimer".
  • Open a command prompt, navigate to the directory containing setup.py, and execute:python setup.py install
  • During install, python should try to download and install supyr_struct. If it fails to, you must install that as well.

Once the install finishes, reclaimer should be ready to use.

There are currently no test cases, but you should be able to directly import any tag definition from the python interpreter, build it, give it a filepath, and serialize it as shown below:

>>> from reclaimer.hek.defs.pphy import pphy_def
>>> asdf = pphy_def.build()
>>> print(asdf)
[ Container, entries:2, pphy
    [ Struct, size:64, entries:6, blam_header
        [ UEnum32, offset:36, size:4, tag_class, 1886414969
             point_physics ]
        [ UInt32, offset:40, size:4, base_address, 1299151482 ]
        [ UInt32, offset:44, size:4, header_size, 64 ]
        [ UInt16, offset:56, size:2, version, 1 ]
        [ UInt16, offset:58, size:2, unknown, 255 ]
        [ UEnum32, offset:60, size:4, engine_id, 1651269997
             halo_1 ]
        ]
    [ Struct, size:64, entries:9, tagdata
        [ Bool32, offset:0, size:4, flags, 0
            ]
        [ FlFloat, offset:4, size:4, wind_coefficient, 0.0 ]
        [ FlFloat, offset:8, size:4, wind_sine_modifier, 0.0 ]
        [ FlFloat, offset:12, size:4, z_translation_rate, 0.0 ]
        [ Float, offset:32, size:4, density, 0.0 ]
        [ Float, offset:36, size:4, air_friction, 0.0 ]
        [ Float, offset:40, size:4, water_friction, 0.0 ]
        [ Float, offset:44, size:4, surface_friction, 0.0 ]
        [ Float, offset:48, size:4, elasticity, 0.0 ]
        ]
    ]
>>> asdf.data.serialize()
bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00pphyMozz\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\xffblam
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x00\x00\x00\x00\x00\x00')

Who do I talk to?

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

reclaimer-2.9.3.tar.gz (509.8 kB view details)

Uploaded Source

Built Distributions

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

reclaimer-2.9.3-cp38-cp38-win_amd64.whl (923.2 kB view details)

Uploaded CPython 3.8Windows x86-64

reclaimer-2.9.3-cp38-cp38-win32.whl (921.6 kB view details)

Uploaded CPython 3.8Windows x86

reclaimer-2.9.3-cp37-cp37m-win_amd64.whl (923.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

reclaimer-2.9.3-cp37-cp37m-win32.whl (921.6 kB view details)

Uploaded CPython 3.7mWindows x86

reclaimer-2.9.3-cp36-cp36m-win_amd64.whl (923.2 kB view details)

Uploaded CPython 3.6mWindows x86-64

reclaimer-2.9.3-cp36-cp36m-win32.whl (921.6 kB view details)

Uploaded CPython 3.6mWindows x86

File details

Details for the file reclaimer-2.9.3.tar.gz.

File metadata

  • Download URL: reclaimer-2.9.3.tar.gz
  • Upload date:
  • Size: 509.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for reclaimer-2.9.3.tar.gz
Algorithm Hash digest
SHA256 cb81a69fbedd82f83ba61c28d9c2bd19cf7f72b72bc4bf3ac57bc61cc723c192
MD5 535fd2bc3f287f4829df95a3e7de53ff
BLAKE2b-256 e71b181f1f3aaefe3b38dca511c66b3d88e54eb80463e814336a21bf025d0f8a

See more details on using hashes here.

File details

Details for the file reclaimer-2.9.3-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: reclaimer-2.9.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 923.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for reclaimer-2.9.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 374ca37f3e0c6ee346933fb9282db1d27afe6e25e5b8f058c6a2331b8b07a1fb
MD5 81982b78de80d2778447decb6a63884d
BLAKE2b-256 37830fb5881475b7c1d53431f19c61002f4c3b0fd121313a0bb70a23c9dd6d7c

See more details on using hashes here.

File details

Details for the file reclaimer-2.9.3-cp38-cp38-win32.whl.

File metadata

  • Download URL: reclaimer-2.9.3-cp38-cp38-win32.whl
  • Upload date:
  • Size: 921.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for reclaimer-2.9.3-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b1862a7f8e16d7dc583b4de5fd6176d2cf18c721f7d4f4a448997435e4ed5abe
MD5 7c6e757f6e6e2394795c9a9bffbd0697
BLAKE2b-256 2593f05ea1e2237629bb45c2d25d73a2debadeebec008034fbc20ecb02fd8f27

See more details on using hashes here.

File details

Details for the file reclaimer-2.9.3-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: reclaimer-2.9.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 923.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for reclaimer-2.9.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a705ba65a337e4ab5e7580b8b1025c9af903d09882776aa1a65ac611cf1a7ed6
MD5 d620c766e5dafa4ce5f200f048f79585
BLAKE2b-256 8336e7454de7b767c15b0c38a893675b4d81e04caf60b0ea55ddcd750943a08f

See more details on using hashes here.

File details

Details for the file reclaimer-2.9.3-cp37-cp37m-win32.whl.

File metadata

  • Download URL: reclaimer-2.9.3-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 921.6 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for reclaimer-2.9.3-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 cf559030a8c71e8e04a60d6005ba585835c9bc1af95b933f78ae33d4565f3a73
MD5 d0f17b235eb46cf7c9c79497ccf617fb
BLAKE2b-256 267d8a0270c4ca9a32ff940f06b564b25f93b918b076ba571d413df46f0a3a06

See more details on using hashes here.

File details

Details for the file reclaimer-2.9.3-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: reclaimer-2.9.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 923.2 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for reclaimer-2.9.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6218432bbcfb94bc3f26b1bff0cd8d3fd0befaae75a69e814e810db8b2333746
MD5 aab2ff4823d58f05ad0a21974d796b50
BLAKE2b-256 6cc9b9c41699b6ad81fce314806e4bde5b6dab016b3cb0987630fcd3a9de1ee1

See more details on using hashes here.

File details

Details for the file reclaimer-2.9.3-cp36-cp36m-win32.whl.

File metadata

  • Download URL: reclaimer-2.9.3-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 921.6 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for reclaimer-2.9.3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 0e608d0a6f6355109387a50edb90e684204a6dedcdac54d5e312207f5dc0454b
MD5 c0bca875498f72c6d8948854b72e5751
BLAKE2b-256 efc7dcb88d7114e5c5f919b5dbdc184279a200fc0308ae4e7c5d8ce480f50816

See more details on using hashes here.

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