Page 1 of 1

Override default numbered tech locales

Posted: Thu Apr 02, 2026 10:03 pm
by protocol_1903
I want to be able to override the built-in system of tech numbering, without having to set localized_name or localized_description on the prototype. Ideally, the default behavior looks for an exact match in the locale, then searches for a non-numbered entry. Ideally, this also applies to both the name and description independently such that you can have techs be numbered by name but have unique descriptors, or vice versa.

An example using localised_name (for this example `speed-module` is renamed to `speed-module-1` so the difference can be seen but in reality it would work the same):

Code: Select all

data.raw.technology["speed-module-1"].localised_name = {"?", {"technology-name.speed-module-1"}, {"", "technology-name.speed-module", " 1"}}}
data.raw.technology["speed-module-2"].localised_name = {"?", {"technology-name.speed-module-2"}, {"", "technology-name.speed-module", " 2"}}}
data.raw.technology["speed-module-3"].localised_name = {"?", {"technology-name.speed-module-3"}, {"", "technology-name.speed-module", " 3"}}}

Re: Override default numbered tech locales

Posted: Thu Apr 02, 2026 10:05 pm
by FluidNatalie
I am making a mod that changes how modules work and having to modify the locale for their techs is a pain. In summary:

Upvote / Like / Repost / I am 19 I have never used a forum so I don't know what the etiquette is. / +1