Added support for missing LSL functions and constants; Fixes PHOE-3444

Tue, 13 Dec 2011 14:46:58 +0100

author
Ansariel
date
Tue, 13 Dec 2011 14:46:58 +0100
changeset 1598
492d841e99ff
parent 1597
9926e81d4386
child 1599
56197d38a4e3

Added support for missing LSL functions and constants; Fixes PHOE-3444

indra/lscript/lscript_library/lscript_library.cpp file | annotate | diff | revisions
indra/newview/app_settings/dictionaries/en_sl.dic file | annotate | diff | revisions
indra/newview/app_settings/keywords.ini file | annotate | diff | revisions
indra/newview/skins/default/xui/en-us/strings.xml file | annotate | diff | revisions
     1.1 --- a/indra/lscript/lscript_library/lscript_library.cpp	Tue Dec 13 14:09:25 2011 +0100
     1.2 +++ b/indra/lscript/lscript_library/lscript_library.cpp	Tue Dec 13 14:46:58 2011 +0100
     1.3 @@ -503,6 +503,12 @@
     1.4  
     1.5  	// Server new function 2011-12-13:
     1.6  	addFunction(10.f, 0.f, dummy_func, "llGetParcelMusicURL", "s", NULL);
     1.7 +
     1.8 +	// Missing script functions as of 2011-12-13
     1.9 +	addFunction(10.f, 0.f, dummy_func, "llScriptProfiler", NULL, "i");
    1.10 +	addFunction(10.f, 0.f, dummy_func, "llGetSPMaxMemory", "i", NULL);
    1.11 +	addFunction(10.f, 0.f, dummy_func, "llGetUsedMemory", "i", NULL);
    1.12 +	addFunction(10.f, 0.f, dummy_func, "llSetAngularVelocity", NULL, "vi");
    1.13  }
    1.14  
    1.15  LLScriptLibraryFunction::LLScriptLibraryFunction(F32 eu, F32 st, void (*exec_func)(LLScriptLibData *, LLScriptLibData *, const LLUUID &), const char *name, const char *ret_type, const char *args, BOOL god_only)
     2.1 --- a/indra/newview/app_settings/dictionaries/en_sl.dic	Tue Dec 13 14:09:25 2011 +0100
     2.2 +++ b/indra/newview/app_settings/dictionaries/en_sl.dic	Tue Dec 13 14:46:58 2011 +0100
     2.3 @@ -10268,6 +10268,7 @@
     2.4  llGetScriptName
     2.5  llGetScriptState
     2.6  llGetSimulatorHostname
     2.7 +llGetSPMaxMemory
     2.8  llGetStartParameter
     2.9  llGetStatus
    2.10  llGetSubString
    2.11 @@ -10281,6 +10282,7 @@
    2.12  llGetTimestamp
    2.13  llGetTorque
    2.14  llGetUnixTime
    2.15 +llGetUsedMemory
    2.16  llGetUsername
    2.17  llGetVel
    2.18  llGetWallclock
    2.19 @@ -10387,11 +10389,13 @@
    2.20  llSay
    2.21  llScaleTexture
    2.22  llScriptDanger
    2.23 +llScriptProfiler
    2.24  llSendRemoteData
    2.25  llSensor
    2.26  llSensorRemove
    2.27  llSensorRepeat
    2.28  llSetAlpha
    2.29 +llSetAngularVelocity
    2.30  llSetBuoyancy
    2.31  llSetCameraAtOffset
    2.32  llSetCameraEyeOffset
    2.33 @@ -10741,6 +10745,7 @@
    2.34  PARCEL_MEDIA_COMMAND_AGENT
    2.35  PARCEL_MEDIA_COMMAND_AUTO_ALIGN
    2.36  PARCEL_MEDIA_COMMAND_LOOP
    2.37 +PARCEL_MEDIA_COMMAND_LOOP_SET
    2.38  PARCEL_MEDIA_COMMAND_PAUSE
    2.39  PARCEL_MEDIA_COMMAND_PLAY
    2.40  PARCEL_MEDIA_COMMAND_STOP
     3.1 --- a/indra/newview/app_settings/keywords.ini	Tue Dec 13 14:09:25 2011 +0100
     3.2 +++ b/indra/newview/app_settings/keywords.ini	Tue Dec 13 14:46:58 2011 +0100
     3.3 @@ -284,6 +284,14 @@
     3.4  ATTACH_LPEC			Passed to llAttachToAvatar to attach task to left pectoral
     3.5  ATTACH_LEFT_PEC		Passed to llAttachToAvatar to attach task to left pectoral
     3.6  ATTACH_RIGHT_PEC	Passed to llAttachToAvatar to attach task to right pectoral
     3.7 +ATTACH_HUD_BOTTOM			Passed to llAttachToAvatar to attach task to HUD bottom
     3.8 +ATTACH_HUD_BOTTOM_LEFT		Passed to llAttachToAvatar to attach task to HUD bottom left
     3.9 +ATTACH_HUD_BOTTOM_RIGHT		Passed to llAttachToAvatar to attach task to HUD bottom right
    3.10 +ATTACH_HUD_CENTER_1			Passed to llAttachToAvatar to attach task to HUD center 1
    3.11 +ATTACH_HUD_CENTER_2			Passed to llAttachToAvatar to attach task to HUD center 2
    3.12 +ATTACH_HUD_TOP_CENTER		Passed to llAttachToAvatar to attach task to HUD top center
    3.13 +ATTACH_HUD_TOP_LEFT			Passed to llAttachToAvatar to attach task to HUD top left
    3.14 +ATTACH_HUD_TOP_RIGHT		Passed to llAttachToAvatar to attach task to HUD top right
    3.15  
    3.16  LAND_LEVEL			Passed to llModifyLand to level terrain
    3.17  LAND_RAISE			Passed to llModifyLand to raise terrain
    3.18 @@ -459,6 +467,7 @@
    3.19  PARCEL_MEDIA_COMMAND_PAUSE Pause media stream
    3.20  PARCEL_MEDIA_COMMAND_PLAY  Play media stream
    3.21  PARCEL_MEDIA_COMMAND_LOOP  Loop media stream
    3.22 +PARCEL_MEDIA_COMMAND_LOOP_SET  Get or set the parcel's media loop duration
    3.23  PARCEL_MEDIA_COMMAND_TEXTURE  Get or set the parcel's media texture
    3.24  PARCEL_MEDIA_COMMAND_URL  Get or set the parcel's media url
    3.25  PARCEL_MEDIA_COMMAND_TYPE Get or set the parcel's media mimetype
     4.1 --- a/indra/newview/skins/default/xui/en-us/strings.xml	Tue Dec 13 14:09:25 2011 +0100
     4.2 +++ b/indra/newview/skins/default/xui/en-us/strings.xml	Tue Dec 13 14:46:58 2011 +0100
     4.3 @@ -1853,5 +1853,25 @@
     4.4  string llGetParcelMusicURL()
     4.5  Returns the music URL of the object's current parcel if the script owner also owns the parcel.
     4.6    </string>
     4.7 +  <string name="LSLTipText_llScriptProfiler" translate="false">
     4.8 +llScriptProfiler(integer flags)
     4.9 +Enables or disables the scripts profiling state.
    4.10 +Flags can be either of PROFILE_SCRIPT_NONE or PROFILE_SCRIPT_MEMORY.
    4.11 +Applies to Mono-compiled scripts only.
    4.12 +  </string>
    4.13 +  <string name="LSLTipText_llGetSPMaxMemory" translate="false">
    4.14 +integer llGetSPMaxMemory()
    4.15 +Returns the integer of the most bytes used while llScriptProfiler() was last active.
    4.16 +Only relevant for Mono-compiled scripts.
    4.17 +  </string>
    4.18 +  <string name="LSLTipText_llGetUsedMemory" translate="false">
    4.19 +integer llGetUsedMemory()
    4.20 +Returns the integer of the number of bytes of memory currently in use by the script.
    4.21 +Only relevant for Mono-compiled scripts.
    4.22 +  </string>
    4.23 +  <string name="LSLTipText_llSetAngularVelocity" translate="false">
    4.24 +llSetAngularVelocity(vector force, integer local)
    4.25 +Applies rotational velocity to object.
    4.26 +  </string>
    4.27  </strings>
    4.28  

mercurial