Skip to content

Updating ​

Beta

Advanced Housing is updated often until version 1.0.0. Back up your database and your configs before every update.

Before You Update ​

  1. Announce the downtime. Updating the asset resources needs an empty server.
  2. Back up the database tables below and your configs/ folder.
  3. Stop the server, or at least make sure nobody is connected.
  4. Replace the files of every resource the release contains. Update all four resources together so the script and its assets match.
  5. Merge your settings into the new configs. Compare new options instead of restoring every old file. The Full Config Files show the current defaults.
  6. Start the server and run the checks in Installation.

Which Resources Can Be Restarted Live ​

ResourceWith players on
sd-housingYes. It streams nothing itself.
sd-housing-assetsNo. Restart it only with nobody connected. A resource that streams models under live entities can crash a client when it restarts.
sd-housing-interiorsNot recommended. It streams map models, like the asset resource.
sd-housing-towersNot recommended. It streams map models, like the asset resource.

When a release adds new streamed files, run refresh in the server console before starting the resource, or clients will not download the new files.

After Updating the Interiors Pack ​

Import the walk-in houses again: /housingadmin and Import walk-in houses, or sdh_walkin_import in the server console. The import adds new houses and brings the doors and entrances of the others up to date. Owners, keys, prices and names are never touched.

After Updating the Towers ​

Nothing to do. sd-housing brings the entrances and doors of every flat up to date at each start. Owners, keys, looks and panels are never touched.

Database and Backups ​

sd-housing creates its own tables at start. There is no SQL file to run. Back up all of these tables together:

TableData
sd_housing_propertiesEvery property: its key, name, price, owner, entrance and doors.
sd_housing_keysKeys and what each opens.
sd_housing_decorDecor placed in each property and what was paid for it.
sd_housing_logThe activity log.
sd_housing_notesNotes on the home panel.
sd_housing_securityEach property's security data.
sd_housing_safesSafes.
sd_housing_mailLetters and parcels.
sd_housing_shellsShell Creator shells.
sd_housing_photosListing photos.
sd_housing_salesThe agency's sales ledger.

Do not restore a single table from an older backup. Restore the tables together.

Configs and Custom Edits ​

configs/ and bridge/ ship open. If you changed a bridge file, for example to add a phone or a dispatch, keep a copy and merge it into the new version. Prices and labels you edited in configs/shared/catalog.lua need merging too, because a release can add furniture.

Rollback ​

Keep the previous release of all four resources and the matching database backup until your checks pass. To roll back, stop the server, restore the resources and the backup together, and start again. Restoring old data discards what players did since that backup.