Page 1 of 1

Mulitilevel

PostPosted: Wed May 18, 2011 8:09 pm
by masakis88
Okay When someone gets three kills in a roll. they get the speed and star sound. I want to replace teh star sound with music.

My music is in teh sounds/gungame folder

I want to add more then one sound
what way is correct


title = "Default"
levelup = "gungame/default/smb3_powerup.mp3"
leveldown = "gungame/default/smb3_powerdown.mp3"
levelsteal = "gungame/default/smb3_1-up.mp3"
nadelevel = "gungame/default/nade_level.mp3"
knifelevel = "gungame/default/knife_level.mp3"
multilevel = "gungame/smb_star.mp3"
multilevel = "gungame/smb_star1.mp3"
multilevel = "gungame/smb_star2.mp3"
welcome = "gungame/default/gg5_welcome.mp3"
handicap = "gungame/default/gg_handicap.mp3"
multikill = "common/stuck1.wav"
countDownBeep = "hl1/fvox/beep.wav"
winner = "winner_sounds.txt"
friendlyfire = "npc/roller/mine/rmine_tossed1.wav"
nadebonuslevel = "common/stuck2.wav"
notify = "common/warning.wav"

Or this way


title = "Default"
levelup = "gungame/default/smb3_powerup.mp3"
leveldown = "gungame/default/smb3_powerdown.mp3"
levelsteal = "gungame/default/smb3_1-up.mp3"
nadelevel = "gungame/default/nade_level.mp3"
knifelevel = "gungame/default/knife_level.mp3"
multilevel = "gungame/smb_star.mp3,gungame/smb_star2.mp3"
welcome = "gungame/default/gg5_welcome.mp3"
handicap = "gungame/default/gg_handicap.mp3"
multikill = "common/stuck1.wav"
countDownBeep = "hl1/fvox/beep.wav"
winner = "winner_sounds.txt"
friendlyfire = "npc/roller/mine/rmine_tossed1.wav"
nadebonuslevel = "common/stuck2.wav"
notify = "common/warning.wav"

PostPosted: Thu May 19, 2011 1:18 am
by laffytaffy
both wrong

PostPosted: Thu May 19, 2011 1:55 am
by satoon101
They are both wrong, but I'll go a step further and tell you how to actually do it. This is yet another thing I have been meaning to add to the wiki, but have not had the chance as of yet to do so.

If you just want one sound to play each time, you just change the value:
title = "Default"
levelup = "gungame/default/smb3_powerup.mp3"
leveldown = "gungame/default/smb3_powerdown.mp3"
levelsteal = "gungame/default/smb3_1-up.mp3"
nadelevel = "gungame/default/nade_level.mp3"
knifelevel = "gungame/default/knife_level.mp3"
multilevel = "gungame/smb_star2.mp3"
welcome = "gungame/default/gg5_welcome.mp3"
handicap = "gungame/default/gg_handicap.mp3"
multikill = "common/stuck1.wav"
countDownBeep = "hl1/fvox/beep.wav"
winner = "winner_sounds.txt"
friendlyfire = "npc/roller/mine/rmine_tossed1.wav"
nadebonuslevel = "common/stuck2.wav"
notify = "common/warning.wav"


If you want GunGame to pick from a group of sounds, you need to use the ../cfg/gungame51/sound_packs/random_sound_files/ folder to create a new file to store those sounds. Create a file called (let's just say for the time being) multilevel_sounds.txt . So that would be located at ../cfg/gungame51/sound_packs/random_sound_files/multilevel_sounds.txt . Inside that file, list each sound/song you wish to use (one per each line). So, if you have 3 sounds/songs, like in your first example, it would look like:
gungame/smb_star.mp3
gungame/smb_star1.mp3
gungame/smb_star2.mp3

Now, you want to set the value of multilevel in your sound pack to be the name of that file:
title = "Default"
levelup = "gungame/default/smb3_powerup.mp3"
leveldown = "gungame/default/smb3_powerdown.mp3"
levelsteal = "gungame/default/smb3_1-up.mp3"
nadelevel = "gungame/default/nade_level.mp3"
knifelevel = "gungame/default/knife_level.mp3"
multilevel = "multilevel_sounds.txt"
welcome = "gungame/default/gg5_welcome.mp3"
handicap = "gungame/default/gg_handicap.mp3"
multikill = "common/stuck1.wav"
countDownBeep = "hl1/fvox/beep.wav"
winner = "winner_sounds.txt"
friendlyfire = "npc/roller/mine/rmine_tossed1.wav"
nadebonuslevel = "common/stuck2.wav"
notify = "common/warning.wav"

Satoon

PostPosted: Mon May 30, 2011 11:05 pm
by tnarocks
i did all that and i put the sounds in a folder under the gungame folder called multi.
now in that multilevel.txt do i put it like this gungame/multi/sound1.mp3 or just multi/sound1.mp3

PostPosted: Mon May 30, 2011 11:38 pm
by tnarocks
i am getting this message in console
Failed to load sound "mulit\multi_2.mp3", file probably missing from disk/repository


PostPosted: Mon May 30, 2011 11:44 pm
by laffytaffy
wrong you should put in multilevel_sounds.txt gungame/default/sound1.mp3

PostPosted: Mon May 30, 2011 11:47 pm
by laffytaffy
if your music are in gungame/default you have to put that in multilevel_sounds.txt example gungame/default/sound1.mp3

PostPosted: Mon May 30, 2011 11:48 pm
by tnarocks
this is how i have the multilevel.txt file
multi/multi.mp3
multi/multi_1.mp3
multi/multi_2.mp3
multi/multi_3.mp3
multi/multi_army.mp3
multi/multi_bang_bang.mp3
multi/multi_bep.mp3
multi/multi_dance.mp3
multi/multi_done.mp3
multi/multi_eminem.mp3
multi/multi_god.mp3
multi/multi_gor.mp3
multi/multi_gorillaz.mp3
multi/multi_imma.mp3
multi/multi_rihanna.mp3
multi/multi_scat.mp3
multi/multi_survive.mp3
multi/multi_tech.mp3
is that right or is that wrong

PostPosted: Mon May 30, 2011 11:49 pm
by tnarocks
add me to steam laffytaffy

PostPosted: Mon May 30, 2011 11:49 pm
by laffytaffy
just look how satoon101 posted

PostPosted: Mon May 30, 2011 11:50 pm
by tnarocks
i did

PostPosted: Mon May 30, 2011 11:52 pm
by tnarocks
laffy i just added you to my friends list

PostPosted: Mon May 30, 2011 11:55 pm
by tnarocks
so then it should look like this cause i have them in a folder called multi under the gungame folder
gungame/multi/multi.mp3
gungame/multi/multi_1.mp3
gungame/multi/multi_2.mp3
gungame/multi/multi_3.mp3
gungame/multi/multi_army.mp3
gungame/multi/multi_bang_bang.mp3
gungame/multi/multi_bep.mp3
gungame/multi/multi_dance.mp3
gungame/multi/multi_done.mp3
gungame/multi/multi_eminem.mp3
gungame/multi/multi_god.mp3
gungame/multi/multi_gor.mp3
gungame/multi/multi_gorillaz.mp3
gungame/multi/multi_imma.mp3
gungame/multi/multi_rihanna.mp3
gungame/multi/multi_scat.mp3
gungame/multi/multi_survive.mp3
gungame/multi/multi_tech.mp3

PostPosted: Tue May 31, 2011 1:48 am
by satoon101
Yes, they should have the path relative to ../cstrike/sound/ . The reason the winner sounds do not have gungame/ is because they are already default sounds which are included with any Source engine game. You just don't 'see' the files because they are stored in the ../steamapps/source sounds.gcf file. Their path is relative to ../hl2/sound/ .

Satoon

PostPosted: Tue May 31, 2011 8:07 pm
by laffytaffy
did you get it?

Re:

PostPosted: Wed Jun 01, 2011 11:40 pm
by XE_ManUp
tnarocks wrote:i am getting this message in console
Failed to load sound "mulit\multi_2.mp3", file probably missing from disk/repository



Note the misspelling:

Failed to load sound "mulit\multi_2.mp3", file probably missing from disk/repository

...unless you have a "mulit" directory.

PostPosted: Thu Jun 02, 2011 3:54 pm
by tnarocks
i got it to work xe_manup