Hello everyone, dear colleagues! Has anyone of you ever made a mod with different music in Heroes 5? Not just replacing the original music folder, but a mod (.pak or .h5u)?
As far as I remember, the 5.5 mod, for example, adds new tracks for territories and battles.
And in my RTF, new tracks don't replace the standard ones.
Added 13 minutes ago
The files responsible for the music are located in data.pak in the \Sounds\_(Music) folder.
The TableRaceMusic.xdb file specifies how many tracks a faction will have.
Here's an example - the list for the music of the human city, this is a standard.
Humans
TOWN_HEAVEN
- this thing doesn't seem to work, it's recorded in the city
city
tavern
recruitment
idk if it works
- battle track 1
- battle track 2
- siege
- victory
- defeat
- retreat
- waiting
Here, the dwarves don't have recruitment and tavern tracks, Inferno has 3 battle themes, etc.
Now about the tracks - as you can see in the file, the paths are recorded not to the music, but to the game files - it is in them that the paths to the music are recorded, here is an example, the file AI-Themes/Haven.xdb
Haven.xdb
..\Music\AI-Themes\AITheme-Haven.ogg - this is the path to the track, you can also use the mp3 format
5000
2000
1000
10000
Added 5 minutes ago
About the map music
it is tied to the texture
for example, let's take the grass
folder \MapObjects\_(AdvMapTile)\Grass\Grass.xdb
Grass.xdb
11
TT_GRASS
0.188235
0.478431
0.113725
\texture\Terrain\Grass\Grass_icon.bmp
- nature sounds
- music
false