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
| Line | Cause | Fix |
|---|---|---|
Couldn't start resource cc_government / cc_lib/init.lua not found | cc_lib missing or started after us | ensure cc_lib before ensure cc_government. |
[cc_government] config <key>: ... | A wrong value in config | The line says what it used instead. Fix the value and restart. |
config Config.Locations: no location with kind = 'bar'; the bar examination is switched off | The bar desk was removed | Add a kind = 'bar' location, or set Config.Features.bar = false to silence it. |
config ServerConfig.Departments[...]: ... department funding switched off | A department entry is incomplete | Each needs id, label, account, and kind = 'society' (or 'export' + resource + export). |
database unavailable: cc_government is not running | oxmysql could not connect, or CREATE TABLE was refused | Check mysql_connection_string; or run install/sql/install.sql by hand. |
schema failed: ... | Same as above, with the SQL error | Grant 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 boot | The treasury row could not be read | Database problem: see above. |
levies failed to load; retrying every 30 s | DB error at boot | Levy changes wait until it loads (players see "not ready"). Fix the DB; it retries itself. |
government roster failed to load; retrying every 30 s | DB error at boot | Same: fixes itself once the DB answers. |
framework job government for <cid> not set (grade n); our record holds | The 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].resources | Add it. The name is the folder name of the calling resource. |
Collect: unknown source <key> | Typo, or the key does not exist | Add the key to ServerConfig.Sources. |
PayService: <resource> may not pay as <key> | Not in ServerConfig.Payouts[key].resources | Add it. |
fund <dept> <n>: department credit errored, not rolled back; reconcile | The department's export threw after it may have paid | Check that department's balance; the ledger has a fund_unknown row. Nothing was paid twice. |
sweep <society>: <n> taken but neither credited nor returned; reconcile | Treasury and society both refused | Rare DB failure: add <n> back to the society by hand. |
candidacy refund ... failed (treasury debit refused); refund by hand | The treasury was below the fee | Refund the candidate by hand. |
licenceWithdrawn integration <res>.<export> failed: ... | Your integration export errored | Fix that export; the licence change itself went through. |
F8 (client)
| Symptom | Cause | Fix |
|---|---|---|
| Target shows, nothing opens, notify "too far" | Standing outside reach / MaxInteractDistance, or the coords are wrong | Move the location in Config.Locations to where the terminal really is. |
| "You are not allowed to do that" at the office | You are not on the government roster | /govappoint <id> or get hired; the roster is ours, not /setjob (unless adoptFrameworkJob). |
| Page opens blank / invisible | web/ files missing from files{} after an edit, or a CEF error | Do not edit fxmanifest.lua's files{}; check F8 for a red ui_page line. |
| Cursor stuck after closing | Another resource took NUI focus | Press Escape; cc_government always releases focus on close and on stop. |
Dotted keys like ui.bar.title on screen | A custom locale file is missing keys or is not valid JSON | Validate your locales/<code>.json; missing keys fall back to English. |
No [E] prompt and no target | Target script stopped after we built zones | Restart cc_government after your target script, or start the target first. |
| Emblem/photo missing | Images replaced with a different file name | Keep 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.
enforceJobremoves the lawyer job from anyone without an active licence. Grant one with/bargrant <id>, or setenforceJob = false. - The exam refuses answers as "too fast". The reading floor is
readBaseMs + readPerCharMs x characters; lowerreadPerCharMsfor a faster-reading server. - Election tie. Certify refuses a tie; appoint with
/govappointor run a new election.