Skip to content

Review follow-ups: rank lookup backoff, raid ready chat, emote clicks, war board on world swap - #34

Merged
burgerfan41 merged 4 commits into
masterfrom
fix/review-followups
Oct 18, 2026
Merged

burgerfan41 merged 4 commits into
masterfrom
fix/review-followups

Conversation

@burgerfan41

Copy link
Copy Markdown
Contributor

Fixes from the review of the last 13 commits. One commit per fix, so it can be reviewed commit by commit.

fix(rewards): back off guild rank lookups for 60s after any attempt
A failed rank lookup (API error, or a player with no guild) never recorded the attempt, so with any container open the menu scrapers fired one Wynncraft API request after another. Now there's at least 60s between attempts, successful or not. ensureFresh is also synchronized, since the websocket thread calls it.

fix(raid): ignore chat lines containing a colon in ready detection
Guild chat like "food is ready!" counted as someone readying up, and "I would like to start a raid!" reset the tracker. Wynncraft's own ready and start lines never contain a colon; player chat always does.

fix(emote): drop duplicate click sounds on emote page buttons
Vanilla buttons already play the click sound. Add, Delete, Set Active and Randomize were playing it twice.

fix(war): keep the war board across world swaps and drop queuers that never get a timer

  • Swapping worlds wiped the war board even though the bridge connection stays open, and the bot only sends the board to new connections. So queuer and goer heads stayed gone until someone changed something. A world join now clears only that world's sidebar tracking; a disconnect still clears everything.
  • Board updates now drop queuers the bot has dropped. Queuers only this client knows about (from chat reports, or attacks the bot hasn't echoed back yet) are dropped after 30s with no attack timer.

Testing: 288 tests pass. New tests cover the colon filter and the queuer and world-swap behaviour.

Merge order with #30: if #30 merges first, this conflicts in the world-join handler in EdenModClient.java, since both add lines there. Keep both sides.

A failed lookup (API error or a guildless player) never stamped lastRefresh, so the per-tick menu scrapers fired one Wynncraft API request after another whenever a container was open without a known rank. ensureFresh is also reached from the websocket thread, so it is now synchronized.
The ready/start patterns match anywhere in a line, so guild chat like "food is ready!" counted as a player readying and "I would like to start a raid!" reset the tracker. Wynncraft's own lines never contain a colon; player chat always does.
Vanilla buttons already play the click sound; the extra playDownSound calls made add/delete/set-active/randomize click twice.
… never get a timer

A world swap fires JOIN while the bridge socket stays open, and the bot only sends the board to new connections, so wiping it on JOIN left queuer and goer heads gone until the next board change. JOIN now clears only this world's sidebar tracking; disconnect still clears everything.

Board-owned queuers now follow the board (a dropped one is removed instead of being kept by putIfAbsent), and local-only queuers (chat reports, unechoed attacks) are dropped after 30s with no attack timer.
@burgerfan41
burgerfan41 merged commit cac4ea8 into master Oct 18, 2026
1 check passed
@burgerfan41
burgerfan41 deleted the fix/review-followups branch October 18, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant