Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Bug found in llOverMyLand()

Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
11-13-2005 06:39
I've found a bug in llOverMyLand() that can cause it to incorrectly report TRUE. It happens when the owner's land is against a sim border and the avatar being tested is in the next sim, but still inline with the owner's land.

I believe I know whats happening; if you use llDetectedPos() on the avatar, the vector is outside the normal range (<34,-2,30> or <260,48,42> for instance) and llOverMyLand() is rounding the out of bounds number to within the sim and checking there. A workaround is to manually test the X and Y coordinates to make sure they are within the same sim.

I've tested this in multiple sims on multiple borders with multiple land owners, both personal and group owned, and I have bug reported it. I just wanted to let other people know about this.
Joe Foo
Registered User
Join date: 7 Mar 2004
Posts: 51
11-13-2005 16:19
If you have not already done so, please file a bug report. They do actually read them! :)

They also seem to give bugs much higher priority if you give them a step-by-step series of instructions that allows them to reproduce the bug. The hardest bugs the fix are the ones that can not be easily reproduced. I think perhaps the best way to submit bug reports is to list the exact series of steps you perform to create the bug, as if you were writing a cooking recipe.