View Full Version : Adding/Specifying Custom Music for Civ3


Colonel Kraken
May 04, 2004, 07:09 AM
Now get a great tutorial in this (http://forums.civfanatics.com/showthread.php?t=92419) thread!

There was a question about this in the main C&C forum a little while back, so I thought I would list the information here so that it doesn't get lost in the wild blue yonder.

This is the information gathered from that thread:


Firaxis uses MP3s. Make sure the Bit Rate is the same between your songs and the Firaxis Songs. 128kbps @ 44KHz. Make sure that the original bit is checked on the custom MP3 (as is the case with the Firaxis files), so the files have an identical sampling rate to the original bit set.

You can use a "Music.txt" file in the "Text" folder of your scenario to play only the music files you want to have played. However, some caveats:

First, the Music.txt file is not era specific, nor culture group specific. Basically, it plays each mp3 in the file once, then repeats. It does not play them in random order but in the order listed in Music.txt.

Second, from Mike B. of Firaxis (in two e-mails to Colonel Kraken):


I had nothing to do with the implementation of the music nor the music.txt file for scenarios. However, looking at the code, it appears that the music.txt file is used as a list of music files to play in a scenario. When the end of the list is reached, the list loops. So it appears that you could use music.txt to play only a specific list of music files.

This will, however, only work for scenarios because it doesn't appear that music.txt is loaded for default games.

As far as I know, all of the music files in the civ3/ptw/c3c sounds folders are used at some point during the game (in the case of duplicates, the files from later expansions are used). [snip]

I believe that when you are in the Ancient era, the game uses what we termed "build music." It uses several different files to build the soundtrack for the era. Once you finish the Ancient era, the game switches to standard music playback. The music.txt file only controls the build music. So, presumably, once you finish the Ancient era, music.txt is no longer used. [snip]
__________________
Mike Breitkreutz
Programmer
FIRAXIS Games



You can use music files from Firaxis. These are the files I've identified with Conquests. If you know of more Firaxis MP3 files, please let me know. These are the references you would use in the Music.txt file.

Misc\ModernFull.mp3
Misc\MistressWinter.MP3
Misc\MiddleEastern.MP3
Misc\NightengaleFull.MP3
Misc\Greco Roman.mp3
Ancient Music\AncME.mp3
Ancient Music\AncGR.mp3
Ancient Music\AncEC.mp3
Ancient Music\AncNA.mp3
ancient\AncNAfull.mp3
Ancient Music\AncOR.mp3
ancient\AncORfull.mp3
Middle Ages\MidGRFull.MP3
Middle Ages\MidMEFull.MP3
Middle Ages\MidECFull.MP3
Middle Ages\MidNAFull.MP3
Middle Ages\MidORFull.mp3
IndModern\IndGRFull.mp3
IndModern\IndECFull.mp3
IndModern\IndMEFull.mp3
IndModern\IndORFull.mp3
IndModern\SmashFull.mp3
IndModern\StarsFull.mp3
Japanese\Japanese1.mp3
Japanese\Japanese2.mp3
Mesoamerica\MesoAmerican1.MP3
Mesoamerica\MesoAmerican2.MP3

If you plan to use your own music: (paraphrasing GIDustin)

The Music.txt file will NOT look for the MP3 files in the Scenario Search Path (at least they don't for the MTG mod). I had to put my music files in "Infogrames...\Civilization III\Sounds\build\mtg\Blah.mp3". In the Music.txt I have "mtg\blah.mp3". The sounds I found for the MTG mod only sound good when each is repeated separately from the others, so I had to choose one of them and have it be the only one.


I don't know if all this information is 100% accurate, but it's a good start. If anyone has additional information, please let me know.

Special thanks goes out to GIDustin who provided much of the information and to Mike B. of Firaxis who was kind enough to answer my pesky e-mails on the subject. :)

--CK

El Justo
Jun 01, 2004, 11:20 AM
thank you CK for your advice about this stuff. i've successfully implemented it into a scenario i'm working on. just a little tip for those who wish to use custom mp3 files:

shareaza.com is an excellent site to obtain the appropriate mp3 files for your custom music.

i've also noticed a particular pattern that civ3c uses in the industrial era for the music que. i don't have it in front of me but i'd be happy to post it later

Hikaro Takayama
Oct 27, 2004, 05:39 AM
I have some very pertinent info to add to this, that will allow implementation of custom music in even vanilla or PTW scenarios.

First step, as with adding custom graphics or text, is to make a folder with the same name as the scenario .bic/bix/biq file (i.e. my Final Fantasy mod is called Final Fantasy.biq, so I also have a folder called Final Fantasy) Inside that folder, create a folder called Music, and in the Music folder create a folder called build.

Now the next part is kinda tricky, so pay close attention:

In the Build Folder, create three sub-folders (four for Conquests mods). These four folders are:

Ancient, Middle Ages, IndModern, and for Conquests only, MISC

Here's the music breakdown:

In the Ancient folder, you can put 5 files, which must be in the MP3 format specified in the first post. To get these songs to play instead of the default Civ III muzak, you must give the files these names:

AncECFull.mp3: This song is played first if you've chosen a European civ
AncGRFull.mp3: This song is played first if you've picked Greece, Byzantium, Rome, Carthage or Egypt.
AncMEFull.mp3: This song is played first if you've picked any of the Mid-Eastern civs
AncORFull.mp3: This song is played first if you've picked one of the Asian Civs
AncNAFull.mp3: This song is played first if you've picked one of the American Civs.

The Middle Ages folder is similar, but the songs that go in there are thus:

MidECFull.mp3: This song is first played for Euro Civs when entering the Middle Ages
MidGRFull.mp3: First Middle Ages song for the Greeks
MidMEFull.mp3: First Middle Ages song for the Mid-Eastern Civs.
MidORFull.mp3: First Middle Ages song for the Asians.
MidNAFull.mp3: First Middle Ages song for the Americans

The IndModern folder is different, since there are 7 songs in this folder; four industrial era and three modern.

The industrial songs are:
IndECFull.mp3: First played for European and American civs reacing the industiral age.
IndGRFull.mp3: First played for Mediterranean civs reaching the industrial age.
IndMEFull.mp3: First played for Mid-Eastern Civs reaching the industrial age.
IndORFull.mp3: First played for Asian Civs reaching the industrial age.

The Modern Songs are:
Techno MixFull.mp3: First song played for EVERYONE when reaching the modern era, song is also played at the end, when the game is finally won or lost.
SmashFull.mp3: another modern era song
StarsFull.mp3: The last modern song for Vanilla and PTW

For Conquests, the MISC folder contains two songs that are played in the modern era (at least that I have been able to confirm) when playing the epic game or scenarios made from the epic game. These songs are:

ModernFull.mp3
NightengaleFull.mp3

Just like with graphics and text, the game will use the files in the scenario's sounds folder to override the default music. So if, say you wanted the Native americans to start the game with some bad@$$ techno mix you came up with, just make sure that the file is an MP3 with the sampling rate of 128kbps @ 44KHz, and name it AncNAFull.mp3, and put it in the Ancient folder. It's that easy!

I really hope this helped out.

Colonel Kraken
Oct 30, 2004, 10:59 AM
Hey, thanks for that great update, Hikaro!

Eetu Pellonpää
Apr 24, 2005, 09:03 AM
I had to name the "music" folder as "sounds", in order to make my customized playlist work... I'm playing with C3C from Atari's 3 game boxset. Thanks for your great advices!

estrongblade
Jan 22, 2007, 01:56 AM
I know this is old - but it's awesome and very helpful - thank you for posting it all, guys!

WilliamOfOrange
Jan 26, 2007, 06:49 AM
Yes indeed, certainly saved me having to search for it. :king:

WilliamOfOrange
Jan 31, 2007, 06:43 PM
Actually, I have a question.

If I don't really have many long music clips to use and I don't feel like making them era specific would I use the method outlined in this thread, or should I go for the method here ? It seems to me from looking at the Conquests scenarios, there is a music.txt file and it just lists certain music to be played throughout the entire game regardless of eras. Is that correct?

MSTK's excellent tutorial is for era-specific, but can I used the Colonel's method if I only want culture specific, but not era specific, or should I use MSTK's for those purposes?

estrongblade
Feb 01, 2007, 02:34 AM
Sorry, doubled up and couldn't delete this.

estrongblade
Feb 01, 2007, 03:42 AM
OK, I will share some of the problems I have had with the SOE music, and what I've discovered. All discoveries are for Civ 3 conquests, but discuss aspects of the music files in vanilla as well.

First and foremost - If the music file is off, the game WILL crash to desktop with no warning and no error message. Simply put, if you change out music and your game crashes, you will instantly know it's the music. I suggest that you make no other changes for as long as you are playing with the music.

The music in the scenarios you are refering to are specific to the scenarios named. I believe they will play throughout those scenarios. You can refer to the tutorials to see how to do that. I noticed that all of the conquest scenario music text files are very short, with no more than 7 songs in any of them, and they are ALL songs that are already in the main game somewhere.

Contrary to what has been said about 128 bit rates and 44100 frequency, I have discovered numerous differences in both by looking closely at ALL of the music clips in every folder that I have. The Civ 3 vanilla folders for music contain wav files for the xxx(a-i) music, with mp3 xxxFull music files at 128 kbs and 44100 frequency and 11 to 1 compression.

The wav files are still at 44100, but the bit rate is 16 because they are wav files with 1 to 1 compression. You can check all of this yourself by going into the vanilla civ 3 sounds/build/ancient folder and putting you cursor over any of the files inside of it.

This means one must be VERY careful with what one puts INSIDE of any given custom music folder. To not do so is to crash your game. My suggestion, if you choose to change out civ 3c era music, is to match the music you are trying to put in with the numbers and names in the existing file, using a converter if necessary. Rename them as in the folder and enjoy.

Make sure the wav file change outs are short - the longest ones I found were 19 seconds, with all the rest at between 5-7 seconds. They also lead into the full songs. I am not sure if they are crossfaded or not. Still working on that.

I am still working on song change outs with the music.txt and musiclist.text files that came with the SOE biq when I got it. It works with the mod, but when I tried to change out some songs, it crashed hard. I discovered all the stuff about bitrates, etc by reading these tutorials and looking very carefully at every file in ALL of the music folders. I believe that my crashes may be related to length of file or undiscovered errors.

I still do not know how to change out the music using the two music text files, as even when I matched bit rate and mhz, the game still crashed. Aside from what I mentioned above, this could be as a result of a bad file, so I am changing and testing each song one at a time. I shall publish my results when I have finished, but that may be a little while because I'm up to my neck in civilopedia, script and pedcon work right now.

If you discover anything in your own change outs, I'd appreciate your posting anything that works here. I have a good # of files that I want to change in order to better balance the music in SOE, and so could use information on discoveries that worked implementing the music.text and musiclist.text method. The tiny details are the ones that are getting by me - I know all of the basics.

I'm at a bit of a disadvantage though, because there are a great number of songs in SOE (21 in the music.text alone) and I am not sure if the number of files has anything to do with the crashes. I am trying NOT to cut the amount of songs if I can help it.

Thx for anything that finds it's way here.

Cya!

Xixcaliss
Aug 01, 2008, 04:22 PM
Hello Ck,

how can i get this file??

(ancient\AncNAfull.mp3)