Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llAvatarOnSitTarget once again requires llSitTarget

Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
05-23-2005 20:13
Oohhhh kay!

So, PoseCubes is rolling out. I'm helping Phil Murdock and Snow Hare get the first PosAbility enabled furniture out.
"Admin commands aren't working!"
... checked everything, script settings, new copy of script, cut and pasted new script, sim, etc etc.
Did some debugging llSay commands... and it becaame clear... llAvatarOnSitTarget was retuning a key of all 0s! Problem!

Thanks to some quick thinking with Brent Linden, I have come to this explanation:

Pre-last patch, llAvatarOnSitTarget did NOT need llSitTarget to return the sitter's key. According to documentation for LSL, it needs it. Linden Lab likely ninja-changed it back to match the documentation, and either forgot to mention it in the release notes, or I outright missed the mention of it.

So once again, llAvatarOnSitTarget now REQUIRES llSitTarget to return anything but NULL_KEY.

Fortunately, this only affects newly compiled code, so it does not affect any PoseCubes already sold. And fortunately, the fix was a mere 1 line of code in my init routine. PHEW!

I wanted to give you folks the heads up, I'll be checking the release notes to check when this was fixed if it was mentioned.
_____________________
Hiro Pendragon
------------------
http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio

Visit my SL blog: http://secondtense.blogspot.com
Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
05-23-2005 21:26
just checked http://history.secondserver.net/index.php/Release_Notes

1.6 on ... did not see any mention of this *sighs*
_____________________
Hiro Pendragon
------------------
http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio

Visit my SL blog: http://secondtense.blogspot.com
Stinky Queso
Second Life Resident
Join date: 29 Nov 2004
Posts: 53
05-23-2005 21:40
err, I think this is always the way it has worked man. I've never gotten anything other than null keys without a sit target before.
Newfie Pendragon
Crusty and proud of it
Join date: 19 Dec 2003
Posts: 1,025
05-24-2005 10:40
From: Stinky Queso
err, I think this is always the way it has worked man. I've never gotten anything other than null keys without a sit target before.



Agreed, I've always had to set a sit target before it worked. On the other hand, there's been times that I set a sit target on a prim, then deleted the script to start over. The sit target, being a property of the prim itself, still existed. It would usually then be not noticed until I copied the prim or the script.


- Newfie
_____________________
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
05-24-2005 14:44
I'm pretty sure I managed to use it without a sittarget at one point. Perhaps we can get a comment from Kelly on whether anything was actually changed?
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
05-24-2005 15:04
It's been this way for the past... five... ten patches? Pre-1.6 I think. Really this isn't too cumbersome in my opinion.
_____________________
---
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
05-25-2005 02:09
That's utterly fucking stupid. They should have changed the docs, not the code. SL should allow developers the full extent of whats technically achievable with it, without imposing arbitrary restrictions on our creativity.