Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-07-2006, 08:51 AM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
RequestURL woes

NPC Code:

function onTimeout() {
xr = player.chat.tokenize();
switch(xr[0]) {

case ":ar":
player.chat = "doing..";
this.req = requestURL(xr[1]);
catchEvent(this.req,"onRecieveData","onData");
break;

}
setTimer(.05);
}

function onData(obj) {
player.chat = obj;
}



Obj returns nothing. Absolutely nothing. The chat stays doing.. for the default chat timeout and just disappears. Now the interesting part:

If I were to do player.chat = this.req right below it, and the url was, say http://www.di.fm/aacplus/lounge.pls, i'd get:

HTTP_www.di.fm_80_/aacplus/lounge.pls

Which of course, yields nothing any closer to parsing it into a stream.

And also, if I extract the ip/port of the stream from the pls file manually, and try to play it within graal, it doesnt work. Why?
__________________

I hope for nothing. I fear nothing. I am free.
Reply With Quote
 


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 03:32 PM.


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