Serverside

Fixes / Modkit ID out of range or colliding

Vehicles · high severity · found by reading the files

Modkit ID out of range or colliding

Car will not spawn, shows wrong/invisible parts, or the mod menu crashes.

What it means

Modkit ID problems found: N out of range, N colliding. Colliding IDs load one car's parts onto another.

File
carcols.meta
Structure
<Kits><Item><kitName>...</kitName><id value="N" /></Item></Kits>
Must hold
N must be unique server-wide AND within 0-65535 (16-bit).

How to fix it

  1. Remap offending IDs into a reserved band (e.g. 40000+), skipping every ID already in use.
  2. Keep the file byte-identical apart from the ID number.
  3. Archive originals before writing — a full restore set is cheap insurance.

When it is not this

Parsing traps that each cost a wrong answer: (1) the element is <Kits><Item>, NOT <Kit>. (2) Modkit IDs overflow Int32 AND Decimal — parse as STRING then range-check, never cast. (3) <id value="N"/> also appears in <Lights> and <Sirens> — anchor on <kitName> or you will silently rewrite light settings. (4) One vehicles.meta can hold many <Item>s — split at each <modelName>.