Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSensorRepeat beyond 96m

Ethari Hallstrom
Registered User
Join date: 4 May 2007
Posts: 14
05-01-2009 10:10
Hi,

I have several HUDs that include Radar displays that keep track of near-by avatars. I am aware that sensors can only detect things to a maximum of 96m away, but I've noticed there seems to be a glitch with this.

My radars will only first see an avatar when they come within 96m, but if they then leave that 96m range, they are still on the radar and their real location is still updated. Providing I have seen an avatar within 96m, and they stay in the same sim, they'll stay on my radar indefinitely no matter how far away they are - I've seen people thousands of metres away.

This behaviour seems to be the same across all my radars. But the problem is... I can't seem to replicate it myself. I've tried to make my own radar, but I don't know what the settings are to take advantage of this glitch. I've even gone so far as to IM the creators of the radars, but they haven't replied (and I doubt they would be bothered to help me anyway). And before anyone suggests using separate sensors (such as rezzing ones that follow people), I am very sure this is not the way the glitch works! These radars are not sim-wide - they are local only.

I'm wondering if anyone can help me out with this. It'd help so much if my radar could take advantage of this glitch and keep track of people outside of 96m once they've been detected already. It's really crap that my radar loses track of them once they leave that range.

Thanks very much! Will be a great help :)

Ethari
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
05-01-2009 10:14
/me doesn't use radars - camera controls are for me - but would guess that the scripts pick up the keys of nearby avatars with sensors then use llGetObjectDetails to refresh their positions. Sensors are limited to 96m but llGetObjectDetails isn't..

http://wiki.secondlife.com/wiki/LlGetObjectDetails
_____________________
Sick of sims locking up every time somebody TPs in? Vote for SVC-3895!!!
- Go here: https://jira.secondlife.com/browse/SVC-3895
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
05-01-2009 10:31
this also might be some of the behavior your are seeing.

there is a glitch when using llSensorRepeat, vs llSensor in a loop. the glitch is that it registers items farther out if it's used near a sim border, but on an irregular basis (about 1 in 5 sweeps on average).

if that isn't it, and Tsindy's guess is off, then this is a new one to me... it might be up to being near a sim border, or a different usage of one of those two functions (maybe the range is ignored if they are searched by key after detecting them in the basic sphere?)
_____________________
|
| . "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...
| -
Ethari Hallstrom
Registered User
Join date: 4 May 2007
Posts: 14
05-01-2009 11:22
From: Sindy Tsure
/me doesn't use radars - camera controls are for me - but would guess that the scripts pick up the keys of nearby avatars with sensors then use llGetObjectDetails to refresh their positions. Sensors are limited to 96m but llGetObjectDetails isn't..

http://wiki.secondlife.com/wiki/LlGetObjectDetails
Ohh! This sounds very promising! I think I can think of a way to do this then... The sensor detects the people initially, and then they can be stored in a list which is continually analysed with llGetObjectDetails. The sensor can keep detecting new people to be added.

Thanks! I'll have a try with this.

Void, your theory is worth looking into too. If I don't have any luck, I'll have a try with llSensor in a loop instead of llSensorRepeat.
Ethari Hallstrom
Registered User
Join date: 4 May 2007
Posts: 14
05-01-2009 12:36
Thanks, Sindy! I've completely redesigned my code to work by using this, and it works good. Just need to fix a lot of problems now ;) Thanks.
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
05-01-2009 12:37
:)
_____________________
Sick of sims locking up every time somebody TPs in? Vote for SVC-3895!!!
- Go here: https://jira.secondlife.com/browse/SVC-3895
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
05-01-2009 12:48
From: Ethari Hallstrom
Ohh! This sounds very promising! I think I can think of a way to do this then... The sensor detects the people initially, and then they can be stored in a list which is continually analysed with llGetObjectDetails. The sensor can keep detecting new people to be added.

Thanks! I'll have a try with this.

Void, your theory is worth looking into too. If I don't have any luck, I'll have a try with llSensor in a loop instead of llSensorRepeat.

well assuming you do that you'll limit weird normally out of range initial detections.. which may or may not be what you want
_____________________
|
| . "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...
| -
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
05-02-2009 20:29
From: Sindy Tsure
/me doesn't use radars - camera controls are for me
FYI, you no longer need those cam controls for avatar-detecting with the newest SL viewer. Just mouse-over avatar dots on your mini-map, and presto, you see their names.