Mulitilevel

Having problems with GunGame5 (NOT FOR BUGS)? Ask here!

Mulitilevel

Postby masakis88 » Wed May 18, 2011 8:09 pm

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"
masakis88

Private
Private
 
Posts: 20
Joined: Wed Mar 24, 2010 8:09 pm
Steam Friends Name: madmasaki

Postby laffytaffy » Thu May 19, 2011 1:18 am

both wrong
laffytaffy

Private
Private
 
Posts: 17
Joined: Sat Feb 26, 2011 7:20 pm
Steam Friends Name: afgflyguy45
Xfire Name: laffytaffy

Postby satoon101 » Thu May 19, 2011 1:55 am

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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby tnarocks » Mon May 30, 2011 11:05 pm

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
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby tnarocks » Mon May 30, 2011 11:38 pm

i am getting this message in console
Failed to load sound "mulit\multi_2.mp3", file probably missing from disk/repository

tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby laffytaffy » Mon May 30, 2011 11:44 pm

wrong you should put in multilevel_sounds.txt gungame/default/sound1.mp3
laffytaffy

Private
Private
 
Posts: 17
Joined: Sat Feb 26, 2011 7:20 pm
Steam Friends Name: afgflyguy45
Xfire Name: laffytaffy

Postby laffytaffy » Mon May 30, 2011 11:47 pm

if your music are in gungame/default you have to put that in multilevel_sounds.txt example gungame/default/sound1.mp3
laffytaffy

Private
Private
 
Posts: 17
Joined: Sat Feb 26, 2011 7:20 pm
Steam Friends Name: afgflyguy45
Xfire Name: laffytaffy

Postby tnarocks » Mon May 30, 2011 11:48 pm

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
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby tnarocks » Mon May 30, 2011 11:49 pm

add me to steam laffytaffy
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby laffytaffy » Mon May 30, 2011 11:49 pm

just look how satoon101 posted
laffytaffy

Private
Private
 
Posts: 17
Joined: Sat Feb 26, 2011 7:20 pm
Steam Friends Name: afgflyguy45
Xfire Name: laffytaffy

Postby tnarocks » Mon May 30, 2011 11:50 pm

i did
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby tnarocks » Mon May 30, 2011 11:52 pm

laffy i just added you to my friends list
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby tnarocks » Mon May 30, 2011 11:55 pm

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
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby satoon101 » Tue May 31, 2011 1:48 am

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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby laffytaffy » Tue May 31, 2011 8:07 pm

did you get it?
laffytaffy

Private
Private
 
Posts: 17
Joined: Sat Feb 26, 2011 7:20 pm
Steam Friends Name: afgflyguy45
Xfire Name: laffytaffy

Re:

Postby XE_ManUp » Wed Jun 01, 2011 11:40 pm

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.
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Postby tnarocks » Thu Jun 02, 2011 3:54 pm

i got it to work xe_manup
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)



Return to Troubleshooting (NOT FOR BUGS)

Who is online

Users browsing this forum: No registered users and 5 guests

cron