Dynamic Names Redux
This mod adds a dynamic names system to EU4. It will change the anme based on the government type, government rank, religion, dynasty, etc.
This ISN’T in any way connected to the ‘old’ Dynamic Names or Dynamic Names 2. This is better – more names, more dynamis and most importantly…
I attach the generator. All you need to do is to add whatever new tags and dynasties you have in your mod and add some rules of naming. That’s all! You can generate your own dynamic names mod from this, just add a link to the OG one in the description.
Quick tutorial:
Once you download the mod, it includes a "generator" folder. Inside are other subfolders.
/data folder
Here you have two files: dynasties, and tag_names.
Inside the dynasties file, you can put dynasty names to be dynamically used. They need to be separated by a newline.
Inside the tag_names file, you put the names of the countries, as they exist in the EU4 localisation files.Note: the adjective must be AFTER the name. So, for example:
FRA: "France"
FRA_ADJ: "French"
Remove all the 0’s after ‘:". You can use _ADJ2.
/rules folder
Here you have two files that interest us: rules, and name_substitution_rules.
Inside the rules file, you put the rules for the dynamic names. This works in an EU4 format.
Example:
DUCHY = {
name = "Duchy of {NAME}"
conditions = {
has_reform = monarchy_mechanic
NOT = {
government_rank = 2
}
}
}
DUCHY is an unique name. Doesn’t have to be in all caps.
Inside the curly braces, you put:
name="XYZ" – you can put {NAME}, {NAME_ADJ}, {NAME{ADJ_2}, or {DYNASTY}. These will be substituted with the correct tag, or dynasty names.
You can also put a tags block, allowing you to limit the rule to only a couple of tags.
Inside the condition block, put any EU4 trigger you want. Everything will work. If these conditions are met, the rule will fire, and the country will be renamed.
Inside the name_substitution_rules file, you put the substitution rules. These rules allow you to switch your tag base name, if the conditions are met. Example:
INDIA = {
name = "India"
name_adj = "Indian"
tags = {
tag = BHA
tag = HIN
}
conditions = {
government = republic
is_revolutionary_republic_trigger = yes
}
}
This will switch the name for Bharat, or Hindustan, to India, if they’re a revolutionary republic.
Note: this will combine with the regular rules, resulting in ‘Indian Republic’.
After all is set, simply run Main.py by double-clicking it. You need to have Python installed.
If it fails, run install.sh before that, you may be missing some dependencies.
Debugging: in the game, open the console and type ‘event dynamic_names.0’ (or whatever other name you gave it in defines). It will show what event will be fired for your tag, simply run it via the console using ‘event dynamic_names.XXX’. The event will list all the names that had been applied.
Important: The rules take precedent top-down. This means that the last rule on the list will be the last applied. Another quirk of the generator is that the dynastic name override all other. Make sure to put correct conditions. For example I made it so the Mamluk government doesn’t get the {DYNASTY} Sultanate name.
Note: This is not iroman-compatible. Will never be.
Revisions:
Old revisions of this mod are available below. Click the link to download.