It's possible to set songs inside "radio stations". ogg.Ī good model to work with are the two Sabaton music DLC. Each contain two files my-station_music.asset and my-station_soundtrack.txt using the variables for each track that are used in localisation\.
In music\ you have folders for each radio station, such as my-station. The name of your station has to be entered as my-station_TITLE:0 and the rest is to specify the names of the tracks. In localisation\ you need to create a localisation file. Be sure to tell the right paths to the gfx files, otherwise they won't display. In interface\ you need two my-station_music.gfx and my-station_music.gui files to create the containers and tell where the gfx files are. You also need a faceplate, like faceplate_my-mod.dds. In gfx\interface or gfx\interface\topbar\musicplayer, you have to create an album cover (my-station_album_art.dds). You can also find an example of this file (on Linux) at /Hearts of Iron IV/~/.local/share/Paradox Interactive/Hearts of Iron IV/playlists/settings.txt. The radio stations may be listed in /Hearts of Iron IV/common/playlists/settings.txt. In order to make radio stations, you need to do the following: Now your music is fully and properly added to the game and will be played if you play a peaceful, democratic USA. The conditions use the same format as events, focuses, etc.įor our example, we want that our music be played only if we play a democratic peaceful USA (at the same time) :. Open the songs.txt ( /Hearts of Iron IV/Hearts of Iron IV/music/song.txt). Your music is technically added to the game, but now you have to define the conditions needed for your song to be played. The ID of the music file ( A New Song) can't be longer than 63 characters (the german mutated vowels like ä, ü and ö count as 2 characters) or the file will fail to load at the start of the game. In this example we will name our file new song.ogg. In this file you'll add your music into the game. Open the music.asset ( /Hearts of Iron IV/Hearts of Iron IV/music/music.asset). You can find a lot of online converters on the internet. Your music file should be in *.ogg format and put into the music folder of the game.