72 Commits

Author SHA1 Message Date
DuvelCorp 9fc2f91834 Merge 2.0 release into master 2026-09-15 08:42:02 +02:00
DuvelCorp 05cfce240b Document Gitea lowercase-folder rename step in README 2026-09-15 08:38:13 +02:00
DuvelCorp d49ed5abcc Revert addon-folder texture resolution (assume MetaHunt folder) 2026-09-15 08:06:57 +02:00
DuvelCorp ea01c9ef15 Silence pet level/loyalty notifications right after loading 2026-09-15 07:34:39 +02:00
DuvelCorp 315f6bb4f1 Load marker texture by actual addon folder name (case-proof) 2026-09-15 07:34:39 +02:00
Duvelcorp fd9618f184 Merge pull request '2.0' (#1) from 2.0 into master
Reviewed-on: https://codeberg.org/Duvelcorp/MetaHunt/pulls/1
2026-09-14 22:58:25 +02:00
DuvelCorp 99e7eaa5d2 Merge master into 2.0 (keep 2.0 content)
# Conflicts:
#	README.MD
2.0.0
2026-09-14 22:57:27 +02:00
DuvelCorp 44288cd635 Use 2.0.0 to allow patch releases 2026-09-14 22:49:40 +02:00
DuvelCorp 7d974f24b5 Set 2.0 release date 2026-09-14 22:39:25 +02:00
DuvelCorp 3de8088bbb Bump version to 2.0 2026-09-14 22:38:06 +02:00
DuvelCorp 7a0f03ba6f Remove temporary fx load-path debug tracer 2026-09-14 22:38:06 +02:00
DuvelCorp 0aaa49f33b Dedup trainer craft scans to prevent open freeze 2026-09-14 22:38:06 +02:00
DuvelCorp 4770724f60 Prefix pet level-up spell list with 'It can learn' 2026-09-14 18:53:49 +02:00
DuvelCorp acac6ace6f NPC Finder: fix zone-ID mislabel and show all zones per NPC
- Translate the coord's WMA id to pfQuest before the MTH_DS_Zones parent
  lookup, so e.g. Feralas (WMA 121) no longer collides with pfQ 121
  (Raven Hill) and prints its parent 'Duskwood'
- Zone column now lists every distinct zone an NPC occupies, smallest-map
  first, so border/capital NPCs read 'Darnassus, Teldrassil' etc. (sort
  key matches)
2026-09-14 18:38:10 +02:00
DuvelCorp 772299baf3 Use Black Hole celebration for max pet loyalty (6) 2026-09-13 11:00:45 +02:00
DuvelCorp eed6624611 Update SmartAmmo changelog wording 2026-09-13 10:52:14 +02:00
DuvelCorp 71c84e1704 Silence trainer scan noise during Growl auto-teach
- Add MTH_Growl_IsTeaching(); the beast-training scanner skips its chat
  feedback while auto-teach is driving the trainer window (no more
  'scan did not run yet' spam on tame)
- Confirm the taught rank in chat: 'Auto-taught Growl (Rank N) to <pet>.'
2026-09-13 10:46:23 +02:00
DuvelCorp dec41628ad Fix pet loyalty notifications and trim level-up copy
- Loyalty now read from MTH_GetCurrentPetInfo().loyaltyLevel; GetPetLoyalty()
  returns a localized name (not a number), so the loyalty branch never fired
- Listen for UNIT_HAPPINESS so a loyalty gain actually triggers the check
- Drop redundant 'has leveled up' / 'is now <rank>' openers from pet and
  loyalty lines, keeping the sarcasm
2026-09-13 09:54:04 +02:00
DuvelCorp d1d2660c2c Point bestiary link to Codeberg Pages 2026-09-12 22:19:39 +02:00
DuvelCorp 3bdc66770b Point update URL to Codeberg 2026-09-12 22:10:55 +02:00
DuvelCorp 67ed20532b Fix Hunter's Book animation SetPoint errors
The window's first anchor is relative to a child, so SlideIn/SlideOut's
position tween threw '<child> is dependent on this' every tick. Switch the
open/close/tab/search animations to alpha-only fades (matches the option labels).
2026-09-12 12:08:54 +02:00
DuvelCorp f3af63926e Fix SmartAmmo low-ammo warnings
- Remove infinite tail-recursion threshold getter that hard-froze the client on /rl
- Fix double-count (equipped ammo was added to the bag total)
- Make it true crossing-only: warn only when the total drops across the threshold, never on cold baseline or restock
- Use the shaking warning banner instead of a celebration, with sarcastic chat/banner copy
- Options: fix legacy EditBox HasFocus error on the threshold input; move Pet Auto-Teach to the right column
2026-09-12 12:08:54 +02:00
DuvelCorp 22232364b1 Add SmartAmmo low-ammo alerts 2026-09-12 10:57:27 +02:00
DuvelCorp af31acdb3e Refresh zCraft after profession ranks 2026-09-12 08:05:44 +02:00
DuvelCorp 402cd8aef0 Balance animation options layout 2026-09-11 15:29:01 +02:00
DuvelCorp aa99ee01cc Update Credits copy 2026-09-11 15:20:03 +02:00
DuvelCorp c862cdb25e Refine level-up notifications 2026-09-11 15:10:23 +02:00
DuvelCorp 0fb52f67ff Add trainer planning and level-up tracking 2026-09-11 13:45:58 +02:00
DuvelCorp aeaddd9558 Unify all option panels through MTH_Layout engine; restore realm gate 2026-09-11 00:05:38 +02:00
DuvelCorp ccf9d8b0b6 Unify all option panels through MTH_Layout engine
Add reusable MTH_Layout box/column layout engine (api/options-layout.lua) and route every option panel through it (shell, general, zButtons per-button config, zBar, chronometer, auto buy, profiles, credits, etc.) for consistent, auto-sizing layout. Restore realm gate. README note.
2026-09-10 23:59:37 +02:00
DuvelCorp adb21c336c Add Growl pet auto-teach feature and smooth zButton expand animation
- New Pet Auto-Teach: on tame, offer to teach Growl at the best rank via the
  Beast Training window (Craft API DoCraft), with a General options checkbox
  and /mth growl on|off|status toggle (on by default).
- De-stagger zButton flyout bars and zBar so buttons fade in together.
- Update CHANGELOG.
2026-09-10 21:20:56 +02:00
DuvelCorp 64e449481f zBar: revert to plain staggered fade + no init animation (SlideIn caused client micro-freezes on reload) 2026-09-10 17:48:46 +02:00
DuvelCorp 2863adff1c zBar: play assemble animation on init/reload, not only on checkbox toggle 2026-09-10 17:45:33 +02:00
DuvelCorp 0609d487a7 zBar: speed up assemble animation further 2026-09-10 17:44:18 +02:00
DuvelCorp e7cf99facb zBar: speed up assemble animation 2026-09-10 17:43:04 +02:00
DuvelCorp c5a42d8d2a zBar: cap stagger window + shorter slide so a full bar assembles quickly 2026-09-10 17:42:07 +02:00
DuvelCorp 3233ebff7f Strengthen subtle animations: pin scale-pops, window slide-in/out with overshoot, panel slides, zButton cascade, zBar springy stagger 2026-09-10 17:21:10 +02:00
DuvelCorp 66ff1ae711 Animations: wire remaining effects + 2-column options panel
- Shared FX toolkit in fx-celebrate.lua: mth_shake tween type, MTH_FX_Flash
  glow helper, MTH_CelebrateRunaway red shaking banner, gold title reset.
- pet.runaway, pet.happiness, pet.loyaltyup, pet.feed
- combat.ammoswap, combat.rangedswap, combat.mmprocs
- ui.zbar, ui.stable, ui.minimapping, ui.optionsclose
- book.model, book.search
- Options > Animations panel now uses a balanced two-column layout.
- CHANGELOG Animations entry expanded (no version bump).
2026-09-10 16:38:14 +02:00
DuvelCorp d2fb04f7c5 Animations: add option-tab fade, minimap pulse, zButton expand fade, map-pin drop-in; wire BeastTraining debug log to /mth err 2026-09-10 16:05:36 +02:00
DuvelCorp 566f3f4925 Add Animations feature + fix own-pet tooltip false positive
Animations (all optional, default on, per-effect toggles):
- New Options -> Animations tab with master switch + per-effect checkboxes
- Embed PizzaSauce animation library (api/PizzaSauce.lua)
- fx-celebrate: firework + banner when a pet learns a new ability/rank,
  triggered from core-scan-beasttraining pet-learn hook
- Hunter's Book: slide + fade on open, results list fade on tab switch
- Options window: slide + fade on open
- All new user-facing strings keyed (ANIM_* namespace)

Fixes:
- Tooltip #19: own-pet lines (mood/loyalty/happiness/XP) no longer
  misfire on party members / targets. Removed the fragile title-name
  fallback in MTH_TT_IsTooltipOnOwnPet; ownership now requires positive
  unit identity.

Temp (remove before release): /mth fx and /mth fxdebug diagnostics.
2026-09-10 14:41:26 +02:00
DuvelCorp 060fc555fe Unify SavedVariables into two clean roots with one-time migration
Collapse all legacy/scattered SavedVariables from absorbed standalone
addons (FeedOMatic, ZHunter/zButtons, SmartAmmo, AutoQuest, AntiDaze,
AutoStrip, MinimapButton) into two persisted globals with clean per-module
nesting under .modules.<id>.

Migration engine (api/savedvariables.lua):
- MTH_SV_EnsureSchema() with schemaVersion gate, idempotent + non-destructive
- Per-module migrators map old locations -> canonical nested stores
- Driven by an ADDON_LOADED("MetaHunt") handler so it runs only AFTER WoW
  loads the real SavedVariables (fixes announce-every-session bug that ran
  the migration on empty pre-load defaults)
- One-time player-facing chat announce, gated on real legacy data present

Framework/config:
- core-framework InitSavedVariables no longer runs migration at file-load;
  unconditionally strips account-root module aliases
- config.lua stops re-creating root[module] aliases (was duplicating data
  onto disk); canonical store stays under .modules.<id>

Modules:
- feedomatic: bind FOM_* globals as runtime aliases into nested store,
  drop persisted duplicates and .legacy blob
- zhunter: ZHunterMod_Saved re-pointed at .modules.zhunter
- smartammo/autoquest/antidaze/autostrip/minimapbutton read nested store

TOC trimmed to MTH_SavedVariables + MTH_CharSavedVariables only.
Profiles unchanged (already snapshot/apply the nested .modules structure).

Also includes pet-scan refinements: canonical pet key derivation and
level-independent pet signature (schema v3).
2026-09-09 22:52:48 +02:00
DuvelCorp de6621f41f Add requirements.txt for the .tools Python venv
Freezes the dev toolchain (numpy, pandas, pillow, mpyq, odfpy, asarPy,
defusedxml, python-dateutil, six) so any machine rebuilds .venv from this
instead of copying the 176MB virtualenv. Supports the multi-machine workflow:
clone via git, then 'python -m venv .venv && .venv/bin/pip install -r requirements.txt'.
2026-09-09 16:58:19 +02:00
DuvelCorp da645fa53c Remove empty placeholder init XMLs
init/env.xml, compat.xml, libs.xml, skins.xml contained only comments (no
frames, scripts, or includes) and were loaded as no-ops at startup. Deleted the
files and their MetaHunt.toc include lines. init/ now holds only the three real
XMLs (api, localization, modules).
2026-09-09 16:33:39 +02:00
DuvelCorp 9379668e4b Remove dead code: SmartPet module + orphaned DBC datastores
SmartPet (module never wired into modules.xml) removed entirely — server-side
pet AI on TWoW/OctoWoW makes it useless. Deleted modules/smartpet/ and
api/options-smartpet.lua.

Orphaned .tools DBC extracts (2026-03-20) never loaded via TOC, superseded by
the curated/pfQuest datastores that ship:
- data/ds-zones-dbc.lua, data/ds-zones-new-dbc.lua (bounds come from ds-zones-wma)
- data/ds-stable-prices.lua (never wired to any UI)
- data/ds-pet-spells-acquire.lua (learnMethod set at runtime by init.lua + trainer)

Also removed api/beastlore-scan.lua (8-line deprecation stub) and its
init/api.xml include. No shipped references or player-facing behaviour affected.
2026-09-09 16:29:15 +02:00
DuvelCorp c55cd66ffc Fix realm-gate disable for book/options, pet-rank learning, unique beasts
- Hunter's Book and options window now show a full 'DISABLED.' overlay on realm-gated realms instead of rendering content
- Pet training: new rank of an already-known ability is now recognised, announced, and reflected in tooltips
- Restore curated 'unique appearance' beast allowlist (34 beasts) in data/init.lua
- CHANGELOG updated
2026-09-08 01:25:51 +02:00
DuvelCorp 38e080261c Fix rank-0 pet spell icons (Bubble Barrier, Charge); finalize 1.5.2 changelog; ignore Copilot data 2026-09-06 21:59:29 +02:00
DuvelCorp 04e04a4853 1.5.2 2026-04-08 09:36:17 +02:00
DuvelCorp 6c007f2c17 1.5.1 2026-04-04 23:43:46 +02:00
DuvelCorp c4911ef9fe 1.5.1 2026-04-04 23:38:34 +02:00
Duvel 99268643eb Merge pull request #17 from DuvelCorp/v1.4.2
1.5.0
v1.5.0
2026-03-31 21:26:45 +02:00