sc2reader icon indicating copy to clipboard operation
sc2reader copied to clipboard

Is there a way to update "unit_info.json" programmatically?

Open HADB opened this issue 2 years ago • 2 comments

As you can see, unit_info.json is out of date for a long time. Is there a way to get all the latest data and generate new file from balance data like sc2reader/generate_build_data.py do?

HADB avatar Feb 17 '23 03:02 HADB

Currently seems not. I guess the best way to do it is to write a script or a web crawler to fetch data from liquipedia. Besides, there seems lack build versions attached to the unit_info.json, which includes all the resources cost and building/unit info of each unit. This might cause issues when dealing with replays which are not latest.

NumberPigeon avatar Feb 21 '23 07:02 NumberPigeon

https://docs.python.org/3/library/json.html certainly allows the creation of any json data that you want to gather up and load. If you created a pull request that demonstrated how to gather the data and create the file then other contributors could review it.

cclauss avatar Feb 21 '23 08:02 cclauss