Hearts of Iron IV: How To Make Custom Radio Stations

In this guide, I will teach you how to make your own Custom Radio Station(s)!

 

Before We Start
Just a disclaimer that this is how I learned to make music mods, it may not be the most efficient way but this is all I know and I’m not really a professional coder.

Big thanks to Socialist Tsar who helped me learn making music mods some time ago!

This is my second and longest guide I’ve ever made so far and I’ve spent way too much time making this. Please, tell me in the comments if you have any problems and I’ll see what mistake I made while making the guide.

Hopefully I can help anyone with this guide!

Programs You Might Need
These are the programs needed to make music mods.
  • Sublime Text[www.sublimetext.com] (Or any other program which can edit coding) to open .gui, .gfx, .yml, .asset files
  • Paint Net[www.getpaint.net] to edit your album cover
  • Windows Notepad to open .MOD files

These are completely Free to use.

I named my mod folder as “test”, you can name it to whatever you want. This is just what I’ll use for the guide.

Making Your Mod Folder
Since the new Launcher which came with 1.9 Husky, we have to create our own mod folders by using the launcher’s “create mod” option.

First, Open the Launcher and go to “Mods”

Then click “Mod Tools”

Now, “Create Mod”

After that you’ll see this window.

  • Give your mod a name
  • Type in the latest version
  • At directory/___<– Give your mod a name (I used test for this guide)
  • Now choose tags you’d want (I mean, this is kinda obvious)


Now just click “Create Mod” and boom, now you have a mod folder which is located in “Documents\Paradox Interactive\Hearts of Iron IV\mod”
Your mod folder will appear (with the name you gave it) with a descriptor file inside of it (which is an .MOD file) and a .MOD file next to the folder with the name you gave it.
They will appear like this

Now create empty folders with these names inside the created mod folder
  • gfx/interface/topbar/musicplayer (By ” / ” I mean create a folder inside the folder)
  • interface
  • localisation
  • music
Files You Need From The Base Game
Now you will need some files from the base game which you can get by browsing the game’s files.


From the base game you’ll need these files. (This is optional but I highly recommend doing this since this really makes the whole process easier.)

You need “_songs.txt” and “music.asset” files and copy them into your mod’s “music” folder.[/b]


Rename both of them like “test” once they are in your mod’s music folder (Example)

We also need an album cover which you can later change to your own liking. Now copy and paste “base_game_album_art” inside your mod’s “musicplayer” folder and be sure to have these folders in order
“mod\test\gfx\interface\topbar\musicplayer” and paste it inside here.

Rename it like “test_album_art” when it is inside your mod’s “gfx\interface\topbar\musicplayer” folder (Example) (Mine album art is already edited, you will have to edit yours yourself)

Interface files are also needed which you can get from here.
You need “musicplayer.gfx” and “music_station_base.gui”

Rename them both like “test” when they are inside your mod’s “interface” folder (Example)

Let’s get some Localisation files too.
You need “music_l_english” and “musicplayer_l_english”

Rename these like “test_music_l_english” and “test_musicplayer_l_english” when it is inside your mod’s “localisation” folder (Example)

After you’ve done these, your mod folder should look like this with the files added inside the folders.

All of these files we’ve added to our own mod folder will be changed in some way to make them work.

After you’ve got every file needed, you can start making your Custom Radio Station.
Time to edit all the files we’ve added to the mod folder.

Adding Custom Music
Adding your own music to a Radio Station is not that complicated, but you need to convert every music file to OGG. They cannot be MP3 or FLAC, otherwise they wouldn’t work. You can easily find an OGG file converter online.
After you’ve got your OGG files, just put them in your music folder.

Now we need to edit both the .txt and .asset “test” files.

When you open up the “_songs.txt” file, this will greet you. (Example)

    Now open up your “test.txt” from inside your “music” folder.

  • Change “base_music” to the mod folder’s name.
  • Change “song = [Change this to the name you want to appear in the game’s Radio Station]”

After you’ve changed the files it should look similiar to this.

Now, onto the “music.asset” file. When you open it with “Sublime Text” it looks like this. (Example)

You just have to edit these lines:

  • “name = “Test Soundtrack 1” (Write here the title of the song which will appear in the Radio Station)
  • “file = “test 1.ogg” (Write here the song’s exact file name otherwise it won’t work properly)
  • volume = 1 (You can change this to whatever you want between 1-0 since this just changes the volume, obviously) (0.25, 0.50, 0.70 for example)

After that it should look similiar to this

Localisation Files
Once you got these files in your “localisation” folder you can start editing them.

Now, let’s go to the “localisation” folder.
Open up “test_music_l_english” or whatever name you gave it.
 You’ll see this. (Example)

After editing it should look like this
Whatever you write between the quotation marks will be the song’s name in the Radio Station

Now open “test_musicplayer_l_english” or whatever name you gave it. (Example)
You can delete every line inside of it except the first line which is l_english:
Whatever you write between the quotation marks will be the Radio Station’s name

Be sure to name these the exact same as you want your music titles to be!

Making a Custom Album Cover
Now, let’s make our album art for our Radio Station. Go to “mod\(your mod folder name)\gfx\interface\topbar\musicplayer” select the “base_game_album_art” which you got from the base game’s files. Open it, Paint Net will launch up. Now start editing your album cover.

Before:

After:
Be sure to save it as .dds file when you finish editing otherwise it won’t work!

You can change it to anything you’d like, I used bruh.
When you want to add a custom image make sure to resize them first before adding to at least 144×113 so they can fit in their frames. When you add them, add them as layer. Once you got your album cover in the left frame, just copy then paste it again and put it in the right frame. Then pick eraser and erase around the tick.

  • The left one in the game will be when the Radio Station is not turned on
  • The right one in the game will be when the Radio Station is turned on

Now you can safely delete the default album cover from your mod folder and then rename yours like “test_album_art” (Example)

Now open “music_station_base” from your mod folder located in “mod\test\interface”
When you open it up you’ll see this (Example)
name = “base_music_faceplate” , Change “base_music_faceplate” to your mod folder’s name like this “test_faceplate”

After editing it should look like this

Now scroll down until you see these lines
quadTextureSprite = “GFX_base_game_album_art”Change “GFX_base_game_album_art” like this “GFX_test_album_art.dds” (Example)

After editing it should look like this

Now open up “musicplayer.gfx”, scroll down until you see these lines and add your own album cover like this

Now rename your “music_station_base” and “musicplayer” files to your mod’s folder name like this (Example)

Good job! We are done here.

Publishing Your Radio Station to Steam Workshop
READ THIS!!!

For me, these music mods didn’t work locally so I had to upload them to the Steam Workshop first, subscribe to my own music mod on the workshop then in the launcher I had to choose the music mod which is from the workshop, not the local.

If it is a music mod you do not want to be public, you can just set your workshop mod private.

I could never make it work locally.. sorry!

Okay so, publishing your mod is pretty easy
  1. Open up the launcher
  2. Go to “Mod Tools”
  3. Select your mod to upload
  4. The mod’s version will be the same as it is in both .MOD files, both in “descriptor” and in the other .MOD file in the /mod directory. You will also need to use these to update your mod’s version to newer versions
  5. Choose whether you want to upload it to the “Paradox Mods” or the “Steam Workshop” (but obviously you will upload it to the Steam Workshop. Who wouldn’t?)
  6. Hit “Upload Mod”

By Beggar Soldier

Related Posts:

About Robins Chew

I'm Robins, who love to play the mobile games from Google Play, I will share the gift codes in this website, if you also love mobile games, come play with me. Besides, I will also play some video games relresed from Steam.

Leave a Comment