aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-01-06Add ThreatLevel.NoAccess to OSSL. This allows to enable OSSL without enablingMelanie1-1/+4
any methods, even those without threat, automatically. It is for use with setups wanting to allow only specific methods to specific users.
2011-12-11Mantis 5816: osParseJSON Decoding Problemsnebadon1-191/+65
osParseJSON uses hand-crafted decoding that has two issues * does not seem to handle top-level JSON lists * does not seem to handle unicode text thanks otakup0pe!
2011-11-03Rename ForEachAvatar back to ForEachScenePresence. The other changesDan Lake1-3/+3
from previous commit which sort out which iterator is used are left intact. A discussion is needed as to what constitutes an avatar vs a ScenePresence.
2011-11-03Renamed ForEachRootScenePresence to ForEachAvatar. Cleaned up calls toDan Lake1-3/+3
the 3 iteration functions so more of them are using the correct iteration for the action they are performing. The 3 iterators that seem to fit all actions within OpenSim at this time are: ForEachAvatar: Perform an action on all avatars (root presences) ForEachClient: Perform an action on all clients (root or child clients) ForEachRootClient: Perform an action on all clients that have an avatar There are still a dozen places or so calling the old ForEachScenePresence that will take a little more refactoring to eliminate.
2011-10-29Remove completely unused SOG.Rotation parameterJustin Clark-Casey (justincc)1-1/+1
We always use SOP.Rotation instead
2011-10-27Continuation of previous checkin. Found more places where ↵Dan Lake1-15/+9
ForEachScenePresence can be changed to ForEachRootScenePresence.
2011-10-26Added optional owner classes to existing OSSL agent PermissionsMichelle Argus1-6/+61
PARCEL_GROUP, PARCEL_OWNER, ESTATE_MANAGER and REGION_OWNER can be combined with the existing agent uuid option to limit ossl functions to agents and owner classes. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-10-19Renamed and rearranged AvatarFactoryModule to eliminate redundant lookups of ↵Dan Lake1-1/+1
scene presence by client ID.
2011-10-17Implement osNpcStand(<npc-id>)Justin Clark-Casey (justincc)1-0/+11
Allows you to stand an NPC that has sat.
2011-10-17Implement osNpcSit(). This is still in development so don't trust itJustin Clark-Casey (justincc)1-0/+11
Format is osNpcSit(<npc-uuid>, <target-uuid>, OS_NPC_SIT_IMMEDIATE) e.g. osNpcSit(npc, llGetKey(), OS_NPC_SIT_IMMEDIATE); At the moment, sit only succeeds if the part has a sit target set. NPC immediately sits on the target even if miles away - they do not walk up to it. This method is in development - it may change so please don't trust it yet. Standing will follow shortly since that's kind of important once you're sitting :)
2011-10-11osSetParcelDetails - PARCEL_DETAILS_CLAIMDATEPixel Tomsen1-21/+28
this new flag set parcels claim date value 0 for this flag set current unixstamp http://opensimulator.org/mantis/view.php?id=5725
2011-10-10Convert getLastReportedSimFPS() and getLastReportedSimStats() into more ↵Justin Clark-Casey (justincc)1-1/+1
idiomatic LastReportedSimFPS and LastReportedSimStats on SimStatsReporter
2011-10-10refactor: have lsl and ossl interrogate scene.StatsReporter directly rather ↵Justin Clark-Casey (justincc)1-1/+1
than going through scene I know this goes against the law of demeter but I don't think it's that useful here and I'd rather get rid of nasty little wrapper methods
2011-09-07When invoking any of the OSSL teleport functions, do it on a separate thread ↵Justin Clark-Casey (justincc)1-6/+13
rather than the script thread. This is to prevent the aborting of attachment script threads on teleport from aborting the one actually doing the teleport. This allows OSSL teleport functions to work when invoked on scripts in attachments (and huds, I assume)
2011-09-01Eliminate pointless checks of SOG.RootPart != nullJustin Clark-Casey (justincc)1-2/+1
It's never possible for SOG to have no RootPart, except in the first few picosends of the big bang when it's pulled from region persistence or deserialized
2011-09-01Remove pointless cluttering SOP.ParentGroup != null checks.Justin Clark-Casey (justincc)1-7/+3
The only times when ParentGroup might be null is during regression tests (which might not be a valid thing) and when scene objects are being constructed from the database. At all other times it's not possible for a SOP not to have a SOG parent.
2011-08-12tidy up some OSSL NPC parameter namesJustin Clark-Casey (justincc)1-21/+21
2011-08-12rename position parameter in osNpcMoveToTarget to targetJustin Clark-Casey (justincc)1-2/+2
2011-08-12rename osNpcStopMoveTo() to osNpcStopMoveToTarget()Justin Clark-Casey (justincc)1-1/+1
2011-08-12Allow the osNpcCreate() function to accept a notecard name or asset for ↵Justin Clark-Casey (justincc)1-4/+24
initial appearance
2011-08-11implement osNpcGetPos()Justin Clark-Casey (justincc)1-0/+21
2011-08-11implement osNpcGetRot() and osNpcSetRot()Justin Clark-Casey (justincc)1-4/+53
Rotation works if done around the z axis. Anything else leads to random results.
2011-08-11Implement osAgentSaveAppearance() to save the appearance of an avatar in the ↵Justin Clark-Casey (justincc)1-4/+31
region to a notecard This is separate from osOwnerSaveAppearance() so that owner saves can be allowed without allowing arbitrary avatar saves
2011-08-11add regression test for osNpcCreate when cloning an in-region avatarJustin Clark-Casey (justincc)1-1/+5
2011-08-11only accept npc UUIDs to osNpc* functions, not names (except for create)Justin Clark-Casey (justincc)1-15/+11
2011-08-11Get NPCs to revert to the correct 'resting' animation (e.g. stand or hover) ↵Justin Clark-Casey (justincc)1-1/+1
after finishing their movement. This also fixes judder after an avatar has finished "go here"/autopilot movement in a viewer. This meant reseting the SP.AgentControlFlags since the Animator uses these to determine the correct default animation.
2011-08-10Add a OS_NPC_LAND_AT_TARGET option to osMoveToTarget()Justin Clark-Casey (justincc)1-3/+8
Default for this function is now not to automatically land. This allows better control by scripts when an avatar is going to be landing on a prim rather than the ground. Stopping the avatar involves faking a collision, to avoid the pid controller making it overshoot. A better approach would be to gradually slow the avatar as we near the target
2011-08-10fly and no fly constants for osNpcMoveToTarget()Justin Clark-Casey (justincc)1-1/+1
2011-08-10early code to allow scripts to force npcs not to fly when moving to targetJustin Clark-Casey (justincc)1-1/+13
this is to allow walking on prims. it will be up to the script writer to be sure that there is a continuous path. currently implemented in osNpcMoveToTarget(), but none of this is final.
2011-08-10implement osNpcStopMoveTo() to cancel any current move targetJustin Clark-Casey (justincc)1-0/+9
2011-08-09Add osOwnerSaveAppearance() to help with setting up NPC appearances. Not ↵Justin Clark-Casey (justincc)1-10/+41
yet ready for user use. Adds regression test.
2011-08-09Implement first draft functions for saving and loading NPC appearance from ↵Justin Clark-Casey (justincc)1-13/+91
storage. This works by serializing and deserializing NPC AvatarAppearance to a notecard in the prim inventory and making the required baked textures permanent. By using notecards, we avoid lots of awkward, technical and user-unfriendly issues concerning retaining asset references and creating a new asset type. Notecards also allow different appearances to be swapped and manipulated easily. This also allows stored NPC appearances to work transparently with OARs/IARs since the UUID scan will pick up and store the necessary references from the notecard text. This works in my basic test but is not at all ready for user use or bug reporting yet.
2011-08-09factor out common notecard caching code from 3 methods.Justin Clark-Casey (justincc)1-93/+74
2011-08-08refactor: split out generic parts of osMakeNotecard() into a separate. Add ↵Justin Clark-Casey (justincc)1-58/+99
method doc. Other minor tidies.
2011-08-03rename NPC.Autopilot to NPC.MoveToTarget internally. Add method doc to ↵Justin Clark-Casey (justincc)1-1/+1
INPCModule
2011-07-09Fix osMatchString() so that it reports all instance of pattern matches, not ↵Justin Clark-Casey (justincc)1-3/+3
just the first one. This is a slight adaptation of the patch in http://opensimulator.org/mantis/view.php?id=4568 which doesn't apply directly since the underlying code was changed by earlier makopoppo patches. Thanks makopoppo!
2011-07-09Instance-types-in-list fix for LSL/OSSL functions. This will fix ↵Makopoppo1-6/+7
llListFindList() which always returns -1 when you compare with the list from those functions. *llCSV2List *llGetAnimationList *llGetLinkPrimitiveParams *llGetObjectDetails *llGetParcelDetails *llGetParcelPrimOwners *llGetPrimitiveParams *GetLinkPrimitiveParamsEx *osGetAgents *osMatchString *osGetLinkPrimitiveParams *osGetPrimitiveParams *osGetAvatarList
2011-07-02Create a very basic initial test which just creates an 'npc' and tests that ↵Justin Clark-Casey (justincc)1-1/+0
the scene presence exists
2011-06-28[PATCH 2/2] [FIX] osGetPrimitiveParams() and osSetPrimitiveParams()Makopoppo1-0/+2
crashes throwing System.NullReferenceException Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-06-28[PATCH] osSetSpeed() will accept float numberMakopoppo1-2/+2
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-06-28[PATCH] Get osGetWindParam() and osSetWindParam() accessibleMakopoppo1-3/+3
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-06-28[PATCH 1/2] Fixed the function names of some OSSL functions shown asMakopoppo1-3/+3
threat-level check error message Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-02-17Add support for new naming syntax of linked regions to osTeleportAgent and ↵Marck1-15/+2
osTeleportOwner.
2011-02-17Make osTeleportOwner work in foreign regions by relaxing the restrictions on ↵Marck1-9/+14
teleporting an agent.
2011-02-12minor: add comment explaining that GetRegionsByName needs to stay in ↵Justin Clark-Casey (justincc)1-0/+2
TeleportAgent for its side effects.
2011-02-05For now, reinstate the call to World.GridService.GetRegionsByName() ↵Justin Clark-Casey (justincc)1-1/+3
commented out in 933f47e Even though we don't use the results, just getting the regions may have side effects in making hypergrid links available for the later World.RequestTeleportLocation()
2011-01-28Comment out unused call to GridService in TeleportAgent()Justin Clark-Casey (justincc)1-1/+1
2010-12-20Fix osTeleportAgent and osTeleportOwner for the case that GridService is ↵Marck1-11/+5
used with a storage provider other than NullRegionData.
2010-12-13Revamp the viewer -> banlist packet processing so fix a number of bugs.Melanie1-1/+1
Remove the too coarse CanEditParcel method in favor of a CanEditParcelProperties method that takes a GroupPowers argument to specify what action is to be taken. Also, make the method to set parcel data much more granular. Permissions in a deeded setting should now work.
2010-12-11More OSSL function name normalization, this time for osParcelSetDetails.Marck1-3/+15