Europa Universalis IV

Europa Universalis IV

Dynamic Names Redux
57 Comments
netcat 5 Aug @ 11:28am 
I tested it on a Windows 11 Virtual Machine with installing Python 3.12 through the Microsoft Store, and git from https://git-scm.com/downloads/win . Then i just did the command
pip install antlr4-python3-runtime
in CMD, i went to /generator and then i ran python3 main.py. If you still have issues running it, just send me a DM and we can work it out.
Jey the Count  [author] 5 Aug @ 7:41am 
Netcat, I can't run your code, how did you install Antlr4?
netcat 4 Aug @ 1:46am 
I believe I already fixed that in my version, will be updated soon.
Amuro 3 Aug @ 7:43pm 
Great mod, but sometimes it says "Prinedom of" instead of "Princedom of" - particularly looking at the Prinedom of Joseon for a vassalized Korea
netcat 3 Aug @ 4:26pm 
Awesome! Yeah this mod really breathes new life into the game for me (i love seeing the names of nations change as a playthrough goes on, so this is basically perfect). That's why I'm putting (maybe too much) effort into this, haha.

I did change some things around per personal preference, I'll try to make a comprehensive list of all the changes I made so it's easy to keep track of.

I don't have that much modding experience with EU4 itself but I found this mod to be a great entrypoint for that, so I'm just playing around with it at this point, and seeing what other ideas i could come up with to make it even better.

I'll also stop hogging the comment section now so other people can come up with ideas!
Jey the Count  [author] 3 Aug @ 3:06pm 
Hollllllly cow, you truly put way more effort into this than I ever intended to, didn't you?

This is very cool. I'll gladly include your work and pin you as co-author.
Jey the Count  [author] 3 Aug @ 2:45pm 
Ok, I'll look into this tomorrow.
netcat 3 Aug @ 9:39am 
I've been working on a complete overhaul of the structure of the rules file as well. i've been experimenting with YAML instead of JSON, but i figured a structure similar to regular paradox script files may be better, so i made my own parser for it as well.

The benefit of this is that not only is it now closer to the regular PDX modding script language, but it also benefits from formatting and code highlighting using the CWTools Paradox Language Services extension for VSCode, which makes adding rules much easier (at least, in my experience.)

The main script is now extensible and efficient as well, so that's a huge bonus too.

If you'd like to take a look before i do any pull requests, feel free to check it out here. The rules are now in rules/rules.txt
https://github.com/man-netcat/dynamic-names-generator
netcat 28 Jul @ 1:18am 
Enjoy your holidays!
Jey the Count  [author] 28 Jul @ 12:21am 
I'm on holidays rn, so I cannot change anything. I'll look into your changes after I return next week.
netcat 27 Jul @ 12:04pm 
Another update (I feel like a co-developer at this point, lol), I managed to get the feudatory/protectorate idea to work on my end. To my surprise, multiple countries can have the same name as well, which is convenient.

If you'd like, I could add this to the mod as well.
netcat 27 Jul @ 8:36am 
I also made an effort to significantly optimise your script, it now finishes in only a few seconds compared to the several minutes of the original. If you upload your mod to an online repository such as Github, i could make a pull request for you.
netcat 27 Jul @ 5:12am 
To add to my previous comment, I have some ideas for how to construct this, alongside a similar suggestion for feudatories. Instead of marking certain tags as a feudatory, instead check if:
- it is a subject
- its overlord has the mandate of heaven
- a nation with the name does not yet exist

Then, for feudatories, assign a name based on the *area* of China it is in
For protectorates, similarly, assign a name based on the *region* it is in. (so Anxi for Central Asia region, Andong for Manchuria region, Anbei for Mongolia region, Annan for Indochina region)
netcat 27 Jul @ 3:35am 
Could it be possible to have subjects of the Emperor of China be marked as "protectorates"?
Examples are the Tang dynasty protectorates, Anxi, Anbei, Andong, Annan and Chanyu, as can be seen here https://en.wikipedia.org/wiki/Tang_dynasty_in_Inner_Asia#/media/File:Tang_Protectorates.png
Scullex 26 Jul @ 4:11pm 
Oh awesome, thanks
TsEragon 26 Jul @ 1:03pm 
ok got it.
Jey the Count  [author] 26 Jul @ 12:40pm 
Sullex, many unique governments have custom names.
For example United Provinces, Mong, etc.
Scullex 26 Jul @ 12:10pm 
that could be too excessive though since you could form out of the nation still with the government so it would have to be a general title that would fit any nation i guess
Scullex 26 Jul @ 12:09pm 
so it changes with government types, ever thought about unique names for the unique governments?
Jey the Count  [author] 26 Jul @ 12:01pm 
Jey the Count  [author] 26 Jul @ 12:00pm 
TsEragon, what you mention here, are names in local languages. The goal of this mod is to have names like "Kingdom of Sweden" or "Republic of Genoa".
TsEragon 26 Jul @ 11:45am 
Yes, my friend, that's not the original name of the structure we call the Ottoman Empire. It was named "Ottoman Sultanate" by European writers and leaders. The state known as the "Ottoman Sultanate" was actually called the "Devlet-i Aliyye" (State of the Exalted), meaning the Eternal State. They never called themselves the Ottoman Sultanate. In my opinion, most of the state names here are misrepresented. By dynamic names, do you mean titles like empire, kingdom, khanate, or sultanate, or actual dynamic names?
Jey the Count  [author] 26 Jul @ 8:40am 
TsEragon, it is the correct name.
Scullex 26 Jul @ 8:29am 
*i have no idea, typo.
TsEragon 26 Jul @ 6:58am 
dynamic names but Ottoman Sultanate? BRUH.
Jey the Count  [author] 26 Jul @ 12:11am 
Such names I never found used.
Scullex 25 Jul @ 8:09pm 
I'm just spitballing so I'm not actually sure if that would be a good idea or just bloat but if anything maybe it should be a addition of you reach empire rank? But Some wouldn't sound right in some naming positions like the first good one that comes to mind maybe is "western European empire of ******" but you're free to trash the idea because that sounds like a mouthfull to have to see on the map but u have no idea
Jey the Count  [author] 25 Jul @ 2:12pm 
I guess there's the USA and the UCA... But you cannot form them OUTSIDE America.

You can always add more names of you want.
Scullex 25 Jul @ 6:21am 
Just thinking about how some names are derived from location with some countries
Scullex 25 Jul @ 6:15am 
"North american" at the start of a title if your nation consists of the region or superregion but maybe that's a bit excessive
Jey the Count  [author] 25 Jul @ 4:08am 
Ben0316, all vanilla names are preserved. The Turkish localised named (for example Eyalet-i Misr) are in. Regular countries that didn't have a custom name just get swapped to "Eyalet of X".

Scullex, I don't understand your question.
Scullex 25 Jul @ 1:33am 
actually, good point to ask, if big enough does the geography get stapled onto the name?
Scullex 25 Jul @ 1:33am 
all we do is win win win no matter what, time to make the north american confederation of lesbos
ben0316 24 Jul @ 3:55pm 
does the mod add eyelat names to the tags (e.g. eyalet-i tunus)
Jey the Count  [author] 24 Jul @ 8:32am 
Netcat, sadly no. The mod has to have the name directly defined, they aren't dynamically generated during the gameplay.

If you're making a mod, you can use the attached generator to generate a build of the mod that will work with your tags. See the tutorial in the description.
netcat 24 Jul @ 3:33am 
Could it be possible to have "default" names for nations that are not explicitly supported by this mod? For example, if i make a custom nation "Greenland" that is a kingdom, could it automatically become "Kingdom of Greenland"?
Sunconure11 23 Jul @ 11:30am 
While I have been talking with Jey on Discord, I would like to share something with the comments here.

https://pastebin.com/uCwUKT7n

I've been working on more rules for subject types from various mods, starting with Expanded Subjects. As for why mandala vassals have rules in Oceania, it is due to how another mod, Extended Timeline, handles that area, combined with the general proximity.
Jey the Count  [author] 20 Jul @ 2:18am 
Netcat, Great Armenia has been added, EoC Korea now gets named "Great Zhonghan".
netcat 19 Jul @ 4:02pm 
For a "Korean Chinese empire", you could go with 中韓 or "Zhonghan (Chinese pronunciation) / Junghan (Korean pronunciation)", which has 中 (meaning "central", referring to China as the center of civilisation) and 韓 (meaning "Han", referring to the three "Han" states of Korea, and not to be confused with the Chinese Han dynasty, which is entirely distinct).

In a modern context it is usually used to describe Chinese-Korean relations. Maybe it could indicate a "harmonious" coexistence of the Korean and Chinese people, but maybe i'm looking into it too much now lol.
Jey the Count  [author] 19 Jul @ 12:59pm 
Netcat, "Great Yi" is intentional. I wanted to include a fancy dynastic name for Korea as Chinese empire. If you have a better idea how to call it, I'm open to suggestions.

When it comes to Armenia, I will address that issue, it is indeed a bug on my side.
netcat 19 Jul @ 12:04pm 
Another thing to note, when Armenia forms "Great Armenia", it will change its name back to "Kingdom of Armenia". I guess this is personal preference but i think Great Armenia sounds cooler.
netcat 19 Jul @ 10:27am 
Great Mod! I do have one nitpick though, when playing as Korea and becoming the emperor of China, the name becomes "Great Yi", but this should be "Great Joseon" instead. Yi is the clan name of the imperial family of Joseon, but not the name of the country.
oh wait nevermind it already is
is this extended timeline compatible?
Jey the Count  [author] 12 Jul @ 2:34am 
Celestial Caesar, Sunconure11 - the issue has been addressed.
Sunconure11 11 Jul @ 10:58am 
I can confirm the same issue, but didn’t think it was this mod
Jey the Count  [author] 8 Jul @ 10:41am 
Ok, I'll check it when I have time
Celestial Caesar 7 Jul @ 6:08pm 
Awesome mod, the only bug I've found with it is that it renames the Estates tab to "Electorate of Teotitlan" for some reason.
Zyrph 7 Jul @ 9:08am 
Thank you!