Faction-Specific Music
While the other tutorial on how to add music was helpful there were limitations on what I could do with the game based on that tutorial. So this tutorial is designed to enhance on the music tutorial by Trajan.
Making a music folder
First of all you need to make sure you have a music folder in your mod. If you don't you need to add one. In this instance DotS means the mod folder to the mod I am associated with. It is a simple task. You literally just create a new folder in your mod data folder and call the folder 'sounds'.
Inside the 'sounds' folder
Here you can see the contents of the sounds folder. There is a folder called 'music' and here is where you put all your mp3s. Also you will see some other files such as events.dat etc. I copied these from the sounds folder in the original M2TW data folder although I do not think this is necessary.
Adding music
Later I will show you how to make all music faction-specific but first I will show you how to get the new mp3s working in your game... I will use our theme as an example.
So you go into the descr_sounds_music folder which I have shown here. To make the song heard on start up you need to use the name of the theme you want (in this case Dominion_of_the_SwordEDITMinus_Hastings_Banda) and add the ending '.mp3'. However if the song is a wav file add the ending '.wav'
The song name needs to go in the region I have highlighted labelled Frontend.
To add music to the campaign music for a specific music_type (which I will show you how to change later) you simply copy the name of your added mp3s or wav files (that you have added to the 'sounds' folder) into the state MUSIC_STRATMAP_SUMMER section.
Here the area I have labelled 'a' is where you add your music for the campaign map.
The area I have labelled 'b' is for the campaign load music. In this example it is the same as the original M2TW game. When I want to change the music for the campaign music load up for that music_type I will delete the files labelled (Frontend_1)_Amen.mp3 (Euro_Loading_1)_Time_and_Again.mp3 (Euro_Loading_2)_The_Widow.mp3 and add the names of the songs I want that I have placed in the sounds/music folder.
Okay so now to make faction-specific music...
Defining Music_Types
Go into the file called descr_sounds as shown here and add all your music_types
These should be the names of all your factions. They don't have to be the same names as your factions e.g. for our faction the cumans I have named their music 'steppe' but to make things easier generally I'd recommend having the music_types the same names as the factions.
Defining Music_Type for each faction
Now you have defined your music_types go to world folder, then go to maps, then base, there you will see descr_sounds_music_types. Go into that and edit the file how I have done so here.
The regions define the music_type played in the battle map so here if you are Norwegian but fighting in the province called Aberffraw_Province you will hear the battle music defined in the England Music_Type
Adding the Music_Types to your descr_sounds_music folder
Last of all you need to add all your new music_types to your descr_sounds_music folder. Simply copy and paste a whole music_type series of code e.g. for steppe music_type:
You copy and paste this until you have the correct number of music_types. You then change the music_type name and the songs. Here I have added a song called NEWSONG.mp3 and changed the music type to armenia e.g.