TeamBG.CoM

Infinity Engine Modding Resources => Tutorials => Graphics and Sounds => Topic started by: Amy on July 11, 2012, 06:25:26 AM

Title: Music Playlists (*.MUS) and how they work by: jhauglid
Post by: Amy on July 11, 2012, 06:25:26 AM
Let's use BC1.mus as an example of how MUS-files work:

BC1
10
A1 @TAG ZA
B1 @TAG ZA
C1 @TAG ZA
D1 @TAG ZD
E1 @TAG ZD
E2 @TAG ZD
F1 @TAG ZD
G1 @TAG ZG
H1 @TAG ZH
J1 B1 @TAG ZJ
# B1B is loop

The first line indicates the subdirectory where the acm-files used, are found (in this case BC1). The second line is the number of acm-files. The remainder of lines are the playlist.

A1 @TAG ZA

This means "Play BC1A1.acm". If the music should be stopped while this soundclip is playing, play "BC1ZA.acm" after "BC1A1.acm" has finished and then stop. (Typically this is because the combat has ended). If the music should continue, go to the next line of the playlist.

J1 B1 @TAG ZJ

This line indicates that the music should loop to "BC1B1.acm" (the second sound clip in this playlist) after "BC1J1.acm" has finished.

There are some other things to consider when reading MUS-files, but these are the most important parts.