Skip to content

Troubleshooting

Start with /govstatus (ACE cc_government.admin) in game or in the server console. It prints the treasury, the mayor, the society provider, the job mode and the licence registry cc_government detected.

Start with /govstatus (ACE cc_government.admin) in game or in the server console. It prints the treasury, the mayor, the society provider, the job mode and the licence registry cc_government detected. Most problems are visible there.

Server console

LineCauseFix
Couldn't start resource cc_government / cc_lib/init.lua not foundcc_lib missing or started after usensure cc_lib before ensure cc_government.
[cc_government] config <key>: ...A wrong value in configThe line says what it used instead. Fix the value and restart.
config Config.Locations: no location with kind = 'bar'; the bar examination is switched offThe bar desk was removedAdd a kind = 'bar' location, or set Config.Features.bar = false to silence it.
config ServerConfig.Departments[...]: ... department funding switched offA department entry is incompleteEach needs id, label, account, and kind = 'society' (or 'export' + resource + export).
database unavailable: cc_government is not runningoxmysql could not connect, or CREATE TABLE was refusedCheck mysql_connection_string; or run install/sql/install.sql by hand.
schema failed: ...Same as above, with the SQL errorGrant CREATE/ALTER to the database user, or run install/sql/install.sql.
migration 1 skipped: ...MySQL older than 8.0.29 (no ADD COLUMN IF NOT EXISTS)Harmless on a fresh install. Upgrading from 1.x: run the ALTER at the end of install/sql/install.sql once by hand.
treasury city ($^1MISSING^0) on bootThe treasury row could not be readDatabase problem: see above.
levies failed to load; retrying every 30 sDB error at bootLevy changes wait until it loads (players see "not ready"). Fix the DB; it retries itself.
government roster failed to load; retrying every 30 sDB error at bootSame: fixes itself once the DB answers.
framework job government for <cid> not set (grade n); our record holdsThe framework refused the job (job missing, multijob limit)Add the job (install/jobs/README.md), or ServerConfig.Jobs.mode = 'none'. The roster is still correct.
Collect: <resource> may not collect as <key>That resource is not in ServerConfig.Sources[key].resourcesAdd it. The name is the folder name of the calling resource.
Collect: unknown source <key>Typo, or the key does not existAdd the key to ServerConfig.Sources.
PayService: <resource> may not pay as <key>Not in ServerConfig.Payouts[key].resourcesAdd it.
fund <dept> <n>: department credit errored, not rolled back; reconcileThe department's export threw after it may have paidCheck that department's balance; the ledger has a fund_unknown row. Nothing was paid twice.
sweep <society>: <n> taken but neither credited nor returned; reconcileTreasury and society both refusedRare DB failure: add <n> back to the society by hand.
candidacy refund ... failed (treasury debit refused); refund by handThe treasury was below the feeRefund the candidate by hand.
licenceWithdrawn integration <res>.<export> failed: ...Your integration export erroredFix that export; the licence change itself went through.

F8 (client)

SymptomCauseFix
Target shows, nothing opens, notify "too far"Standing outside reach / MaxInteractDistance, or the coords are wrongMove the location in Config.Locations to where the terminal really is.
"You are not allowed to do that" at the officeYou are not on the government roster/govappoint <id> or get hired; the roster is ours, not /setjob (unless adoptFrameworkJob).
Page opens blank / invisibleweb/ files missing from files{} after an edit, or a CEF errorDo not edit fxmanifest.lua's files{}; check F8 for a red ui_page line.
Cursor stuck after closingAnother resource took NUI focusPress Escape; cc_government always releases focus on close and on stop.
Dotted keys like ui.bar.title on screenA custom locale file is missing keys or is not valid JSONValidate your locales/<code>.json; missing keys fall back to English.
No [E] prompt and no targetTarget script stopped after we built zonesRestart cc_government after your target script, or start the target first.
Emblem/photo missingImages replaced with a different file nameKeep web/img/emblem.svg and banner-city.webp names, or edit web/index.html.

Gameplay questions

  • The mayor cannot change a levy. Each levy has a 24 h cooldown and a max step; the slider shows the next allowed time. Hand-edited database values are clamped to the config limits.
  • Funding says "daily cap". Caps are rolling 24 h sums from the ledger; a restart does not reset them.
  • A lawyer lost the job. enforceJob removes the lawyer job from anyone without an active licence. Grant one with /bargrant <id>, or set enforceJob = false.
  • The exam refuses answers as "too fast". The reading floor is readBaseMs + readPerCharMs x characters; lower readPerCharMs for a faster-reading server.
  • Election tie. Certify refuses a tie; appoint with /govappoint or run a new election.