Thanks for the feedback!This tool shows strange numbers. It's like 220+ for me.
But in Starcraft 2 I have ~100, and in aoe2 with other tool like ~80.
Are you sure what this one works correctly?
Also, it'd be nice to see an average apm after game (maybe mayke a hotkey for start\stop and pause\unpause).
Btw, the tool is nice. I'd use it in my first person streams, if I'd be sure in numbers :S Really, difference is too big.
add: I've counted my apm after game (with your log file) and it's 216. Also, only LMC and RMC is 110. Log looks trusty, but it's strange :?
I have a couple of comments
- The APM counter in Starcraft is weird. Blizzard have a very different definition of APM than me and, as such, it counts different things. What those different things are, I really don't know. In addition (according to this: http://wiki.teamliquid.net/starcraft2/APM) it is also off by a factor of 38% as it calculates it at the wrong game speed.
- You say that the log file matches what is displayed on the screen. This implies to me that there is nothing wrong with the calculation but any potential error is with the detection of actions or the selection of actions to detect.
- A professional typist has an APM of 250-400 (from wikipedia). Given the amount of clicking in AoE, is would say that your 220 APM is probably accurate.
- You call the log book 'strange'. Is there anything that I can do to make it easier to use / understand?
- Thanks for the idea on the hotkey. Once we get the numbers sorted I will start development on it.
From all of this, I agree that the tool is different from other APM counters. I believe that there aren't any bugs in the code that are causing this (though I could be very, very wrong :P ). From analysis of the log file, both the detection and the calculation of APM appear to be correct. This also seems to be verified by your analysis of the log file too. I have verified it with a timer on my phone so the timing code is fine too. This only leaves one thing - I have designed it incorrectly i.e. my interpretation of APM, specifically actions, is not what is commonly accepted. As I posted earlier in the the thread, here is my list of everything that I count as an action:
1) One click counts as one action. Clicking and dragging only counts as one action as it only counts the release of the mouse button
2) A double click counts as two actions
3) Every click of the mousewheel counts as one action
4) Any keypress counts as one action. e.g. Pressing 'H' counts as one action and 'Ctrl' + 'S' counts as 2.
What is your interpretation of APM? Does this agree with what you want? I am pretty sure that Starcraft does number 2 and 4 differently (in addition to the 38% adjustment).
Thanks again.