New upstream version of builtins.txt; minor fix

Add comment to llGetStatus and make it more future-proof by adding unused flags.
This commit is contained in:
Sei Lisa 2022-08-26 12:48:30 +02:00
parent 52771ce630
commit 95d0fb4b13
3 changed files with 13 additions and 3 deletions

View file

@ -1,4 +1,4 @@
// Generated by LSL2 Derived Files Generator. Database version: 0.0.20220513000; output module version: 0.0.20140731000
// Generated by LSL2 Derived Files Generator. Database version: 0.0.20220817000; output module version: 0.0.20140731000
integer llAbs( integer val )
float llAcos( float val )
void llAddToLandBanList( key avatar, float hours )
@ -308,6 +308,7 @@ void llRemoveFromLandPassList( key avatar )
void llRemoveInventory( string item )
void llRemoveVehicleFlags( integer flags )
integer llReplaceAgentEnvironment( key agent_id, float transition, string environment )
integer llReplaceEnvironment( vector position, string environment, integer track_no, integer day_length, integer day_offset )
key llRequestAgentData( key id, integer data )
key llRequestDisplayName( key id )
void llRequestExperiencePermissions( key agent, string name )
@ -639,6 +640,7 @@ const integer ENV_NOT_EXPERIENCE = -1
const integer ENV_NO_ENVIRONMENT = -3
const integer ENV_NO_EXPERIENCE_LAND = -7
const integer ENV_NO_EXPERIENCE_PERMISSION = -2
const integer ENV_NO_PERMISSIONS = -9
const integer ENV_THROTTLE = -8
const integer ENV_VALIDATION_FAIL = -6
const string EOF = "\n\n\n"
@ -1151,6 +1153,7 @@ const integer STATUS_BLOCK_GRAB_OBJECT = 0x400
const integer STATUS_BOUNDS_ERROR = 1002
const integer STATUS_CAST_SHADOWS = 0x200
const integer STATUS_DIE_AT_EDGE = 0x80
const integer STATUS_DIE_AT_NO_ENTRY = 0x800
const integer STATUS_INTERNAL_ERROR = 1999
const integer STATUS_MALFORMED_PARAMS = 1000
const integer STATUS_NOT_FOUND = 1003

View file

@ -1162,6 +1162,10 @@ void llRemoveInventory(string item)
void llRemoveVehicleFlags(integer flags)
integer llReplaceEnvironment(vector position, string environment, integer track_no, integer day_length, integer day_offset)
# not sure but we better choose the safest setting
- unstable
key llRequestAgentData(key id, integer data)
- unstable
- delay 0.1

View file

@ -332,8 +332,11 @@ def llGetOwnerKey(id):
raise ELSLCantCompute
def llGetStatus(mask):
# leave out STATUS_DIE_AT_EDGE and STATUS_CAST_SHADOWS
if (mask & 0b10101111111) == 0:
# Leave out STATUS_DIE_AT_EDGE, _DIE_AT_NO_ENTRY and _CAST_SHADOWS.
# For some reason, llGetStatus(STATUS_DIE_AT_EDGE) does not return the
# actual value of whether the flag is set or not for the object. Same for
# STATUS_DIE_AT_NO_ENTRY. STATUS_CAST_SHADOWS is unused so that's normal.
if (mask & ~(0x800|0x200|0x80)) == 0:
return 0
raise ELSLCantCompute