aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-05-04Revert "Patch llCastRay fully-simplified to V2." for further review.Michael Cerquoni1-15/+14
This reverts commit c96ee68953eb31fc2ad6d1df9b7a4bb19c584e17.
2015-05-04Missing constants for llGetObjectDetailsTalun2-0/+33
OBJECT_BODY_SHAPE_TYPE OBJECT_HOVER_HEIGHT OBJECT_LAST_OWNER_ID OBJECT_RENDER_WEIGHT Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-05-04Implement llGetGeometricCenter correctly.Magnuz Binder1-1/+20
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-05-04Patch llCastRay fully-simplified to V2.Magnuz Binder1-14/+15
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-05-03Implement llCastRay fully, simplified.Magnuz Binder1-1/+759
2015-04-29Updated all occurrences of AssemblyVersion("0.8.1.*") to ↵Diva Canto4-4/+4
AssemblyVersion("0.8.2.*")
2015-04-20Allow setting profilecut diff to 0.02 from scripts just like from viewer.Magnuz Binder1-3/+3
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-04-20Implement llGetBoundingBox fully.Magnuz Binder1-42/+447
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-04-14Temporarily comment out OSSL enabled warning log message.Robert Adams1-1/+1
Added in wrong place. It is printed once per script rather than once per region.
2015-04-14Enable OSSL functions by default using the osslEnable.ini configuration file.Robert Adams1-0/+3
This changes OpenSim.ini.example to, by default, include osslEnable.ini which turns on the OSSL functions and limits who can do which operations.
2015-04-12Add osCheckODE() function so scripts can configure for running with legacy ↵Robert Adams3-0/+21
physics engine. Function returns 'true' of the physics engine is configured to be 'OpenDynamicsEngine'. The presumption is that all other physics engines work the same (like SL) or it is a bug. Does not require ossl functions to be enabled.
2015-04-12Fix llTargetOmega non-physical gain.Magnuz Binder1-0/+3
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-03-22Parameterize sleeps in LSL functions.Magnuz Binder1-64/+123
2015-03-22Allow setting hollow to 99% from scripts just like from viewer.Magnuz Binder2-6/+6
2015-03-22Allow setting holesize to 0.01 from scripts just like from viewer.Magnuz Binder1-4/+4
2015-03-22Allow setting dimple diff to 0.02 from scripts just like from viewer, add ↵Magnuz Binder1-2/+7
clipping and fix old copy-paste error.
2015-03-22viewers can set a minimum distance 0.02 between path cut start and path cut endFreaky Tech1-3/+3
2015-03-12Move state change in progress in ScriptInstance.PostEvent() to the top of ↵Justin Clark-Casey (justincc)1-3/+4
the EventQueue lock to avoid some flags possibly being wrongly set (m_LastControlLevel, etc.)
2015-03-12Lock around EventQueue manipulation in ScriptInstance.SetState() as queues ↵Justin Clark-Casey (justincc)1-17/+24
are not thread-safe structures. This should also make it less likely that an event will be erroneously posted during a state change by precluding a race condition with a thread calling ScriptInstance.PostEvent()
2015-03-12A workaround for the state change problem described best here ↵Bob Shaffer II1-1/+22
http://opensimulator.org/mantis/view.php?id=6960 which should make state changes behave more like is described here http://wiki.secondlife.com/wiki/State
2015-03-05Give llGiveInventory a way to querry Hypergrid visitors so network vendors ↵BlueWall1-2/+6
are able to give items to Hg visitors
2015-03-04Add outbound URL filter to llHttpRequest() and osSetDynamicTextureURL*() ↵Justin Clark-Casey (justincc)1-1/+5
script functions. This is to address an issue where HTTP script functions could make calls to localhost and other endpoints inside the simulator's LAN. By default, calls to all private addresses are now blocked as per http://en.wikipedia.org/wiki/Reserved_IP_addresses If you require exceptions to this, configure [Network] OutboundDisallowForUserScriptsExcept in OpenSim.ini
2015-03-04usability fixes for LSL APIFreaky Tech1-207/+1409
exception based error messages were cryptic for casual users Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-04simplify llStringToBase64 and llBase64ToStringFreaky Tech1-2/+3
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-04usability fixes for LightShare APIFreaky Tech1-41/+328
exception based error messages were cryptic for casual users Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected osMakeNotecard(string data) text length was calculated wrong. The ↵Freaky Tech1-5/+15
Linden text format defines a byte count in that format. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected script notecard parser. It now handles notecards with inventory as ↵ft@noemail2-9/+13
well. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03Revert "corrected osMakeNotecard(string data) text length was calculated ↵BlueWall1-15/+5
wrong. The Linden text format defines a byte count in that format." This reverts commit b519a5e62ae5ce7d408a8206c06371e1316aa5e8. The function works ok in-world but tests are failing. will revert for now.
2015-03-03Pickup our version number for the functionBlueWall1-1/+1
2015-03-03added llGetEnv() implementationFreaky Tech3-6/+39
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected osMakeNotecard(string data) text length was calculated wrong. The ↵Freaky Tech1-5/+15
Linden text format defines a byte count in that format. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03changed llGetMemoryLimit to return 65536 as for Mono LSLFreaky Tech1-2/+2
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected memory info for scriptsFreaky Tech1-6/+6
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected llGetStartParameter according to ↵Freaky Tech1-0/+2
http://wiki.secondlife.com/wiki/LlGetStartParameter Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-03corrected llResetScript according to description within LSL wikiFreaky Tech1-1/+2
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-02-28Correct PRIM_TEXT return value from trans to alpha.Magnuz Binder1-1/+1
2015-02-27Revert "Adding dynamic ossl permission control"BlueWall3-58/+0
This reverts commit a3681f3052fb5e98e31e7051329a5b748a8bdd8d until further testing. Jenkins now fails ossl tests.
2015-02-27Adding dynamic ossl permission controlBlueWall3-0/+58
Add permission by identifying uuid (owner/creator/group) and function. Revoke permission in the same manner. Permission adjustments immediately effect running scripts ability to call os functions. osGrantScriptPermissions(UUID key,string function) Threat Level Severe osRevokeScriptPermissions(UUID key,string function) Threat Level Severe work sponsored by: Rage
2015-02-25Reduce coupling in regression test task inventory creation methods to make ↵Justin Clark-Casey (justincc)7-20/+20
them usable in tests with no scene present
2015-02-24llLookAt(): use non-physical rotation if host prim is a physical attachmentdahlia1-1/+1
2015-02-02correct some minor comment misspellings in last commitdahlia1-2/+2
2015-02-02Compute rotation for llLookAt() with local positive X axis pointing downdahlia1-14/+11
2015-01-29minor: correct log message when script with non-config stop strategy is ↵Justin Clark-Casey (justincc)1-1/+1
detected to log actual strategy rather than true/false
2015-01-29Avoid a possible race condition by serializing plugin data outside the ↵Justin Clark-Casey (justincc)1-2/+9
EventQueue lock in ScriptInstance.SaveState() This takes the AsyncCommandHandler.staticLock. However, AsyncCommandHandler.DoOneCmdHandlerPass() already holds staticLock and may attempt to take the EventQueue lock via ScriptInstance.PostEvent() in XEngine.CheckListeners() This is a regression from faaf47a (Fri Jan 16 2015) but not simply reverting that commit since it will reintroduce a race between script removal, backup and event queue manipulating code.
2015-01-27Correct typo in raw default script stop strategyJustin Clark-Casey (justincc)1-1/+1
2015-01-27If [XEngine] ScriptStopStrategy is different from a compiled script ↵Justin Clark-Casey (justincc)1-28/+26
strategy, ask user to manually set DeleteScriptsOnStartup = true for at least one simuator session rather than auto-recompiling. This does not work on Windows since the VM retains a handle to the DLL even if class instantiation was unsuccessful. Which causes deletion of the old DLL to fail with access sharing violations. Instead, log a warning in this situation asking the user to manually set DeleteScriptsOnStartup = true for a session (or one could separately delete the DLLs in the relevant bin/scriptengines/<region-uuid> dir For the current session, the script engine will continue using the script compiled stop strategy as before. Relates to http://opensimulator.org/mantis/view.php?id=7278
2015-01-26If an exception comes out of DoOnRezScript in DoOnRezScriptQueue(), then ↵Justin Clark-Casey (justincc)1-6/+17
only fail a single script rather than halting the exntire script startup process.
2015-01-26On a multi-region simulator when AppDomain = true, make sure the DLL from ↵Justin Clark-Casey (justincc)4-91/+147
the appropriate script engines subdir is loaded rather than always that of the first engine to load the DLL. This resolves a DLL load failure on my Linux box when an attachment script was present on another region before the avatar arrived.
2015-01-23When deleting an assembly before re-compile, make sure its attributes allow ↵Justin Clark-Casey (justincc)1-1/+5
deletion. This is to see if this helps with the problem in http://opensimulator.org/mantis/view.php?id=7278 where some DLLs are not allowing this. Since OpenSim created the file it should always be allowed to delete it.
2015-01-23Fix regression where the stored state of every second script in an object ↵Justin Clark-Casey (justincc)1-0/+3
rezzed from inventory (e.g. attachments) was no longer loaded. Likely a regression since f132f642 (2014-08-28) Relates to http://opensimulator.org/mantis/view.php?id=7278