promotional bannermobile promotional banner

SwedgeTimer 2

Bringing back SwedgeTimer and its one universal swing-timer build for every supported WoW client family — no per-client downloads. Hunter, Warrior, Druid, Shaman, Paladin, and Rogue. Plus with all prior features and new improved ones.
Back to Files

SwedgeTimer v2.2.2

File nameSwedgeTimer.zip
Uploader
AcidBombAcidBomb
Uploaded
Nov 26, 2026
Downloads
395
Size
7.6 MB
Flavors
Classic TBCClassicTitan Reforged ClassicForever
File ID
9836872
Type
R
Release
Supported game versions
  • 3.80.2
  • 2.5.6
  • 1.60.1
  • 1.15.9

What's new

Changelog

[2.2.2]

Verification status: offline gate only — bash tests/run.sh 60 steps / 0 failed (incl. toc_check and the new stance_icon_state suite); luacheck . 5 warnings / 0 errors in 107 files; wowlua_ls check . 0 errors. ALL in-client behaviour on WoW Forever/Camelot and the classic clients is UNCONFIRMED until the operator runs the validation matrix in bench/inclient_validation_matrix_v222_2026-11-16.md. No in-client pass is recorded for 2.2.2.

Changed

  • Version 2.2.2: SwedgeTimer.toc and main.lua report version 2.2.2 (the single TOC and its frozen Interface line — 11509, 20506, 38002, 40402, 50500, 120100, 120105, 16001 — are unchanged).
  • Client scope correction (Forever = Camelot): the primary target is WoW Forever = Camelot, Interface 16001, WOW_PROJECT_CAMELOT = 18, Mainline-code but not retail. Forever is never gated on st.is_mainline (which is also true for retail); the swing/guide paths gate on st.family == "FOREVER", a capability probe, or swing activity. Era, TBC Anniversary 20506 and Wrath/Titanforge 38002 must keep working; Cata/MoP/superseded/retail swing-timer concerns are deprioritised. The full rationale is in bench/scope_lock_v222_2026-11-16.md.
  • Hunter bottom distance bar removed (main.lua, option_tables.lua, config_presets.lua): the standalone horizontal ranged-distance bar (weave_range.lua) is no longer created for hunters — the left-side range helper (hunter_ui.lua) is their single range aid. A wiring-layer gate makes ST:init_weave_range a no-op for HUNTER (including the world-entry retry); a one-time rawget/rawset migration forces a saved hunter key OFF, and the "Ranged distance bar" option is hidden for hunters. Non-hunters keep the opt-in bar unchanged. The runtime diag names the retirement with a weave_hunter=retired(left-helper-only,v2.2.2) receipt.

Added

  • Left-side aspect/stance icon (stance_icon.lua, config_presets.lua, option_tables.lua, SwedgeTimer.toc): one 20 px icon beside the swing bars shows the player's active aspect / stance / seal / shield / form / stealth for WARRIOR, PALADIN, SHAMAN, DRUID and ROGUE. It is visible in and out of combat (it anchors to the never-hidden primary-hand anchor frame, not to an activity-gated bar), and hides rather than guess when no anchor exists. Hunter is deliberately excluded — its existing aspect icon (hunter_ui.update_aspect_icon) is the hunter renderer. The state contract is explicit and documented: nil = the client could not answer, false = the scan completed and no stance is active, a string = the matched state key. Reference id lists come from bench/aura_row_reference_2026-11-08.md §4.8 (WARRIOR 3, PALADIN 36, SHAMAN 8, DRUID 6, ROGUE 4 ids; multi-rank ids collapse to one key). Ships on by default (the operator request is the gate); the option is "Stance icon" under the shared Behaviour page and is hidden for hunters. Backed by tests/stance_icon_state.lua (277 checks).

Performance

  • HUD/layout micro-optimisations (t21): hud.lua passes its already-read tick clock into HUD.spell_known_allows (one fewer get_time call per icon per 20 Hz tick); power_bar.lua resolves each hand's enabled row once instead of twice per poll; aura_icons.lua hoists per-poll anchor-order table literals to module constants; rotationtext.lua uses the pcall-guarded font chain. No throttle or secret-gate behaviour changed.
  • Safe input-query caching (classes/rogue.lua): unresolved APL aura-name probes are negative-cached with the existing bounded 5 s retry, removing per-frame GetSpellInfo calls while retaining cold-spellbook recovery.

Fixed

  • Hunter ranged-bar GCD underlay restored on Forever (bars.lua, main.lua; t22): the "range bar used to show a GCD" report was the ranged swing bar's GCD underlay, not the distance bar. On Forever restricted states the numeric self.gcd.expires gate never fires (LibGlobalCooldown takes its opaque duration-object channel), so the underlay never painted. The ranged bar now carries a real Cooldown frame; ST:set_gcd_object_underlay hands gcd_object straight to the sanctioned CooldownFrame:SetCooldownFromDurationObject(obj, true) sink — no number is ever derived from the opaque object — with a compat is_secret probe and object latching. The legacy numeric path is unchanged for classic-line clients and Forever out of restriction. The rogue HUD consumer (t36) uses the same plain-handle provider shape as the Forever guide.
  • Druid (classes/druid.lua): guide gather publishes inputs_unknown on every tick (a stale unknown bit no longer suppresses the guide); evaluate/input threading reconciled.
  • Paladin (classes/paladin.lua): restored the unreachable Holy Shock FCFS slot-5 eligibility and display arm; routed the CLEU player-identity check through api.UnitGUID for secret-safe identity; consolidated the guide gather to one unconditional unknown write.
  • Rogue (classes/rogue.lua): get_time_to_die now clears the TTD velocity whenever the health baseline is unreadable/dead (no stale EMA-driven verdict); APL aura-name misses are negative-cached; the Forever HUD GCD borrow supplies the plain object handle with no object-to-number derivation and clears both fields on reused tables.
  • Shaman (classes/shaman.lua): the weave-aura scan's early-exit set now includes Clearcasting (a trailing proc is no longer skipped); the gather publishes inputs_unknown every tick. Both fixes carry load-bearing pins in the owning suite.
  • Warrior (classes/warrior.lua): pcall-guarded the name-path GetSpellInfo and Forever Victory Rush reads and the Cleave IsCurrentSpell predicate (a cold/restricted throw no longer aborts the guide tick); the gather now clears the stale unknown bit on reused profile tables.
  • Hunter (classes/hunter.lua): guide gather publishes inputs_unknown on every tick; no object-to-number derivation was introduced.
  • Swing bars no longer pop at the old position then jump (main.lua, hunter_ui.lua, classes/hunter.lua): the hunter melee stack is now a layout invariant applied at build, on the always-running anchor tick, and from a new ST:class_prepare_bar_show seam called by ST:show_bar before the first Show(). The stale LibWindow row is repaired before the frame becomes visible, so combat start no longer paints the MH/OH bars at the old row for a frame and then moves them. The pass is idempotent and reentrancy-guarded; no saved key is written.
  • Power bar visible in and out of combat, at the bars' width (power_bar.lua): the bar now mounts on the hand's never-hidden anchor_frame with a relative TOPLEFT → BOTTOMLEFT point (not on an activity-gated bar_frame with an absolute rect copy), so it is visible whenever the class has an enabled melee row, follows a drag/resize/melee-stack move with no re-point, and defaults to the swing bars' own 275 px width (creation/fallback width; height stays 14 px). On Forever a restricted width read degrades to that default instead of throwing the tick. Row choice is still offhand-first when the class can use an offhand.
  • Hunter melee hands hide at ranged, ranged hides in melee (main.lua, classes/hunter.lua): a new class hand veto runs after the shared show/activity gates. On WoW Forever the decision uses the client's own C_SwingTimer.IsTargetWithinSwingRange query through api.is_target_in_swing_range (the Blizzard auto-attack range API); the UnitDistance/UnitPosition state is only the fallback for clients where that query answers nil. With an attackable target and a readable answer, the mainhand/offhand hide outside melee range and the ranged hand hides inside it (an armed Auto Shot can no longer keep the ranged bar up in the dead zone). No target, an unknown distance or an active practice session is a no-op; the new range reason is recorded for /st diag. Never force-shows.
  • Hunter aspect icon stays visible out of combat (hunter_ui.lua): the aspect icon is evaluated even when the ranged show rule is false (the ranged widget set still hides), so the identity display is visible in and out of combat. Its aura read now consumes the full eleven-value api.UnitAuraRaw shape (ten values + restricted), checks api.is_secret before any nil test/table key, treats a restricted row as keep-scanning rather than end-of-list, and stops at a genuine empty row instead of walking all 40 indices.
  • Forever geometry hardening (power_bar.lua, hunter_ui.lua): frame-width reads that feed comparisons are guarded with api.is_secret; a restricted width falls back to the configured/default width instead of throwing and quarantining the power bar or the hunter melee stack.

Hardening

  • Forever runtime diagnostics (diag.lua): the scalar renderers (show/flag/number_text/progress_text/yes_no) now degrade a secret to ? through compat's is_secret probe before tostring/string.format/comparison, so a restricted read can never throw out of a /st diag line.
  • Forever guide cooldown contract (forever_guide.lua): is_ready probes canaccessvalue before comparing a numeric cooldown, captures the fifth restricted return of GetSpellCooldown in its fallback, and flags the tick unknown — a secret timing read can never become "ready".
  • Aura/aspect rows when bars are hidden (HEAD f9543b7): a stable anchor frame keeps buff/debuff rows and the hunter aspect icon shown when every swing/cast/range bar is hidden; a raw aura-row reader passes restricted rows through by identity for aspect matching.
  • Swing engine & clock: the Forever PLAYER_SWING engine (swing_source.lua) degrades restricted/malformed speed reads without inventing cycles; all timestamps use st.api.get_time() (no raw GetTimePreciseSec outside compat.lua). The protected cooldown sink is called under pcall but remains UNCONFIRMED in-client (pcall is not taint proof).
  • Open items (see the matrix): U1 (duration-object sink permitted in restricted Forever combat), U2 (native swing-range band answers for an enemy in/out of instance), and a non-blocking P2 follow-up to pcall-harden compat.api.GetSpellInfo against a cold/restricted-book throw (enumerated in bench/inclient_validation_matrix_v222_2026-11-16.md).

This mod has no additional files