Skip to content

Commit 0457c24

Browse files
cscoder69claude
andcommitted
v1.2.3: name lookups cached per quest log scan, notes, changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f1dd0d6 commit 0457c24

4 files changed

Lines changed: 39 additions & 5 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- **Fix:** a mob needed by two quests kept no icon once one quest was done (for example 3/3 done, the other still at 2/8). It is marked again, with the count of the quest that still needs it when that quest names the mob.
66
- **Report a bug** button in the options window, with the link to the issues page.
77
- **/cqi debug**: a short report to copy (versions, client, language, main settings, place, other nameplate and quest addons, the addon's last errors), ready to paste in a bug report.
8+
- Lighter with a full quest log and crowded areas (mob names are looked up once per quest log change).
89
- Every release is now checked automatically before it is published.
910

1011
## v1.2.2

‎CLAUDE.md‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CS.Coder - Quest Indicator — notes for Claude (and any dev)
22

3-
Read this first when working on the addon. Last updated 2026-11-09 (v1.2.2 published).
3+
Read this first when working on the addon. Last updated 2026-11-10 (v1.2.3 published).
44

55
## Working with the user
66
- Chat in **Brazilian Portuguese**; code, comments, commits, docs and in-game text in **English**.
@@ -137,7 +137,7 @@ live in game after `/reload`.
137137
game closed meanwhile). At 100% it plays on Master.
138138
- **Hide in instanced content** (`hideInInstances`, on by default; the user's tester got errors in
139139
dungeons). `UsablePlate(unit)` never returns forbidden plates; plates are measured outside instances only.
140-
- **Bug reports (v1.2.3, branch `feature/v1.2.3`, NOT released: the user tests it next day, 2026-11-10):** `/cqi debug` (`ShowDebug`: versions, client, language, main switches,
140+
- **Bug reports (v1.2.3, released 2026-11-10):** `/cqi debug` (`ShowDebug`: versions, client, language, main switches,
141141
instance, plate cvars, other quest/nameplate addons, last errors) and a "Report a bug" button
142142
(issues URL), both in the copy window (`OpenShareWindow("copy", title, hint, text)`). Errors that
143143
mention the addon are kept in `root.lastErrors` (last 10) by a wrapper around the current error
@@ -194,8 +194,15 @@ whether the mock is missing an API (e.g. it once returned nil for `GetHighlightT
194194
- 1.2.2 (2026-11-09): own options window in a OneForAll-like look (Settings keeps a landing page),
195195
check mark when done, animated count, ready alert, minimap summary, quick themes, sound preview
196196
and volume, hide in instanced content (default on), forbidden-plate safety.
197+
- 1.2.3 (2026-11-10): two quests on one mob keep the mark, /cqi debug + Report a bug, error
198+
capture, name lookups cached per quest log scan, CHANGELOG.md for CurseForge, release check job.
197199

198200
## Ideas the user liked, not done yet
201+
- **Ideas noted 2026-11-10 (user: "anota mas não execute"):** special glow when a quest has one
202+
objective left; reddish warning for quests well above your level; hide a mob's icon while you
203+
fight it (back if you leave combat without killing it); ground glow around quest items; search
204+
box in the options; preview scenarios (daily, group, almost done, combat); undo the last change;
205+
all counts on a mob shared by several quests ("2/8 · 1/5"); translation help link on CurseForge.
199206
- **Ideas reviewed with the user on 2026-11-09 (after v1.2.2):**
200207
- Next candidate (user: "interessante"): **quest item button**: when you target the mob a quest
201208
item must be used on, a small button with that item appears (secure action button: combat rules).

‎CSCoder_QuestIndicator.lua‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,16 +334,28 @@ local objectiveTexts = {} -- { text = lower case objective, kind = quest kind }
334334
-- What the last quest log scan found: unfinished objectives per quest (the minimap tooltip
335335
-- summary) and when an objective last finished (icons that stop being needed right after show
336336
-- the check mark).
337-
local questLog = { summary = {}, completedAt = -100 }
337+
local questLog = { summary = {}, completedAt = -100, byName = {} }
338338

339339
-- A name found in an unfinished objective ("Kobold Vermin slain: 3/10", "Crate of Supplies:
340340
-- 1/4"): its quest kind and progress.
341+
-- Answers are kept per name until the quest log changes (questLog.byName is emptied with each
342+
-- scan), so a crowded area with a full quest log stays light: one search per mob name, not one
343+
-- per nameplate every second.
341344
local function ObjectiveKindForName(name)
342345
if not name or name == "" then return nil end
343346
name = name:lower()
344-
for _, objective in ipairs(objectiveTexts) do
345-
if objective.text:find(name, 1, true) then return objective.kind, ProgressText(objective.text) end
347+
local known = questLog.byName[name]
348+
if known == nil then
349+
known = false
350+
for _, objective in ipairs(objectiveTexts) do
351+
if objective.text:find(name, 1, true) then
352+
known = { kind = objective.kind, progress = ProgressText(objective.text) }
353+
break
354+
end
355+
end
356+
questLog.byName[name] = known
346357
end
358+
if known then return known.kind, known.progress end
347359
return nil
348360
end
349361

@@ -776,6 +788,7 @@ end
776788

777789
function RebuildObjectiveTexts()
778790
wipe(objectiveTexts)
791+
wipe(questLog.byName)
779792
if not (C_QuestLog and C_QuestLog.GetQuestObjectives) then return end
780793
-- An objective that was unfinished on the last scan and is finished now plays the sound
781794
-- (once per scan); a quest whose last objective just finished is announced as ready.

‎Locales.lua‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,3 +1266,16 @@ local multiFix = {
12661266
for code, text in pairs(multiFix) do
12671267
locales[code].NEWS_TEXT = "|cffffd200•|r " .. text .. "\n" .. locales[code].NEWS_TEXT
12681268
end
1269+
1270+
-- What's new 1.2.3: lighter with a full quest log.
1271+
local perf = {
1272+
enUS = "Lighter with a full quest log and crowded areas.",
1273+
ptBR = "Mais leve com o registro de missões cheio e em áreas lotadas.",
1274+
esES = "Más ligero con el registro de misiones lleno y en zonas abarrotadas.",
1275+
deDE = "Leichter bei vollem Questlog und in vollen Gebieten.",
1276+
frFR = "Plus léger avec un journal de quêtes plein et dans les zones bondées.",
1277+
itIT = "Più leggero con il registro delle missioni pieno e nelle zone affollate.",
1278+
}
1279+
for code, text in pairs(perf) do
1280+
locales[code].NEWS_TEXT = locales[code].NEWS_TEXT .. "\n|cffffd200•|r " .. text
1281+
end

0 commit comments

Comments
 (0)