A library built on top of the AoE2ScenarioParser.
Project description
AoE2ScenarioRms
A library built on top of the AoE2ScenarioParser.
Allows you to add triggers
and XS
to your AoE2:DE scenarios which will add logic to allow for random resource
placements each play-through.
Keep in mind this project is still heavily a WORK-IN-PROGRESS
Example
Please check out the example here. (no real docs atm)
This project is still a work-in-progress.
So everything can still change without notice (most likely will).
If you'd like to try anyway, for now just clone this repository to the root of your source folder and import from there.
Make sure AoE2ScenarioParser
is installed: link.
Rough todo:
Change tile selection torandom.choice(all_possible_tiles)
instead of looking for completely random tiles Potentially conditionally? Or with parameter? As big surfaces are faster with completely random tilesMove XS logic to own class(es)Move Debug logic to own classChangeasr.write()
as triggers are always added directly, so why isn't the script?Add docs, docstrings and testsAllow XS to log the amount that spawned succesfully, so you can limit the amount of spawns for performance- More (?)
Potential Ideas:
- Player areas :monkaS:
- Scale with map size (hardcoded on parser level as map_size cannot be changed dynamically)
Support larger objects (currently only 1x1 is supported)- Automatically figure out what to remove based on CreateObjectConfig configs
- Add ability to mock the XS spawning process to estimate the amount of necessary successful spawn attempts
- Ability to bind ID to list of create objects and be able to differentiate distance to each group
- (Somehow) remove spawn order bias. Currently, the earlier the spawns the more chance they have to succeed because the map isn't filled up yet.
- More (?)
Suggestions are always welcome!
Authors
- Kerwin Sneijders (Main Author)
License
MIT License: Please see the LICENSE file.
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
Built Distribution
Hashes for AoE2ScenarioRms-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd8db890f1e7590be0c31921737e67c42403be96d827a6e53171f35141c69572 |
|
MD5 | b3a4d86623306a8abe82a76ae604dfd6 |
|
BLAKE2b-256 | d86e44278aa52b54fe1b7167b4b257e7996882b7a968045ac9b735b261ae989b |