Hearts of Iron IV

Hearts of Iron IV

108 ratings
How to create custom focus tree icons
By manlethamlet
A simple guide on how to create and use custom focus tree icons for your use in HOI4. I'm talking super simple.
   
Award
Favorite
Favorited
Unfavorite
Materials needed
To do this you'll need:
-A good image editing program (Photoshop, GIMP, etc. basically anything but MS Paint.)
-A suitable text editor (Atom, SublimeText, Notepad++)
That's it. That's how simple this is, lol.
Creating the icon
First off, get an image or make an entirely new one. In this guide, I'll use an edited version of the "Polish deal" icon that I used for a focus in my California Republic mod.
You can use any image you want for a focus icon, even some thinking face emoji meme or something. The limit is your imagination, as they say.

You can skip this next part if you're not editing an image.
So, open up the image you want to edit in your image editing program, made specifically for the purpose of editing images. Crazy, I know. Edit that to your heart's content.
Bam, it's done.
Saving the icon
You can stop skipping now.

Save it as a .dds file. Paint.NET is best for this, so if you were using Photoshop or anything else that doesn't save .dds files, save it as a .png and reopen it in Paint.NET.

Whether you're doing this as part of a mod (recommended) or just putting this stuff directly into the game files (not recommended but what the hell, why not), save it in this exact location:
gfx\interface\goals
If you've saved it in the game files and want to save yourself some trouble, overwrite one of the game's focus icons. If not, name it whatever you want.

If you've just overwritten a default focus, congratulations! You're done with this guide. Hooray. Go play HOI4 and enjoy your un-Christian anime tiddies focus icon or whatever.
Applying the icon
If you weren't lazy, and you gave your focus icon a unique name, this is the tricky part. Welcome to the tricky part.
Go into the game files and go into the interface folder, not gfx\interface. Just interface.
From there, go to goals.gfx and open that in your text editor (told you you'd need it).
When you're there, do this but with your own focus icon:






Pretty self-explanatory.

Then, go into the focus tree file of the mod you're making,
or in some random country's focus tree (common\national_focus\whatever_name.txt) and put that focus icon name's in there, like this:




Guess, what? You're done! You can now go in the game and see your artwork.













And now you've reached the end of the guide. You now possess the power to change or create focus icons. Have fun changing every focus icon into random memes or whatever.
Just remember:
With great power, comes great responsibility.
19 Comments
manlethamlet  [author] 1 Nov, 2024 @ 8:12pm 
You might have messed up the goals.gfx file. If it overwrites the vanilla file without having any of the vanilla sprites entered, the game won't be able to load its own icons. In that case either tack your custom SpriteType lines on the end of (a copy of) the vanilla file, or rename the file to [mod name]_goals.gfx or similar. If it's not that, I don't know; I haven't played HOI4 in years, and while I'm pretty sure PDX wouldn't have changed how this process works in the meantime I don't know for certain.
Willis Millis 31 Oct, 2024 @ 9:12pm 
Hey there, do you happen to know why the base game icons would no longer be loading after doing this? To clarify the base game goals files have remained untouched, I created my own folder in mob > My mod > gfx > interface, but now the base game icons for all the other countries are replaced with the error dog.
rynegeist 14 Jul, 2023 @ 6:51am 
how do you save as a png using gimp?
dominiktroyan 24 Jun, 2023 @ 6:02am 
Do I have to do this for every single focus I create?
Eagle - 6 1 Jul, 2022 @ 5:43am 
can you prepare a guide for how to make custom maps or create states in HOI 4 please?
Eagle - 6 1 Jul, 2022 @ 5:42am 
Bro you must be a legend. I was trying to understand what the f... is that "spriteType" system. Thanks a lot.
R1Forever 8 Jul, 2020 @ 7:08am 
How do you actually make the icons, like draw them?
yiho567 14 Apr, 2020 @ 8:53am 
Hey sorry to bother but I followed the tutorial step by step but it still shows the generic unknown icon for my focus
Ryfi 21 Mar, 2020 @ 5:27pm 
how to do portraits?
Vitéz 15 Jul, 2019 @ 12:02pm 
Hi! I am having difficulties making my own icons. When I open an icon from the base game it is surrounded by black colour, but on the preview these parts are transparent.. If I then copy my own picture in it and save you can only see the new picture within the outlines of the original picture. It seems as if there where two layers.. Any ideas?