Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
01-03-2006 20:23
I'm running into a "new" problem...and one that is pretty serious for me...
...I'm finding that all of a sudden a script will NOT recognize an avatar key if said avatar is offline. So...if I have a global function that stores the key of an avatar...and needs to be able to get information about that avatar even when they're offline...I'm essentially screwed...
...anyone else noticing this problem? Any work-arounds? (I guess I could run a quick key2name and store an owner name...but then I couldn't wrap-back to key...)
The strange thing is that...once the avatar logs back on...everything is fine again...
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
Michael Martinez
Don't poke me!
Join date: 28 Jul 2004
Posts: 515
|
01-03-2006 20:52
Alot of these function only work if avatar is in same sim.. Like llKey2Name only works in that avie is in the same sim..
Datasever you can get more info, online or offline, but slower, and not much info (date joined, ratings, if they are online-offline, etc)
Not alot you can get for information about an avie, you can use scan to get avies keys of close (96m) avies, and use that key for some info when they are close...But only dataserver works for online/offline.
_____________________
There are no significant bugs in our released software that any significant number of users want fixed. (Bill Gates)
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
01-03-2006 21:14
I think you missed what I was saying Michael...and my explanation was probably poor...so I'll restate:
1) Avatar touches object.
2) Object records avatar key and holds it in a permanent variable (a global)
3) All functions requiring the avatar-key to function work.
4) Avatar logs off.
5) All functions requiring the avatar-key to function "lose" the key-holding global variable.
6) Avatar logs back on.
7) All functions requiring the avatar-key work again.
It's perplexing...and disturbing (I have a lot of scripts that rely on avatar keys that didn't SEEM to be affected this way before 2-3 days ago).
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
|
01-03-2006 21:22
The variable can't simply be "lost" if an avatar is offline, it's probably something in the function that won't work if the avatar is offline or out of range. Like Michael said, some only work if the avatar is in the same sim. What functions are you using?
|
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
|
01-03-2006 21:29
From: Kenn Nilsson 5) All functions requiring the avatar-key to function "lose" the key-holding global variable.
Heh, don't take this the wrong way but I hope to god you're mistaken  ... Are you sure you aren't storing the key, and then later trying to call llKey2Name or some other function on it? When you try to spit out the key itself while the AV is out of range is it giving you a null key? 
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
01-03-2006 23:10
what exactly are you doing with the avatar key? i can't imagine anything that could fail this way other then land administration and agent functions (and anything that needs PERMISSION_CHANGE_LINKS).
_____________________
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
|