aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement llGetGeometricCenter correctly.Magnuz Binder2015-05-041-1/+20
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Patch llCastRay fully-simplified to V2.Magnuz Binder2015-05-041-14/+15
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Implement llCastRay fully, simplified.Magnuz Binder2015-05-031-1/+759
|
* Updated all occurrences of AssemblyVersion("0.8.1.*") to ↵Diva Canto2015-04-293-3/+3
| | | | AssemblyVersion("0.8.2.*")
* Allow setting profilecut diff to 0.02 from scripts just like from viewer.Magnuz Binder2015-04-201-3/+3
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Implement llGetBoundingBox fully.Magnuz Binder2015-04-201-42/+447
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Temporarily comment out OSSL enabled warning log message.Robert Adams2015-04-141-1/+1
| | | | Added in wrong place. It is printed once per script rather than once per region.
* Enable OSSL functions by default using the osslEnable.ini configuration file.Robert Adams2015-04-141-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.
* Add osCheckODE() function so scripts can configure for running with legacy ↵Robert Adams2015-04-123-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.
* Fix llTargetOmega non-physical gain.Magnuz Binder2015-04-121-0/+3
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Parameterize sleeps in LSL functions.Magnuz Binder2015-03-221-64/+123
|
* Allow setting hollow to 99% from scripts just like from viewer.Magnuz Binder2015-03-222-6/+6
|
* Allow setting holesize to 0.01 from scripts just like from viewer.Magnuz Binder2015-03-221-4/+4
|
* Allow setting dimple diff to 0.02 from scripts just like from viewer, add ↵Magnuz Binder2015-03-221-2/+7
| | | | clipping and fix old copy-paste error.
* viewers can set a minimum distance 0.02 between path cut start and path cut endFreaky Tech2015-03-221-3/+3
|
* Move state change in progress in ScriptInstance.PostEvent() to the top of ↵Justin Clark-Casey (justincc)2015-03-121-3/+4
| | | | the EventQueue lock to avoid some flags possibly being wrongly set (m_LastControlLevel, etc.)
* Lock around EventQueue manipulation in ScriptInstance.SetState() as queues ↵Justin Clark-Casey (justincc)2015-03-121-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()
* A workaround for the state change problem described best here ↵Bob Shaffer II2015-03-121-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
* Give llGiveInventory a way to querry Hypergrid visitors so network vendors ↵BlueWall2015-03-051-2/+6
| | | | are able to give items to Hg visitors
* Add outbound URL filter to llHttpRequest() and osSetDynamicTextureURL*() ↵Justin Clark-Casey (justincc)2015-03-041-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
* usability fixes for LSL APIFreaky Tech2015-03-041-207/+1409
| | | | | | exception based error messages were cryptic for casual users Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* simplify llStringToBase64 and llBase64ToStringFreaky Tech2015-03-041-2/+3
| | | | Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* usability fixes for LightShare APIFreaky Tech2015-03-041-41/+328
| | | | | | exception based error messages were cryptic for casual users Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* corrected osMakeNotecard(string data) text length was calculated wrong. The ↵Freaky Tech2015-03-031-5/+15
| | | | | | Linden text format defines a byte count in that format. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* corrected script notecard parser. It now handles notecards with inventory as ↵ft@noemail2015-03-032-9/+13
| | | | | | well. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* Revert "corrected osMakeNotecard(string data) text length was calculated ↵BlueWall2015-03-031-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.
* Pickup our version number for the functionBlueWall2015-03-031-1/+1
|
* added llGetEnv() implementationFreaky Tech2015-03-033-6/+39
| | | | Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* corrected osMakeNotecard(string data) text length was calculated wrong. The ↵Freaky Tech2015-03-031-5/+15
| | | | | | Linden text format defines a byte count in that format. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* changed llGetMemoryLimit to return 65536 as for Mono LSLFreaky Tech2015-03-031-2/+2
| | | | Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* corrected memory info for scriptsFreaky Tech2015-03-031-6/+6
| | | | Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* corrected llGetStartParameter according to ↵Freaky Tech2015-03-031-0/+2
| | | | | | http://wiki.secondlife.com/wiki/LlGetStartParameter Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* corrected llResetScript according to description within LSL wikiFreaky Tech2015-03-031-1/+2
| | | | Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* Correct PRIM_TEXT return value from trans to alpha.Magnuz Binder2015-02-281-1/+1
|
* Revert "Adding dynamic ossl permission control"BlueWall2015-02-273-58/+0
| | | | | This reverts commit a3681f3052fb5e98e31e7051329a5b748a8bdd8d until further testing. Jenkins now fails ossl tests.
* Adding dynamic ossl permission controlBlueWall2015-02-273-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
* Reduce coupling in regression test task inventory creation methods to make ↵Justin Clark-Casey (justincc)2015-02-256-19/+19
| | | | them usable in tests with no scene present
* llLookAt(): use non-physical rotation if host prim is a physical attachmentdahlia2015-02-241-1/+1
|
* correct some minor comment misspellings in last commitdahlia2015-02-021-2/+2
|
* Compute rotation for llLookAt() with local positive X axis pointing downdahlia2015-02-021-14/+11
|
* Avoid a possible race condition by serializing plugin data outside the ↵Justin Clark-Casey (justincc)2015-01-291-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.
* On a multi-region simulator when AppDomain = true, make sure the DLL from ↵Justin Clark-Casey (justincc)2015-01-263-81/+39
| | | | | | 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.
* When deleting an assembly before re-compile, make sure its attributes allow ↵Justin Clark-Casey (justincc)2015-01-231-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.
* Fix regression where the stored state of every second script in an object ↵Justin Clark-Casey (justincc)2015-01-231-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
* Prevent a race condition between the script engine backup thread and script ↵Justin Clark-Casey (justincc)2015-01-161-30/+40
| | | | | | removal by locking on the script's EventQueue and only proceeding if it's flagged as still running. Relates to http://opensimulator.org/mantis/view.php?id=7407
* For scripts in attachments, don't save .state files apart from the initial ↵Justin Clark-Casey (justincc)2015-01-161-5/+22
| | | | | | | | one as these are ignored since .state is saved in the attachment's asset. This eliminates pointless work and exceptions when an appdomain is unloaded whilst an attachment script state is persisted. Adds test for this case. Relates to http://opensimulator.org/mantis/view.php?id=7407
* minor: Add event name to existing debug output when a script event fails ↵Justin Clark-Casey (justincc)2015-01-081-1/+2
| | | | with an exception. To aid debugging.
* Fix a regression where objects crossing regions in the same simulator (on ↵Justin Clark-Casey (justincc)2014-12-101-30/+36
| | | | | | | | | | their own or as attachments) with AppDomainLoading = false would create the new state in the source region area rather than the dest. This was beause the code was finding the script DLL compiled for the source region as everything is in the same appdomain and using this as the location for the destination script state, etc. This resolves the regression by passing the proper destination separately from the DLL retrieved. Probably a regression since commit d7b92604 (11 July 2014). Added regression test for this case. At least partly addresses http://opensimulator.org/mantis/view.php?id=7278
* Always close script linemap file after reading and always dispose of other ↵Justin Clark-Casey (justincc)2014-12-032-29/+29
| | | | streams in the script engine even if exceptions are thrown.
* refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)2014-11-251-1/+1
| | | | | | | | thread and run work in the jobengine from Watchdog to a WorkManager class. This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management. Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget. Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere