Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sound Problem :( (https://forums.graalonline.com/forums/showthread.php?t=51844)

MASTERCOLA 03-21-2004 04:50 AM

Sound Problem :(
 
Okay...not scripting but there was no catagory for this...

so please could u help.... i have scripted a instrument and it works correctly except for one thing!

no one can hear the sound!!! SFX's have been buggin me for a while some work some dont! when i upload! how can i upload them so they download into the players sound file because this is really annoying me lol..... please help

also the script works for me since i dragged the files into the sounds folder my self :D

Thanks ;)

Loriel 03-21-2004 04:54 AM

I agree, this seems to be the best category.
Do you have set the correct folder configuration thingie?
Assuming you have the sound files as levels/sounds/foo.wav, you would need `file sounds/*.wav' or something similar.

MASTERCOLA 03-21-2004 04:59 AM

yeah im using "file SFX/*.wav "

but for some reason even tho the files are in that folder it still wont work :(

Loriel 03-21-2004 05:01 AM

You should lowercase sfx

MASTERCOLA 03-21-2004 05:14 AM

damn, that didnt work neither....

i also tried making a folder just called Sounds

"file Sounds/wav*"

that still didnt work :(

what is going on?

Loriel 03-21-2004 05:18 AM

*.wav, not wav*, eh?
Not sure, otherwise. Can you post the parts of the script that try to play something?
Anybody else, do we need a seperate sound-like directive in the folder config, or will file do fine? :\

MASTERCOLA 03-21-2004 05:20 AM

if (keydown(0)) { setani zenkouplaysteeldrums2,play zensd8.wav; }

i think its sumthing to do with the folder config still tho

Loriel 03-21-2004 05:23 AM

Err.
That piece of script should not work :(

Can you, for testing, do something like:
NPC Code:
//#CLIENTSIDE
if (playerenters) {
play foo.wav;
message Playing...;
}


Does such work?

MASTERCOLA 03-21-2004 05:25 AM

//#CLIENTSIDE
if (weaponfired) {
this.enabled=1;
disabledefmovement;
playerdir=2;
setani zenkouplaysteeldrums1,zenkousteeldrums.png,;
timeout=.1;
}

if (timeout&&isweapon) {

if (keydown(0)) { setani zenkouplaysteeldrums2,zensd8.wav; }

Loriel 03-21-2004 05:26 AM

Such perhaps?

NPC Code:
//#CLIENTSIDE
if (weaponfired) {
this.enabled = 1;
disabledefmovement;
playerdir = 2;
setani zenkouplaysteeldrums1,zenkousteeldrums.png,;
timeout = 0.1;
}

if (timeout) {
if (keydown(0)) {
setani zenkouplaysteeldrums2,zensd8.wav;
say2 wow, I played zensd8.wav;
}
}


Do you not want to loop the timeout or something?

MASTERCOLA 03-21-2004 05:29 AM

i did the test....and i tested ocean.wav which worked

and then my file.... which didnt work

DIABLO2099 03-21-2004 06:33 AM

Open your rights and show us what you have as the folder.

WanDaMan 03-21-2004 10:43 AM

Arnt you suppose to upload the sounds from a website or somet?

Loriel 03-21-2004 02:34 PM

I am not sure. I think sounds are allowed, but music is not.

WanDaMan 03-21-2004 04:57 PM

Quote:

Originally posted by Loriel
I am not sure. I think sounds are allowed, but music is not.
Ah okay :)

R0bin 03-21-2004 11:13 PM

I got it working for them, just made their script play the gani with play PARAM1 in the gani so that they could do

setani gani,sound.wav;


All times are GMT +2. The time now is 07:51 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.