BAR tweakdefs subtables and why new tweakdefs fail

New tweakdefs frequently fail because required subtables are missing. Here is what those subtables are, why localization changes do not work in tweakdefs, and how to fix large preset loading lag.

tweakdefs subtables · unit localization · build options · preset loading · lobby lag

Required subtables for new tweakdefs

When writing a new tweakdefs that modifies build options or unit stats, the following subtables must exist or the entire tweak fails to load:

Missing any of these causes silent failure. The tweak applies nothing and the lobby gives no error message.

Localization in tweakdefs does not work

The base game localization customparam loads after tweakdefs but before tweakunits. This means tweakdefs cannot change unit display names — the localization overwrites them. Only tweakunits can perform localization changes because the load order places them after the localization step.

Large presets cause lobby lag

Loading too many tweaks simultaneously causes lobby lag, unresponsive unit building selections, and missing tweak pages. The fix: in preset options, configure it to load only the Modoptions instead of trying to load every tweak type at once. This reduces the simultaneous data load and clears the lag.

Build tweakdefs carefully

The difference between a tweak that works and one that fails silently is usually one missing subtable or wrong load order. Check your structure against the base game before deploying.

[Crd] Crd is the first really comfortable community I have been a part of. Everyone is nice and kind, the atmosphere is relaxed.