Stop Event and Upgrades

Skip to first unread message

Alexander Hjelm

Dec 24, 2018, 3:37:14 PM12/24/18
to sc2reader

I'm using sc2reader to make a short trainer program of sorts. It will analyze my macro and give me a score based on how well I followed my build order, how often I'm supply capped, hoarding resources, etc. My project can be found here:

I have two quick questions with regards to Events:
  1. It is my understanding that stopping unit and building production is represented by the BasicCommandEvent Stop. Can I further access the unit that was stopped and the resource cost?
  2. Initiating upgrades also seems to be BasicCommandEvents. Is there a way to access the resource cost of the upgrade, or do I have to write my own table and reference it by the upgrade name every time I want to get the cost?
I'm also interested in talking to the other sc2reader users/devs. Is the IRC channel still active, or where are you guys hanging otherwise?

- Alexander

Kevin Leung

Dec 29, 2018, 11:23:19 AM12/29/18
to sc2reader
Hi Alexander,

Cool idea for a program! Unfortunately, I don't have a lot of good answers for you.

1. I don't know =(
2. As far as I know, we don't have access to any resource costs. We have discussed it, and it's probably worth creating an issue in GitHub for making balance data accessible. Could you perhaps do that?

The IRC channel isn't active anymore. Probably the best place to get in touch with people is in the GitHub issues since we're pretty scattered.


Alexander Hjelm

Dec 29, 2018, 1:17:03 PM12/29/18
to sc2reader
Hey Kevin! ^^

As far as I know the Unit class provides resource cost. I'm not sure if this is stored in the replay or if the lib has the cost defined in some data file that you guys maintain with every new game version?

If it is the latter then I'd be happy to implement that feature for upgrades as well. I'm trying to get as a moment-to-moment estimate of the resource count that is as accurate as possible.

Also, what do you mean by "balance data"? ^^ I'll open an issue for what I'm thinking. I assume that Graylin is the project creator and you are the current maintainer?

- Alexander
Reply all
Reply to author
0 new messages