Closed Kaszanas closed 22 hours ago
This could download all of the maps to a directory, having access to a map should fix the issue of not having the localized map name. The program should also keep track of all of the maps within that directory so as not to re-download them each time.
Additionally, this could be a user-facing flag, if the map localization should be performed then maps must be downloaded to check for their naming (if they don't already exist). Currently the flag used for this is kind of vague and uninformative.
-localized_maps_file string
Specifies a path to localization file containing {'ForeignName': 'EnglishName'} of maps. If this flag is not set and the default is unavailable, map translation will be ommited. (default "./operation_files/output.json")
Example logic:
This is implemented on the branch: https://github.com/Kaszanas/SC2InfoExtractorGo/tree/map_downloader
But there are some issues with only using map files as the source of the translated map information.
This tells me that a hybrid approach should be implemented:
Current implementation should be changed to fit that to reduce errors while processing replays.
This is implemented in: #58
Currently map translation is done by using an external tool to generate a localization JSON.
This could be done differently in a way that sc2reader does this: