Skip to content

Read a malformed number as its default instead of keeping garbage

Changes0.2.0 (in development)

FixedPlanned for 0.2.0

A floating-point number, point, offset, vector, color or rectangle whose value does not start with a number, or holds fewer numbers than the key needs, now reads as the key’s default: the value the key takes when it is absent. The debug log records the file, section, key and value. The game used to leave the missing numbers of most such values undefined, which could stop it while it read the rules or give a color random channels.

Affected entities

Credit: ZivDero