Difference between revisions of "AGENT AUTOMATED"

From Second Life Wiki
Jump to navigation Jump to search
(Documenting this new little flag which didn't exist before :-))
 
m (Bah, how stupid can I be, clicking "Save changes" instead of "Show preview"?? Shame on me for wasting server CPU... Added haiku generated by https://toolbaz.com/writer/haiku-generator)
 
Line 3: Line 3:
|type=integer
|type=integer
|value={{LSL Hex|0x4000}}
|value={{LSL Hex|0x4000}}
|desc=Identifies an avatar as having been registered with Linden Lab as an automated/scripted agent, i.e. a {{Hovertext|'bot|Short for "robot", in SL, it refers to an avatar that is not controlled by a human behind a standard viewer, but rather by specialized software which manipulates the avatar, without human supervision.}}  
|desc=Identifies an avatar as having been registered with Linden Lab as an automated/scripted agent, i.e. a {{HoverText|'bot|Short for 'robot', in SL, it refers to an avatar that is not controlled by a human behind a standard viewer, but rather by specialized software which manipulates the avatar, without human supervision.}}.
 
Registration is (currently) done via the user's control panel on the [https://secondlife.com/my/account/sisa.php Scripted Agent Status] tab.
 
'Bots are ''not'' illegal in Second Life ''per se'', but, according to the [[Linden_Lab_Official:Scripted_Agent_Policy|new scripted agent privacy policy]], failing to register a 'bot as such is indeed forbidden.
 
Also note that from the perspective of the grid, it matters not ''how'' the 'bot is implemented; do not assume any technology behind it, just because an avatar has been flagged as an 'automated agent'. The flag essentially reflects the user's (voluntary) self-identification as a 'bot, without the requirement of giving any explanation, and there are a handful of different ways to "automate" an agent.
 
Linden Lab, at their discretion, and based on abuse reports or direct observation, ''may'' also flag an avatar as being an automated agent, which ''will'' set the [[AGENT_AUTOMATED]] bit as well. False positives can happen; feel free to file a ticket with Linden Lab's support if your avatar was erroneously flagged as an automated agent and you cannot change it from the SL control panel.
|pa
|pa
|pb
|pb
|examples=
|examples=
<source lang="lsl2">
<syntaxhighlight lang="lsl2">
// Simple bot detector.
// Simple bot detector.
// Place the script in a prim, Attach it as a HUD,
// Place the script in a prim, Attach it as a HUD,
Line 56: Line 64:
     }
     }
}
}
</source>
</syntaxhighlight>
|constants=
|constants=
{{LSL ConstRow|AGENT_FLYING}}
{{LSL ConstRow|AGENT_FLYING}}
Line 67: Line 75:
|location
|location
|history
|history
|notes=Added by Rider Linden on 13 April 2023‎, following the Linden Lab announcement on its [[Linden_Lab_Official:Scripted_Agent_Policy|new scripted agent privacy policy]]
|caveats=In certain unusual circumstances, some old avatars, which have a "special" status due to some kind of promotional package available during a period of time, ''might'' have bit {{LSL Hex|0x4000}} set by mistake — possibly because such a flag hadn't been documented before and was inadvertently reused in April 2023 to flag  automated agents. These perfectly regular ''human'' avatars are thus flagged as 'bots by LSL, as well as by the land management tools. This was reported as {{Jira|BUG-234283}} and the solution seems to be to contact Linden Lab's support team.
|notes=* Flag added on the SL Wiki by Rider Linden on 13 April 2023‎, following the Linden Lab announcement on their [[Linden_Lab_Official:Scripted_Agent_Policy|new Scripted Agent Privacy Policy]].
* For those OpenSimulator fans out there: use [http://opensimulator.org/wiki/OsIsNpc osIsNpc()] instead ('bots are handled ''very'' differently!).
|haiku={{Haiku|Thinking I'm human|My funny thoughts on display|But I'm just a bot}}
|cat1
|cat1
|cat2
|cat2

Latest revision as of 12:08, 12 October 2023

Description

Constant: integer AGENT_AUTOMATED = 0x4000;

The integer constant AGENT_AUTOMATED has the value 0x4000

Identifies an avatar as having been registered with Linden Lab as an automated/scripted agent, i.e. a 'bot.

Registration is (currently) done via the user's control panel on the Scripted Agent Status tab.

'Bots are not illegal in Second Life per se, but, according to the new scripted agent privacy policy, failing to register a 'bot as such is indeed forbidden.

Also note that from the perspective of the grid, it matters not how the 'bot is implemented; do not assume any technology behind it, just because an avatar has been flagged as an 'automated agent'. The flag essentially reflects the user's (voluntary) self-identification as a 'bot, without the requirement of giving any explanation, and there are a handful of different ways to "automate" an agent.

Linden Lab, at their discretion, and based on abuse reports or direct observation, may also flag an avatar as being an automated agent, which will set the AGENT_AUTOMATED bit as well. False positives can happen; feel free to file a ticket with Linden Lab's support if your avatar was erroneously flagged as an automated agent and you cannot change it from the SL control panel.

Caveats

In certain unusual circumstances, some old avatars, which have a "special" status due to some kind of promotional package available during a period of time, might have bit 0x4000 set by mistake — possibly because such a flag hadn't been documented before and was inadvertently reused in April 2023 to flag automated agents. These perfectly regular human avatars are thus flagged as 'bots by LSL, as well as by the land management tools. This was reported as BUG-234283 and the solution seems to be to contact Linden Lab's support team.

All Issues ~ Search JIRA for related Bugs

Related Articles

Constants

•  AGENT_FLYING
•  AGENT_IN_AIR
•  AGENT_WALKING
•  AGENT_ALWAYS_RUN

Examples

// Simple bot detector.
// Place the script in a prim, Attach it as a HUD,
// touch to identify which avatars in the parcel are bots.
//
// 🅭 2023 by Gwyneth Llewelyn. Some rights reserved.
// Licensed under a MIT license (https://gwyneth-llewelyn.mit-license.org/)
//
// Based on the LSL Wiki example at https://wiki.secondlife.com/wiki/LlGetAgentList
//
default
{
    touch_start(integer total_number)
    {
        list avatarsInParcel = llGetAgentList(AGENT_LIST_PARCEL, []);
        integer numOfAvatars = llGetListLength(avatarsInParcel);

        // If no avatars are present in the parcel, abort avatar listing process and give a short notice.
        // Note that at least one avatar will be present, namely, the one running this script!
        if (numOfAvatars < 2)
        {
            llOwnerSay("Neither avatars nor 'bots found in the current parcel.");
            return;
        }
        integer numOfBots;  // counts #bots
        integer index;
        while (index < numOfAvatars)
        {
            key id = llList2Key(avatarsInParcel, index);
            string name = llKey2Name(id);

            if (llGetAgentInfo(id) & AGENT_AUTOMATED) {
                ++numOfBots;
                llOwnerSay((string)numOfBots + ": " + name + " [" + (string)id + "] ('bot)");
            }
            ++index;
        }
        if (numOfBots == 0) {
            llOwnerSay("No 'bots found in parcel,");
            if (numOfAvatars > 1) {
                llOwnerSay("only other humans (including yourself).");
            } else {
                llOwnerSay("you're the only human around.");
            }
        } else {
            llOwnerSay("--------\nTotal # of humans: " + (string)(numOfAvatars - numOfBots)+ " (counting yourself)\nTotal # of 'bots: " + (string)numOfBots);
        }
    }
}

Notes

  • Flag added on the SL Wiki by Rider Linden on 13 April 2023‎, following the Linden Lab announcement on their new Scripted Agent Privacy Policy.
  • For those OpenSimulator fans out there: use osIsNpc() instead ('bots are handled very differently!).

Deep Notes

Search JIRA for related Issues

Signature

integer AGENT_AUTOMATED = 0x4000;

Haiku

Thinking I'm human
My funny thoughts on display
But I'm just a bot