DamageTracker, a damage log to assist in balancing content, is a script and some GUI Action wrappers that track damage dealt (and dps in both game and real time) and damage taken by players, unit types, and effect types. Implementation is simple as copy-paste and calling a few actions (or functions for galaxy scripters).
Call Start Damage Tracking / DmgTrack_StartTracking() to initialize the damage tracker when the content sequence begins.
Call Finish Damage Tracking / DmgTrack_FinishTracking() to stop tracking, output the stats to a logfile, and clear the stats.
Call Output Damage Stats / DmgTrack_OutputToLogfile() to immediately output the stats to a logfile.
Call Clear Damage Stats / DmgTrack_ClearTable() to immediately clear the stats.
Damage stats are formatted thusly:
[ Player : Unit Type : Effect Type ] Damage Dealt: W | Damage Taken: X | DPGS: Y | DPRS: Z |
Player will display either Player and its number or "Null Player" if the player is "null".
Unit Type will display the unit type or "Null Unit" if the unit is null.
Effect Type will display the effect type or "Null Effect" if the effect is null.
Damage Dealt will be followed by the total damage dealt by the source.
Damage Taken will be followed by the total damage the player or unit type has taken.
DPGS will be followed by the damage dealt per game second by the source.
DPRS will be followed by the damage dealt per real second by the source.
Limitations of the current implementation include unsorted output to the logfile and an upper bound on the damage value due to the fixed point limit of 524287.999755859375, so damage totals exceeding that value will overflow and result in negative stats.
DamageTracker, a damage log to assist in balancing content, is a script and some GUI Action wrappers that track damage dealt (and dps in both game and real time) and damage taken by players, unit types, and effect types. Implementation is simple as copy-paste and calling a few actions (or functions for galaxy scripters).
Damage stats are formatted thusly:
[ Player : Unit Type : Effect Type ] Damage Dealt: W | Damage Taken: X | DPGS: Y | DPRS: Z |
Limitations of the current implementation include unsorted output to the logfile and an upper bound on the damage value due to the fixed point limit of 524287.999755859375, so damage totals exceeding that value will overflow and result in negative stats.
Not approved. Does not comply with submission guidelines.
Oops, sorry, I'll get right on that.