Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update HOWTO and black
  • Loading branch information
StoicLoofah committed Oct 19, 2019
commit 3989bd3ac3f88278bbe26867a1a31b4b96782bc5
3 changes: 3 additions & 0 deletions sc2reader/data/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ At the time of writing, the latest build version is 53644.
e.g. `python3 sc2reader/generate_build_data.py LotV 53644 balance_data/ sc2reader/`
This will generate the necessary data files to support the new build version (namely, `53644_abilities.csv`, `53644_units.csv`, and updated versions of `ability_lookup.csv` and `unit_lookup.csv`).
4. Finally, modify `sc2reader/data/__init__.py` and `sc2reader/resources.py` to register support for the new build version.

If you are not able to see the correct expansion for the balance data, you may need to authenticate. See the instructions at
https://github.com/ggtracker/sc2reader/issues/98#issuecomment-542554588 on how to do that
12 changes: 11 additions & 1 deletion sc2reader/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,17 @@ def load_build(expansion, version):

# Load LotV Data
lotv_builds = dict()
for version in ("base", "44401", "47185", "48258", "53644", "54724", "59587", "70154", "76114"):
for version in (
"base",
"44401",
"47185",
"48258",
"53644",
"54724",
"59587",
"70154",
"76114",
):
lotv_builds[version] = load_build("LotV", version)

datapacks = builds = {"WoL": wol_builds, "HotS": hots_builds, "LotV": lotv_builds}