Skip to main content

This is a project for editing parts of an 'aoe2scenario' file from Age of Empires 2 Definitive Edition

Project description

AoE2ScenarioParser

AoE2ScenarioParser is a Python library that allows you to edit aoe2scenario files from every version of Age of Empires 2 Definitive Edition.

Getting Started

Installing using pip:

pip install AoE2ScenarioParser

More documentation about installing etc. can be found below.

Documentation

Documentation for installation, usage, examples, cheatsheets and API docs can be found on GitHub Pages.

Quick links

  • Installing → A quick guide on how to install AoE2ScenarioParser
  • Hello World Example → Step-by-step guide to get you going
  • Discord Server → For questions about AoE2ScenarioParser, Python or scenarios in general.
  • API Docs → Technical documentation for all exposed functions & classes

Discord

If you have any questions regarding AoE2ScenarioParser? Join the discord!

Support

Every Single Scenario Version* from Age of Empires 2 Definitive Edition is SUPPORTED!

Support: 1.36 Version at Release (November 14th, 2019)1.56 Current Version (Since: October 14th, 2025)

Every single version of Age of Empires 2 Definitive Edition is supported*! If a new version of Age of Empires 2 Definitive Edition just released, it can take a bit for it to be able to be read. Check the Discord Server for more up-to-date information if this is the case.

If you find a scenario which can be opened by the game itself, but results in an error when using AoE2ScenarioParser, please report it as an issue or in the #bug‑reports channel in the Discord Server.

*: All scenario versions are supported, though older structure versions of the same scenario version are not. For more context see this Discord post.

To view the full-blown support table previously shown on this page, visit: support.md.

Progress

Every related change to the library is documented and can be found in the CHANGELOG.

Features:

AoE2ScenarioParser allows you to edit anything inside a scenario. For general usability "managers" have been created to make working with the files easier. These managers allow you to quickly change aspects of units, triggers, the map, player data and more!

Below is a simplified overview of some of the features:

Inspect Add Edit Remove
Triggers ✔️ ✔️ ✔️ ✔️
Conditions ✔️ ✔️ ✔️ ✔️
Effects ✔️ ✔️ ✔️ ✔️
Units ✔️ ✔️ ✔️ ✔️
Map n/a *1 ✔️ ✔️ ✔️
Players n/a *1 ✔️* ✔️ ✔️*
Messages n/a ✔️ ✔️ ✔️

*: You can disable or enable players like in the in-game editor (min 1, max 8).
*1: There's no specific inspection function. Though, they can still be printed with clean formatting.

Authors

License

MIT License: Please see the LICENSE file.

Project details


Release history Release notifications | RSS feed

This version

0.8.1

Download files

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

Source Distribution

aoe2scenarioparser-0.8.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

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

aoe2scenarioparser-0.8.1-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file aoe2scenarioparser-0.8.1.tar.gz.

File metadata

  • Download URL: aoe2scenarioparser-0.8.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aoe2scenarioparser-0.8.1.tar.gz
Algorithm Hash digest
SHA256 5af55fde7a0aa70a21b4c33fcf8149d7c6394602edff2be72c9bd152031eae8f
MD5 9a3c1ee51d5cc5c9c8a522b46c1e3fed
BLAKE2b-256 2119f0536750cbdf14d0c07e7243ac2f769cb6034cbb64cc2ff8eeb47818e26c

See more details on using hashes here.

File details

Details for the file aoe2scenarioparser-0.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aoe2scenarioparser-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9dad93c307f8d5d4860d89f20cafcc734f82ad36e9b8508fdb211b330a3a6f4b
MD5 338f7494ab269e2e4406a9acf1400060
BLAKE2b-256 7d71fbb16b27ac8acf67504b703e73af3c227339f097868e7ca25392c4be7aaf

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