ggtracker / ggtracker/sc2reader

Feature request: Make upgrade cost accessible

Open
#75 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
169
Forks
152
PR merge metrics
No merged PRs in 30d

Description

As of today there is no way to access the mineral/vespene cost of upgrades and research.

Initiating an upgrade is represented as a BasicCommandEvent, which exposes no details about the ability that was triggered (compare this to UnitInitEvent which exposes the related unit and it's cost).

Is there a way to access the resource cost of the upgrade, or is this feature to be implemeted?

If you would share how/where the cost is fetched for a unit, then I'd be more than happy to implement a similar feature for upgrades.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how BasicCommandEvent represents an initiated upgrade and compare it with UnitInitEvent, which exposes the related unit and its cost. Find where unit resource costs are fetched, then determine how the equivalent upgrade cost can be exposed; done means callers can access mineral and vespene costs for upgrade or research events.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.