59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2.8 KiB
Source quest objective location candidates
ops/quest_objective_locations.py creates an offline, provenance-linked set of approximate Source-world spawn anchors for a bounded list of quests. It supports positive creature-credit objectives and direct creature-loot links for required items. It does not publish map data, emit QuestPOI packets, or produce polygons.
Capture from the existing local Source MariaDB, then build from the saved snapshot:
python3 ops/quest_objective_locations.py capture \
--container tortoise-docker-db-1 --quest 7 --quest 60141 --output /path/to/source-snapshot.json
python3 ops/quest_objective_locations.py build \
--snapshot /path/to/source-snapshot.json --output /path/to/location-candidates.json
python3 tests/quest_objective_locations_test.py
Capture issues only fixed, numeric-scoped SELECT queries. The DB credential remains in the container; command output is not printed. The snapshot records the container and server identity, capture time, and SHA-256 of each query result. Its queries are separate, so it does not claim atomic consistency; a detected creature-template loot ID change holds that source. The generated output records the source snapshot path and SHA-256, original objective slot, native storage index, packed presentation index, and candidate presentation ID. Its stable 128-unit grid is a summary for reviewing the underlying points, not a boundary or a claim of complete coverage.
Each point preserves Source map and XYZ, spawn GUID, all four template choices, wander distance, movement and visibility fields, spawn flags, spawn-pool and creature-template-pool records, and event IDs. Creature template phase_quest_id and direct loot row chance, group, counts and condition are recorded per candidate source. These are observations of static rows; pools, events, quest phases, scripts and the current world's actual spawned population are not evaluated. Disabled and dead-by-default spawn rows are excluded with explicit holds. An int16 coordinate-range indicator is a bound check only; it does not qualify the native map assignment or integer conversion.
Creature-kill credit can also come from scripts or other sources. A creature-target objective that requires a spell cast is held rather than treated as a kill; an untargeted spell requirement is recorded as a quest-level hold. Item objectives can use indirect/reference loot, game objects, quests, spells or scripts; these relationships are explicitly unresolved. Negative game-object objectives and malformed counts remain held. A missing direct link or static spawn is not evidence that no source exists. Every produced objective is marked partial, and no unsupported quest is declared complete. A native consumer must separately establish effective UiMap assignments, coordinate conversion and native QuestPOI response semantics before using these candidates.