Files
ThordekkCore/docs/housing/roleplaycore-port.md
T

5.7 KiB
Raw Blame History

RoleplayCore housing replacement

This port replaces the previous housing core, handlers, entities, packets and scripts in one integration PR. The donor is RoleplayCore housing_test, commit b5295b63ed25c8c7b1e535d0091d03a0b10477bb. The target baseline is WowCommunityProject 03314ed3c9daf86e4363843b1f2eaf7662de98e7.

The imported implementation covers neighborhoods, house purchase and interiors, rooms and decor, blueprints, initiatives, charter founding and housing administrator commands. Its behavior follows the donor implementation; donor integration is not a guarantee of retail feature completeness. Unrelated target systems, including multiple garrisons, covenants, Mythic+, delves, archaeology and shop integration, remain part of the target core.

Database cutover

Stop both servers. Take consistent backups of auth, characters, world and hotfixes, including updater metadata, before starting. MySQL DDL is not transactional: the archive tables are a recovery aid, not a substitute for backups. Test the cutover against copies of the deployment databases first.

Use the four 2026_10_06_00_*_roleplaycore_housing.sql updates, in this order: auth, characters, hotfixes, world. The normal database updaters discover these files in their respective master directories. Run the updated binaries only after all four databases have completed the cutover. Do not mix old binaries with the new schema.

Characters: existing legacy tables are renamed to rp_housing_legacy_<original_name> before the new schema is installed. The old ownership GUIDs, room entities and decor records have a different model. They remain available in the archives; this port does not automatically convert them into new houses. Players obtain new houses through the new purchase flow.

Hotfixes: housing DB2 override tables are archived and recreated with the donor layouts. Their initial contents are empty; housing data comes from matching client DB2 files. Old custom overrides must be reviewed and converted before being restored. Existing unrelated map difficulty IDs in the reserved housing range cause the migration to stop rather than overwrite them.

World: the donor housing seed replaces content on maps 2735 and 2736 on its first application. Rows touched by deletes or updates are saved in rp_housing_legacy_* tables. Spawn and text ID allocations are persisted in rp_housing_world_ids, so reapplication uses the original allocations. Later content on housing maps outside the imported ID ranges survives reapplication. The donor's RoleplayCore-only spawn size, visibility and gameobject RequiredLevel columns are omitted to match the target schema. NULL values in required spawn fields use the target defaults. A signed SMALLINT animation kit column is widened to INT to accept retail ID 34313 without discarding existing values.

The migration journal rp_housing_migration makes archive stages resumable and prevents archiving the new schema on reapplication. Do not delete journal or allocation rows, reclaim imported ID ranges, or modify archive tables while the migration is running. Reapplication restores the imported world seed; it may overwrite edits to those imported rows.

Administrator commands use permissions 10000–10005 and inherit through Administrator Commands role 196. Existing permission IDs remain unchanged. An unexpected permission collision stops the auth migration.

Rollback requires stopping both servers, restoring all four pre-cutover backups and their updater metadata, and restoring the previous binaries together. Renaming a single character table back is insufficient because world, hotfixes and core formats also change.

Client data and configuration

Use the supported client build 69933 with matching extracted DB2, maps, vmaps and mmaps, including neighborhood maps 2735/2736 and interior map 2783. Existing server files from a different client build do not validate housing. Review the Housing.* settings in the distributed worldserver configuration, particularly purchase, tutorials, house limits and charter requirements.

Validation

The sole CI workflow runs on Windows x64. It initializes an isolated MySQL instance, applies the cutover to legacy fixtures, reapplies it after inserting new housing data, and checks archives, ownership, unlocks, map difficulties, stable spawn allocations, charter quest links and unrelated rows. It also prepares the housing character and hotfix queries against those schemas. It then builds both servers with all static scripts and checks their version commands.

CI cannot verify client behavior. Before deployment, exercise this checklist on a test realm with the matching client:

  • Alliance and Horde: start the housing tutorial, reach the steward and purchase a plot; reject insufficient funds and unavailable plots without losing money.
  • Enter and leave the house through its door; reconnect and restart the server while inside and outside.
  • Add, move, rotate and remove rooms and decor; verify saved placement and storage quantities after reconnecting.
  • Use another character on the same Battle.net account; verify account collection and ownership limits.
  • Invite a visitor; verify permissions, editor restrictions and neighborhood changes without leaking another owner's objects.
  • Create and import a blueprint; verify a failed import leaves the previous house intact.
  • Found a charter neighborhood, gather signatures, finalize it and verify persistence.
  • Verify initiative progress, milestones and rewards persist and cannot be claimed twice.
  • Check existing garrisons, covenants, Mythic+, delves, archaeology, shop and non-housing maps for regressions.

Record actual results in the PR. A successful build alone does not mark this checklist as passed.