aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-05-22Implement llSetSoundQueueing().Justin Clark-Casey (justincc)1-4/+8
This is controlled by the viewer, not the server. So as per http://wiki.secondlife.com/wiki/LlSetSoundQueueing, only two sounds can be queued per prim. You probably need to use llPreloadSound() for best results
2013-05-15Fix issue where osMakeNotecard() would fail if given a list containing ↵Justin Clark-Casey (justincc)1-30/+30
vectors or quaternions. http://opensimulator.org/mantis/view.php?id=6640
2013-05-01Add in-code exaplanation for the change in cancellation signalling in STP ↵Justin Clark-Casey (justincc)1-2/+0
2.2.3. Remove left in Console.WriteLine accidentally inserted in recent 206fb306
2013-05-01Update SmartThreadPool to latest version 2.2.3 with a major and minor change.Justin Clark-Casey (justincc)4-9/+12
SmartThreadPool code comes from http://www.codeproject.com/Articles/7933/Smart-Thread-Pool This version implements thread abort (via WorkItem.Cancel(true)), threadpool naming, max thread stack, etc. so we no longer need to manually patch those. However, two changes have been made to stock 2.2.3. Major change: WorkItem.Cancel(bool abortExecution) in our version does not succeed if the work item was in progress and thread abort was not specified. This is to match previous behaviour where we handle co-operative termination via another mechanism rather than checking WorkItem.IsCanceled. Minor change: Did not add STP's StopWatch implementation as this is only used WinCE and Silverlight and causes a build clash with System.Diagnostics.StopWatch The reason for updating is to see if this improves http://opensimulator.org/mantis/view.php?id=6557 and http://opensimulator.org/mantis/view.php?id=6586
2013-04-09minor: Log an exception if we aren't able to delete a script state file ↵Justin Clark-Casey (justincc)1-1/+6
rather than simply ignoring it. This should never normally happen but if it does then it can be valuable diagonstic information.
2013-04-04Fix bug where outstanding llHTTPRequests for scripts were not being aborted ↵Justin Clark-Casey (justincc)1-1/+7
when they were deleted. This was because AsyncCommandManager was handing an item ID to IHttpRequestModule.StopHttpRequest() rather than the expected request ID. This commit also makes the http request asynchronous using BeginGetResponse() rather than doing this by launching a new thread so that we can more safely abort it via HttpWebRequest.Abort() rather than aborting the thread itself. This also renames StopHttpRequest() to StopHttpRequestsForScript() since any outstanding requests are now aborted and/or removed.
2013-04-02Use Output instead of OutputFormat in appropriate places of XEngine status ↵Justin Clark-Casey (justincc)1-2/+2
reporting.
2013-03-29Added missing functionality (mainly custom headers) to llHTTPRequest.Kevin Cozens2-56/+128
2013-03-26Make llGetLinkPrimitiveParams() and llGetPrimitiveParams() work for avatars ↵Justin Clark-Casey (justincc)1-30/+194
in a linkset. llGetPrimitiveParams() works through PRIM_LINK_TARGET Setting via llSetLinkPrimitiveParams(), etc. not yet implemented
2013-03-26Phase 1 of implementing a transfer permission. Overwrite libOMV's PermissionMaskMelanie2-2/+4
with our own and add export permissions as well as a new definition for "All" as meaning "all conventional permissions" rather than "all possible permissions"
2013-03-18Multiattach, part 1Melanie1-2/+2
Conflicts: OpenSim/Framework/AvatarAppearance.cs OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs OpenSim/Region/Framework/Scenes/Scene.cs OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
2013-03-15Make the LSL memory functions virtual so script engines can override them if ↵Melanie1-3/+3
they have different memory management.
2013-03-15refactor: make llGetLinkName() and llGetLinkKey() use a common ↵Justin Clark-Casey (justincc)1-84/+80
GetLinkEntity() method
2013-03-14minor: remove mono compiler warnings in LSL_Api.csJustin Clark-Casey (justincc)1-3/+3
2013-03-14refactor: minor cleanup in osGetAvatarList()Justin Clark-Casey (justincc)1-2/+1
2013-03-14Fix bug in osCauseHealing() if called with an avatar ID for an avatar that ↵Justin Clark-Casey (justincc)1-13/+9
is not in the scene.
2013-03-14minor: Use more compact libomv primitive constructors in osNpcGetPos() and ↵Justin Clark-Casey (justincc)1-6/+3
osNpcGetRot()
2013-03-14Fix minor race conditions in OSSL_Api functions where a parcel could be ↵Justin Clark-Casey (justincc)1-6/+4
misidentified for moving prims.
2013-03-14refactor: Use LSL_Vector(Vector3) constructor in llCastRay()Justin Clark-Casey (justincc)1-1/+1
2013-03-14refactor: Use ILandChannel.GetLandObject(Vector3) in LSL_Api rather than ↵Justin Clark-Casey (justincc)1-41/+21
having to continually take intermediate Vector3s to avoid race conditions
2013-03-14Fix minor race condition in llGetCameraRot() where inconsistent information ↵Justin Clark-Casey (justincc)1-4/+4
could be returned for a rotating camera
2013-03-14Fix minor race condition in llGetCameraPos() where an inconsistent post ↵Justin Clark-Casey (justincc)1-4/+5
could be returned for a moving camera
2013-03-14Fix minor race condition in llParcelMediaCommandList() where a parcel could ↵Justin Clark-Casey (justincc)1-1/+3
be misidentified for a moving prim
2013-03-14Fix minor race conditions in LSL_Api.GetPrimParams() for PRIM_POSITION, ↵Justin Clark-Casey (justincc)1-10/+11
PRIM_SIZE and PRIM_ROT_LOCAL This function is used by all the various ll*Params() and os*Params() functions
2013-03-14Fix minor race condition in llGetGeometricCenter() if this was changing ↵Justin Clark-Casey (justincc)1-1/+1
whilst the function was called.
2013-03-14refactor: use LSL_Rotation(Quaternion) constructor in lLGetRootRotation()Justin Clark-Casey (justincc)1-1/+2
2013-03-14Fix minor race condition in llGetRootPosition() where inconsistent results ↵Justin Clark-Casey (justincc)1-2/+2
could be returned for moving prims
2013-03-14Fix minor race conditions in detecting current parcel for ↵Justin Clark-Casey (justincc)1-3/+7
llAddToLandPassList(), llSetParcelMusicURL() and llGetParcelMusicURL() for moving prims
2013-03-14refactor: use LSL_Vector(Vector3) constructor in llGroundNormal()Justin Clark-Casey (justincc)1-1/+1
2013-03-14minor: Reuse ground LSL_Vector in llGroundSlope() rather than creating a new ↵Justin Clark-Casey (justincc)1-1/+6
one.
2013-03-14Fix minor race conditions in llTeleportAgent(), ↵Justin Clark-Casey (justincc)1-14/+21
llTeleportAgentGlobalCoords(), llEjectFromLand() and llOverMyLand() where the wrong parcel could be identified for very fast moving avatars.
2013-03-14refactor: Use LSL_Vector(Vector3) constructor in llGetCenterOfMass()Justin Clark-Casey (justincc)1-2/+2
2013-03-14Fix a minor race condition in llInstantMessage() where slightly wrong origin ↵Justin Clark-Casey (justincc)1-3/+5
co-ordinates could be given for a fast moving prim
2013-03-14Fix minor race condition in llGetOmega() where inconsistent results could be ↵Justin Clark-Casey (justincc)1-1/+2
returned (accidentally stated that commit 1774c631 was this fix). Commit 1774c631 was actually a fix for a similar minor race condition in llGetAccel()
2013-03-14Fix minor race condition in llGetOmega() where a call whilst a prim was ↵Justin Clark-Casey (justincc)1-1/+2
changing angular velocity could return inconsistent results
2013-03-14refactor: Use LSL_Vector(Vector3) constructor in llGetVel()Justin Clark-Casey (justincc)1-1/+1
2013-03-14refactor: Use LSL_Vector(Vector3) constructor in llGetTorque()Justin Clark-Casey (justincc)1-2/+2
2013-03-14Fix minor race condition in llGetLocalRot() where inconsistent results could ↵Justin Clark-Casey (justincc)1-1/+2
be returned if the prim was rotating during the call
2013-03-14refactor: use cleaner LSL_Rotation quaternion constructor in ↵Justin Clark-Casey (justincc)1-3/+4
LSL_Api.GetPartRot()
2013-03-14Fix sensors, llGetRootRotation(), llGet*Param() and other functions to use ↵Justin Clark-Casey (justincc)3-10/+7
the world rotation if the avatar to which they are attached is sitting
2013-03-14Make llGetObjectDetails() return the correct world rotation for a sitting avatarJustin Clark-Casey (justincc)1-1/+1
This addresses http://opensimulator.org/mantis/view.php?id=6567 This creates a ScenePresence.GetWorldRotation() with the same semantics as SOP.GetWorldRotation() SP.Rotation can't be used since it's relative to the sat upon prim if the avatar is sitting.
2013-03-13Make C# scripts return correct error line and column numbers instead of ↵Justin Clark-Casey (justincc)1-3/+8
failing because they have no linemap. Adapted fix from http://opensimulator.org/mantis/view.php?id=6571 Thanks Nickel Briand
2013-03-11minor: Remove mono compiler warnings from LSL_ApiHttpTestsJustin Clark-Casey (justincc)1-1/+0
2013-03-05Convert doubles passed back through the MOD interface into LSL_FloatsMic Bowman1-0/+4
2013-03-06Fix bug in osGetPrimitiveParams() so that it works for prims with the same ↵Justin Clark-Casey (justincc)1-1/+1
owner as the script and not ones with different owners. Addresses http://opensimulator.org/mantis/view.php?id=6560
2013-02-28Fix potential concurrency issue since the LSL notecard cache was not being ↵Justin Clark-Casey (justincc)1-7/+10
checked for expiry under lock
2013-02-28Fix bug where simultaneous calls by different scripts to llGetNotecardLine() ↵Justin Clark-Casey (justincc)1-12/+14
or llGetNumberOfNotecardLines() would sometimes not trigger a dataserver event. This was because the notecard asset ID was being used as the request identifier. Now using a random ID, in common with other code using the DataServer
2013-02-28Add regression tests for llGetNotecardLine()Justin Clark-Casey (justincc)3-3/+273
2013-02-27Removed duplicate 'using' statement.Diva Canto1-1/+0
2013-02-27Switched to using the other Util function with a default value.Diva Canto1-2/+4