Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006754opensim[REGION] Script Functionspublic2013-09-01 18:132013-09-13 01:36
Assigned To 
PlatformOperating SystemOperating System Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006754: llGetObjectDetails returns zero key on OBJECT_GROUP for a avatar
DescriptionWhen using llGetObjectDetails to retrieve the OBJECT_GROUP of a avatar it returns a zero key.
Steps To ReproducePut this script in a object and click it.

        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 InformationThis is done on the OSCC grid.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (1 Region per Sim)
Physics EngineBasicPhysics
Script Engine
Mono VersionNone
Attached Files

- Relationships
related to 0006710new suggestion for improved group checking 

-  Notes
Talun (manager)
2013-09-10 03:20

I took a look at this and at [^]

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
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.
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.
Talun (manager)
2013-09-13 01:36


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

- Issue History
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
Powered by Mantis Bugtracker