aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Show more meaningful error messages when failed to move an item from a prim ↵Oren Hurvitz2014-05-061-4/+5
| | | | | | to a user's inventory. Also, actually show the error to the user in more cases. (Previously, sometimes the operation failed without telling the user anything.)
* Implement osForceBreakAllLinks().Justin Clark-Casey (justincc)2014-03-131-0/+10
| | | | Identical to llBreakAllLinks() except that it doesn't require the script to have link permissions.
* Implement osForceCreateLink() and osForceBreakLink()Justin Clark-Casey (justincc)2014-03-121-0/+20
| | | | | | | These are identical to llCreateLink() and llBreakLink() except that they don't require script permissions. However, osForceCreateLink() still requires that linked and linkee still have the same owner. There's also an AutomaticLinkPermission setting in [XEngine] that could be set to true to prevent the LSL function checks. But this doesn't allow the finer control over which users/scripts, etc. can do this that the OSSL functions provide.
* Add Varregion support to osGetRegionSize OSSL functionDev Random2014-03-071-1/+3
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Merge branch 'master' into varregionRobert Adams2014-01-281-0/+23
|\
| * Added osGetRegionSize(), which returns the region size in meters and ↵Oren Hurvitz2014-01-281-0/+23
| | | | | | | | recognizes megaregions
* | varregion: many more updates removing the constant RegionSize and replacingRobert Adams2013-12-261-2/+2
| | | | | | | | with a passed region size. This time in the map code and grid services code.
* | varregion: elimination of Constants.RegionSize from all over OpenSimulator.Robert Adams2013-11-081-3/+4
|/ | | | | | | Routines in Util to compute region world coordinates from region coordinates as well as the conversion to and from region handles. These routines have replaced a lot of math scattered throughout the simulator. Should be no functional changes.
* refactor: rename Scene.IncomingCloseAgent() to CloseAgent() in order to make ↵Justin Clark-Casey (justincc)2013-09-271-1/+1
| | | | | | it clear that all non-clientstack callers should be using this rather than RemoveClient() in order to step through the ScenePresence state machine properly. Adds IScene.CloseAgent() to replace RemoveClient()
* Phase 1 of implementing a transfer permission. Overwrite libOMV's PermissionMaskMelanie2013-03-261-2/+3
| | | | 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"
* refactor: minor cleanup in osGetAvatarList()Justin Clark-Casey (justincc)2013-03-141-2/+1
|
* Fix bug in osCauseHealing() if called with an avatar ID for an avatar that ↵Justin Clark-Casey (justincc)2013-03-141-13/+9
| | | | is not in the scene.
* minor: Use more compact libomv primitive constructors in osNpcGetPos() and ↵Justin Clark-Casey (justincc)2013-03-141-6/+3
| | | | osNpcGetRot()
* Fix minor race conditions in OSSL_Api functions where a parcel could be ↵Justin Clark-Casey (justincc)2013-03-141-6/+4
| | | | misidentified for moving prims.
* Fix sensors, llGetRootRotation(), llGet*Param() and other functions to use ↵Justin Clark-Casey (justincc)2013-03-141-6/+3
| | | | the world rotation if the avatar to which they are attached is sitting
* Switched to using the other Util function with a default value.Diva Canto2013-02-271-2/+4
|
* Moved the HG default variables out of [Startup] and into their own section ↵Diva Canto2013-02-271-2/+2
| | | | [Hypergrid] in *Common.ini.example. Backwards compatible for now.
* Added new Util function for reading config vars that's more generic than the ↵Diva Canto2013-02-221-2/+2
| | | | one I added yesterday -- this is for helping move config vars out of [Startup]
* Simplification of HG configs: HomeURI and GatekeeperURI now are defined as ↵Diva Canto2013-02-211-2/+10
| | | | default under [Startup]. They can then be overwritten in the other sections (but probably shouldn't). I kept the existing code for backwards compatibility, so this should not cause any breaks from people's current configurations. But people should move to have these 2 vars under [Startup] -- see OpenSim.ini.example and Robust.HG.ini.example. And yes, both names now end with "URI" for consistency.
* Merge branch 'master' into coopterminationJustin Clark-Casey (justincc)2013-01-241-1/+1
|\
| * Restore previous client AO behaviour by not allowing them to remove the ↵Justin Clark-Casey (justincc)2013-01-181-1/+1
| | | | | | | | | | | | | | | | | | default animation but continue to allow scripts to do so. This keeps the fix from http://opensimulator.org/mantis/view.php?id=6327 and fixes the behaviour regression in http://opensimulator.org/mantis/view.php?id=6483 Animations may still exhibit different behaviour if both scripts and clients are adjusting animations. A change in the behaviour of client AO to not remove all animations may be a better long term approach.
* | Pass narrower WaitHandle rather than EventWaitHandle as co-op termination ↵Justin Clark-Casey (justincc)2013-01-231-1/+1
|/ | | | | | wait handle to script APIs. APIs don't need to reference any methods on EventWaitHandle
* Implement co-operative script termination if termination comes during a ↵Justin Clark-Casey (justincc)2013-01-161-4/+5
| | | | | | | | | | script wait event (llSleep(), etc.) This makes use of EventWaitHandles since various web references indicate that Thread.Interrupt() can also cause runtime instability. If co-op termination is enabled, then termination sets the wait handle instead of waiting for a timeout before possibly aborting the thread. This allows the script to cleanly terminate if it's in a llSleep/LL function delay or the next time it enters such a wait without any timeout period. Co-op termination is not yet testable since checking for termination request within loops that never trigger a wait is not yet implemented. This commit, unlike 1b5c41c, passes the wait handle as an extra parameter through IScript.Initialize() instead of passing IScriptInstance itself.
* Instead of passing separate engine, part and item components to script APIs, ↵Justin Clark-Casey (justincc)2013-01-151-4/+4
| | | | | | | | pass down IScriptInstance instead. This is to allow the future co-operative script thread terminate feature to detect and act upon termination requests. This splits the assembly and state loading out from the ScriptInstance() constructor to a separate Load() method in order to facilititate continued script logic regression testing.
* BulletSim: add osGetPhysicsEngineType() LSL function and updateRobert Adams2013-01-111-11/+48
| | | | | | | | the physics engines to return the name that is specified in the INI file ("physics = XXX") as the type of engine. This os function is a little different than the others in that it does not throw an exception of one is not privilaged to use it. It merely returns an empty string.
* Fixed several problems with the Sun: some settings didn't work, or were ↵Oren Hurvitz2013-01-021-6/+4
| | | | inconsistently used. - The sun position is always calculated by combining the sun settings in the Region and Estate. This fixes the problem that 'UseEstateSun' didn't work. - To remove ambiguity, the EstateToolsSunUpdate event no longer accepts the sun's position as parameters. That's because the position is always calculated from the Region and Estate settings. - Use only the 'FixedSun' flag to determine whether the sun is fixed; not the 'UseGlobalTime' flag. - Don't change the region's 'SunPosition' field according to the sun's position: this field is used only to set the position when using a FixedSun. (The 'SunVector' field does get updated according to the sun's position in the sky)
* adding ability for listeners to be filtered by regular expressions and a ↵SignpostMarv2012-10-261-0/+63
| | | | general-purpose function to see if a given string matches a given regex
* Formatting and casing correction in WorldCommModule, trailing new line in ↵SignpostMarv2012-10-261-1/+1
| | | | OSSL to get git diff to not complain
* Get osNpcCreate() and osNpcLoadAppearance() to generate a script error if ↵Justin Clark-Casey (justincc)2012-10-251-5/+6
| | | | appearance notecard does not exist, rather than returning UUID.Zero or silently failing.
* When scripts generate expected exceptions (e.g. due to checked bad ↵Justin Clark-Casey (justincc)2012-10-251-1/+1
| | | | | | | parameter) throw ScriptException instead of just a plain old exception. This is to make it easier to distinguish these exceptions from unexpected OpenSimulator problems internally and in regression tests. No functional changes.
* Make osNpcCreate() return UUID.Zero instead of throwing an exception if ↵Justin Clark-Casey (justincc)2012-10-251-8/+18
| | | | notecard name is invalid. Make osNpcLoadAppearance() fail silently in same circumstance rather than throwing exception.
* Correct osSetContentType() threat check to query osSetContentType rather ↵Justin Clark-Casey (justincc)2012-10-101-1/+3
| | | | than osSetResponseType
* Remove osDropAttachment threat level check wrongly placed in ↵Justin Clark-Casey (justincc)2012-10-101-1/+0
| | | | OSSL_Api.ShoutErrorOnLackingOwnerPerms.
* correcting typoSignpostMarv2012-10-021-3/+3
|
* taking into account the recent introduction of implicit operatorsSignpostMarv2012-10-021-3/+1
|
* added perms checking, duplicated functionality to methods that do not ↵SignpostMarv2012-10-021-6/+64
| | | | require perms and have higher threat level
* fixing copypastaSignpostMarv2012-10-021-1/+1
|
* implementing osDropAttachment & osDropAttachmentAtSignpostMarv2012-10-021-2/+31
|
* refactoring to allow Scene.GetLandData to accept Vector3 as an argument. ↵SignpostMarv2012-09-081-1/+1
| | | | Note that the prior work on LSL_Vector implicit operators means one does not need to explicitly cast a LSL_Vector to Vector3
* wrapping attachment functions in a regionSignpostMarv2012-09-041-0/+2
|
* Implementing functing to send messages directly to attachmentsSignpostMarv2012-09-041-0/+131
|
* refactoring the grunt work of MessageObject into a private method with a ↵SignpostMarv2012-09-041-0/+5
| | | | UUID argument
* implementing a function to get the number of attachments wornSignpostMarv2012-09-041-0/+38
|
* This partially implements the LSL function to set the responseMic Bowman2012-08-291-1/+17
| | | | | | | | type for an HTTP request. Since the "official" LSL function limits the use of the response type, it is implemented as osSetContentType with a string for the content mime type and a threat level of high. With this function you should be able to implement rather functional media-on-a-prim application with much less difficulty.
* track originating IScriptApi method for SL-like error messages. Will add ↵SignpostMarv2012-08-291-1/+1
| | | | rule number tracking in next commit.
* implementing PRIM_LINK_TARGET on GetPrimParams ala SetPrimParamsSignpostMarv2012-08-251-1/+12
|
* refactoring to local variable for cleaner codeSignpostMarv2012-08-251-2/+5
|
* since we will be making the Get return type the remaining ruleset as with ↵SignpostMarv2012-08-251-1/+1
| | | | the Set return type, we need to move the original return type to a ref param
* renaming to be similar to equivalent Set commandSignpostMarv2012-08-251-2/+2
|
* Revert "implementing function to allow scripts to self-replicate as if the ↵Justin Clark-Casey (justincc)2012-08-241-50/+0
| | | | | | | | owner duplicated them, using the same script delay as llRezObject()" This reverts commit 2ad9d656b3a1a0c519c9599d7680f98eba7e82b8. Reverted pending consideration of associated issues.