Jump to content

Stone Vought

Resident
  • Posts

    4
  • Joined

  • Last visited

Reputation

2 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I'm having the same problem. Tried using 3 different viewers, also logged onto different grids using 3 different viewers. Still the same problems. If i make a prim and put a script, texture or anything in contents, it says contents loading and doesn't load. Also the same thing happens if i buy something that needs to be opened, just says contents loading and never does. Occasionally, if i log off for a while and relog it will work, but usually only once then back to the same problem.
  2. Have you tried clearing your viewer's cache ? Paloc2 wrote: First, I haven't found the appropiate forum so if a mod could move it to the appropiate subforum I'd be thankful. Now... A couple days ago I joined a sim and spent some time there, then the sim crashed. I wanted to try if the sim was back operational today and its stuck on "connecting to region" so it leads me to an error and I crash. I asked a friend to join that sim and he told me he joined it fine, no issues, so the problem must be on my end. Any help? I'm using firestorm as the viewer.
  3. Thank you Qie, I'm testing it now. Looks good so far. I'm going to repost the ammended script if you don't mind, in case someone else can use it. // Script by Stone Vought with contributions from Qie Niangao // Put your URL in the prims description Example : http://www.181.fm/station_playing/181-eagle.html it must be from 181.fm & their station playing website or type in /station_playing/ And which ever 181 site string music_url = ""; key HTTPRequestKey; string URL; default { state_entry() { llSetText(" ",<1,1,1>,1); llSetTimerEvent(40.0); if(music_url) { URL = music_url; } else { URL = llGetObjectDesc(); } } timer() { HTTPRequestKey=llHTTPRequest(llGetObjectDesc() ,[],""); } http_response(key k,integer status, list meta, string body) { if(k != HTTPRequestKey) return; integer startIdx = llSubStringIndex(body, "startcurrent"); if (-1 == startIdx) return; // broke string title = llGetSubString(body, startIdx+25, -1); startIdx = llSubStringIndex(title, ">"); title = llGetSubString(title, startIdx+1, llSubStringIndex(title, "<")-1 ); llSetText("Now Playing : "+title,<1,1,1>,1.0); llOwnerSay(title); } }
  4. I wrote this script to extract the artist and song now playing on 181FM channels. It basically does what i'm asking it to do. But I have a problem with parsing the data extracted. The artist and song playing change sizes depending on whats being played at the time. So either the artist or song gets cut off if too long , or it shows the html tags if the artist and song is too short. I've tried a few things to adjust for this, but it's got me scratching my head. Any ideas on how to correct this ? I'll post the script below. Just rez a cube and put the url provided in the object description. I have the timer set to 60 you can change that to shorter to save time. Thanks for any ideas or help that you can provide. //example use this URL in Objects Description - http://www.181.fm/station_playing/181-eagle.html string music_url = ""; key HTTPRequestKey; string URL; default { state_entry() { llSetText(" ",<1,1,1>,1); llSetTimerEvent(60.0); if(music_url) { URL = music_url; } else { URL = llGetObjectDesc(); } } timer() { HTTPRequestKey=llHTTPRequest(llGetObjectDesc() ,[],""); } http_response(key k,integer status, list meta, string body) { if(k != HTTPRequestKey) return; llSetText("Now Playing : "+llGetSubString(body, -72, -45),<1,1,1>,1.0); llOwnerSay(llGetSubString(body, -72, -45)); } }
×
×
  • Create New...