1 (edited by Aegis001 2007-10-04 09:00:14)

Topic: Custom music

I made some maps in my time, but was never able to get music to work on the load up screen

I saw you guys already got it in, may I ask how?

Edit: I already have it in .ogg format, I just don't know where to put it and how to link it with code

Re: Custom music

I believe that you need to put a folder in your map before you pack it called, Music (or whatever you want to link to).  Place the .ogg in there.   

Then edit your .desc file in your info folder. 

<map>
    <name> Your_Map_Here </name>
    <briefing locid="LOADINGSCREEN_MAPDESCRIPTION_Your_Map_Here">map description for modders maps not localized (english only)</briefing>
    <music> Music/Your_music.ogg </music>
    <modes>


At least that's what I remember.   I believe if your linking to a song in the common.zip files you link to sounds/music/Your_music.ogg


It's been a year or so since I messed with that, but that is what I remember.

http://www.bloodycompany.net/images/firststrikesig.jpg

Re: Custom music

My music is saved in here

C:\Program Files\Electronic Arts\Battlefield 2142\mods\bf2142\Levels\Level_name\sound\music\War

My DESC.doc file says this

<music> sound/music/War.ogg </music>

I can't really do much else...or think of anything to do

Re: Custom music

Have you packed the map?  Maybe it takes packing it to make it work?

http://www.bloodycompany.net/images/firststrikesig.jpg

Re: Custom music

Disregard this, I was using the music file in  completely the wrong place

¬.¬

Sorry to have bothered you tongue

Re: Custom music

Cool, glad it's working!!

http://www.bloodycompany.net/images/firststrikesig.jpg

7 (edited by Aegis001 2007-10-04 09:51:23)

Re: Custom music

For future reference to those who seek it

Go here:
C:\Program Files\Electronic Arts\Battlefield 2142\mods\bf2142

Then look for the zip named Sound_client

Unpack it

Add in the .ogg file (needs conversion, but thats found in other tuts) into the sounds/music area of these unpacked files (there should be other music from other levels there) name it e.g. My_Music

Repack it into the Sound_Client

Then go to:

C:\Program Files\Electronic Arts\Battlefield 2142\mods\bf2142\Levels\Level_name\info

And open DESC.doc

Change the music section

<music> sound/music/My_Music.ogg </music>

Save it, and all should be peachy

Hope this helps those that fall as hard as I do!