Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Something's not right... (https://forums.graalonline.com/forums/showthread.php?t=28483)

G_yoshi 05-03-2002 09:09 AM

Something's not right...
 
NPC Code:
//#CLIENTSIDE
if (playerenters || timeout) {
playlooped shore.wav;
timeout = 0.05;
}



On the previous version of Graal, it would loop the file and, of course, change as the player changed position...allowing somewhat for ambient sound...now, everytime it loops with timeout, it plays a new instance of the sound...or at least that is what it does to my sound card and it floods it and slows down game play...Stefan, please fix this :(

Spanko 05-03-2002 08:22 PM

You could change the sound to a longer .mid file, though then only players who have music enabled would hear it.

I also believe play stays normally centered on the player, though that means you'd have to make the timeout exactly equal to how long the sound is.

G_yoshi 05-04-2002 12:24 AM

Quote:

Originally posted by Spanko
You could change the sound to a longer .mid file, though then only players who have music enabled would hear it.

I also believe play stays normally centered on the player, though that means you'd have to make the timeout exactly equal to how long the sound is.

midis are disgusting :/

It's just a sound sample of waves hitting a shore...it's not long.

If you've ever played on 2k1 and was near Bomboria River, you'd here the running water (if SFX were on)...that script I posted is exactly how it works because any sound that is played starts at the NPC's origin unless you use play2 which allows you to set the x/y for a sound.

Another bug I've found is after setting a mod (s3m, xm, it, etc.) to play on the current level when you go to a new level that has a new file specified, it keeps playing the one from the previous level...this only happens when on a map...or one song overrides another even after doing stopsound <filename>; and stopmidi;

prozacboy666 05-05-2002 06:22 AM

if (playerenters){
playlooped name.mid
}

works everytime for me!

G_yoshi 05-05-2002 12:19 PM

Quote:

Originally posted by prozacboy666
if (playerenters){
playlooped name.mid
}

works everytime for me!

Midi's automatically loop when you use play :/

playlooped is for SFX since wav files cannot loop on their own :p

Admins 05-05-2002 11:28 PM

The playlooped bug is fixed in the new version (v2.14 revision 4) which has been released yesterday

G_yoshi 05-06-2002 12:08 AM

Quote:

Originally posted by Stefan
The playlooped bug is fixed in the new version (v2.14 revision 4) which has been released yesterday
Yay! :D


All times are GMT +2. The time now is 09:15 AM.

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