Graal Forums

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

oo_jazz_oo 11-02-2007 04:24 AM

play()?
 
I'm trying to make this radio, everything works except it wont play music!
I was wondering if this was a glitch with graal or something, cause its not letting me play any music besides whats uploaded on the server...
If I try to play mp3s, radio streams, anything it doesnt work...
It used to tho. When I press f3, it says its playing, but theres no sound.
And its not just me, because other people cant hear it either.
All it is is a simple play() script that should work...
And even when I directly put the url into the Current Track spot in the f3 window, it doesnt play.
So, can anyone help?
Is it a script problem, or a graal problem?

(I'm running on windows xp if that has anything to do with it)

Knightmare1 11-02-2007 01:31 PM

hmm. it is the same problem for my servers radio.. maybe it could be a bug..
try doing playmidi(<song>); or watever that function is. or you could probably find a url.

Angel_Light 11-02-2007 02:27 PM

So the script worked earlier but all of a sudden it no longer works? Sounds like the server you get your music from is down.

Iris 11-02-2007 03:12 PM

play("url"); works properly for me.
You didn't forget the http://?

oo_jazz_oo 11-02-2007 10:34 PM

I dont mean it worked before on this server.
It has never worked on this server, but other servers I worked on.
And, I know the site that the music is from is up, because when I play the url in my browser, it finds it just fine.
And its so annoying....cause I spent alot of time on this stupid radio script, just to fint out it wont play the damn songs.

Knightmare1 11-02-2007 11:09 PM

try the http://www.projectplaylist.com and search it their. their music doesnt always work tho..

Admins 11-03-2007 12:20 AM

Is the url directly linking to the music or to the playlist ? If it's the playlist then you need to load the file first (requesturl() example somewhere in these forums) and then extract the mp3 url.

oo_jazz_oo 11-03-2007 12:50 AM

No, the url is directly to the .mp3 url...

bscharff 11-03-2007 02:15 AM

Make sure not to include any spaces in it, substitute %20 for spaces.
EXAMPLE:
Instead of
play("http://forums.graalonline.com/music/i love me.mp3");
Use
play("http://forums.graalonline.com/music/i%20love%20me.mp3");

Of course, make sure the client that it should play on has radio enabled & his volume turned up in windows AND on the clent.
play(); only works on clientside.

oo_jazz_oo 11-03-2007 02:22 AM

Quote:

Originally Posted by bscharff (Post 1356013)
Make sure not to include any spaces in it, substitute %20 for spaces.
EXAMPLE:
Instead of
play("http://forums.graalonline.com/music/i love me.mp3");
Use
play("http://forums.graalonline.com/music/i%20love%20me.mp3");

Of course, make sure the client that it should play on has radio enabled & his volume turned up in windows AND on the clent.
play(); only works on clientside.

No spaces in url, player has volume turned on (windows and client)
and play(); is clientside.
Still doesnt work.


All times are GMT +2. The time now is 11:40 PM.

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