How do you add music?

Users who are viewing this thread

Tintin

Marquis
I'd like to know how to add music to a mod. Don't say replace the music in the music folder with your music just named the same as there is no music in the music folder
 
The music is in ../Mount&Blade/music

If you put anything into your mod folder with the same name, it would use the one from the mod. You could also take a look at the module_music.py (ld music.txt) file.
 
well. This is what I do..

I open up the music.txt. Then if I for example wants another music for when you win as a swadian I look up this line

victorious_swadian.ogg 8388866 8388866

The red is of cause the name of your music file
And the blue is supposed to be the conditions. (when and were this soundtrack should be played)

So what you do is to copy that line. Add it on the botton of the list change the name to the name of your soundtrack file (.mp3 or .ogg)
Then you see the red numbers. They indicate the amount of soundtracks to be played. So when you add your new soundtrack. Be sure to raise the number to 64.
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

Don't forget to make a backup file and to save when you're done. I am not sure though that this is the right way. But it is a way that works. At least for me. And yea. If you have the same conditions twice, I think that it will be random of which soundtrack to be played.

 
the problem is that you're better off using the module system, because you need to add the "mtf_module_track" as a flag.
i don't know what this equals in text code though.
but again, use the module system.
 
Back
Top Bottom