Why doesn't it play the sound ?

Have questions about CoD2 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Why doesn't it play the sound ?

Post by <LT>YosemiteSam[NL] » May 31st, 2010, 8:21 pm

mr-x wrote:must work try play sount like this
trigger waittill("trigger",player);
playersound("blalal");
wat 0.5;
check if sound play or not
if not
make sure u add ur sound folder into iwd and run map normal not from compiler
will work
I don't think you understand what we are trying to do here m8.
Where not just trying to play a sound but we are trying to play a sound when the timer reaches 5 minutes.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Why doesn't it play the sound ?

Post by Drofder2004 » May 31st, 2010, 8:25 pm

<LT>YosemiteSam[NL] wrote:
mr-x wrote:must work try play sount like this
trigger waittill("trigger",player);
playersound("blalal");
wat 0.5;
check if sound play or not
if not
make sure u add ur sound folder into iwd and run map normal not from compiler
will work
I don't think you understand what we are trying to do here m8.
Where not just trying to play a sound but we are trying to play a sound when the timer reaches 5 minutes.
Yeh, he is just confirming the sound works, which you have said to me does. I am more concerned to why print isn't occuring.

---

My only suggestion is to make sure you have no duplicate files (or preferably, use a clean install with no 3rd party files) that can affect the mod. Your file may not be being read.

Best way to confirm is to add a "setdvar" function in the main function. So setcvar("Test", "Test");
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Why doesn't it play the sound ?

Post by <LT>YosemiteSam[NL] » May 31st, 2010, 10:58 pm

I run my map and this mod from the compiler, is this maybe causing the problem ?
Maybe I should .IWD em all and then try again?

You totaly lost me , where do I put setcvar("Test", "Test"); ?
And use the words test aswell?

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Why doesn't it play the sound ?

Post by <LT>YosemiteSam[NL] » June 1st, 2010, 7:32 am

aha, ok thx.
But I'm sure the script is being read cause if I change anything in it and the change is not good code it gives an error and won't start the map.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Why doesn't it play the sound ?

Post by Drofder2004 » June 1st, 2010, 7:08 pm

One thing, never name anything with a number first... This may or may not be an issue but "5minutes" change to "fiveminutes"...

If no joy, package it up and send in a PM, and I will take a in depth look.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Why doesn't it play the sound ?

Post by <LT>YosemiteSam[NL] » June 1st, 2010, 10:39 pm

What do you need Drof?
The whole map thing or just the scriptfiles ?

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Why doesn't it play the sound ?

Post by <LT>YosemiteSam[NL] » June 1st, 2010, 10:42 pm

KillerSam wrote:
<LT>YosemiteSam[NL] wrote:What do you need Drof?
$$.
:) that too probably...

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Why doesn't it play the sound ?

Post by Drofder2004 » June 2nd, 2010, 2:27 am

<LT>YosemiteSam[NL] wrote:What do you need Drof?
The whole map thing or just the scriptfiles ?
It depends, is this solely a mapping project or a mod and map?

If the script requries the map to work, then send both, otherwise just send the script.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Why doesn't it play the sound ?

Post by <LT>YosemiteSam[NL] » June 2nd, 2010, 8:30 am

As far as I know it doesn't require the map (yet).
So I'll iwd both the script files and the sound and sounsalias file (which contain the jump_pad sound).
I'll post them here.

mr-x
CJ Newbie
CJ Newbie
Posts: 61
Joined: March 7th, 2010, 3:33 pm

Re: Why doesn't it play the sound ?

Post by mr-x » June 2nd, 2010, 10:51 am

sound wont never played from Compiler run it normaly

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Why doesn't it play the sound ?

Post by <LT>YosemiteSam[NL] » June 2nd, 2010, 12:40 pm

mr-x wrote:sound wont never played from Compiler run it normaly
Sound definately plays from compiler m8. I have an ambient sound and a jumppad sound which work when compiling and running the map with the compiler.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Why doesn't it play the sound ?

Post by <LT>YosemiteSam[NL] » June 2nd, 2010, 6:40 pm

Here you go Drof. If you need more let me know.
You have to rename the zip file to rar I think...not sure about that.
Thx in advance m8.
You do not have the required permissions to view the files attached to this post.

Post Reply