[HOI4 Modding ] Creating a new country
Vložit
- čas přidán 25. 06. 2024
- This lesson will explain how to create a new country in Hearts of Iron 4.
If you found this video helpful and want to help the channel grow you can use the super thanks button above, any amount helps the Iron Workshop improve and continue to make more videos like this one.
Timestamps for this tutorial/lesson:
00:00 - Lesson beginning
02:00 - Creating mod file
03:51 - Creating country file + setting country map color
10:52 - Creating country history file
17:36 - Creating country leader + picture
22:48 - Creating country flag(s)
28:27 - Creating localisation (setting country name)
Useful links:
Iron Workshop Discord server: / discord
My twitch channel: / playerhoi
Hearts of Iron IV wiki modding page: hoi4.paradoxwikis.com/Modding
If you would like to contribute to make the Iron Workshop better you can do so on Patreon: / playerhoi
Here are the download links to the various tools used during The Iron Workshop lessons/tutorials.
Notepad++ Download: notepad-plus-plus.org/downloads/
Paint.net Download: www.dotpdn.com/downloads/pdn....
Please consider disabling your AdBlocker on CZcams to support this channel and any other channel that creates content you enjoy and makes revenue from ads. - Hry
----- IMPORTANT! -----
An important note due to changes to localization in version 1.11+, for the localization to work properly please move all the files inside the localisation folder into a folder called 'english' for the localization to appear properly.
----- IMPORTANT! -----
Due to the large amount of questions on this topic I will post this sticky so that everyone can find an answer quickly.
For anyone having the issue with all countries changing their colors - This happens because you probably did not close a bracket properly in the common/countries/colors.txt file. Either find the bracket that is not closed and close it or just replace the file with the vanilla one and repeat the process of assigning a color to your country as it shown at 07:21
As you can clearly see it did not happen in my video so there is no reason for it to happen in your game if you follow the instructions carefully.
For anyone having the issue of nothing changing - This happens either because you did not activate the mod in the game launcher before testing your new country or one of your folders/files is misspelled so the game doesn't know what to load.
Hope this helps.
Is there a way to delete local mods so that they don't appear on the launcher anymore?
I've been creating a bunch of test mods I don't need anymore and some of them accidentally happen to have the same name so it became confusing!
What does color_ui (at 8:55) does in the game btw?
Thank you for your attention towards beginners like us!
i tried to fix the issues but the country still doesnt show up, The state it is located in doesnt appear to have a country in it.
@@kompridiplaysgames5056 same,I´ve been doing for 1 whole day and nothing happens
same issue
When I go into the Hearts of Iron folder all what there is, is a text document call console_history plz help!
With basically no code or modding experiance I was able to hammer out a nation in less than an hour. Excellent tutorial man
Name of the Nation?
same, im actually having fun with this
me, watching this video knowing im only going to name Italy the pizza empire
I'm renaming Canada to sorry
@@infinityarcangel5972 ._.
me, naming Poland The Pierogi Empire: *YOU ARE A BOLD ONE*
@@wojciechdabrowski4417 i would call it "the historical punching bag"
@@infinityarcangel5972 nice one
I have a lot of free time, and wanted to create a mod, Thank you very much man!
So it worked how did you get your country let's say example for me facist and get your leader
@@gubadagoober It's in the video bro
@@gigachad-gx9vu nvm I deleted the mod and ditched it broke my game
@@gubadagoober Well how did that happen? The mod is a separate folder and everything.
@@gigachad-gx9vu yeah
I still remember Trumpmania
Good times :D
My favourite nation
New Justice ew
@@frostyonair b
@@Whatareyoudoinnhere thats what this video is for
"we will make spongebob a liberal"
ngl made me chuckle thinking of all the cons getting triggered and frothy at the mouth
@@Fermifire Ok?
@@Fermifire SPONGEBOB IS WOKE⁉
SpongeBob is a communist leaving says that in the AI SpongeBob stream Mr Krabs and plankton overthrow SpongeBob who's in charge of the bikini bottom Communist party
@@Fermifire ^like these guys
"The ideology of Spongebob is despotism"
my man put the tutorial as his background respect
So I used Czechoslovakia as a base instead. I hope my mod wont break the game
Edit: It did, I tore a hole in France
Amazing! You are now thinking with Porta... I mean try again and I am sure it will turn out better.
based mod
based
based franco hole
Me when bri'ish Mod;
Hey man I never ever thought I'd be able to create a mod but your tutorial is the most well explained I've ever seen. Thanks a lot man :)
Glad I could help!
@@TheIronWorkshop how do you have 17k subs, have you had a controversy before?
So excited now that I've finally got this working! Thanks for the great tutorial!
Thank you so much, I hope to learn a lot more from you!
Hoping I can mod a complete custom mod soon.
best tutorial ever, first one that actually worked for me
I love this tutorial so much! Thank you for sharing this, and taking your time to help others become a Hoi4 modder. 🙏
For anyone who has the problem that flags don't show up in-game and instead show up as a blank black flag, you may have compressed the flag files. To fix, try redoing the process without compressing the files.
Edit: Note, the ability to compress files are generally shown when you save the file.
thank you man, you helped me
@RealLilian It depends on the drawing program you're using, but most often it will ask whether you want it compressed when saving the image.
tysm dude
Great, now i have to redo the process alll over again. I think i remember why i gave up on modding before.
thank you
Just as a note to anyone wondering why the country name won’t appear, if you look into the HOI4 folder before the countries_1_English folder there is a folder called the language/English/Polish etc and you need to place that folder for it to work.
Thanks for your comment, please note also that this has already been mentioned in the first pinned comment and I will make sure to include this information in a future remake of this video lesson.
@@TheIronWorkshop there is no pinned comment though
@@Chillerll POV: Legally blind
@@infinite_seaweed4373 There wasn't one when I wrote the comment, brainiac. He must have unpinned it for a while before he edited it.
i've tried to move all folders to english folder but it just make the game crashed. tried to move english folder to our own mod localisation folder and add our own country but the name still wont appears
You convinced me.
I think I'm going create my own mod about a scenario I wanted to play but I had no chance to realize due to the fact that one of the "countries" is basically Sci-fi stuff.
I don't know if I can create that particular country, but I think I can remodeling the world map to fit my scenario.
But I still have some questions. I think I will first watch a few times more this guide before start.
19:20 you didn't copy the picture, you moved it
Lol ireland unite the irish iles
💀
every time i feel this immense relief when starting the game and everything works. thank you for that
You earned my respect. You know how to make a good tutorial, and explained it very well! You got my like and subscribe.
Directions and steps as windows wallpaper, very creative!
Thanks to this video the Empire of the Hand has been brought into HoI4
ZA HANDO
Today i watch this video and follow all steps. My country was created and show up in game when i start HOI. Thanks for help. I will watch other videos too. I want to go in depth with modding 😊
thanks a lot mate, your tutorial helped me create my own country. you good sir deserve a sub.
Thank you so much! So helpful!
That was so good. Mordor in new zealand is running well
Thank you! Wonderful video!
Thank you sooo much! I can't believe it worked.
How did you get it working? Nothing at all happens when I launch the game.
@@svenko I just followed his instructions exactly.
Thank you for your tutorial. I'm trying to make a submod for Millenium Dawn right now. In short I want to add the GDR (East Germany) to the game. So an alternate universe mod where there was no German reunification and the GDR still exists. I'm just trying to create the country myself with the research tree and if it's good, I'll also create a focus tree later.
The advantage is that I can simply copy and paste the flags, which saves me a lot of time.
I followed everything but my country isn't there and the error log says that my tag is not in the tag list when it most definitely is.
Edit: Actually I'm a dumbass and spelled something wrong
you gotta add it in the english_I_localisation or something file for your mod
Bruh your like a total idiot
Hey it's a mycelium block I like saying you
Hey I have the same problem, what did you mispell
YES! I FINALLY DID IT! Thank you so much!
Thanks! This tutorial is very useful
Been getting the error: "Some errors are present in the map definition and have been logged to error.log" I check the error log but nothing is present. So far I have tried to recreate the states folder, assign my nation a new capital a few times, cleared the user directory. Not sure if I am missing something here or not. Any help would be appreciated!
The Iron Workshop Hi
Thanks for your tutorials on creating a country and other videos
I just want to ask how can I change/manipulate the initial number of existing buildings like infantry factories of a specific state? I didn't saw you mentioning it in your other tutorials. Please help me out ;)
E.g. unlocking all the building slots for new york in 1936, decreasing the number of infantry factories of new york.
Thank you very much for helping me out as a beginner, I learnt a lot from your vids.
You will find the answers here: hoi4.paradoxwikis.com/Commands#Buildings
Just apply these in a focus/event/decision or edit the state files directly to change how they start with buildings (if you open an existing one it should pretty easy to understand what's going on in there).
Thank you very much, very helpful.
So Helpful!
When I try to change the owner of Dailan and/or East Hebei the mod crashes, do you have any idea why?
DO NOT MOVE THE FORBIDDEN LANDS.
Hi, there. I've just seen this video after the new DLC "no step back" released. I've found that adding a "create_country_leader" is not functioning. Furthermore, I've found that the new version of the game has a new folder in "common" called character and all countries' corresponding characters, including leaders, generals, field marshalls, advisors, etc, are defined in there. And in those files which is in "history/countries", there are such syntax as "recruit_character = xxx". This might be a considerable modification that the new version has made.
Yes, and there is a video about this here: czcams.com/video/dKLkI1AGArc/video.html
idk if you still read these, but dude your tutorials are actually amazing
oh men, You are a genious! Thanks a lot!
the moment you use my country i as example (Algeria) i loved you
bruh he using it random....
@@zortidi3595 I mean let him be happy just because his country was the easiest to modify in-game
Hi Can you help me with the flag part? mine are not appearing, i tried everthing.
Thanks so much for this tutorial.
Do you have to have every other country in the localisation file? Or can you just have your new one?
Ty man!
the leader portrait wont show up, I've tried many ways, I used the format size, match the leader's ideology with the ruling party. I used google photo btw so..pls help
Edit :Nvm it worked! Turns out it's one of the folders that are misspelled so the picture's file is fine everything's fine so all this time it was one of the folder that is misspelled, tysm for the tutorial!
I’m having some issues getting my images to load in game. I’ve triple checked all of the files and text documents so I’m fairly certain I’ve done everything right. Any thought on what I might have missed?
i think i might know, since i used to have this issue.
what i use to do (incorrectly) in gfx/leaders is just copy my portrait twice and rename to put a '.dds' and a '.png'. i used to think this would actually change the file, but it does not!!
make sure you are converting the file properly in paint.net by saving as, and right before clicking 'save', changing it to a DDS and a PNG
hope this helps
@@chubby5188 DDS or PNG? Or does it matter?
@@chubby5188 also the base game uses Targa so will that not work?
@@nacroeisdumb9482 so you need to have (in the gfx --> leaders --> (country tag) folder) 3 images:
1 needs to be the paint.net file
1 needs to be a dds file
1 needs to be a png file
you can use paint.net to create the portrait, save it into your folder, and then just use the save as feature on paint.net but select the dds and png file types
hope this helps
BEFORE SAVING MAKE SURE THE FILE IS NOT COMPRESSED WHILE USING ANY EDITOR UNCHECK THE COMPRESS OPTION WHEN SAVING
I HOPE IT HELPS!
Thanks very much alot of respect for your time
1000th comment, and I'm happy to say that this works! Thanks a lot for the helpful tutorial!
is it possible to get rid of the 1938 start date?
Thank you for your help! Do you know how I remove a country from the map? I wanted to play only with Asia, but I'm not able to remove the other countries
I gess if u cut the country files in "states" Dat aren't Asian, only Asian terrotiry will have assigned states
Thanks!
YAAAAY i did everything right in the first attempt! Definently like this video
aint no way
Hey! I was wondering how you add a starting navy to your country (I'm modding a country that starts with no navy), and I thought I was editing all the files right however the ships don't show up.. are you able to help or will you make a guide about that?
Take a look here: czcams.com/video/BoDnbqn2O6k/video.html
+ Don't forget to add the naval_oob = 'THE NAME OF YOUR NAVY OOB FILE' in the country history file.
@@TheIronWorkshop Thanks a lot! I was searching everywhere and couldn't find anything.. didn't see yours either.. thanks again!
Funny enough I wanted to learn how to create a pirate themed mod in ww2 and u happen to pick The Bahamas 🇧🇸👌🏻
Best youtuber ever!
Thank you! ;)
Hey, I made everything like you and flags not working, everything other is working how it should
i did everything right when setting up my ideology, but it says that all ideologies have 0% popularity, i typed all of that into the set politics with the number date on it, and it still shows up like that
are you sure that you wrote 0.5 instead of 50
That's coz party popularities should add up to 100 no more no less
@@branwysskyratchetat which point do I have to write that?
Hey!
Is it possible to add starting equipment for a country? Not equipemtn to the units in the field, but in storage?
Merci beaucoup, je n'ai eu aucun bug, tout fonctionne 👍
22:17 im just out of words
Thank you!
great video
20:48 I cant find the A8R8G8B8
Me too have you figured it out?
There is an option B8R8G8A8, it worked the same for me
Spongebob Character Political Ideologies:
Spongebob- Liberal
Patrick - Foodism
Gary - Futurism
Squidward- Social Democrat
Sandy - Texan-Technocracy
Mr. Krabs - Kleptocrat
Plankton - Evil-Technocracy
Mr.krabs Kleptocrab
actually had fun designing flags even though i thought it woukd be boring
20:50 in my version i cant select this one there isnt any of those in your version (got the newest version)
or am i doing something wrong? i cant tell what format could i use instead when none of those are available? sorry im really new to this world
Good tutorial! Can you update the national focus tree tutorial?
Coming next week
i didnt see how you assigning states
Thanks
I have done everything luke in the tutorial but my country is not there and for some reason the
the state has been removed. I think im just stupid but pls. help
same
Can you do a tutorial on how to make a nee ideology?
Will probably be the next video or the one after that.
What are these teachings of the “née” you follow?
Damn that was easy. Thanks, just made a basic mod with Ukraine starting in 1936 and I gave all the SOV cores to a re-purposed crimea and Vlad and Vlod portraits. Now I just gotta copy Italy's files to make them start at war
Thank you worked perfectly, except a mess up on my end while creating the flags (which i fixed)
how dod you fix it
I did everything. But, my game just chrases.
when i load the map, all the countries show random colours and where my country should be is not there, just empty land
I've had the same problem. My problem was, that I forgot to save the Notepad++ dokument befor starting.
managed to solve the problem?
@@staxzwy2379 yes
@@grexiko464 How did you get anything to show? For me nothing happens when I start the game with my mod.
There is only empty land for me whenever I load my game up in the spot i want my country to be
This is a certified attu island challenge moment
Sorry if it's an impatience issue, but is there a faster way to add states to your country??
20:49 if i edit the picture like this it doesn't show my that format
same
Same
it says next to the format the linear format, which should be there
Do you guys know what file type it needs to be?
When I opened up the game with the mod on all of the countries were different colors and the country that was suppose to be in the Bahamas wasn't there, in fact no one owned it. Can someone tell me what went wrong cause I'm all to new at this.
did you find a solution?
Same here. When I went into the game no one owned the state and for some reason Germany was green UK purple Spain red and France some sort of green... same thing for all countries. If someone has a solution it would be greattly appreciate if you can help.
@@xaf8213 In the fixed comment it says that you probably didn't write a bracket correctly in the color archive
@@lepizuf883 Okay, thank you for the information.
@@xaf8213 I'm a month late, but I hope I've been useful
Hi, how can I change traits of a leader (if I want to add some benefits from the leader like political power, stability or stuff)?
I watched your video and did exactly what you did in it and it all worked for 1936 but in 1939 a portugese focus and SPR divison were errors. any ideas how i can fix that?
This is my third time watching the video and starting again and it always goes wrong. I open the world map and everything is the wrong colour and i cant select my nation. Pls help :/
Great now its saying that the path in this mod's descriptor file is invaild or does not exist
Read his top comment
How do I get divisions that spawn on my states to not start off as exiled, and as my country? Did you make a video on it? Edit: I figured it out if anyone else needs help
could you say how please
Yes that would be helpful
How did you do it
@@nickmiller5277 Oops sorry. I didn't have my notifications on. Heres the video that helped me out - czcams.com/video/bbJNm3lf32g/video.html
@@aldahirandrade5085 I replied to the comment under yours with the video that helped me out
I couldn't find almost any of the folders you pointed out/ used any advice to fix it?
you good
I just decolonized Bavaria and the worlds colors have changed...
Yeah i have the same problem
same here
same
This was a while ago but check that you have a closed bracket where you need it, same thing happened to me.
@@nicholasios4566 Thanks
When i do this i have it to the T and still my nation does not appear for some reason
I tried making a custom nation for the OWB submod. Followed this exactly, have all the required things for a custom country, as well as custom leaders, flags, etc. Launch the game and theres absolutely no trace of my country anywhere in the game. It's as if it simply does not load at all, or at the very least isn't overriding the main files that it needs to be overriding. Not sure how to fix it but I hope the uploader gets back to us soon.
nevermind I figured it out, I forgot to put a dependency line in the descriptor.mod
@@ryman1933 I have the same problem as the person who wrote the comment and you are talking about a file called descriptor.mod that appears as a cideo file to me... mind helping me?
@@aprgames9480 If you have not already make sure to download notepad++ after you download and install that right click the file and select "open with" find notepad++ and select always open files of this type with this program.
@@aprgames9480 Hey man did that fix the problem?
Do you have some Discord and time to explain how exactly that goes? i tried like the in the video but i cant find the mistakes i have... cuz i dont have a own Country now @The Iron Workshop
My game corrupted after i tried making everything as you said. The screen of game is larger, so the corners and more arent seen. can i fix it or do i need to reinstall game?
Hello there! I got my hoi4 in Microsoft, and I don’t have hoi4 in steam. And I can’t make a mod, Help please.
type in yt "how to download hoi4 launcher 1.9.1 nonSteam" and the u have a tutorials how to do it
Everything is in a correct format correct path file etc, but when turning the game on it just loads as if it doesnt exist
Same man
Hey for some reason it deleted the mod in the paradox launcher but not my files, i think it would work if I had the mod to turn on… anyways to get the mod back into the paradox launcher? (There was a red triangle on the side 🔺)?
Hey
I followed your tutorial and everything is working fine except for certain focuses ( just using the default focus tree). Whenever I do a focus that adds a civ, mil or dock and it completes they are added to the state but don't show up in the production/ construction tab. The factories box also keeps saying 0/0. Is this a bug or am I doing something wrong?
happening to me too
PLEASE HELP! I am trying to make a country, however I cannot get it to appear. I have triple checked my spelling and I know for certain my mod is activated before I boot up the game, however there is no change. To check if my country exists at all, I used the "setowner" command with my country tag, but it says, "Invalid country tag". I have no idea what could be going wrong here and it seems like I followed everything to a T. Does anyone have any suggestions?
Same issue here. I tried for hours to fix it but no success :(
Same ;c
@@yanonamee i actually fixed it the problem was that somehow the mod was not turned on. I made a brand new playset with the mod only and after that it worked
@@goofball12312 Still not working :(
@@goofball12312 I'm making a submod of an existing mod so I dont think thatll work
Me: *Sees thumbnail*
Also Me: This is it the Meme-mania will rise
Also also me: It's for the original game
Me right now: *Sad pirated HOI4 noises*
just buy the game on sale. right now it was only $10
NO ITS NOT FOR THE ORGINAL GAME, I also have the pirated version of hoi4 and I created my own country by watching this video.
@@Muhammadalisiddiqui141 but why? just buy it
@@dodolulupepe I cant, coz my father hates buying games, lol he says what benefit do you get after buying games?
@@Muhammadalisiddiqui141 oh that's really poo
THANKS
Based modding
Can I change my political party name? If I can, how?
localisation/parties_I_english
For some reason my custom country leader isn't the one I made on the painting app, but it's just a generic leader. I'm currently using the latest version so I don't know if there is a difference between the two versions. I also checked if I put the correct ideology (it's correct). Any help?