-
Notifications
You must be signed in to change notification settings - Fork 21
Fix engagements on stat charts. #24
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
Conversation
fefe48f
to
e87d121
Compare
Bases and race-specific macro-chart were showing only 1/1.4 of the content - fixed also in this commit (just searched for 960). Cannot find the APM stuff easily though. |
e87d121
to
25d1704
Compare
speed_multiplier = 1; | ||
if (scope.$parent.match.expansion_tag == 'LotV') { | ||
speed_multiplier = 1.4; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use Sc2.LOTV_SPEEDUP here?
Good point. Didn't know if Sc2.LOTV_SPEEDUP was in scope, but I'll use it instead if possible. |
Fixed! |
Also now with fix for ggtracker/ggtrackerstack#35 |
Here's how the APM chart works. In
So the APM chart gets its data from In In If I understand the code correctly: in the match page, you'll see a bunch of JSON including "entities". For each entity there is a data.apm array which contains one entry per old-style minute. The chart directive currently relies on the fact that the APM data is at minute intervals, and sets the x-axis of the chart accordingly. To fix this, we would either refactor the code in the chart directive or in the match resource to make the chart show things correctly, or we would fix the code that creates the data.apm array. The code that creates the data.apm array involves My guess is that the APMTracker has not been adjusted for LotV, and, for example, is effectively capturing 22 observations for what is now a 15-minute game. If my guess is right, then perhaps the easiest fix is to fix that. |
Thanks a lot for the pointers - I managed to build something that looks like it fixed it. 😃 It turns out two APMTrackers are available and it looks like sc2reader uses the one specified in |
Fix for combat part of ggtracker/ggtrackerstack#28.