Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HADB opened this issue Feb 17, 2023 · 2 comments
Open

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

HADB opened this issue Feb 17, 2023 · 2 comments

Comments

@HADB
Copy link
Contributor

HADB commented Feb 17, 2023

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?

@NumberPigeon
Copy link
Contributor

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.

@cclauss
Copy link
Collaborator

cclauss commented Feb 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants