Heroes of Hammerwatch

Heroes of Hammerwatch

Not enough ratings
DPS Meter
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
6.450 KB
12 May, 2020 @ 6:26pm
2 Jun, 2020 @ 5:05pm
7 Change Notes ( view )

Subscribe to download
DPS Meter

Description
READ FOR HOW-TO-USE (or just yolo-install and you'll see nothing)


TLDWR: "track dps" in console


This mod calculates DPS (damage per second) and other stats in real-time and saves it to console variables. This allows to use the in-game not-so-well-known functions such as "track" and "plot". For more information on those commands see http://wiki.heroesofhammerwatch.com/Commands#unsorted_commands .


Looking at the Description image, you see the "dps" and "dps_highest" variables being tracked and "dps_val" variable being plotted.


The following console variables are calculated by the plugin :

1- Formatted values :
Those are strings, to be used with "track"; to "plot", you need to use the "_val" version. E.g. 'track dps'.
dps - damage done in the last second
dps_highest - highest dps reached in the level
dps_avg (gives the average DPS done over X seconds; X = dps_avg_time)
dps_avg_highest (gives the highest value of dps_val_avg reached on the level)
dps_recent_highest (gives the highest value of dps over the X last seconds; X = dps_avg_time)
dps_recent_single_highest (gives the highest damage instance done in the X last seconds; X = dps_avg_time)

2- Unformatted values:
Those are integer values, which allow the game to "plot" them. It will overflow starting at 2^31 and you'll see strange plot behaviour around those values. E.g. 'plot 60 dps_val'.
dps_val
dps_val_highest (previously named dps_highest_val)
dps_val_avg (gives the average DPS done over X seconds; X = dps_avg_time)
dps_val_avg_highest (gives the highest value of dps_val_avg reached on the level)
dps_val_recent_highest (gives the highest value of dps over the X last seconds; X = dps_avg_time)
dps_val_recent_single_highest (gives the highest damage instance done in the X last seconds; X = dps_avg_time)


And the following console variables are used for configuration :
dps_short - Do you want to use short/letter form (123.3k) or long form (123 300) ?
dps_long_separator - If using long form, what is the thousand separator (used starting at 10k damage) ? Default ' ' (space).
dps_avg_time - Number of seconds for the "recent" and "avg" stats

If you find the plot/track annoying, you can remove them by closing your game, or use "cs_show_vars 0" to hide ALL variable tracking/plotting. (Please devs, option to remove :D)

-----

Github w/ bin (for GOG): https://github.com/TheMadSword/heroesofhammerwatch_dps_meter

For dps calculation, code uses a circular queue to O(1) amortized add damage ( O(1) normally, O(n) for array recopy if too many damage instance).
For avg dps calculation, "buckets" (collection of 0.5 seconds) are considered and summarized to calculate stats.

-----

V 1.1 Added _recent and _avg trackable variables/functionalities. (02-06-2020)

V 1.0 Initial release (14-05-2020)

Special thanks : Kelly for the support
Popular Discussions View All (2)
1
14 May, 2020 @ 9:25pm
Bug reports
RedSword
0
14 May, 2020 @ 6:20pm
Todo list
RedSword
5 Comments
kahbee 7 Jul, 2021 @ 7:13pm 
doesnt work
Yukan Godan 19 Apr, 2021 @ 9:50pm 
For anyone else that needs it:

type `track dps` the console to see it represented as a number in the top right. To plot, try `plot 60 dps_val`
Tankpuss 7 Jan, 2021 @ 8:26am 
Your explanation isn't very helpful for someone who doesn't know whats up. do I type track dps and plot dps_val? track dps gives no errors, but plot dps_val says plot has 2 arguments: int, string. This doesn't make any sense to people who didn't make it or dive into coding...
RedSword  [author] 7 Aug, 2020 @ 12:29pm 
Is the mod enabled ?
Little Bill 20 Jun, 2020 @ 1:57pm 
Installed mod, but having issues. I'm typing "track dps" in console but getting no results.