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
- Announce the downtime. Updating the asset resources needs an empty server.
- Back up the database tables below and your
configs/folder. - Stop the server, or at least make sure nobody is connected.
- Replace the files of every resource the release contains. Update all four resources together so the script and its assets match.
- Merge your settings into the new configs. Compare new options instead of restoring every old file. The Full Config Files show the current defaults.
- Start the server and run the checks in Installation.
Which Resources Can Be Restarted Live
| Resource | With players on |
|---|---|
sd-housing | Yes. It streams nothing itself. |
sd-housing-assets | No. Restart it only with nobody connected. A resource that streams models under live entities can crash a client when it restarts. |
sd-housing-interiors | Not recommended. It streams map models, like the asset resource. |
sd-housing-towers | Not 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:
| Table | Data |
|---|---|
sd_housing_properties | Every property: its key, name, price, owner, entrance and doors. |
sd_housing_keys | Keys and what each opens. |
sd_housing_decor | Decor placed in each property and what was paid for it. |
sd_housing_log | The activity log. |
sd_housing_notes | Notes on the home panel. |
sd_housing_security | Each property's security data. |
sd_housing_safes | Safes. |
sd_housing_mail | Letters and parcels. |
sd_housing_shells | Shell Creator shells. |
sd_housing_photos | Listing photos. |
sd_housing_sales | The 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.
