Ghostwitness
Resident-
Posts
19 -
Joined
-
Last visited
Reputation
2 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Went with Stealthic. Looks great, lowered my complexity dramatically. Thanks for info!
-
I’m in process of updating my avatar from 7 years ago. I have a Gianni body and Catwa head. I’m looking to replace my hair as it’s adding 30000 to my current complexity. Are there any good shops for men’s hair and beards?
-
I’m in process of updating my avatar from 7 years ago. I have a Gianni body and Catwa head. I’m looking to replace my hair as it’s adding 30000 to my current complexity. Are there any good shop for men’s hair and beards?
-
How much complexity is normal for an average avatar?
Ghostwitness replied to liberty4us's topic in Your Avatar
Having recently returned from a six year break I find myself with old clothing/accessories with a complexity of 125000 to 150000 depending on what I try to wear. No prim items on me, although my inventory is full of prim and high complexity mesh clothing. Not wanting to dish out a ton of money, I’ve gone with a $L1 Altamura bento body and parts. My clothes need a complete revamp. Where is a guy to go for low complexity clothes at discount prices that will work on my discount body? -
What has SL taught you about the world?
Ghostwitness replied to Alma Palmira's topic in General Discussion Forum
The number of non-UK people who show up in London City…. People want to hear and trust someone with a British accent. -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
All fixed up thanks to Freya! Here's the working script if anyone is interested. I'll be cleaning it up a bit for my version and making a few cosmetic changes, but it works // leave music_url blank if set in object's descriptionstring music_url = "http://66.7.214.7:8064"; key HTTPRequest;string feed;string URL;string currSongTitle;string lastSongTitle;list feedList;default{ state_entry() { llSetText(" ",<1,1,1>,1); llSetTimerEvent(5.0); if(music_url) { URL = music_url; } else { URL = llGetObjectDesc(); } } timer() { HTTPRequest=llHTTPRequest(URL + "/7.html HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n",[],""); }http_response(key k,integer status, list meta, string body) { //llOwnerSay((string)status + " : " + llGetSubString(body,63 + 3, 63 + 3)); if(status != 200) { llSetColor(<0.067, 0.067, 0.067>, ALL_SIDES); llSetText("",<0,0,0>,0); //REMOVED 'return;' } else { if(llGetSubString(body,63 + 3,63 + 3) == "0") { lastSongTitle = "-1"; currSongTitle = "-2"; llSetColor(<0.067, 0.067, 0.067>, ALL_SIDES); llSetText("",<0,0,0>,0); } else { feed = llGetSubString(body,llSubStringIndex(body, "<body>") + llStringLength("<body>"), llSubStringIndex(body,"</body>") - 1); feedList = llParseString2List(feed,[","],[]); currSongTitle = llList2String(feedList,6); integer length = llGetListLength(feedList); if(llList2String(feedList,7)) { integer a = 7; for(; a<length; ++a) { currSongTitle += ", " + llList2String(feedList,a); } } if (currSongTitle != lastSongTitle) { llSetText(currSongTitle,<1,1,1>,0.75); llSetColor(<1.000, 1.000, 1.000>, ALL_SIDES); lastSongTitle = currSongTitle; } } } //LINE ADDED }} -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
In world with you. Thank you Freya! -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
It still does nothing. Here is the complete code as it stands. You've been a great help, I'm really sorry to take up your time, but I'm incompetent // leave music_url blank if set in object's descriptionstring music_url = "http://66.7.214.7:8064"; key HTTPRequest;string feed;string URL;string currSongTitle;string lastSongTitle;list feedList;default{ state_entry() { llSetText(" ",<1,1,1>,1); llSetTimerEvent(5.0); if(music_url) { URL = music_url; } else { URL = llGetObjectDesc(); } } timer() { HTTPRequest=llHTTPRequest(URL + "/7.html HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n",[],""); }http_response(key k,integer status, list meta, string body) { if(status != 200 || llGetSubString(body,63 + 3,63 + 3) == "0") //FIXED KEY TEST, AS POST ABOVE FROM Nova Convair { llSetColor(<0.067, 0.067, 0.067>, ALL_SIDES); //REMOVED 'return;' } else //LINE ADDED { //LINE ADDED feed = llGetSubString(body,llSubStringIndex(body, "<body>") + llStringLength("<body>"), llSubStringIndex(body,"</body>") - 1); feedList = llParseString2List(feed,[","],[]); currSongTitle = llList2String(feedList,6); integer length = llGetListLength(feedList); if(llList2String(feedList,7)) { integer a = 7; for(; a<length; ++a) { currSongTitle += ", " + llList2String(feedList,a); } } if (currSongTitle != lastSongTitle) { llSetText(currSongTitle,<1,1,1>,0.75); llSetColor(<1.000, 1.000, 1.000>, ALL_SIDES); lastSongTitle = currSongTitle; } } //LINE ADDED }} -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
I changed if(status != 200 || llGetSubString(body,63 + 3,63 + 3 = "0") to if(status != 200 || llGetSubString(body,63 + 3,63 + 3 = "0")) to close off the brackets, but I still get a syntax error "37:62 ERROR: Syntax Error". I get the syntax eror rwith the brackets unclosed too. -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
With stream off --> Animated Belt Buckle: 0 With stream on but not playing music --> Animated Belt Buckle: 1 With stream on and playing music --> Animated Belt Buckle: 1 -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
With stream off --> Animated Belt Buckle: ,0 With stream on and no song --> Animated Belt Buckle: ,1 With stream on and a song playing --> Animated Belt Buckle: ,0, then after 5 ticks, went to --> Animated Belt Buckle: ,1 -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
When stream is turned off --> Animated Belt Buckle: 2014-03-07T15:45:43.312322Z: >0,0,22,100,0,128,blink-182 - First Date</body></html> - Seems to be displaying last song played When stream is on with no song --> Animated Belt Buckle: 2014-03-07T15:46:53.327011Z: >0,1,22,100,0,128,blink-182 - First Date</body></html> - Still appears to display the last song played When streaming with a song on --> Animated Belt Buckle: 2014-03-07T15:48:18.314447Z: >0,1,22,100,0,128,Bob Seger - Her Strut</body></html> - Displays current song -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
When off --> Animated Belt Buckle: 2014-03-07T15:35:53.992924Z: <HTML><meta http-equiv="Pragma" content="no-cache"></head><body>0 When on with no song playing --> Animated Belt Buckle: 2014-03-07T15:37:13.985207Z: <HTML><meta http-equiv="Pragma" content="no-cache"></head><body>0 When on with a song playing --> Animated Belt Buckle: 2014-03-07T15:38:29.001873Z: <HTML><meta http-equiv="Pragma" content="no-cache"></head><body>0 Seems to be the same no matter what. Yet song still displays in floating text while playing and updates when new song comes on. -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
http://66.7.214.7:8064/7.html This returns the last song when the stream is off. -
Detect Streaming Music Feed And Change a Prim Color
Ghostwitness replied to Ghostwitness's topic in LSL Scripting
Returns "2014-03-07T15:29:13.819041Z: 200" with changing times whether I am stream from Sam Broadcaster to the site or not.