Hearts of Iron IV

Hearts of Iron IV

View Stats:
Mark Jun 23, 2016 @ 3:05pm
How do I change the name of countries?
(e.g) "Radical Yugoslavia --> Big Purple Empire of Doom" for a stupid example. I go to the localisation and change it but it resets the names to be say GER_Fascism or something. Halp plz
< >
Showing 1-15 of 17 comments
Erik_Rex Jun 23, 2016 @ 3:11pm 
you can't change the name of a country manualy in game. but if you change your government, the name will change with it. if you want your own name you will have to go inot th gamecode and mod the game.
Mark Jun 23, 2016 @ 3:14pm 
Originally posted by Rexxar:
you can't change the name of a country manualy in game. but if you change your government, the name will change with it. if you want your own name you will have to go inot th gamecode and mod the game.
Yeah I understand. I was talking about the game code. How do I change the name in the code without the game going back to the tag names such as GER_Fascism
Mansen Jun 23, 2016 @ 3:17pm 
Localization subfolder.
Mark Jun 23, 2016 @ 3:18pm 
Originally posted by Mansen:
Localization subfolder.
and?
Evan054 Jun 23, 2016 @ 3:18pm 
Make sure you're using a proper text-editing program (not the defeault Windows notepad) or else it won't work.

For modding, I use Notepad++
Last edited by Evan054; Jun 23, 2016 @ 3:18pm
Mark Jun 23, 2016 @ 3:20pm 
Originally posted by Evan054:
Make sure you're using a proper text0editing program (not the defeault Windows notepad) or else it won't work.

For modding, I use Notepad++
I'm using wordpad and it is all displayed in an orderly fashion

example:
_english:
GER_fascism:0 "German Reich"
GER_fascism_DEF:0 "The German Reich"
GER_democratic:0 "German Republic"
GER_democratic_DEF:0 "The German Republic"
GER_neutrality:0 "Germany"
GER_neutrality_DEF:0 "Germany"
GER_communism:0 "Socialist Republic of Germany"
GER_communism_DEF:0 "The Socialist Republic of Germany"
GER_fascism_ADJ:0 "German"
GER_democratic_ADJ:0 "German"
GER_neutrality_ADJ:0 "German"
GER_communism_ADJ:0 "German"
Mansen Jun 23, 2016 @ 4:44pm 
Do NOT use Wordpad. Notepad or Notepad++

Wordpad will mess any text file up, because it uses formatting.
Mark Jun 23, 2016 @ 7:53pm 
Originally posted by Mansen:
Do NOT use Wordpad. Notepad or Notepad++

Wordpad will mess any text file up, because it uses formatting.
alrighty then
Pawel Mar 26, 2017 @ 12:02pm 
How do I get to a file for a country that can be released like Serbia?
po_novinho Feb 19, 2018 @ 8:28pm 
What ♥♥♥♥♥♥♥ localization subfolder, there are literally dozens of subfolders for each country
Mansen Feb 20, 2018 @ 12:26am 
Not even going to bother with that kind of attitude, necropost or otherwise...
bubbas Feb 20, 2018 @ 7:53am 
Originally posted by Mansen:
Not even going to bother with that kind of attitude, necropost or otherwise...
+1
Demopan Gaming Apr 22, 2019 @ 6:54am 
Whenever I Change The Names In Notepad++ It Does Not Show In Game.What Can I Do
Warhero Mar 16, 2021 @ 7:57pm 
Originally posted by Lemmade:
Whenever I Change The Names In Notepad++ It Does Not Show In Game.What Can I Do

second this
Orion Mar 17, 2021 @ 5:10pm 
I am going to preface this by saying that I highly recommend that you create your own mod and not edit the base game files on their own. Should you not wish to do this, make sure to backup whatever files you are editing. Now, on to the stuff.

Path: steamapps>commom>Hearts of Iron IV>localisation

File found within: countries_I_english.yml

Program: Notepad++

Within the file, say if you're changing the name of Germany, you will see a list like this:

GER_fascism:0 "German Reich"
GER_fascism_DEF:0 "the German Reich"
GER_democratic:0 "German Republic"
GER_democratic_DEF:0 "the German Republic"
GER_neutrality:1 "German Empire"
GER_neutrality_DEF:1 "the German Empire"
GER_communism:0 "Socialist Republic of Germany"
GER_communism_DEF:0 "the Socialist Republic of Germany"


Those are all of the names for whatever ideology the country has. So if you change to a communist Germany, the name will be Socialist Republic of Germany. But! Say you don't want German Reich as the name for the default fascist Germany. For this example, we'll rename it to Fluffypants Federation. Then, your edits should be as such...

GER_fascism:0 "Fluffypants Federation"
GER_fascism_DEF:0 "the Fluffypants Federation"
GER_democratic:0 "German Republic"
GER_democratic_DEF:0 "the German Republic"
GER_neutrality:1 "German Empire"
GER_neutrality_DEF:1 "the German Empire"
GER_communism:0 "Socialist Republic of Germany"
GER_communism_DEF:0 "the Socialist Republic of Germany"


If the game is running, exit the game. Save the file. Restart the game and this should be the name. I should add that if you have ANY mod that edits this file, it may override your edits. Disable that mod. To check, here is the path to mod files: steamapps>common>workshop>content>394360. There, you can go through each mod you have and check which files they're editing. The file names will just be numbers for each mod, so it may take some trial and error.




Originally posted by Pawel:
How do I get to a file for a country that can be released like Serbia?

It is in the file listed above. Do the same steps to change it. You'll need the country tag, by memory I know the one for Serbia is SER. To get country tags, you need to be in a game session and looking at the map... as you do. Once there, open the console by hitting the ~ key. Then, type in tdebug and hit enter. Then, simply hover over the country/states to get an assortment of info.

Edit: I just reread your post and you're asking for the country file. Oops. Alright go to steamapps>common>Hearts of Iron IV>history>countries and there are your country files.
Last edited by Orion; Mar 17, 2021 @ 5:18pm
< >
Showing 1-15 of 17 comments
Per page: 1530 50

Date Posted: Jun 23, 2016 @ 3:05pm
Posts: 17