Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 11 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: Jukebox in MP
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 02:22 pm

It is there...

Could it be a problem that my sound4.wav is actually very long ?
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 02:23 pm
no no, let me look them all over
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 02:26 pm
What do you mean ?
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 02:28 pm
You have played the sound out of it right?
or no?
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 04:55 pm
Yes, ingame I hear a sound but not the right one
Share |
TexasRebel
General Member
Since: May 1, 2006
Posts: 373
Last: Aug 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Tuesday, Jul. 3, 2007 04:45 am
I was just reading through that Tutorial you were talking about. Could there be a problem with the tutorial using a soundalias of sound4 and then him trying to use the same alias.

Open you CSV and just give you sound a different alias like jukebox.

Code:
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

jukebox,,misc/sound4.wav,1,,,,,150,300,auto,,,nonlooping,,,,,,,,,,



Then in you GSC you will also need to change the name of sound4 to jukebox.

Code:
main()	

{
maps\mp\_load::main();
thread sound4();
} 

sound4() 
{ 
	yellsoundtrig = getent ("sound4_trigger","targetname");
	yellsoundtrig waittill ("trigger");

	alert = getent ("sound4source", "targetname");
	alert playsound("jukebox");

} 


I think that will do it, or you could just remove that sound_tut from your directory, either one.
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Jul. 3, 2007 10:43 am
I've changed the CSV and the GSC and I removed sound_tut.iwd from my main folder.

I compile it again and run the map with CoD2 Compile Tools but still no succes... :(

I still think something says that it has to get the sound from sound_tut.iwd in the main folder because after I removed it I hear nothing in game..

But when I change the sound in the sound folder of the sound_tut.iwd I also hear nothing ....I really don't get it..:(

---------

Does my .wav in C:\program files\activision\call of duty 2\main\sound\misc has to be named jukebox.wav ?

edited on Jul. 3, 2007 06:45 am by Futtbucker

---------

Changed that didn't work :(

edited on Jul. 3, 2007 06:49 am by Futtbucker
Share |
TexasRebel
General Member
Since: May 1, 2006
Posts: 373
Last: Aug 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Tuesday, Jul. 3, 2007 11:38 am
1.) I'm pretty sure you didnt need to compile it again. This has to do with something outside the editor.


2.)The .wav sound file does not go in the main directory for Cod2. Its suppose to be in the iwd you made in a main folder called sound, and then stick it in a sub folder inside there called misc.


3.)Your iwd for basics should contain:

maps <----- d3dbsp, bsp go in here
maps>mp <----- arena file goes in here
soundaliass <----- csv goes in here
sound>misc <----- custom sound goes in here

4.) Check out this map to see how everything is setup. Its pretty big but I think if you study it, you will see what to do.

http://www.modsonline.com/Downloads-full-3714.html
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Jul. 3, 2007 12:37 pm
Thanks, I will
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Jul. 3, 2007 02:43 pm
I have reïnstalled CoD2 and CoD2 Mod Tools ( since it was full with to much mods ) and now I tried it all over again, and I didn't use parts from the sound_tut.iwd (except for "yellsoundtrig"). I'm gonna show everything what I have because it still doesn't work and I don't get it!
[mad]

My GSC file (mp_begin.gsc) :
Code:
main()	

{
maps\mp\_load::main();
thread sound();
} 

sound() 
{ 
	yellsoundtrig = getent ("soundtrigger","targetname");
	yellsoundtrig waittill ("trigger");

	alert = getent ("soundsource", "targetname");
	alert playsound("sound");

} 


My CSV file (mp_begin.csv) :
Code:
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

sound,,misc/sound.wav,1,,,,,150,300,auto,,,nonlooping,,,,,,,,,,


In radient:
TRIGGER
SOUND THINGIE

* My sound in C:\Program Files\Activision\Call of Duty 2\main\sound is named "sound.wav"

Does it have to do something with the CSV file ? Because it has like thousands of comma's... [ohwell]
I hope you guys can help me with all this information cause I spent much much time on this and can't get it to work
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»