Skip to content

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

  1. Back up your config.lua, server/config.lua, custom/ folder, any preset you made in presets/, and any locale you edited. Back up the database too.
  2. Stop the server (or stop cc_mowing: every kit is deleted and every deposit refunded).
  3. Replace the cc_mowing folder with the new one. Do not copy over the top: old files that were removed would stay behind.
  4. Put back your two config files, custom/, your presets and your locales.
  5. 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.
  6. 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:
    lua
    ServerConfig.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_lib 1.7.0 or newer is required (it already was for the tablet's top bar).
  • If you use the high_pay preset, 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.

  1. Install cc_lib and ensure cc_lib above cc_mowing.
  2. Replace the folder: the old bridge/ folder must go.
  3. The framework convar moved from setr cc_mowing:framework to cc_lib's setr cc:framework.
  4. Tables are upgraded in place. On a server with no framework, cc_lib keys players by license2 where 1.x used license, so such a server starts its workers fresh.