kompolompoandClaude Sonnet 5 874cadc0f7 Fix nil worldLatency tooltip error, add copy-errors UI, gradient title
- Fix OnEnter tooltip crash: attempt to concatenate local
  'worldLatency' (a nil value) when GetNetStats() hasn't populated
  latency yet (e.g. right after login/loading screen); fall back to 0
  like OctoLatency_UpdateText already does
- Add /octolat copyerrors and a minimap button opening a copy-errors
  window (auto-highlighted EditBox), since vanilla WoW chat text can't
  be selected/copied directly
- Minimap button also right-click toggles the latency frame and can be
  dragged to reposition
- Color the addon's title in the AddOns list with a per-letter
  dark-to-light green gradient
- Add CHANGELOG.md

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-05 12:01:39 +02:00
2026-08-30 09:42:08 +00:00

OctoLatency

A lightweight latency monitor for Vanilla WoW (1.12.1). Shows a small, movable, color-coded latency readout on your screen.

What it does

  • Displays your current world latency (falls back to home latency if world isn't available) as NNN ms next to your screen.
  • Color-codes the number so you can tell your connection quality at a glance:
    • Green — under 150 ms (good)
    • Yellow — 150-350 ms (moderate)
    • Red — over 350 ms (critical)
  • Hover the frame for a tooltip with home latency, world latency, and bandwidth.
  • Updates every 2 seconds (not every frame), so it has no meaningful impact on game performance.

Options

There's no settings panel — the addon is intentionally minimal. The only "option" is position:

  • Move it: left-click and drag the frame anywhere on screen. Its position is saved automatically and restored on your next login.

Error reporting

If something inside the addon errors (e.g. an unexpected GetNetStats() response), it's caught instead of spamming a Lua error popup, and logged for you to report:

  • /octolat errors — print the last 20 logged errors (with timestamps) to chat.
  • /octolat copyerrors — open a copy-paste window with the same log, since vanilla WoW's chat frame doesn't let you select/copy its text. The window opens with the text already highlighted, so you can just press Ctrl+C.
  • /octolat clearerrors — clear the error log.

There's also a minimap button for the same purpose without typing a command:

  • Left-click — open the copy-errors window.
  • Right-click — toggle the latency frame on/off.
  • Drag — reposition the button around the minimap.

The log is also saved to your SavedVariables file, so it survives logout/relog.

S
Description
Lightweight latency monitor with color-coding
Readme MIT
67 KiB
Languages
Lua 100%