Files

1.9 KiB

GO authority profile (compiled-gameobject-authority.hpp)

Build input for GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER (kept at runtime/continuation-20261113/claude-lane/go-authority-20261126/).

  1. build_all_templates.py : Rows[] = every tw_world gameobject_template row.
  2. add_locks.py <Lock.native.tsv> <include/gateway/item_sparse_compat.hpp> [QuestV2.native.tsv]: Locks[] gets a LockLink for every lock any row references, from the client's native Lock rows. Without it a template whose lock is missing is held (ReferenceClosure): no reply, no lock, no tracking blip, no name (Find Trees, #109). Key items are listed only when they are ItemSparse+Item hotfix rows (native keys are omitted). Then rebuild natives, run tests/gameobject_lock_definition_test.cpp, sign, install.

Find Herbs on lock 259

Eight herb chests share source lock 259 with two carcasses and one unspawned object. The client lock table built by ops/content-herb-lock-20261127/build.py adds row 4582 with Herbalism first and Open Kneeling second. Pass the dump of that Lock.db2 and the released QuestV2 dump to add_locks.py to generate the paired native profile. Serpentbloom requires quest 962 and Violet Tragan requires quest 2641. Both quest IDs occur in the public section of QuestV2. The generator verifies the eight chest types, source lock IDs and quest fields before enabling their client references. The original server object and loot IDs are used for interactions.

Compile the standalone tests/gameobject_lock_definition_test.cpp with GW_GAMEOBJECT_AUTHORITY_PROFILE_HEADER pointing to the generated header and GW_TEST_GATHERING_LOCK defined. The test checks the 68-byte lock body and decodes the outgoing templates for all eleven users of 259, Silverleaf, Peacebloom, Sungrass and Copper Vein. Use the same header for the native gateway build and pair it with the baked Lock.db2.