Skip to content

Conversation

@StoicLoofah
Copy link
Owner

Good news: spawningtool now supports parsing co-op replays! Bad news: I rewrote pretty much everything.

A lot of notable changes in here:

  1. Added command line arguments for what data is printed to the console. This was primarily for convenience of testing
  2. Added coop_constants.py, where data is classified by commander. This is important because the same unit has different data depending on the commander (e.g. Raynor's rapid recruitment builds units faster than other commanders).
  3. Added a bunch of new optional fields onto the BUILD_DATA values: display_name, race, type, is_morph. this centralizes data spread across here and 2 places in the Spawning Tool web app backend.
  4. completely rewrote the parser into using a class wrapper. This was helpful because we need a ton of context at even the lowest level functions to grab the right data for a commander, and it encapsulated all of it without passing a dozen variables as parameters
  5. added a ton of logic and fields for co-op and specific commanders
  6. Build orders data now outputs with display_name if possible.

Future work includes adding a ton more data around hots_constants and lotv_constants for consistency.

@StoicLoofah StoicLoofah merged commit 74fb190 into master May 18, 2018
@StoicLoofah StoicLoofah deleted the coop branch May 18, 2018 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants