Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time of units start training #81

Open
hypatiasf opened this issue Jun 28, 2018 · 4 comments
Open

Time of units start training #81

hypatiasf opened this issue Jun 28, 2018 · 4 comments

Comments

@hypatiasf
Copy link

Which file in the archive can we find when a unit start training? (not the time finish training)

I found something in file 'replay.tracker.events' which is close to the aim I think, they're about:

  • a unit finished training (event 'NNet.Replay.Tracker.SUnitBornEvent')
  • a structure start constructing (event 'NNet.Replay.Tracker.SUnitInitEvent')

but none of them are suitable.

@amartin916
Copy link
Contributor

I don't believe the info is in the replay file, how I go about it is I keep track of the build times for the units so the finished time - build time.

@hypatiasf
Copy link
Author

hypatiasf commented Jun 29, 2018

@amartin916 Thank you for your advice, I think that would be useful in most conditions. But ... what if a protoss player used a chrono boost?

@amartin916
Copy link
Contributor

You would have to account for it, by finding what building the chrono was used on, and also linking the unit to the building. "Might be able to link the unit back to the building with m_creatorUnitTagIndex and m_creatorUnitTagRecycle I have never looked. I know that for zerg everything links back to the larva".

I personally don't worry about the chrono but I also lean more on the complete time than the starting. And where I lean on the started time you would be hard press to notice the difference since I only record things in 7 second intervals

@hypatiasf
Copy link
Author

@amartin916 It should be the solution, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants