keeps getting the message:
scanball: is now out of range.
scanball: is now out of range.
scanball: is now out of range.
..
..
These forums are CLOSED. Please visit the new forums HERE
Library: 3D Radar |
|
|
Meta Starostin
Registered User
Join date: 5 Jul 2007
Posts: 56
|
06-01-2008 17:57
keeps getting the message:
scanball: is now out of range. scanball: is now out of range. scanball: is now out of range. .. .. |
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
06-01-2008 20:29
I copy/pasted and used the 2 scripts on the 1st page tonight to create a radar in world, following the suggested parameters. Sorry but I could not replicate either bug. I was in Cubey Terra with people coming and going and recieved no null strings messages or balls with duplicate names.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
|
09-01-2008 11:46
keeps getting the message: scanball: is now out of range. scanball: is now out of range. scanball: is now out of range. .. .. Its suppose the scan ball die when no vatars are in range in the "no sensor part" no_sensor() { llRegionSay(key_rem_chan, avKey); llOwnerSay(avName + " is now out of range." ;llDie(); //<------- here } and you dont get the message "scanball: is now out of range." several times because the scan ball dies. I try that part of code in one of my radar script with no die part and get that message over and over . also Im trying to get a messag like this "radar : "vatar name" is now out of range " or"vatar name" stayed xxx minutes " only one time but i can figured out how .maybe some 2 list checking the in and out?? |
|
Erikah Jameson
Registered User
Join date: 24 Nov 2007
Posts: 26
|
12-01-2008 12:46
i don t understand how to increase the scan range abote the standard 96m...
Can someone help? |
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
12-01-2008 14:53
i don t understand how to increase the scan range abote the standard 96m... Can someone help? 96 meters is the maximum range for sensors in SL. Whole sim scanners use multiple scanners that move throughout the sim and report back to the base unit. _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Erikah Jameson
Registered User
Join date: 24 Nov 2007
Posts: 26
|
12-02-2008 01:52
96 meters is the maximum range for sensors in SL. Whole sim scanners use multiple scanners that move throughout the sim and report back to the base unit. Ok, thank you ![]() |
|
wearewatching Footman
Registered User
Join date: 2 Dec 2008
Posts: 2
|
12-02-2008 19:44
I got the scanners to work right for a sim scanner and got the current sim image on a prim. Now how do I correctly place the scan balls? Like someone is in the extreme north east corner in my minimap but close to the center of the map on my radar.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
12-02-2008 20:13
I got the scanners to work right for a sim scanner and got the current sim image on a prim. Now how do I correctly place the scan balls? Like someone is in the extreme north east corner in my minimap but close to the center of the map on my radar. Hey nice job so far! I love to see people taking an idea and running with it. A whole sim scanner is no small feat. Take a look at the script I posted here to see the math you would need to use. /54/c0/287403/1.html _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Rudolf Cleanslate
Registered User
Join date: 1 Dec 2006
Posts: 13
|
04-29-2009 03:18
This is my Deluxe version.
Improvements: dynamic scanning, colour coded radar blips, terrain map overlay. ==================================================== Root prim: ==================================================== key httpRequestId; string URL = "http://www.subnova.com/secondlife/api/map.php"; default { state_entry() { llPassTouches(TRUE); httpRequestId = llHTTPRequest(URL + "?" + "sim" + "=" + llEscapeURL(llGetRegionName()),[], "" ;} http_response(key request_id, integer status, list metadata, string body) { if (request_id == httpRequestId) llSetTexture(body, 0); } on_rez(integer start_param) { llSetRot(<0,0,0,1> ;llSetScale(<2.55,2.55,0.01> ;llResetScript(); } touch_start(integer a) { llMessageLinked(LINK_ALL_CHILDREN, 0, "touched", NULL_KEY); } } ======================================================== 3D Radar base - link to first prim Suggestion; Create a cylinder of 0.01 dimension , Taper X: 1.00 Y: 1.00 ======================================================== integer Scan = TRUE; string avKey; integer list_pos; list key_list; integer key_chan; //Key channel is generated randomly and passed to the scan ball integer die_chan = -9423753; vector mappos; vector difpos; integer key_rem_chan = -49222879; default { state_entry() { llSetObjectName("3D Radar" ;} link_message(integer sender_num, integer num, string list_argument, key id) { if (Scan) { mappos = llGetRootPosition(); difpos.x = mappos.x / 100 - 1.275; difpos.y = mappos.y / 100 - 1.275; difpos.z = mappos.z / 100 - 0.20; if (difpos.z > 1.00) difpos.z = 1.00; llSetPos(difpos); llSensorRepeat("", "", AGENT, 96, PI, 1); key_list =[]; llListen(key_rem_chan, "", "", "" ;llOwnerSay("on" ;Scan = FALSE; } else { llSensorRemove(); llRegionSay(die_chan, "die" ;llOwnerSay("off" ;Scan = TRUE; } } sensor(integer iNum) { integer p = 0; for (p = 0; p < iNum; ++p) { avKey = llDetectedKey(p); list_pos = llListFindList(key_list, (list)avKey); if (list_pos == -1) { key_list += (list) avKey; key_chan = (integer) llFrand(-1000000) - 1000000; llRezObject("scan ball", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, key_chan); llSleep(.25); llRegionSay(key_chan, avKey); } } } listen(integer c, string name, key id, string msg) { integer r = llListFindList(key_list,[(key)msg]); key_list = llDeleteSubList(key_list, r, r); } } |
|
Rudolf Cleanslate
Registered User
Join date: 1 Dec 2006
Posts: 13
|
04-29-2009 03:28
.
|
|
Rudolf Cleanslate
Registered User
Join date: 1 Dec 2006
Posts: 13
|
3D Radar DeLuxe
04-30-2009 15:11
This is a Deluxe version with terrain mapping, Colour coded radar blips and
dynamic scanning. ===================================================== Root prim: ===================================================== key httpRequestId; string URL = "http://www.subnova.com/secondlife/api/map.php"; default { state_entry() { llPassTouches(TRUE); httpRequestId = llHTTPRequest(URL + "?" + "sim" + "=" + llEscapeURL(llGetRegionName()),[], ""); } http_response(key request_id, integer status, list metadata, string body) { if (request_id == httpRequestId) llSetTexture(body, 0); } on_rez(integer start_param) { llSetRot(<0,0,0,1>); llSetScale(<2.55,2.55,0.01>); llResetScript(); } touch_start(integer a) { llMessageLinked(LINK_ALL_CHILDREN, 0, "touched", NULL_KEY); } } ======================================================= 3D Radar base - link to first prim Suggestion; Create a cylinder of 0.01 dimension , Taper X: 1.00 Y: 1.00 color red , medium shine ======================================================= integer Scan = TRUE; string avKey; integer list_pos; list key_list; integer key_chan; //Key channel is generated randomly and passed to the scan ball integer die_chan = -9423753; vector mappos; vector difpos; integer key_rem_chan = -49222879; default { state_entry() { llSetObjectName("3D Radar"); } link_message(integer sender_num, integer num, string list_argument, key id) { if (Scan) { mappos = llGetRootPosition(); difpos.x = mappos.x / 100 - 1.275; difpos.y = mappos.y / 100 - 1.275; difpos.z = mappos.z / 100 - 0.20; if (difpos.z > 1.00) difpos.z = 1.00; llSetPos(difpos); llSensorRepeat("", "", AGENT, 96, PI, 1); key_list =[]; llListen(key_rem_chan, "", "", ""); llOwnerSay("on"); Scan = FALSE; } else { llSensorRemove(); llRegionSay(die_chan, "die"); llOwnerSay("off"); Scan = TRUE; } } sensor(integer iNum) { integer p = 0; for (p = 0; p < iNum; ++p) { avKey = llDetectedKey(p); list_pos = llListFindList(key_list, (list)avKey); if (list_pos == -1) { key_list += (list) avKey; key_chan = (integer) llFrand(-1000000) - 1000000; llRezObject("scan ball", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, key_chan); llSleep(.25); llRegionSay(key_chan, avKey); } } } listen(integer c, string name, key id, string msg) { integer r = llListFindList(key_list,[(key)msg]); key_list = llDeleteSubList(key_list, r, r); } } |
|
Rudolf Cleanslate
Registered User
Join date: 1 Dec 2006
Posts: 13
|
3D Radar Deluxe part II
04-30-2009 15:18
===================================================
Third Prim, a Sphere with 0.01m diameter - blank texture - medium shine scan ball - insetr into 3D Radar base =================================================== string avName; integer avDistance; key avKey; integer avListen; integer key_chan; integer die_chan = -9423753; integer key_rem_chan = -49222879; vector avPos; // Avatar Location vector prevPos; // Av. Previous Location vector rPos; //Radar Base Position float scanrate = 1.0; vector chroma = <1,1,1>; default { state_entry() { llSetObjectName("scan ball" ;} on_rez(integer start_param) { rPos = llGetPos(); key_chan = start_param; llListen(die_chan, "", "", "" ;avListen = llListen(key_chan, "", "", "" ;} listen(integer c, string n, key id, string msg) { if (c == die_chan) llDie(); else { avKey = (key) msg; avName = llKey2Name(avKey); llSensorRepeat("", avKey, AGENT, 96, PI, scanrate); llListenRemove(avListen); integer hash = (integer)("0x" + llGetSubString(llMD5String(avKey,0), 0, 7)); integer strlen = llStringLength((string)hash); string X = llDeleteSubString((string)hash, (strlen-2),(strlen-4)); string Y = llDeleteSubString((string)hash, (strlen-1),(strlen-3)); string Z = llDeleteSubString((string)hash, 0,(strlen-2)); chroma.x = 1-((float) X)/10; chroma.y = 1-((float) Y)/10; chroma.z = 1-((float) Z)/10; llSetColor(chroma,ALL_SIDES); } } sensor(integer n) { avPos = llDetectedPos(0); vector avDivPos = (avPos - rPos) / (96 / 1); //Scan range/Radius of large sphere avDistance = (integer) llVecDist(rPos, llDetectedPos(0)); llSetPos(rPos + avDivPos); llSetText(avName + "[" + (string) avDistance + "]", <1, 1, 1 >, 1); if (avPos == prevPos) scanrate = 4.0; else scanrate = 1.0; prevPos = avPos; } no_sensor() { llRegionSay(key_rem_chan, avKey); llDie(); } } |
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-30-2009 15:54
Nice one Rudolf. This has been by far my most popular example script with 17,693 hits. I never expecting for everyone to have taken it and done so much with it and I am of course thrilled.
I have one variation of it using the sim mapping and tied into PAR to make a full sim radar with low impact that will show everyones location and rotation up to 4096 meters. Another interesting trick you can do with the regular sensor version is link a prim to it to sit on. When you click an av target you can have a choice of calling up their profile or camming into their location(Not that I have ever done that. No, not me ).I am not going to post the code for those on my user page, preferring to keep those examples easier to understand or to illustrate a concept. But if you are interested I can post the snippets here for you to play with. _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Rudolf Cleanslate
Registered User
Join date: 1 Dec 2006
Posts: 13
|
05-01-2009 00:38
I have a hudded 2D version coupled to a shoulder fired missile homing to the designated target.
Also useful as a greeter hud. I have tested the dynamic scanning in welcome areas with more than 50 avatars present. |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
05-01-2009 08:58
I have a hudded 2D version coupled to a shoulder fired missile homing to the designated target. Also useful as a greeter hud. I have tested the dynamic scanning in welcome areas with more than 50 avatars present. so that'd be a something like a Gunship greeting? _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
|
05-01-2009 09:18
For what it's worth. I own the first 3D radar ever made in SL, by Bosozoku Kato. I just rezzed it and it still works!
I commissioned him to make it in October 2003 for a SciFi sky build i had because i wanted to be able to track approaching avatars in 3D as they approached...So he came up with the Scanorama. I have it rezzed now @: http://slurl.com/secondlife/Ninbriana/199/207/26 for the curious. It's range is only 96m, so i guess it is fairly limited and primitive compared to what is being made now...But still interesting to see how the first one looked. _____________________
|