Adding music to the game

Users who are viewing this thread

Can I just put music in the music folder and it will work? Also does anyone know a good free mp3 -> ogg converter, if there is any?

I have a lot of music from the LotR movies, which I love, and some of the songs could fit very good for M&B battles.
 
M&B 1.x can read mp3 files as well as ogg files. You don't need a converter.

However you will need to modify \Mount&Blade\Modules\Native\music.txt and add your mp3 file names in it.

 
Here, a quick search brought up this.

Go into music.txt in the native folder, it should look like this:
8
alosingbattle.mp3 3
reluctanthero.mp3 2
thegreathall.mp3 1
requiem.mp3 1
silentintruder.mp3 3
thepilgrimage.mp3 1
ambushed.mp3 2
triumph.mp3 2

The number at the top is how many songs there are, and the number next to the song is when the song is played (In a battle, On the map, or both,)

To make it play your own music, add your songs to the music folder, then change the text file to list the songs that you want to play in game. Then, adjust the number at the top to fit with the number of songs you will have when you are done.

Hope that helps!  :grin:
 
bobsters34 said:
Here, a quick search brought up this.

Go into music.txt in the native folder, it should look like this:
8
alosingbattle.mp3 3
reluctanthero.mp3 2
thegreathall.mp3 1
requiem.mp3 1
silentintruder.mp3 3
thepilgrimage.mp3 1
ambushed.mp3 2
triumph.mp3 2

The number at the top is how many songs there are, and the number next to the song is when the song is played (In a battle, On the map, or both,)

To make it play your own music, add your songs to the music folder, then change the text file to list the songs that you want to play in game. Then, adjust the number at the top to fit with the number of songs you will have when you are done.

Hope that helps!  :grin:

FYI. These instructions are for pre-1.x versions.
 
Right, it doesn't work that way anymore.

It looks more like this:

Code:
63
cant_find_this.ogg 0 0
mount_and_blade_title_screen.ogg 4194432 4194432
ambushed_by_neutral.ogg 266240 267264
ambushed_by_khergit.ogg 266244 267327
ambushed_by_nord.ogg 266248 267327
ambushed_by_rhodok.ogg 266256 267327
ambushed_by_swadian.ogg 266241 267327
ambushed_by_vaegir.ogg 266242 267327
arena_1.ogg 131072 131072

Those numbers mean something weird will happen when you edit it.
 
James said:
Right, it doesn't work that way anymore.

It looks more like this:

Code:
63
cant_find_this.ogg 0 0
mount_and_blade_title_screen.ogg 4194432 4194432
ambushed_by_neutral.ogg 266240 267264
ambushed_by_khergit.ogg 266244 267327
ambushed_by_nord.ogg 266248 267327
ambushed_by_rhodok.ogg 266256 267327
ambushed_by_swadian.ogg 266241 267327
ambushed_by_vaegir.ogg 266242 267327
arena_1.ogg 131072 131072

Those numbers mean something weird will happen when you edit it.

Those numbers probably determine when and for whom to play that certain music track.

 
uncertain_homestead.ogg 65536 598528

I find this music a bit out of place and depressing so I changed it like this...

thegreathall.mp3 65536 598528


thegreathall.mp3 is one of the music files that come with pre-1.x versions.
 
James said:
Right, it doesn't work that way anymore.

It looks more like this:

Code:
63
cant_find_this.ogg 0 0
mount_and_blade_title_screen.ogg 4194432 4194432
ambushed_by_neutral.ogg 266240 267264
ambushed_by_khergit.ogg 266244 267327
ambushed_by_nord.ogg 266248 267327
ambushed_by_rhodok.ogg 266256 267327
ambushed_by_swadian.ogg 266241 267327
ambushed_by_vaegir.ogg 266242 267327
arena_1.ogg 131072 131072

Those numbers mean something weird will happen when you edit it.
Just step back slowly and don't bother the numbers. All you need to do is just change the song names to whatever you like.
 
No, if you copy the numbers in front of a song and put them infront of another, it will play when the same conditions are met. 131072 131072 is more complicated then 3, but it works off the same principle. If you wanted to make and grindcore song play in the arena, but keep arena music as well, it would look like

arena_1.ogg 131072 131072
grindcore_song.mp3 131072 131072
 
nice...  now i just have to figure out how to make it play Korpiklaani every time i fight the Nords  :twisted:
 
bobsters34 said:
Here, a quick search brought up this.

Go into music.txt in the native folder, it should look like this:
8
alosingbattle.mp3 3
reluctanthero.mp3 2
thegreathall.mp3 1
requiem.mp3 1
silentintruder.mp3 3
thepilgrimage.mp3 1
ambushed.mp3 2
triumph.mp3 2

The number at the top is how many songs there are, and the number next to the song is when the song is played (In a battle, On the map, or both,)

To make it play your own music, add your songs to the music folder, then change the text file to list the songs that you want to play in game. Then, adjust the number at the top to fit with the number of songs you will have when you are done.

Hope that helps!  :grin:

It does not look like that in 1.03

Mine comes with 63 files and a line looks like:

mount_and_blade_title_screen.ogg 4194432 4194432

BK
 
Those numbers are definetly very specific. XD there's a "battlewon" theme, arena music, creepy songs for when you sneak into villages, wander the map, are captured, defeat certain factions. Ugh, and I thought editing the old one as a pain in the arse. DD8 Luckilly most of them have a very direct name for what they do so number theft from the others should be perfect....... UNLESS the game is written to accept only a certain number of songs for a particular senario in the game... I might toy with it when I regrow my brain. :B
This thread helped me a lot though in that area. The sight of all the numbers made my brain take a one way trip to Mars...

(ez'scoozeh meh spellin'...)
 
44rdv4rk said:
nice...  now i just have to figure out how to make it play Korpiklaani every time i fight the Nords  :twisted:

fight_as_nord.ogg is the relevant file, so use the code 5128 5183 after the file name.

Remember, if you are adding extra tracks, rather than just replacing, you need change the number at the top.
 
I tried adding music a week ago. Couldn't get it to work. All I did was switch out my MP3 for the OGGs - and then edited the music.txt and just switched some filenames around.
 
I suppose you can rename your own files like the tracks in M&B and it should work.  At least it did in older versions. Or you could use the good old background mediaplayer and mute the game music - much less hassle  :mrgreen:
 
I'm a big fan of the new music and music from Total War games. Would it be legal to release a pseudo-mod that adds songs from TW games to M&B? I was thinking about making it, and now that we can use songs for certain events, it could be pretty cool. i.e. when fighting rhodocks you hear some arabian music form Medieval 2 or maybe some mongol music from Shogun, when you fight swadians you hear europen music, etc.
 
Back
Top Bottom