Page 3 of 3

Re: Scripting help :@

Posted: July 11th, 2012, 2:47 pm
by Rezil
The coding is the same, he has a problem with the assets. If I recall correctly, the sound files need to be in <root>/raw/sound/ or in a subfolder of sound/. Make sure your file path is correct. You can probably still use this tutorial. It's written for vCoD but the basic principle is the same. Compile, run map, update zone, retry.

I also found this on modsonline, it's written specifically for CoD4 so this should work for you.

Let us know if that fixed your problem.

Re: Scripting help :@

Posted: July 11th, 2012, 2:55 pm
by darkpheonixz4x
Yes it is strange. :?

Your script looks almost as the same as mine so i don't think there is anything wrong with my script. Must be either the file or it's csv.

Thanks for the help.

Re: Scripting help :@

Posted: July 12th, 2012, 7:22 am
by darkpheonixz4x
Could the problem be that my music file has a bitrate of 1411kbps? Should i change it to something lower? Like 128?

Also, i feel like something is wrong with my csv. So please take a look at it: http://www.2shared.com/file/DVcFoHyt/mp_wwe_arena.html

Re: Scripting help :@

Posted: July 12th, 2012, 6:00 pm
by Pedsdude
darkpheonixz4x wrote:Could the problem be that my music file has a bitrate of 1411kbps? Should i change it to something lower? Like 128?
Why does it need to be so high anyway? For the sake of a CoD4 map, I would probably put it to 128, 320 max, doesn't really need to be any higher.

Re: Scripting help :@

Posted: July 12th, 2012, 7:58 pm
by <LT>YosemiteSam[NL]
darkpheonixz4x wrote: 2 - I converted the song from an .mp3 to a .wav, is that an issue?
But in your csv;

Code: Select all

amb_dub,,ambient/amb_dub_ext.mp3,1,1,,1,1,,,local,streamed,,,,,,,,,,,,,,,,,
Still mp3 in there ....maybe that's why it can't be found.

Re: Scripting help :@

Posted: July 12th, 2012, 9:17 pm
by Drofder2004
<LT>YosemiteSam[NL] wrote:
darkpheonixz4x wrote: 2 - I converted the song from an .mp3 to a .wav, is that an issue?
But in your csv;

Code: Select all

amb_dub,,ambient/amb_dub_ext.mp3,1,1,,1,1,,,local,streamed,,,,,,,,,,,,,,,,,
Still mp3 in there ....maybe that's why it can't be found.
Well spotted.

Re: Scripting help :@

Posted: July 12th, 2012, 10:13 pm
by <LT>YosemiteSam[NL]
thx :)
hopefully problem is solved now.

Re: Scripting help :@

Posted: July 13th, 2012, 11:50 am
by darkpheonixz4x
I used my original mp3 to change the bitrate to 128kbps. I tried to put it in the .iwd file and run it. Nothing. Im really hopeless with this. It is just not happening. :cry: :cry: :cry: :cry: :cry: :cry:

Re: Scripting help :@

Posted: July 13th, 2012, 6:06 pm
by <LT>YosemiteSam[NL]
Ok, can you email me the iwd file
I'll have a look at it.

I'm wondering about this line tough;

Code: Select all

musicplay ( "amb_dub" );
In CoD2 it was more like this ;

Code: Select all

door playsound ("doorsound");
is musicplay something specific for CoD4 ??

Re: Scripting help :@

Posted: July 14th, 2012, 12:36 pm
by darkpheonixz4x
Here is winrar archive i made which includes: my .csv, my .map, my script and my .iwd

I have removed my sound file from the .iwd because of the upload limit

Hopefully you could derive the error through these files.

Re: Scripting help :@

Posted: July 14th, 2012, 10:12 pm
by <LT>YosemiteSam[NL]
Try and change this;

Code: Select all

musicplay ( "amb_dub" );
into this;

Code: Select all

playsound ("amb_dub");
Second possibility;

change this;

Code: Select all

sound()
{

       trig = getent("sound_activate","targetname");

       while(true)
       {
          trig waittill ( "trigger" );   
          musicplay ( "amb_dub" );

       }

}
into this;

Code: Select all

sound()
{

	door = getent( "door", "targetname" );
	trig = getent("sound_activate","targetname");

       while(true)
       {
          trig waittill ( "trigger" );   
          door playsound ( "amb_dub" );

       }

}
Let me know if it works