Author Topic: [Tutorial] How to modify/add music in Viking Conquest (by dissecting music.txt)  (Read 11095 times)

0 Members and 1 Guest are viewing this topic.

Vetrogor

  • Veteran
  • *
    • View Profile
  • Faction: Neutral
Easy way to add a soundtrack to any module.

1. Convert to format - wav, ogg, mp3
2. Rename soundtrack to simple name (btl_battlemusic.mp3)
3. Place all music to main folder "Mount&Blade Warband/music/". You can easy manage your tracks after step 2. You can use music in the main folder in any module.
4. Add strings to "module/Vicking Conquest/music.txt" or any other module. Open music.txt with AkelPad or Notepad++
Add tracks with this numbers:
battle.mp3 7168 7168
travel.mp3  65536 598528
arena.mp3  131072 131072
tavern&feast.mp3 16777728 16777728
feastonly.mp3 16777216 16777216
tavernonly.mp3 512 512

Add as many tracks as you can. Look at the number of the last string. At the top of this file is number of the strings minus one. Change it and save file.

My playlist for Vicking Conquest:
(click to show/hide)

Alevort

  • Sergeant
  • *
    • Steam - http://steamcommunity.com/id/alevort
    • View Profile
  • Faction: Nord
Easy way to add a soundtrack to any module.

1. Convert to format - wav, ogg, mp3
2. Rename soundtrack to simple name (btl_battlemusic.mp3)
3. Place all music to main folder "Mount&Blade Warband/music/". You can easy manage your tracks after step 2. You can use music in the main folder in any module.
4. Add strings to "module/Vicking Conquest/music.txt" or any other module. Open music.txt with AkelPad or Notepad++
Add tracks with this numbers:
battle.mp3 7168 7168
travel.mp3  65536 598528
arena.mp3  131072 131072
tavern&feast.mp3 16777728 16777728
feastonly.mp3 16777216 16777216
tavernonly.mp3 512 512

Add as many tracks as you can. Look at the number of the last string. At the top of this file is number of the strings minus one. Change it and save file.

My playlist for Vicking Conquest:
(click to show/hide)

Hello,
I want to know why the numbers of battle victory change so much between sources? , so some say 8388864 8388864 or 276824064 276824064 or 276824080 276824080 what is then the correct options for new mods, the coding we have at vc or the one used in native? Because my mods keeps using the victory songs from native..


"Perfer et obdura; dolor hic tibi proderit olim"

kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
the coding we have at vc or the one used in native? Because my mods keeps using the victory songs from native..

see module_music.py for the description of those flags (magic numbers) to understand what they do.

Code: [Select]
#map travel
("travel_1",
   "celtic_legend.wav",
   mtf_module_track|mtf_sit_travel,
   mtf_sit_travel|mtf_sit_town|mtf_sit_tavern|mtf_sit_night|mtf_sit_military),

if you want to keep the same overall mechanic for a sound track, then keep the same numbers.

Alevort

  • Sergeant
  • *
    • Steam - http://steamcommunity.com/id/alevort
    • View Profile
  • Faction: Nord
Thanks!  :D


"Perfer et obdura; dolor hic tibi proderit olim"