New sc2reader user - Getting a list of time/location of death of every unit

24 views
Skip to first unread message

Rodrigo Canaan

unread,
Jul 25, 2018, 6:11:08 PM7/25/18
to sc2r...@googlegroups.com
Hello,

I am a PhD student starting to work with sc2reader.

From what I understand (correct me if I am wrong) a SC2 replay file only shows directly events corresponding to a player actions, such as:
  • moving the camera
  • selecting units
  • issuing commands
When using sc2reader to find out other game information (such as getting a list of units and buildings on the field, their location, current HP, time and location of death, etc), it is necessary to use a plugin to essentially simulate the result of those actions from the start of the game to determine gamestate. Is this correct?

I've been looking at https://github.com/dsjoerg/ggpyjobs, where some of these features are already implemented, but still haven't got it to work. It seems to require some more infrastructure to run (a separate database, an AWS account), which I haven't gotten to yet. Also, there's a file referenced there that is missing from sc2reader (CreepTracker).

At the moment I'm specifically interested at getting a list of time and location of death for each unit or building that died in the game. Could someone please point me in the right direction?

Thanks in advance,
Rodrigo Canaan

David Joerg

unread,
Jul 25, 2018, 7:47:37 PM7/25/18
to sc2reader
SC2 replay file only shows directly events corresponding to a player actions

That is not right, there is more.  There are TrackerEvents, UnitBorn events, UnitDied events with more information.  For example https://github.com/dsjoerg/ggpyjobs/blob/master/sc2parse/sc2reader_to_esdb.py#L232   Also see https://github.com/ggtracker/sc2reader/blob/upstream/sc2reader/events/tracker.py


Maybe you're using the wrong branch of sc2reader?

To answer your last question, UnitDied events have what you need!  They're not 100% perfect but they're better than anything else you could do.    —David



--
You received this message because you are subscribed to the Google Groups "sc2reader" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sc2reader+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages