For some reason, certain localisation keys don't work for me - they'll just display the name of the key in-game rather than the text of the key, even if they're defined in the same file and with the same syntax as other keys that do work.
I've noticed this happening in species and countries that are spawned by event, as well as in solar system initializers.
For example, I'm working on a Dune-themed mod now, and I'm spawning the Fremen species with the following code:
And the localisation keys are defined like this:
In-game, this shows up as a species named Fremen, but with the plural showing up as NAME_Fremen_Plural and the adjective as NAME_Fremen_Adjective.
Does anyone know why this is happening and/or how to fix it?
I've noticed this happening in species and countries that are spawned by event, as well as in solar system initializers.
For example, I'm working on a Dune-themed mod now, and I'm spawning the Fremen species with the following code:
Code:
create_species = {
is_mod = yes # I'm making them a subspecies of humans
name = "NAME_Fremen"
plural = "NAME_Fremen_Plural"
adjective = "NAME_Fremen_Adjective"
namelist = "HUM1"
class = THIS
portrait = THIS
homeworld = PREV
traits = {
trait = "trait_fremen"
trait = "trait_adaptive"
trait = "trait_nomadic"
trait = "trait_conservational"
}
effect = {
set_species_flag = fremen_species
save_global_event_target_as = fremen_species
}
}
And the localisation keys are defined like this:
Code:
l_english:
NAME_Fremen:0 "Fremen"
NAME_Fremen_Plural:0 "Fremen"
NAME_Fremen_Adjective:0 "Fremen"
In-game, this shows up as a species named Fremen, but with the plural showing up as NAME_Fremen_Plural and the adjective as NAME_Fremen_Adjective.
Does anyone know why this is happening and/or how to fix it?