Skip to main content

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.

  • 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.58 Current Version (Since: June 2026)

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.

Metadata

Release files for AoE2ScenarioParser 0.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AoE2ScenarioParser 0.8.3
File Size Uploaded Provenance Actions
aoe2scenarioparser-0.8.3.tar.gz 2.1 MB Without provenance Details for aoe2scenarioparser-0.8.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for AoE2ScenarioParser 0.8.3
File Interpreter ABI Platform Actions
aoe2scenarioparser-0.8.3-py3-none-any.whl Python 3 none any Details for aoe2scenarioparser-0.8.3-py3-none-any.whl

Total release size: 4.3 MB

Release files / aoe2scenarioparser-0.8.3.tar.gz

Download URL aoe2scenarioparser-0.8.3.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ee751b689df2ef0f7c40b98cc7a53c2fc1e193cec0510c2be124b98271fab7a0
BLAKE2b-256 checksum
How to use checksums
660b9816b9e82cd670def77084de098371eb76e0e6e2f41c2e42aebf444f364b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / aoe2scenarioparser-0.8.3-py3-none-any.whl

Download URL aoe2scenarioparser-0.8.3-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ba6c2328ac369831eca6f9418ee1c66329ee8f85ed161e6c51eb5a07c42830cf
BLAKE2b-256 checksum
How to use checksums
130fb99830a6af747d2099a747def74408b7843713132a8b23526e709f28038f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for AoE2ScenarioParser 0.8.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page