arcdps: gw2 dps meter (and general combat metrics tool)

how to install, update, or uninstall
 place d3d11.dll next to gw2-64.exe while the game is not running, optionally can be renamed to dxgi.dll.
 addons and arcdps config folder will be created next to gw2-64.exe after starting the client.
 to update, replace dll.
 to reset, exit gw2 and remove the config folder above.
 to remove, exit gw2 and delete the dll.
 expect to have to update after major game changes.
 most errors will disable logging and extension data.

how to use
 don't be a dick.
 by default, holding alt and shift is required for hotkeys, t is the hotkey for options.
 right click on windows to bring up their independent context menu options (if available).

something isn't working
 check your 'gw2 install dir/addons/arcdps/' folder for an arcdps.log.
 if nothing is drawn make sure the dll is in the right place.
 if the game crashes at character select, some other application is interfering (razer cortex, razer synapse).
 if you get an image modified error, some other application is interfering (eg bitdefender, citrix 22, razer cortex, razer synapse, groupy).
 if windows are drawn but a hotkey isn't working, some other application may have a global hook installed (zoom).
 if you get a file creation error, make sure gw2 has read/write permission to the paths mentioned.
 if you notice an issue in accuracy, compare area skills vs self skills, try and isolate which gear/buff/trait may be causing it.
 if you suspect arcdps as the cause of a crash, remove all addons and chainloads and try to repeat the crash.
 if your issue is not in the discord pins, describe it in detail and attach the latest complete arcdps log.

evtc logging
 pve: starts on player combat enter, boss set by damage event on boss, stops when all players exit combat.
 wvw: starts on player vs player damage, stops when all squad players exit combat.
 map: starts on joining instance type map, ends on leaving to character select.
 npc id can be found via detail window and looking for species in title, or tooltip in target list after attacking.
 logs are written to 'documents/gw2/addons/arcdps/arcdps.cbtlogs/.../date-time.evtc' by default.

extensions and parsing data
 most extensions and links to parsing tools can be found on elite insights' discord.
 place next to gw2 exe or in gw2 install dir/bin64/.
 api example code and readme:
 evtc writing code and readme:

 place translation in gw2 install dir/addons/arcdps/, named arcdps_lang.ini.
 /u/Snowy1794: (chinese simplified).
 /u/bluelovers: (chinese traditional).
 creating a translation:

 area is missing percent-based damage - not notified by server.
 area is missing siphon damage - not notified by server.
 area is missing healing - not notified by server.
 area is missing combo finishers - not notified by server.
 area is missing buff extension source - not notified by server.
 area condition damage uses simulated attribute building from gear, traits, and buffs, on a simulated server tick.
 area condition damage scaling in levels 1 to 79 is different from the game's scaling.
 area condition damage on-skill-use procs on animation start instead of on skill use - not notified by server.
 area breakbar damage missing on some breakbar changes initiated by damageless skills.
 area breakbar damage missing for breakbar changes that cause a breakbar to recharge (does not affect deactivate).
 area strike damage notify bubble may cause some events (eg. deimos) to be out of range - not notified by server.
 area strips ignore last-stack stability - cc and strip indistinguishable.
 area skill activation will only count skills which have animations (no shouts, no instants) - not notified by server.
 area overstack and applied do not include ignored stacks (lower than lowest existing stack) - not notified by server.

 jun.21.2024: fixed a crash in previous.
 jun.21.2024: added area stats display option to combine background bars across multiple area stats windows.
 jun.21.2024: fixed bar padding style option affecting bar percent.
 jun.21.2024: fixed downs contribution counting too far back since previouses.
 jun.21.2024: prefer last target if target agent is removed.
 jun.21.2024: prevent untarget from changing last target.
 jun.21.2024: strings: updated some strings (removing "don't" in area stats and buffs and flipping checkbox).
 jun.19.2024: fixed some 0 src, 0 dst events being filtered.
 jun.18.2024: possibly fixed contribution ratio going over 100.
 jun.18.2024: evtc: possibly fixed squadmembers not being in the agent table in some situations.
 jun.18.2024: evtc: possibly fixed squad ground markers initial positions.
 jun.14.2024: removed cerus and deimos fractal fight from default list.
 jun.14.2024: fixed update check (manual update required).
 jun.14.2024: evtc: added cbts_arcbuild, src_agent is null-terminated full version string as in arcdps.log.
 jun.14.2024: evtc: fixed missing hitbox widths in previous.
 jun.13.2024: further adjusted some squad stats (damage out/in/contributions as totals).
 jun.13.2024: fixed some bars being initialized grey.
 jun.13.2024: kills contribution clamped to current combat (maybe fix contirbution ratio exceeding 100).
 jun.13.2024: fixed squad and accumulated stats historical juggling in previous.
 jun.13.2024: fixed string formatting and number formatting in some places.
 jun.13.2024: evtc: fixed untagged events at end of log (teamchange).
 jun.13.2024: evtc: fixed death/down events being swapped in previous.
 jun.12.2024: added global option to area stats combat time to store individual durations using squad timing (not retroactive for history).
 jun.12.2024: fixed or maybe changed log end combat duration update behavior to respect combat time from damage option.
 jun.12.2024: fixed buff table unecessary bottom padding when header row and title bar disabled.
 jun.12.2024: added anon mode option to area stats and area buffs display options to hide names, professions, and colours for non-pov.
 jun.12.2024: added kills contribution stat to area stats - damage while down until dead.
 jun.12.2024: added contribution ratio stat to area stats - downs plus kills contribution as percentage of total dps against players.
 jun.12.2024: reworked down count, died count, res time, and res count into squad and accumulated stats.
 jun.12.2024: reworked all squad and accumulated stats to use the history system.
 jun.12.2024: moved area stats persist reset to stats category, reworded.
 jun.12.2024: evtc: logs will include a limited set of statechange events for all participating agents in all modes for nicer replay potential.
 jun.12.2024: evtc: updated statechange docs to be more readable (above events are described as "limited to agent table").
 jun.12.2024: evtc: instanced content logs will include all initialized agents unconditonally.
 jun.12.2024: evtc: non-instanced content logs will filter out agents that do not interact with the squad, or gadgets far or without health.
 jun.12.2024: evtc: removed cbts_last90beforedown, redundant as healthpercent is part of the limited set.
 jun.12.2024: evtc: teamchange will happen at despawn rather than spawn, value is now oldteam.
 jun.12.2024: evtc: targetable will apply to character and players as well (stealth).
 jun.12.2024: evtc: entercombat value will be profid, entercombat buffdmg will be elite spec id (in case of mid-log change).
 jun.12.2024: evtc: added warning if potential run-on boss species id exists in log.
 jun.12.2024: api: set raw elite in agent add.
 jun.09.2024: evtc/api: fixed initial is-active value on some buffs.
 jun.08.2024: changed default log folder name again to "npc name (id)" due to dynamic map names, this change is not retroactive.
 jun.04.2024: added cm ids to default.
 jun.04.2024: changed default log folder name to "map name - npc name", this change is not retroactive.
 jun.04.2024: set minions as eligible to start/set log target (also syncs timing in those cases).
 may.21.2024: removed previous restrictions on valid checks.
 may.21.2024: dll file assembly version changed to 1.yyyy.mdd.hmm.
 may.21.2024: removed defunc option to treat quest/event npcs as bosses.
 apr.24.2024: evtc: fixed missing team events for enemies.
 apr.21.2024: changed valid checks to maybe prevent self loading screns from ending logs.
 apr.21.2024: evtc: added placeholder skills for 0 skill id damage events (eg. finisher kill).
 apr.19.2024: removed defunc option to save/load keybind templates.
 apr.18.2024: evtc: cbts_marker will now send out a 0 event followed by an event for each marker (every count change).
 apr.16.2024: fixed clearing group historical failing since previous.
 apr.16.2024: updated for apr16 game build maybe.
 apr.16.2024: fixed buff table tab 2 stacking not always set proper.
 apr.16.2024: fixed buff table calculating both tabs instead of active only.
 apr.16.2024: fixed skill cancel threshold to be minimum of tooltip and first timing.
 apr.16.2024: use bigger allocation sizes (fixes one case of fps drops in 30min wvw keep fights and similar).
 apr.16.2024: check arcdps identifier export before treating a dll as an extension (fix warning).
 mar.30.2024: fixed marker event spam in previous.
 mar.29.2024: fixed a crash on buff table with self only, self top set.
 mar.29.2024: fixed buff table layout with self top, hide header row.
 mar.29.2024: fixed buff table using wrong stacking type since previous.
 mar.29.2024: added buff table buff name check on intialization (showing id until buff first seen).
 mar.29.2024: hide buff table buff list stacking type behind buff lists option.
 mar.29.2024: added buff table option to toggle between buff lists.
 mar.29.2024: fixed a rare crash.
 mar.29.2024: fixed wvw log conditions when both wvw logging and map logging options are enabled.
 mar.28.2024: fixed weapon stats not applying until after first weapon swap.
 mar.28.2024: evtc: added cbts_squadmarker, src and dst agent are float xyz, skillid is index. inf if not set.
 mar.28.2024: evtc: added a cbts_marker event for markers being removed (id 0).
 mar.28.2024: evtc: added cbts_marker events for agents that have a marker added (in addition to at log start).
 mar.25.2024: maybe mar25 game update fix, it gets to the golem.
 mar.24.2024: added buff table option to hide header row.
 mar.24.2024: fixed sorting by area stats bar width calculation.
 mar.24.2024: added combat time option to always show current combat.
 mar.24.2024: fixed a sim issue since previous game build.
 mar.24.2024: removed defunc option to redirect system messages to misc.
 mar.19.2024: mar19 pattern fix.
 mar.13.2024: changed buff table default sorting to subgroup.
 mar.13.2024: changed buff table sort by area stats option to be selectable.
 mar.13.2024: copied buff table sort by area stats option to area stats.
 mar.13.2024: enabled area stats subgroup and profession sorting on non-basic stats.
 mar.13.2024: added area stats option to also match scroll position if matching sort.
 mar.09.2024: reworded some rt click options in area stats to better represent current behavior.
 mar.09.2024: moved format string and other options to better group similar options.
 mar.09.2024: added buff table option to choose area stats index to follow sorting.
 mar.09.2024: removed buff table option to hide button bar, use the individual options instead.
 mar.09.2024: removed defunc button to reset window positions.
 mar.07.2024: moved window menu around in options to better indicate intent of previous change.
 mar.06.2024: removed original area stats and buff table logic, extras are now the primary system.
 mar.04.2024: maybe gw2 update fix.
 feb.20.2024: override duration remaining on buffs with infinite duration to also be infinite.
 feb.20.2024: added buff window option to hide title button bar categories.
 feb.07.2024: fix some things maybe.
 feb.05.2024: fix ram limit log trimmer since some time ago.
 feb.05.2024: also fixes some oddities like individual history failing.
 feb.05.2024: fall back to global excludes setting if none set in area stats windows.
 feb.05.2024: added overrides for ruleset via guild hall buff presence.
 feb.05.2024: set as wvw log, using wvw conditions, if controlled player has a ruleset buff.
 feb.05.2024: evtc: added cbts_ruleset if controlled player is using a rulset.

 here (20240621-223841)