Skip to main content

Re-implementation of genieutils in Python

Project description

genieutils-py

Python implementation of genieutils.

This library can be used to read and write empires2_x2_p1.dat files for Age of Empires II Definitive Edition.

Supported dat versions

Currently, only the latest version used in Age of Empires II Definitive Edition is supported (GV_LatestDE2/GV_C20).

Installation

pip install genieutils-py

Usage examples

Dump the whole dat file as json

The package comes with a handy command line tool that does that for you.

dat-to-json path/to/empires2_x2_p1.dat

Change cost of Loom to 69 Gold

from genieutils.datfile import DatFile

data = DatFile.parse('path/to/empires2_x2_p1.dat')
data.techs[22].resource_costs[0].amount = 69
data.save('path/to/modded/empires2_x2_p1.dat')

Prevent Kings from garrisoning

from genieutils.datfile import DatFile

data = DatFile.parse('path/to/empires2_x2_p1.dat')
for civ in data.civs:
    civ.units[434].bird.tasks.pop()
data.save('path/to/modded/empires2_x2_p1.dat')

Authors

HSZemi - Original Author

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

genieutils_py-0.0.3.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

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

genieutils_py-0.0.3-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file genieutils_py-0.0.3.tar.gz.

File metadata

  • Download URL: genieutils_py-0.0.3.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for genieutils_py-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f9b084f3adce74a077c69b68926f5b5ab9296d567c73b52456a7e69e930cf390
MD5 15f077d976aec6464e68da476efeda7d
BLAKE2b-256 5d0c0147d4a9483eaf4df37db3400ee663cb8e7426249b7e5980e47d91268bba

See more details on using hashes here.

File details

Details for the file genieutils_py-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: genieutils_py-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for genieutils_py-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c18cc54019b3115bc2a84a7a6830d251322fa2815a39d8761148e612ab2a7c09
MD5 bbde081c1646ec1c0bee09ede60f134e
BLAKE2b-256 208e257c913d138b82da5d97dd9f2aee866edfa09959ce4dc1eb49d0f06c5378

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