scopatz / w3g

Access Warcraft 3 replay files from Python 2 or 3
Creative Commons Zero v1.0 Universal
45 stars 16 forks source link

Reforged update 02 #17

Open manh4wk opened 1 year ago

manh4wk commented 1 year ago

Added a new reader for the ReforgedPlayerMetadata class that should allow for reading more replays from Warcraft III Reforged. Unfortunately, there doesn't seem to be a good way to tell which reader to use for it, so I just try one and then if it fails it tries the other. It looks like there are some new GAME_TYPES being used, maybe if we had more different types of replays that would tell us.

I also added the BNet portrait ID as a property of the ReforgedPlayerMetadata class. I don't have a mapping to know which portrait ID maps to which portrait, but if we figure that out later it can be added.

Closes #16