Stellaris

Stellaris

View Stats:
Clavius IV Jan 30, 2020 @ 2:37am
[MODDING] Questions about the Random empire name generator
Hi everybody,

I'm working on a French Localization of the Random empire name generator.
I'm facing some difficulties to understand how they're generated.

Below you can see a type of generation wich could be used.

# Democratic Militarist 5 empire_name_format = { random_weight = { factor = 0 modifier = { add = 2 has_government = "gov_military_commissariat" is_pirate = no is_primitive = no NOT = { is_country_type = fallen_empire } NOT = { is_country_type = awakened_fallen_empire } } } format = "format.dem_mil.5" noun = "[This.GetSpeciesName]" prefix_format = "[This.GetSpeciesName] <democratic_mil>" # Human Star Empire }

The [Noun] can reffer to the Capital Planet, to the Capital Star System or to the Species Name.
The order between the [Noun], the [Descrtiptive] and <empire_type> depends on wich number you write in the "add = #" line :
1 : <empire_type> of [Noun] : Empire of Earth
2 : [Descriptive] [Noun] <empire_name> OR [Noun] [Descriptive] <empire_name> : Human Star Empire OR Stellar Human Empire
5 : [Noun] <empire_type> : Earth Empire

So I need to change the order of these and also translate the "of" but I can't find where all of those format are. Any help would be very appreciated.

I'm a beginner in modding so don't be harsh if it's obvious.

There's also numbers besides the <empire_type> and [Descriptive] used words :

# Democratic Technocracy empire_name_parts_list = { key = "democratic_tech" parts = { "Republic" = 3 "Alliance" = 3 "Commonwealth" = 3 "Confederation" = 3 "Confederacy" = 3 "Union" = 3 "League" = 3 "Mandate" = 2 "Coalition" = 2 "Assembly" = 2 "Council" = 2 "Cooperative" = 2 "Technocracy" = 4 "State" = 1 "Nation" = 2 "Sovereignty" = 1 "Commonality" = 1 "Concordat" = 1 "Accord" = 1 "Polity" = 1 "Administration" = 1 "Consensus" = 6 } } # Imperial Materialist Descriptive empire_name_parts_list = { key = "imperial_mat_desc" parts = { "Interstellar" = 1 "Galactic" = 3 "United" = 3 "Great" = 3 } }

It's probably related, but i don't understand how.
< >
Showing 1-4 of 4 comments
Meewec Jan 30, 2020 @ 2:43am 
pretty sure they're related to the type of government an empire has

https://stellaris.paradoxwikis.com/Government#Government_Type
Clavius IV Jan 30, 2020 @ 2:50am 
Originally posted by Meewec:
pretty sure they're related to the type of government an empire has

Not really.
I just checked the files and you can find

Pious = 4 Technocracy = 4

I think it's strickty reffers to grammar
Last edited by Clavius IV; Jan 30, 2020 @ 2:56am
dzyunchik Aug 12, 2020 @ 3:42pm 
Hi. I've tried to understand how does name generator works too and maybe have answers on your questions. If they're actual yet.

Originally posted by Clavius IV:
The [Noun] can reffer to the Capital Planet, to the Capital Star System or to the Species Name.
The order between the [Noun], the [Descrtiptive] and <empire_type> depends on wich number you write in the "add = #" line :
1 : <empire_type> of [Noun] : Empire of Earth
2 : [Descriptive] [Noun] <empire_name> OR [Noun] [Descriptive] <empire_name> : Human Star Empire OR Stellar Human Empire
5 : [Noun] <empire_type> : Earth Empire

So I need to change the order of these and also translate the "of" but I can't find where all of those format are. Any help would be very appreciated.

I was confused like you and spent some time to figure out how does it works.

Seems like "add = #" line describes the weight of name format, I guess because many government combinations could be valid for the name format, so it's some property how system determine what name format to choose between set of available.
So, it does nothing to the name, just for weight.

To specify your own name formats you should modify
***\Stellaris\localisation_synced\empire_formats.yml

There you see a list of names. The key (like "format.imp_mil.1") is the line:
format = "format.dem_mil.5"
in empire_name_parts_list you posted.

The value is a template where you could use values like home planet/system/specie names.
The values I've determined are next:

[This.Capital.GetName]
Home planet name

[This.Capital.System.GetName]
Home system name

[This.GetSpeciesName]
Specie name
<empire_name_parts_list.key> - defined like key = "imperial_mil" in empire_name_parts_list

like
# Imperial Militarist empire_name_parts_list = { key = "imperial_mil" parts = { "Empire" = 3 "Imperium" = 2 "Hegemony" = 1 } }

About number
Numbers here are used to group names if result empire name consists of multiple generic parts. What does it means:
For example, in ***\Stellaris\localisation_synced\empire_formats.yml
format.imp_mil.4: "<imperial_mil_desc> [This.GetSpeciesName] <imperial_mil>"
Means "<Some name from imperial_mil_desc name list> [specie name] <Some name from imperial_mil name list>".
Two names will be picked from two different name lists with the same number.

So, imagine you have two lists:

First one:
# Imperial Militarist empire_name_parts_list = { key = "imperial_mil" parts = { "Galactic" = 3 "Imperium" = 2 "Hegemony" = 1 } }

Second one:
# Imperial Militarist Descriptive empire_name_parts_list = { key = "imperial_mil_desc" parts = { "Civilization" = 3 "Haven" = 3 "Company" = 2 "Market" = 1 } }

and species that called "Human" with home planet "Earth" and home system "Sun"
Then, with different templates you could generate type of name:

"<imperial_mil_desc> [This.GetSpeciesName] <imperial_mil>"
Galactic Human Civilization
Galactic Human Haven
Imperium Human Company
Hegemony Human Market

"<imperial_mil_desc> [This.Capital.GetName] <imperial_mil>"
Galactic Earth Civilization
Galactic Earth Haven
Imperium Earth Company
Hegemony Earth Market

"<imperial_mil_desc> [This.Capital.System.GetName] <imperial_mil>"
Galactic Sun Civilization
Galactic Sun Haven
Imperium Sun Company
Hegemony Sun Market

So, Galactic will be used with Civilazation or Haven beacuse they have the same number.

You could create your own name lists and formats or modify existed.

noun ="" part of name format used as adjective (it's called so in game) when you create your empire. Maybe it's also used in text generation.

prefix_format = "[This.Capital.GetName] <my_format>" Don't know what it does. Maybe it's used to generate names of alliance, wars or events. But seems it has the same template format as in ***\Stellaris\localisation_synced\empire_formats.yml.

Summary
This is working example of working try to rename empires. In this example, all empires get names equally because I deleted everything from both 00_empire_names.txt.

So,
In Stellaris\common\random_names\00_empire_names.txt:

empire_name_parts_list = { key = "my_format" parts = { "1Civilization" = 1 "2Haven" = 2 "2Union" = 2 "3Company" = 3 } } empire_name_parts_list = { key = "my_format_desc" parts = { "1Galactic" = 1 "2Cosmic" = 2 "2Super" = 2 "3Very" = 3 } } empire_name_format = { random_weight = { factor = 0 modifier = { add = 2 is_pirate = no is_primitive = no NOT = { is_country_type = fallen_empire } NOT = { is_country_type = awakened_fallen_empire } } } format = "format.my_format.1" noun = "[This.Capital.GetName]" prefix_format = "[This.Capital.GetName] <my_format>" # Great Human Empire }

In ***\Stellaris\localisation_synced\empire_formats.yml:
format.my_format.1: "<my_format> [This.Capital.GetName] <my_format_desc>"

To make different name naming for different types of government
has_government = "gov_illuminated_autocracy" is used.
So, you could just copy everything in "modifier" section from needed government in original list.

This part:
modifier = { add = 2 has_government = "gov_illuminated_autocracy" is_pirate = no is_primitive = no NOT = { is_country_type = fallen_empire } NOT = { is_country_type = awakened_fallen_empire } }

Hope it was useful.
Last edited by dzyunchik; Aug 12, 2020 @ 3:45pm
dzyunchik Aug 12, 2020 @ 3:54pm 
Files
random_names\00_federation_names.txt
random_names\00_pop_faction_names.txt
random_names\00_pre_communications_names.txt
random_names\00_war_names.txt

in Stellaris\common\ describes federations, factions, communications and wars in the same manner. But they don't use
Stellaris\localisation_synced\empire_formats.yml file. Instead, in format = "" write the same as in Stellaris\localisation_synced\empire_formats.yml directly in quotes.
Last edited by dzyunchik; Aug 12, 2020 @ 3:54pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jan 30, 2020 @ 2:37am
Posts: 4