Don't try to track llGetEnv settings - it's too eror-prone

This commit is contained in:
Sei Lisa 2023-02-03 14:33:29 +01:00
parent 231c16b90e
commit f2ab8d9d15

View file

@ -24,15 +24,15 @@ from lslopt.lslbasefuncs import ELSLCantCompute, fi,ff,fs,fk,v2f,q2f,fl, \
#from strutil import unicode
ff, q2f # keep pyflakes happy as these are not used
GetEnvSettings = frozenset({'agent_limit', 'dynamic_pathfinding', 'estate_id'
, 'estate_name', 'frame_number', 'region_cpu_ratio', 'region_idle'
, 'region_product_name', 'region_product_sku', 'region_start_time'
, 'sim_channel', 'sim_version', 'simulator_hostname'
, 'region_max_prims' # <http://wiki.secondlife.com/wiki/Release_Notes/Second_Life_RC_Magnum/16#16.11.02.321369>
, 'region_object_bonus' # <http://wiki.secondlife.com/wiki/Release_Notes/Second_Life_RC_Magnum/16#16.12.03.322072>
, 'whisper_range', 'chat_range', 'shout_range' #? (jun 2020)
, 'agent_limit_max', 'agent_reserved', 'agent_underserved' # <https://releasenotes.secondlife.com/simulator/2022-04-21.571166.html>
})
#GetEnvSettings = frozenset({'agent_limit', 'dynamic_pathfinding', 'estate_id'
# , 'estate_name', 'frame_number', 'region_cpu_ratio', 'region_idle'
# , 'region_product_name', 'region_product_sku', 'region_start_time'
# , 'sim_channel', 'sim_version', 'simulator_hostname'
# , 'region_max_prims' # <http://wiki.secondlife.com/wiki/Release_Notes/Second_Life_RC_Magnum/16#16.11.02.321369>
# , 'region_object_bonus' # <http://wiki.secondlife.com/wiki/Release_Notes/Second_Life_RC_Magnum/16#16.12.03.322072>
# , 'whisper_range', 'chat_range', 'shout_range' #? (jun 2020)
# , 'agent_limit_max', 'agent_reserved', 'agent_underserved' # <https://releasenotes.secondlife.com/simulator/2022-04-21.571166.html>
# })
# Values valid for llGetVisualDetails parameters
GVD_ValidValues = \
@ -271,8 +271,8 @@ def llGetDisplayName(id):
def llGetEnv(s):
s = fs(s)
if s not in GetEnvSettings:
return u""
# if s not in GetEnvSettings:
# return u""
raise ELSLCantCompute
def llGetExperienceErrorMessage(errno):