Sensors don't work right over sim borders
|
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
|
11-07-2005 14:10
default { state_entry() { string owner = llKey2Name(llGetOwner()); llSensorRepeat(owner, "", AGENT, 96, TWO_PI, 1); } sensor(integer n) { float time = llGetAndResetTime(); llOwnerSay("I see you, last I saw you was " + (string)time + " seconds ago"); } no_sensor() { llOwnerSay("I do not see you."); } } Put that in a plywood cube next to a sim border. If you are in the same sim, it will say: From: someone Object: I see you, last I saw you was 0.984017 seconds ago Object: I see you, last I saw you was 1.029120 seconds ago Object: I see you, last I saw you was 1.006370 seconds ago Object: I see you, last I saw you was 1.006831 seconds ago
Now go stand on the other side of the sim border: From: someone Object: I do not see you. Object: I do not see you. Object: I do not see you. Object: I do not see you. Object: I see you, last I saw you was 5.374791 seconds ago Object: I do not see you. Object: I do not see you. Object: I do not see you. Object: I do not see you. Object: I see you, last I saw you was 5.196138 seconds ago
|
Psyra Extraordinaire
Corra Nacunda Chieftain
Join date: 24 Jul 2004
Posts: 1,533
|
11-07-2005 14:20
Funny that, that's about the same amount of seconds a vehicle lags when crossing a sim border.
_____________________
E-Mail Psyra at psyralbakor_at_yahoo_dot_com, Visit my Webpage at www.psyra.ca  Visit me in-world at the Avaria sims, in Grendel's Children! ^^
|
Zodiakos Absolute
With a a dash of lemon.
Join date: 6 Jun 2005
Posts: 282
|
11-07-2005 15:15
Did this work right before the patch? I swear that my collar worked over sim borders before, but indeed, I found it doesn't anymore... I just chalked it up to my imagination.
|
Aliasi Stonebender
Return of Catbread
Join date: 30 Jan 2005
Posts: 1,858
|
11-07-2005 15:17
From: Huns Valen Put that in a plywood cube next to a sim border. If you are in the same sim, it will say:
Now go stand on the other side of the sim border:
Yes, sims only seem to send info out every 5 seconds or so (*really* maddening with av Av detector). You can use math to rule it out (and then another sensor in the neighboring sim, communicating back) in some cases... but darn if I don't curse at it anyway.
_____________________
Red Mary says, softly, “How a man grows aggressive when his enemy displays propriety. He thinks: I will use this good behavior to enforce my advantage over her. Is it any wonder people hold good behavior in such disregard?” Anything Surplus Home to the "Nuke the Crap Out of..." series of games and other stuff
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
11-07-2005 15:28
I'm only 1/2 awake atm, but doesn't key2name only work in the sim that the object is in if the avatar is also in the sim? That may be your problem. I'll try to get in world and test it without the key2name in a bit and post back.
*edit* i'm gettin the same results, using key2name for the string and using just the ownerkey :-/
|
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
|
11-07-2005 16:28
From: Cid Jacobs I'm only 1/2 awake atm, but doesn't key2name only work in the sim that the object is in if the avatar is also in the sim? That may be your problem. I'll try to get in world and test it without the key2name in a bit and post back.
*edit* i'm gettin the same results, using key2name for the string and using just the ownerkey :-/ Yeah, that was just me being lazy. I had originally just put my name in there, then changed it to make it work for others. It will work if you start it with yourself in the same sim. Sensors did work over sim borders in 1.6. (And in 1.0, when I was playing around with this stuff last.) To my knowledge there was not a wierd 5-second interval involved.
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
11-08-2005 08:54
I thought they'd not work at all cross borders  I've managed to lose a good number of critters this way, they couldn't follow me beyond the sim's limits. Thanks for the little test, I can use that kind of data 
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
11-08-2005 11:54
It's probably to reduce lag on neighboring sims?
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Aliasi Stonebender
Return of Catbread
Join date: 30 Jan 2005
Posts: 1,858
|
11-08-2005 13:43
From: Huns Valen Yeah, that was just me being lazy. I had originally just put my name in there, then changed it to make it work for others. It will work if you start it with yourself in the same sim.
Sensors did work over sim borders in 1.6. (And in 1.0, when I was playing around with this stuff last.) To my knowledge there was not a wierd 5-second interval involved. Well, Huns, I know my little Av-detector gadget I wear which is sensor-based DID have a "delay" across borders, even in 1.6. (That is, I could be standing somewhere near the edge, have someone just over the border, and it would constantly detect/undetect them.) I haven't played around with it personally enough to figure out what, if any, differences are in 1.7, but it feels similar to me. Which isn't saying you're wrong at all. I'm a dabbler and I don't exactly rigorously test the scripts I do under every possible condition, since nine times out of ten it's a hack put together for nobody but m'self.... but I think I'll do some further poking now that it's been brought up.
_____________________
Red Mary says, softly, “How a man grows aggressive when his enemy displays propriety. He thinks: I will use this good behavior to enforce my advantage over her. Is it any wonder people hold good behavior in such disregard?” Anything Surplus Home to the "Nuke the Crap Out of..." series of games and other stuff
|