* Translator


Author Topic: Need Help With Adding Multiple Songs To Deathrun Map  (Read 1544 times)

ABprice

  • Mapper
  • Posts: 181
  • Country: lk
  • Respect: 8
  • I Hate My Life :(
Need Help With Adding Multiple Songs To Deathrun Map
« on: November 18, 2017, 11:11:27 AM »
I'm Making Deathrun Map And Its Almost Done All I Need Is Adding Some Music.Iwant To Add 5 Music And
I Need Play It Random.Can Anyone Help Me? :-\



VC' Fox

  • Posts: 205
  • Country: ie
  • Respect: 26
  • Vistic Discord: https://discord.gg/JKwXV3h


Re: Need Help With Adding Multiple Songs To Deathrun Map
« Reply #1 on: November 18, 2017, 01:41:56 PM »
It's easy to add music to your deathrun map. Make sure your choices of music to be a .mp3 or .wav (16bit)

First thing to do is setting up your music in the correct folders. Copy all your music files and put them inside your raw/sound folder.
I would reccomend you rename each music file to a one word name for example music1.mp3
Also, copy all your music and put it inside your map .IWD (mp_dr_yourmap.iwd/sound)

Next is making the soundaliases csv. Go to raw/soundaliases folder and put this in it: https://www.mediafire.com/file/63wde6nww3ojerq/your_map_name_here.csv
(rename it to your map name)

Just rename MUSIC1 to to whatever you want as this is the name of the music that will play in your map .gsc

Next is to open your map .gsc and add a new thread called music

Code: [Select]
thread music();
Add this code it will randomly choose 1 music to play each round.

Code: [Select]
music()
{
x = randomInt(2);
if(x == 0)
    {
ambientPlay("music1");
}
    if(x == 1)
    {
ambientPlay("music2");
    }
}

Last thing is to Rebuild your map fast file.Go to your compiling tools and open "Update zone file" and add this
Code: [Select]
sound,SOUNDALISES_CSV,,all_mp
change "SOUNDALISES_CSV" to the same name as the soundaliases.csv you made before.

If you did everyhting right your music will play once your map loads.










ABprice

  • Mapper
  • Posts: 181
  • Country: lk
  • Respect: 8
  • I Hate My Life :(
Re: Need Help With Adding Multiple Songs To Deathrun Map
« Reply #2 on: November 18, 2017, 02:27:06 PM »
Thanks <3



ABprice

  • Mapper
  • Posts: 181
  • Country: lk
  • Respect: 8
  • I Hate My Life :(
Re: Need Help With Adding Multiple Songs To Deathrun Map
« Reply #3 on: November 18, 2017, 02:42:27 PM »
Idk Why Its Not Working This Is In My Gsc
music()
{
 x = randomInt(5);
 if(x == 0)
    {
  ambientPlay("AB1");
 }
    if(x == 1)
    {
  ambientPlay("AB2");
    }
     if(x == 2)
    {
  ambientPlay("AB3");
    }
     if(x == 3)
    {
  ambientPlay("AB4");
    }
     if(x == 4)
    {
  ambientPlay("AB5");
    }
}

this is my csv

name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname
,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage,center percentage,platform,envelop_min,envelop_max,envelop percentage

AB1,,AB1.mp3,0.8,1,,,,,,auto2d,streamed,,,,all_mp,,,,,,,nowetlevel fulldrylevel,,,,,,
AB2,,AB2.mp3,0.8,1,,,,,,auto2d,streamed,,,,all_mp,,,,,,,nowetlevel fulldrylevel,,,,,,
AB3,,AB3.mp3,0.8,1,,,,,,auto2d,streamed,,,,all_mp,,,,,,,nowetlevel fulldrylevel,,,,,,
AB4,,AB4.mp3,0.8,1,,,,,,auto2d,streamed,,,,all_mp,,,,,,,nowetlevel fulldrylevel,,,,,,
AB5,,AB5.mp3,0.8,1,,,,,,auto2d,streamed,,,,all_mp,,,,,,,nowetlevel fulldrylevel,,,,,,

umm...



ABprice

  • Mapper
  • Posts: 181
  • Country: lk
  • Respect: 8
  • I Hate My Life :(
Re: Need Help With Adding Multiple Songs To Deathrun Map
« Reply #4 on: November 18, 2017, 04:21:27 PM »
Problem Fixed Thanks Fox



 

SimplePortal 2.3.7 © 2008-2022, SimplePortal