Posted February 05, 2023
I'm trying to put more music in the game. Mainly because I want some more variety (some tracks from Rebel Galaxy and Freespace 2), but also because I find myself singing the Lazy Town pirate song (do what you want 'cause a pirate is free, you are a pirate...) whenever I go stealing someone else's ship and I'd rather the game do it for me.
I looked through the tutorials on moddb and managed to get the game to import and recognise all of my added music files. They work just fine.
The problem comes when I need the game to actually play this music. No matter what I do, I can't seem to make it use more than one track for combat music in a region. If there's more than one in the list, it always plays the second, no matter how many there are. Here's an example.
The region file for Sanctum, Region_49.icr, has this as the default music entry list.
Standard:
{
music_ambient_4
music_ambient_9
music_ambient_6
music_ambient_7
}
Combat:
{
music_combat_6
}
I changed it to this (and yes, there's a tab at the end of each line).
Standard:
{
music_ambient_4
music_ambient_9
music_ambient_6
music_ambient_7
}
Combat:
{
music_combat_6
music_combat_DF_00
music_combat_DF_01
music_combat_DF_02
music_combat_DF_03
music_combat_DF_04
music_combat_DF_05
music_combat_DF_06
}
In combat, the only track that ever plays is music_combat_DF_00 (which is the Pirate Song). If I reorder the combat structure to
Combat:
{
music_combat_6
music_combat_DF_06
music_combat_DF_01
music_combat_DF_02
music_combat_DF_03
music_combat_DF_04
music_combat_DF_05
music_combat_DF_00
}
Then the only track that will play is 06. So it's not a case of the other tracks not being recognised and imported by the partial database. They're all there. They're just never called. Has anyone else tried adding more music and if so, how did you get it to work?
I looked through the tutorials on moddb and managed to get the game to import and recognise all of my added music files. They work just fine.
The problem comes when I need the game to actually play this music. No matter what I do, I can't seem to make it use more than one track for combat music in a region. If there's more than one in the list, it always plays the second, no matter how many there are. Here's an example.
The region file for Sanctum, Region_49.icr, has this as the default music entry list.
Standard:
{
music_ambient_4
music_ambient_9
music_ambient_6
music_ambient_7
}
Combat:
{
music_combat_6
}
I changed it to this (and yes, there's a tab at the end of each line).
Standard:
{
music_ambient_4
music_ambient_9
music_ambient_6
music_ambient_7
}
Combat:
{
music_combat_6
music_combat_DF_00
music_combat_DF_01
music_combat_DF_02
music_combat_DF_03
music_combat_DF_04
music_combat_DF_05
music_combat_DF_06
}
In combat, the only track that ever plays is music_combat_DF_00 (which is the Pirate Song). If I reorder the combat structure to
Combat:
{
music_combat_6
music_combat_DF_06
music_combat_DF_01
music_combat_DF_02
music_combat_DF_03
music_combat_DF_04
music_combat_DF_05
music_combat_DF_00
}
Then the only track that will play is 06. So it's not a case of the other tracks not being recognised and imported by the partial database. They're all there. They're just never called. Has anyone else tried adding more music and if so, how did you get it to work?
No posts in this topic were marked as the solution yet. If you can help, add your reply