KSneijders / AoE2ScenarioParser

Python library for editing aoe2scenario files from Age of Empires 2 Definitive Edition
https://KSneijders.github.io/AoE2ScenarioParser/
GNU General Public License v3.0
78 stars 16 forks source link

Documentation outdated? #12

Closed botist closed 3 years ago

botist commented 3 years ago

using from AoE2ScenarioParser.datasets.units import UnitId gives me an import error, and TS is undefined

KSneijders commented 3 years ago

Could you provide some context and code which reproduces the error? And what version of the parser are you using?

Edit: I see that you use UnitId, that has been changed to UnitInfo. This indeed is lacking from the docs. (I thought I updated those).

About TS, not sure what is going wrong there. Do share the import statement and some code for that please.

KSneijders commented 3 years ago

I see now where the mistake happened. The docs for datasets was updated. You can find all info about how the unit datasets work there. I forgot to update the unit dataset docs. I'll update those as soon as I can!

KSneijders commented 3 years ago

I just released version 0.1.8 which, among other things, fixed the documentation issue

botist commented 3 years ago

Thank you for the documentation update!