Override default numbered tech locales

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 475
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Override default numbered tech locales

Post 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"}}}
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
FluidNatalie
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Oct 14, 2025 7:52 pm
Contact:

Re: Override default numbered tech locales

Post 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
Post Reply

Return to “Modding interface requests”