Qwalyphi Korpov

Resident
  • Content count

    3,455
  • Joined

  • Last visited

Community Reputation

20 Excellent

About Qwalyphi Korpov

  • Rank
    Advanced Member
  1. Four hours ago I posted a simple script (& other details) that should work with the new server change but doesn't. Of course anything that worked on the old release fails under the new release, giving a Script Warning/Error/Debug message: URL passed to llHTTPRequest is not valid. So I'm confused. I'll paste as simple a script I can that has just two lines that differ. One needs to be commented to run in the old servers and the other needs to be commented to run in the new. Works fine on the old. Fails on the new. -------------------------------- // v3 - to use new HTTP request HTTP_USER_AGENT parameter // v3.1 - simpler key kSentRequest; string URL; string stream_status; string stream1; string stream2; integer toggle = 0; default { state_entry() { stream1 = "http://37.59.14.77:8352"; stream2 = "http://server3.luschaudio.com:10272"; } touch_start (integer number) { if (toggle)URL = stream1; else URL = stream2; llOwnerSay("URL:"+URL); toggle = !toggle; kSentRequest = llHTTPRequest(URL + "/7.html"+" HTTP/1.0\nUser-Agent: XML Getter (Mozilla Compatible) \n\n", [], ""); // old code //kSentRequest = llHTTPRequest(URL + "/7.html",[HTTP_USER_AGENT, "Stream-Script/1.0 (Mozilla Compatible)"],""); // new code } http_response (key kRecRequest, integer intStatus, list lstMeta, string strBody) { llOwnerSay("Status:"+(string)intStatus+", ResponseBody:"+strBody); } }
  2. It's interesting that requests that worked... back when this worked now fail in a variety of ways using the latest server version and the example HTTP_USER_AGENT settings. So far return codes 404, 403 and 502. Possibly due to variations in the particular Shoutcast servers involved.
  3. Testing was not successful today. Using the simple script below to access one of two ShoutCast servers I get a 502 response from one and the other gets a 403. // 7.html gives the following in the body // 0 -> current listeners // 1 -> status // 2 -> listener peak // 3 -> max listeners // 4 -> reported listeners // 5 -> bitrate // 6 -> song // v3 - to use new HTTP request HTTP_USER_AGENT parameter string stream = "YOUR STREAM URL"; key kSentRequest; string URL; string stream_status; default { state_entry() { stream = "http://37.59.14.77:8352"; stream = "http://server3.luschaudio.com:10272"; URL = stream; llOwnerSay("URL:"+URL); } touch_start (integer number) { kSentRequest = llHTTPRequest(URL + "/7.html",[HTTP_USER_AGENT, "Stream-Script/1.0 (Mozilla Compatible)"],""); } http_response (key kRecRequest, integer intStatus, list lstMeta, string strBody) { if (kRecRequest == kSentRequest) { llOwnerSay("Status:"+(string)intStatus+", ResponseBody:"+strBody); kSentRequest = NULL_KEY; } } } Location & Server version: You are at 11.6, 18.5, 21.3 in Morabeza located at sim10094.agni.lindenlab.com (216.82.48.160:13020) SLURL: http://maps.secondlife.com/secondlife/Morabeza/12/19/21 (global coordinates 199,948.0, 307,987.0, 21.3) Second Life RC Magnum 17.06.19.327192 Messages below [08:06:40] Qwalyphi Korpov: . [08:06:53] Simple Stream Mon V3 June 20: URL:http://server3.luschaudio.com:10272 [08:07:18] Simple Stream Mon V3 June 20: Status:502, ResponseBody:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!-- %l body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; } --></style> </head><body id=ERR_ZERO_SIZE_OBJECT> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="http://server3.luschaudio.com:10272/7.html">http://server3.luschaudio.com:10272/7.html</a></p> <blockquote id="error"> <p><b>Zero Sized Reply</b></p> </blockquote> <p>Squid did not receive any data for this request.</p> <p>Your cache administrator is <a href="mailto:webmaster">webmaster</a>.</p> <br> </div> <hr> <div id="footer"> <p>Generate [08:07:25] Qwalyphi Korpov: . [08:07:41] Simple Stream Mon V3 June 20: URL:http://37.59.14.77:8352 [08:07:44] Simple Stream Mon V3 June 20: Status:403, ResponseBody:
  4. // 7.html gives the following in the body // 0 -> current listeners // 1 -> status // 2 -> listener peak // 3 -> max listeners // 4 -> reported listeners // 5 -> bitrate // 6 -> song // v3 - to use new HTTP request parameters integer DEBUG = FALSE; string stream = "YOUR STREAM URL"; key kSentRequest; string URL; string stream_status; string listeners; string song; integer bit_rate; default { state_entry() { stream = llGetObjectDesc(); URL = stream; llOwnerSay("URL:"+URL); //URL = stream + "/7.html HTTP/1.0\nUser-Agent: XML Getter (Mozilla Compatible)\n\n"; //kSentRequest = llHTTPRequest(URL, [], ""); kSentRequest = llHTTPRequest(URL + "/7.html",[HTTP_USER_AGENT, "Stream-Script/1.0 (Mozilla Compatible)"],""); llSetTimerEvent(10.0); } touch_start (integer number) { //kSentRequest = llHTTPRequest(URL, [], ""); kSentRequest = llHTTPRequest(URL + "/7.html",[HTTP_USER_AGENT, "Stream-Script/1.0 (Mozilla Compatible)"],""); // check it } timer () { //kSentRequest = llHTTPRequest(URL, [], ""); kSentRequest = llHTTPRequest(URL + "/7.html",[HTTP_USER_AGENT, "Stream-Script/1.0 (Mozilla Compatible)"],""); if (stream != llGetObjectDesc()) { llResetScript(); } } http_response (key kRecRequest, integer intStatus, list lstMeta, string strBody) { if (kRecRequest == kSentRequest) { // Strip the html out of the received information and just show what is inbetween the body tags llOwnerSay("Status:"+(string)intStatus+", ResponseBody:"+strBody); list html = llParseString2List(strBody,["<body>", "</body>"],[]); string info = (llList2String(html,1)); list status = llCSV2List(info); listeners = llList2String(status,4); integer new_rate = llList2Integer(status,5); song = llList2String(status,6); //if (song != "") llOwnerSay("song is "+song); if (new_rate != bit_rate) { //if (bit_rate > 0) llOwnerSay("New stream bit rate is "+(string)new_rate+" kbps"); bit_rate = new_rate; } stream_status = llList2String(status,1); if (stream_status == "1") { llSetTextureAnim(TRUE | SMOOTH | LOOP, ALL_SIDES,1,1,1.0, 1,0.25); llSetColor(<1.0,1.0,1.0>, ALL_SIDES); llSetText("Stream is ON with "+listeners+" listeners"+ "\nBit Rate is "+(string)bit_rate+" kbps"+ "\nSong: "+song,<0.1,0.9,0.1>,0.9); } else { llSetTextureAnim(FALSE | SMOOTH | LOOP, ALL_SIDES,1,1,1.0, 1,0.25); llSetColor(<0.3,0.3,0.3>, ALL_SIDES); llSetText("Stream is OFF",<0.9,0.1,0.1>,0.9); } //llSay(0," Current Listeners: " + llList2String(status,0)); //llSay(0,"Status: " + llList2String(status,1)); //llSay(0,"listener peak: " + llList2String(status,2)); //llSay(0,"max listeners: " + llList2String(status,3)); //llSay(0,"reported listeners: " + llList2String(status,4)); //llSay(0,"bitrate: " + llList2String(status,5)); //llSay(0,"Song: " + llList2String(status,6)); kSentRequest = NULL_KEY; } } on_rez(integer start_param) { llResetScript(); } }
  5. Tried this today and got a 502 result: [11:37:37] Q Stream Monitor June 14: Response Status:502, ResponseBody:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!-- %l body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; } --></style> </head><body id=ERR_ZERO_SIZE_OBJECT> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="http://server3.luschaudio.com:10272/7.html">http://server3.luschaudio.com:10272/7.html</a></p> <blockquote id="error"> <p><b>Zero Sized Reply</b></p> </blockquote> <p>Squid did not receive any data for this request.</p> <p>Your cache administrator is <a href="mailto:webmaster">webmaster</a>.</p> <br> </div> <hr> <div id="footer"> <p which looks like:
  6. Hmmmm... per the release notes this is being fixed tomorrow. Would be so helpful to know those little details like the script change that's needed (or is it?).
  7. That's good news. Thanks Oz.
  8. This is not a problem with one script by one author. It's a general problem with scripts that access shoutcast status. Please reach out further.
  9. I see what you did there Love. @Madelaine McMasters , thanks for the WB. It's good to be awake again.
  10. LOL This isn't questions. How rude of people to ask questions in the LSL forum rather than in Questions. AND Madelaine asks another question! AND Snugs answers a question instead of pointing out that you shouldn't ask questions here. I'm so upset. In the forums you could edit your original post to be something completely different. Which I did frequently. Although it's not helpful.
  11. Déjà vu
  12. experience tools

    First, you all have gone way off-topic here, so that's normal I suppose. Second, the LL originally hid the experience forum. Then they announced that they had stopped hiding it. Except they left it hidden in that it wasn't listed in the list of forums. When we told them that was wacky they did nothing. So.... maybe there still is an experience forum and you all just haven't found it yet. Or.... maybe there still is an experience forum and even LL hasn't found it yet. They did spent a month or so banging on pipes (or whatever they called the search process.)
  13. Rolig Loon wrote: Kostya Noyes wrote: [ .... ] But users don't see content on face of object, only after click on them. [ .... ] Yes, that's why I wrote that "In theory" your code should work. In practice, I have never seen prim media start automatically. I have some MOP objects that auto-play IF I turn on the "Allow media to auto-play" option in Preferences. If not I see my "Media on A Prim" texture until I click the object. Firestorm viewer is all I can speak to. The experience of others may vary.
  14. Caitlin Tobias wrote: I got the memo. And the new page is better, now you can subscribe for email notifications. Really? Not a memo you could share?
  15. I haven't looked through all of your logic. There is a simple problem in the 'if' statements: if (value = 0) direction = 1; should be if (value == 0) direction = 1; As you have it coded the 1st 'if' sets ' value' to 0 and then the 2nd 'if' sets 'value' to 4 every time. Which is why you're gettting stuck at that number.