Anonymous | Login | Signup for a new account | 2021-01-23 13:19 PST | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Summary | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0006754 | opensim | [REGION] Script Functions | public | 2013-09-01 18:13 | 2013-09-13 01:36 | |||||
Reporter | MrFrans | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | new | Resolution | open | |||||||
Platform | Operating System | Operating System Version | ||||||||
Product Version | master (dev code) | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0006754: llGetObjectDetails returns zero key on OBJECT_GROUP for a avatar | |||||||||
Description | When using llGetObjectDetails to retrieve the OBJECT_GROUP of a avatar it returns a zero key. | |||||||||
Steps To Reproduce | Put this script in a object and click it. default { state_entry() { llSay(0, "Script running"); } touch_end(integer n_d){ integer i; for(i = 0;i<n_d;i++){ //Make sure we are actually getting a avatar id when clicked llSay(0, llDetectedKey(i)); //Get the Group Id in a list list tList = llGetObjectDetails(llDetectedKey(i), [OBJECT_GROUP]); //Say the list length to confirm something was returned llSay(0, (string)llGetListLength(tList)); //Retrieve the key as a string and say string tGroup = llList2String(tList,0); llSay(0, tGroup); //Retrieve the key as a key and say key t2Group = llList2Key(tList, 0); llSay(0, t2Group); llSay(0, (string)t2Group); } } } | |||||||||
Additional Information | This is done on the OSCC grid. | |||||||||
Tags | No tags attached. | |||||||||
Git Revision or version number | ||||||||||
Run Mode | Grid (1 Region per Sim) | |||||||||
Physics Engine | BasicPhysics | |||||||||
Script Engine | ||||||||||
Environment | Unknown | |||||||||
Mono Version | None | |||||||||
Viewer | ||||||||||
Attached Files | ||||||||||
![]() |
||||||
|
![]() |
|
(0024328) Talun (manager) 2013-09-10 03:20 |
I took a look at this and at http://wiki.secondlife.com/wiki/LlGetObjectDetails [^] Against OBJECT_GROUP it says "If id is an avatar, a NULL_KEY is returned" so unless I misunderstand you, what is happening appears to be correct a null key should be returned when used on an avatar |
(0024329) MrFrans (reporter) 2013-09-10 03:56 |
Ah, you are quite right! I missed that. I was falsely thinking LL had given us a useful function to get the group ID's so we can check if a avatar is part of one of several groups. Now this raises to question, is this not something we would want this function to do in OS? Or if the goal for the LL functions is to stay the same as with SL, we could use a osGetAgentGroup to get around this. For large events like the OSCC13, multiple groups are often used, but still want certain scripted objects to be used by more then just the users of the one group the object is set too. |
(0024345) justincc (administrator) 2013-09-12 15:58 |
I think an osGetAgentGroup or similar would be the way to go. I am not keen on making existing ll functions behave differently on OpenSimulator since our aim is to be as compatible with LL's LSL as possible. |
(0024346) Talun (manager) 2013-09-13 01:36 |
So, key osGetAgentGroup(key avatarID) returning the id of the currently active group. return NULL_KEY if either the agent is not avaiable or has not got a currently active group. What to do about child agents? Include or exclude? I would suggest threat level low, I believe this ID can be retrieved by some (all?) 3rd party clients so it is not a big secret! See also 6710. Perhaps one patch for both if both are to be done, they have many source files in common |
![]() |
|||
Date Modified | Username | Field | Change |
2013-09-01 18:13 | MrFrans | New Issue | |
2013-09-10 03:20 | Talun | Note Added: 0024328 | |
2013-09-10 03:56 | MrFrans | Note Added: 0024329 | |
2013-09-12 15:58 | justincc | Note Added: 0024345 | |
2013-09-13 01:36 | Talun | Note Added: 0024346 | |
2013-09-13 01:36 | Talun | Relationship added | related to 0006710 |
Copyright © 2000 - 2012 MantisBT Group |