The general steps for every JCKS script are on Updating JCKS scripts. Coming from V1: Migration from V1.
Steps
- Dump the database. Jobs, grades, points, members, invoices, MDT data and logs are in the
jcks_jobs,jcks_job_*andjcks_restaurant_*tables. - Stop the server.
- Update jcks_lib and jcks_bridge first when the changelog asks for newer ones (Requires).
- Replace everything in
jcks_jobsexceptsettings/andeditable/. Always replacedefaults/. - Start the server and read the console.
Never delete
| File | What is in it |
|---|---|
settings/*.lua, settings/server/config.lua |
Your settings files |
settings/config.json |
Configuration changed in game (/jobadmin, Configuration and Server settings) |
settings/settings.json |
Setup state of the first start |
settings/gigs.json |
Gigs and gig presets |
settings/legacy.json, settings/import.json |
Record of the V1 import, keeps it from running twice |
settings/update-backup-*.json |
Backups made before each update |
editable/client.lua, editable/server.lua |
Your hooks |
Database
The tables are created and changed on start. Every change is safe to run again: missing tables, columns and indexes are added, and one time data migrations are recorded in jcks_job_migrations so they run once. A migration that fails prints its id and runs again on the next start. Nothing is deleted.
After the update
- The console lists new settings that use their default value. Change them in
/jobadmin, Server settings, or in the settings files. - New editable functions run their default code. The defaults of every version are on Default editable files (V1: here).
- New default entries of lists you own (recipes, restaurant menus, billing presets and the other
jcks_collectionlists) are only listed, never added. Copy the ones you want fromdefaults/settings/. - Commands and keys that changed are under Breaking in the changelog.
Troubleshooting
jcks_jobs 2.0.1 needs newer JCKS resources. Update the named resource first, see Order.
A setting changed in game is back to its default after the update. settings/config.json was replaced or deleted. Restore it from settings/update-backup-<n>.json (key files) or from your own backup, then restart.
Texts show their key or are in English. Your own locales/*.json misses new texts. The console lists them, copy them from defaults/locales/.