Aoe2scenarioparser

Latest version: v0.1.67

Safety actively analyzes 629959 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 13 of 14

0.0.16

Fixed

- Issue with reading bitmap image with certain sizes

---

0.0.15

Added

- Support for bitmap images (Can't be seen, used (or removed) in DE but crashed the parser if present)
- Support for legacy codec `latin-1` (Voobly converted maps). Please note that all text will be written back into `utf-8` when writing a new file.
- Units to the units dataset (Credis: Alian713)

Updated

- Many Attribute ID names and their description and usages. (Credits: Alian713)

Fixed

- Error while trying to debug a map with non ASCII characters
- Reading errors with specific uncommon attributes

Changed

- Changed parameter `unit_id` to `unit_const` in the `add_unit` function

---

0.0.14

Added

- Support for AI files. Since the latest update (42848) AI files are (sometimes) stored differently

Updated

- [HTML file] with byte structure (Download to view file. Does not contain JS. Just HTML & CSS)

[html file]: https://github.com/KSneijders/AoE2ScenarioParser/blob/master/resources/personal_docs/file_structure.html

Fixed

- Issue with rotation on objects. Mostly affecting cliffs, certain tree types and other rotatable objects

---

0.0.13

Fixed

- Issue introduced in `0.0.12`

---

0.0.12

**Support for the new update!**

**Important notice:** This version does not support older versions of the scenario files. This is temporary due to the amount of changes from the newest version (Update: 42848), sorry for the inconvience.
When loading a map from an older version, instructions will be provided for downgrading this library or updating the scenario to the newest version.

Added

- `create_hill` function to the map_manager (Credits: pvallet)
- **[Update 42848]** `script_name` (xs file) to the MapManager
- **[Update 42848]** The new effects!!
- `Set Building Gather Point`
- `Script Call`
- `Change Object Player Color`
- `Change Object Civilization Name`
- `Change Object Player Name`
- `Disable Unit Targeting`
- `Enable Unit Targeting`
- `Change Technology Cost`
- `Change Technology Research Time`
- `Change Technology Name`
- `Change Technology Description`
- `Enable Technology Stacking`
- `Disable Technology Stacking`
- `Acknowledge Multiplayer AI Signal`
- `Disable Object Selection`
- `Enable Object Selection`
- **[Update 42848]** The new conditions!!
- `Script Call`
- `Object Visible (Multiplayer)`
- `Object Selected (Multiplayer)`
- `Object has Action`
- `OR`
- `Multiplayer AI Signal`
- **[Update 42848]** `UnitAIAction` dataset
- `AttackStance` dataset

Discovered (in byte structure)

- **[Update 42848]** The new architecture set feature
- **[Update 42848]** script (xs) file path at the end of the file

Improved

- Defaults for the `create_default()` function when dealing with inconsistent structs

Fixed

- Adding a trigger with extra arguments will now work properly (Example: `.add_trigger("name", description="desc")`)
- Adding a condition with extra arguments will now work properly (Example: `.add_condition(Cond.TIMER, timer=20)`)
- The 'Fix' in version `0.0.11` for the lazy loading of effect and condition display orders wasn't working properly. Now it is.

Removed

- `number_of_units_selected` as an attribute for effects. This is now dealt with internally.

---

0.0.11

Added

- Optional arguments for `create_trigger` function (all trigger parameters except for it's internal ID)
- Optional arguments for `add_condition` function (all condition parameters)
- Optional arguments for `add_effect` function (all effect parameters)

Improved

- Performance:
- Writing the file, combining strings using `str.join(list)` instead of `str += str`
- Reusing structs when reconstructing where possible, instead of overwriting all of them.
- Not initialising RetrieverDependencies for every retriever. Using references instead.
- Reworked the eval functions to direct code, huge performance boost
- Removed unnecessary DependencyAction objects creation (From ~500.000 to ~100)
- Changed trigger display order, condition display order, effect display order attribute to lazy load

Fixed

- The `AoE2Scenario.create_default()` function. (Incorrect defaults caused the file to corrupt)

---

Page 13 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.