Commit Graph

240 Commits

Author SHA1 Message Date
Xurkon 7eb59e9259 debug: Add detailed debug to QuestLogTitleButton_OnClick hook 2026-03-20 23:05:41 -05:00
Xurkon 5916be505f debug: Add print to QuestLogTitleButton_OnClick hook 2026-03-20 22:49:03 -05:00
Xurkon 7fb8155af1 debug: Add SetOnClick debug print 2026-03-20 22:13:03 -05:00
Xurkon 4dcd644ac2 debug: Add print to OnClickQuest 2026-03-20 22:08:08 -05:00
Xurkon 4a78619416 test: Add click debug test 2026-03-20 22:04:51 -05:00
Xurkon 6e6eb3226e debug: Added click debug logging to TrackerLinePool.OnClickQuest 2026-03-20 21:41:16 -05:00
Xurkon 2df8a7b96d fix: v1.4.4 - AceGUI pool fixes, event handling nil checks, QuestieLearner serialization, l10n format fixes 2026-03-20 21:16:58 -05:00
Xurkon f32520078c fix: rewrite route optimizer with proper debug logging and coordinate extraction 2026-03-19 22:07:07 -05:00
Xurkon 6814ab4869 fix: import QuestieRouteOptimizer in slash command handler 2026-03-19 21:56:45 -05:00
Xurkon 156a184da4 fix: rewrite QuestRouteOptimizer module 2026-03-19 21:48:02 -05:00
Xurkon 7857340c37 fix: nil check for QuestieRouteOptimizer.Update 2026-03-19 21:37:05 -05:00
Xurkon 971d780a9b feat: Add Quest Route Optimization feature 2026-03-19 21:30:05 -05:00
Xurkon 5d94cf8f67 feat: v1.4.0 - Code review fixes and taint resolution
- C_Timer OnUpdate uses elapsed param
- IsAchievementCompletion checks completion boolean
- C_Map.GetPlayerMapPosition fixes
- QuestieLearner GUID function forward declarations
- Taint guards on secure hooks (InCombatLockdown + pcall)

Fixes ADDON_ACTION_BLOCKED: UseAction() errors
2026-03-19 19:24:24 -05:00
Xurkon 5cb64a4c30 feat: release v1.3.9 - fix BackdropTemplate crash and quest re-tracking reliability 2026-03-19 15:14:05 -05:00
Xurkon c5c3897421 feat: idempotent quest tracking and robustness improvements v1.3.7 2026-03-19 00:22:26 -05:00
Xurkon 301d7185fb release: v1.3.6 2026-03-18 23:16:02 -05:00
Xurkon b8ee31e2eb Fix tooltip progress caching for dynamically learned AI spawns 2026-03-18 22:55:53 -05:00
Xurkon 9ad5272ed6 fix: correctly detect legacy xpcall dropping varargs 2026-03-18 22:18:14 -05:00
Xurkon afd2dc82b9 refactor: simplify and perfect Lua 5.0 select polyfill 2026-03-18 22:10:24 -05:00
Xurkon d1f757e2bb fix: add variadic xpcall polyfill for older clients 2026-03-18 21:38:53 -05:00
Xurkon 28fc4d5095 chore: release v1.3.5 - Comprehensive Taint & Architecture Fixes 2026-03-18 21:27:48 -05:00
Xurkon 647981f8d8 fix: implement tocVersion guard for GameVersionError.lua and update changelogs 2026-03-18 17:52:38 -05:00
Xurkon 35b581d6a9 feat: Release v1.3.4 - Fix l10n initialization error and complete WotLKDB taint analysis 2026-03-18 17:35:22 -05:00
Xurkon aed0daf4ce feat: Release v1.3.2 — Taint Resolution & Stability patches 2026-03-18 15:08:52 -05:00
Xurkon bd31b2d383 refactor: disable guild-channel data sharing 2026-03-17 23:36:06 -05:00
Xurkon 282d7cdd22 docs: make channel join log visible for verification 2026-03-17 22:58:20 -05:00
Xurkon a69883594c fix: initialize QuestieLearnerComms in QuestieLearner 2026-03-17 22:52:12 -05:00
Xurkon b0f8ba22e7 feat: release v1.3.0 - QuestieLearner Confidence & Tiered Pruning Engine 2026-03-17 22:33:01 -05:00
Xurkon 7f16d31294 docs: add v1.2.9 changelog — cross-link engine, zone fix, untrack fix 2026-03-17 17:38:43 -05:00
Xurkon 35f2d49b6c fix: patch IsComplete method onto QuestLogCache fallback objects in currentQuestlog so QuestieMap doesn't crash 2026-03-16 23:08:38 -05:00
Xurkon a7a66810be fix: store fallback quests in TrackerUtils._fallbackQuests not currentQuestlog to prevent arrow/quest module crashes 2026-03-16 23:05:58 -05:00
Xurkon ef62d1b2b2 fix: guard IsQuestFlaggedCompleted nil on WotLK 3.3.5 in fallback quest IsComplete 2026-03-16 22:58:43 -05:00
Xurkon d9828e6159 fix: resolve QUEST_ACCEPTED log-index vs questID ambiguity and add quest-log fallback to tracker for DB-unknown quests 2026-03-16 22:57:18 -05:00
Xurkon 5e35aa6cb5 fix: QUEST_ACCEPTED in 3.3.5 passes questID directly as first arg, not log index 2026-03-16 22:42:05 -05:00
Xurkon f0327da3e5 fix: use GetQuestLogTitle position 9 for questID in 3.3.5 and add full-log fallback scan 2026-03-16 22:39:39 -05:00
Xurkon f0550fddee feat: add DEBUG_LEARNER and DEBUG_COMMS categories for targeted learner/comms debugging 2026-03-16 22:33:31 -05:00
Xurkon 6b0fdcf9b4 fix: capture Objectives Board quests via gossip cache and trace LearnQuest guards 2026-03-16 22:30:38 -05:00
Xurkon ab60b990e8 fix: WotLKDB stats updated in cached DB path so panel shows counts on every reload 2026-03-16 22:24:40 -05:00
Xurkon 3e18f51551 fix: WotLKDB plugin.stats updated directly in LoadBaseDB so panel shows counts without timing dependency 2026-03-16 22:21:14 -05:00
Xurkon 76854a7fa3 fix: learner only records quest items (class 12) and captures auto-complete quests via QUEST_TURNED_IN 2026-03-16 22:19:09 -05:00
Xurkon fa7974b0d8 fix: mouseover NPC check uses raw npcData instead of GetNPC to prevent CRITICAL spam 2026-03-16 22:14:04 -05:00
Xurkon b2ca8fa660 fix: backfill missing learnedData settings keys from old SavedVariables
EnsureLearnedData was using 'or' which never updates an existing table.
If learnedData was created by an older version of the code without
learnQuests/learnItems/learnObjects keys, those stayed nil (falsy),
causing every quest/item/object learn call to return immediately.

Now explicitly backfills each missing key to true so all categories
record correctly regardless of when the SavedVariables were first created.
2026-03-16 21:56:36 -05:00
Xurkon 003e9698c9 fix: WotLKDB plugin stats + kill tracking improvements 2026-03-16 21:37:26 -05:00
Xurkon 4e5f3ed04b fix: move plugin panel to Database tab + fix WotLKDB 0 counts
- QuestieOptionsDatabase: added 'Loaded Questie-X Plugins' section at order 7
  For pull-type plugins (WotLKDB) where plugin.stats are all 0, the panel now
  falls back to counting QuestieDB.*Data directly — this is safe because the
  name function is called after init completes (user opens the options panel)
- QuestieOptionsAdvanced: replaced full plugin panel with redirect note
  pointing users to the Database tab
2026-03-16 21:27:15 -05:00
Xurkon 893d013110 refactor: reduce QuestieLearner debug noise to signal-only output
- LearnNPC/Quest/Item/Object: only print when entry is brand new (isNew flag)
  Update calls (coord refresh, mc increment) are silent
- Remove mouseover cache log (fired on every quest giver hover)
- Remove target cache log (fired on every target switch)
- Remove network MERGE log (fired every 60s reinforcement cycle)
- Remove network NEW log (replaced by the isNew pattern above)
- Kill log kept but wording tightened to 'Kill recorded'
- Inject summary, Events registered, Initialized kept at DEBUG_INFO
  (only visible when INFO level is enabled, not default DEVELOP spam)
2026-03-16 21:24:42 -05:00
Xurkon a3eaba30fd fix: WotLKDB plugin stats + kill tracking improvements
QuestieInit:LoadBaseDB:
- Count WotLKDB records BEFORE clearing globals
- Store counts in QuestieX_WotLKDB_Counts global for Loader.lua to read

QuestieLearner:OnCombatLogEvent:
- Only record kill coords for NPCs already in QuestieDB (quest objectives)
  or that were explicitly cached via target/mouseover (known quest givers)
- Prevents every random mob kill from polluting the learner database
2026-03-16 20:52:25 -05:00
Xurkon 8bc74a488b feat: QuestieLearner comprehensive overhaul v1.2.6
- Full quest field capture (title, level, objectives, description, money, zone)
- Mouseover filter: only record NPCs with QUESTGIVER npcFlag (0x02) or known DB entries
- OnTargetChanged: cache GUID for kill tracking only, no more spurious LearnNPC calls
- Grid-bucket coordinate clustering (COORD_GRID=2.0) replaces naive radius dedup
- Object recording: detect GameObject loot, gossip, and quest giver/finisher
- Item loot: async GetItemInfo retry via GET_ITEM_INFO_RECEIVED event
- LearnQuestGiver: entityType parameter (1=NPC,2=obj,3=item) for correct wiki layout
- InjectLearnedData: uses grid clustering in all merge paths
- MergeImport: calls InjectLearnedData immediately after merge (live override injection)
- README: corrected import reload requirement description
- CHANGELOG + docs/changelog.html updated with developer detail
2026-03-16 20:49:02 -05:00
Xurkon 4db9737a35 chore: stage all pending changes (DB cleanup, corrections, compiler, init, plugin API) 2026-03-16 19:41:52 -05:00
Xurkon 457420f90c feat: add Database options tab with import/export/cleanup
New files:
- Modules/QuestieLearnerExport.lua: serialize/compress/encode pipeline using
  AceSerializer + LibDeflate:CompressDeflate(level=9) + EncodeForPrint.
  QxLD:<version>!<encoded> string format. Export(), ExportAll(), ValidateImport(),
  MergeImport(), DryRunPrune(), Prune().
- Modules/Options/DatabaseTab/QuestieOptionsDatabase.lua: new Database tab with:
    - Live learned data stats (per server)
    - Per-type learner toggles (NPCs/Quests/Objects/Items/Broadcast)
    - Export current server / Export all servers buttons (opens scrollable dialog)
    - Import window (paste -> Validate -> Import with diff summary)
    - Dry-run preview and Prune Now cleanup buttons
    - Full reset button (confirm-gated)
    - Contribute section with step-by-step GitHub submission instructions

Wiring:
- QuestieOptions.lua: database_tab initialized and registered in args
- All TOC files: QuestieLearnerExport.lua added before options, DatabaseTab lua added
2026-03-15 19:48:45 -05:00
Xurkon d2861d194b feat: expand QuestieLearner and QuestieLearnerComms
QuestieLearner:
- Expose QuestieLearner.data as direct ref to Questie.db.global.learnedData
- Add mc (match-count) field tracking to LearnNPC/Quest/Item/Object
- Add _Learner:BroadcastIfCommsAvailable() hook called after every write
- Add QuestieLearner:HandleNetworkData() — validates, merges, and deduplicates
  incoming network data for NPC/QUEST/ITEM/OBJECT types, including coordinate
  and item-drop list merging

QuestieLearnerComms:
- Move DebugLog definition to top of file (was called before definition)
- Fix IsDuplicateMessage fallback: table.getn(serializedData) -> string.len(),
  mod() -> math.mod() for Lua 5.0 compatibility
- Add mutedUntil table and implement 5-minute timed mute on 3 strikes
  (previously the 3-strike branch was an empty if body with no effect)
- Remove duplicated nil-check + DebugLog block in ProcessRawMessage
2026-03-15 19:10:35 -05:00