1dot13 / source

Source code for the game executable of the Jagged Alliance 2 v1.13 project
85 stars 17 forks source link

Allow custom music to be added #268

Closed Asdow closed 4 months ago

Asdow commented 4 months ago

Closes #264

Additional music can be added by placing sound files into Music folder following this naming convention

musicmode_runningNumber.fileformat

so for example: Mainmenu_01.mp3 Mainmenu_02.ogg Laptop_02.ogg Tactical_00.wav


Different music modes are

Mainmenu <-- Mainmenu music Laptop <-- Laptop music Tactical <-- Tactical with nothing special going on Enemy <-- Tactical, enemy present Battle <-- Tactical, enemy present and visible Victory <-- Tactical, battle victory Death <-- Tactical, battle defeat Creepy <-- Tactical, creatures present CreepyBattle_ <-- Tactical, creatures present and visible

Music files can be .mp3, .ogg or .wav formats and 100 songs in each category is supported. The running numbering starts from 00


A few filenames are treated in a special way to facilitate easy replacement of original music. To replace original music, insert the following named files into this folder

"menumix1" <-- Mainmenu music "marimbad 2" <-- Laptop music "nothing A" <-- Tactical with nothing special going on "nothing B" "nothing C" "nothing D" "tensor A" <-- Tactical, enemy present "tensor B" "tensor C" "triumph" "death" "battle A" <-- Tactical, enemy present and visible "battle B" <-- Tensor B is also used as battle music, this will replace it from battle music tracks, but still keep it in enemy present "creepy" <-- Tactical, creatures present "creature battle" <-- Tactical, creatures present and visible