Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-03-2002, 09:09 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
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
__________________
Reply With Quote
  #2  
Old 05-03-2002, 08:22 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to 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.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #3  
Old 05-04-2002, 12:24 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
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;
__________________
Reply With Quote
  #4  
Old 05-05-2002, 06:22 AM
prozacboy666 prozacboy666 is offline
Registered User
Join Date: Mar 2002
Posts: 130
prozacboy666 will become famous soon enough
if (playerenters){
playlooped name.mid
}

works everytime for me!
Reply With Quote
  #5  
Old 05-05-2002, 12:19 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
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
__________________
Reply With Quote
  #6  
Old 05-05-2002, 11:28 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The playlooped bug is fixed in the new version (v2.14 revision 4) which has been released yesterday
Reply With Quote
  #7  
Old 05-06-2002, 12:08 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Stefan
The playlooped bug is fixed in the new version (v2.14 revision 4) which has been released yesterday
Yay!
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:31 AM.


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