Graal Forums  

Go Back   Graal Forums > Development Forums > Sounds & Music
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-15-2009, 07:45 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Cool Sound Problem!!!

Hey, I am trying to get a song to play off of the internet onto a level on my server, and it isn't working. I even opened a new folder called (mp3).mp3, and it still wont work. How can I play this?

They say that the commands are:

play (filename);

example:

play dogsound.mp3;

It isn't working.

I wish I could just play it off of youtube or something. Is there a way to do this?
If there is, please tell me how.

Thanks

jamerson <3
Reply With Quote
  #2  
Old 01-15-2009, 08:16 PM
Pimmeh Pimmeh is offline
Rgesitreed Uesr
Pimmeh's Avatar
Join Date: May 2007
Location: Utrecht, the Netherlands
Posts: 1,586
Pimmeh has a spectacular aura about
Send a message via AIM to Pimmeh Send a message via MSN to Pimmeh
Dont double post please, it wont get your answers faster...
__________________
Oh, Death,
No wealth, no ruin, no silver, no gold
Nothing satisfies me but your soul
Reply With Quote
  #3  
Old 01-15-2009, 08:27 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Could you tell me the answer?
Reply With Quote
  #4  
Old 01-15-2009, 08:33 PM
Matt Matt is offline
iZone Administrator
Matt's Avatar
Join Date: Apr 2005
Location: United States
Posts: 2,690
Matt is a jewel in the roughMatt is a jewel in the rough
Here's an example:

//#CLIENTSIDE
if (playerenters){playlooped http://www.domainhere.com/songs/song1.mp3;
}

That should work, if it doesn't give me the URL of the song you want, and i'll post it in the script and reply here for you.
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center

Last edited by Matt; 01-16-2009 at 06:14 AM..
Reply With Quote
  #5  
Old 01-15-2009, 09:17 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
//#CLIENTSIDE
if (playerenters){playlooped http://www.youtube.com/watch?v=JgA59bBX82E;
}



it wont work D:
Reply With Quote
  #6  
Old 01-15-2009, 09:30 PM
Matt Matt is offline
iZone Administrator
Matt's Avatar
Join Date: Apr 2005
Location: United States
Posts: 2,690
Matt is a jewel in the roughMatt is a jewel in the rough
The script is 'trying' to read a 'video' that's why. It will only read audio extensions such as .wav .mp3 ect. From my understanding, YouTube is all videos. Maybe this will give you a better understanding (Straight out of the level editor NPC Script commands):

// file operations:
play - filename; plays a sound/music file or whatever can be played with 'Windows Media Player'
play2 - filename,x,y,volume; plays a sound/music at x,y with the specified volume (1=default volume)
playlooped - filename; plays a sound file (*.wav) looped
stopsound - filename; stops playing a sound file (*.wav)
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center

Last edited by Matt; 01-15-2009 at 09:40 PM.. Reason: added file operations
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 05:43 PM.


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