Updating
Moving to a new version of cc_mowing without losing settings or data.
Back to the overview. What changed in each version: Changelog.
Every update
- Back up your
config.lua,server/config.lua,custom/folder, any preset you made inpresets/, and any locale you edited. Back up the database too. - Stop the server (or
stop cc_mowing: every kit is deleted and every deposit refunded). - Replace the
cc_mowingfolder with the new one. Do not copy over the top: old files that were removed would stay behind. - Put back your two config files,
custom/, your presets and your locales. - Read the changelog for any new keys. A new key has a default, so a missing one never breaks the start; add it to your config when you want to change it.
- Start the server. Tables upgrade themselves on start. Read the boot line for
CONFIG PROBLEM(S).
Workers, houses edited in game, companies, regulars and the ledger live in the database and are never touched by an update.
2.3.x to 2.4.0
- Nothing to do. Two optional blocks were added to
server/config.lua:luaServerConfig.Exports = { maxXpGrant = 5000, -- the most XP one exports.cc_mowing:addXp call can grant } ServerConfig.UpgradeSink = { society = false, -- or a society name: Garage and fleet money is paid into it } cc_lib1.7.0 or newer is required (it already was for the tablet's top bar).- If you use the
high_paypreset, its pay is now lower (x0.875, ceiling $250k an hour). Copy the old file under a new preset name if you want to keep the old numbers.
1.x to 2.x
2.0 dropped the bundled bridge for cc_lib.
- Install cc_lib and
ensure cc_libabovecc_mowing. - Replace the folder: the old
bridge/folder must go. - The framework convar moved from
setr cc_mowing:frameworkto cc_lib'ssetr cc:framework. - Tables are upgraded in place. On a server with no framework, cc_lib keys players by
license2where 1.x usedlicense, so such a server starts its workers fresh.