aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-03-17Add osGetInventoryDesc() as per http://opensimulator.org/mantis/view.php?id=5927Justin Clark-Casey (justincc)1-0/+23
This allows one to get description data for a given prim inventory item. Thanks MarcelEdward and GuduleLapointe!
2012-03-15Adds a new script command 'modInvoke' to invoke registered functionsMic Bowman1-0/+109
from region modules. The LSL translator is extended to generate the modInvoke format of commands for directly inlined function calls. A region module can register a function Test() with the name "Test". LSL code can call that function as "Test()". The compiler will translate that invocation into modInvoke("Test", ...)
2012-03-10Added osGetGridGatekeeperURI()Diva Canto1-0/+14
2012-03-09Use SP.ParentPart instead of ParentID in places where it's more efficient ↵Justin Clark-Casey (justincc)1-17/+7
(saving extra null checks, etc.) However, it looks like we should retain SP.ParentID since it's much easier to use that in places where another thread could change ParentPart to null. Otherwise one has to clumsily put ParentPart in a reference, etc. to avoid a race.
2012-03-09FireAndForget scripted rez - port from AvinationMelanie1-41/+46
2012-03-06Add sensor, dataserver requests, timer and listener counts to "xengine ↵Justin Clark-Casey (justincc)5-12/+96
status" command. This is for diagnostic purposes.
2012-03-02Move SenseRepeaters.Count check inside the SenseRepeatListLock.Justin Clark-Casey (justincc)1-4/+4
No methods in the List class are thread safe in the MS specification/documentation
2012-03-02lock SenseRepeatListLock when added a new sensor during script reconstitution.Justin Clark-Casey (justincc)1-1/+3
This is already being done in the other place where a sensor is added. Adding a sensor whilst another thread is iterating over the sensor list can cause a concurrency exception.
2012-03-01Adds an OSSL command for regular expression-based string replacement. ParametersMic Bowman1-0/+25
are osReplaceString(string source, string patter, string replace, integer count, integer start) The count parameter specifies the total number of replacements to make, -1 makes all replacements.
2012-03-01Fix indexing on string trimBlueWall1-1/+1
Thanks to zadark for pointing this out, smxy for deciphering the ?: operator and Plugh for the fix \o/ yay for IRC
2012-02-25PRIM_SCULPT_FLAG_INVERT, PRIM_SCULPT_FLAG_MIRROR implementedPixelTomsen1-4/+6
http://opensimulator.org/mantis/view.php?id=5763
2012-02-24llGetLinkMedia, llSetLinkMedia, llClearLinkMedia implementation mantis: ↵PixelTomsen1-23/+83
http://opensimulator.org/mantis/view.php?id=5756 http://opensimulator.org/mantis/view.php?id=5755 http://opensimulator.org/mantis/view.php?id=5754
2012-02-24Stop spurious scene loop startup timeout alarms for scenes with many prims.Justin Clark-Casey (justincc)1-1/+3
On the first frame, all startup scene objects are added to the physics scene. This can cause a considerable delay, so we don't start raising the alarm on scene loop timeouts until the second frame. This commit also slightly changes the behaviour of timeout reporting. Previously, a report was made for the very first timed out thread, ignoring all others until the next watchdog check. Instead, we now report every timed out thread, though we still only do this once no matter how long the timeout.
2012-02-24In osSetSpeed(), if no avatar for a uuid is found then don't attempt to set ↵Justin Clark-Casey (justincc)1-1/+3
speed.
2012-02-24llLinkSitTarget implementation http://wiki.secondlife.com/wiki/LlLinkSitTargetPixelTomsen1-5/+27
2012-02-21Fix:LINK_ROOT flag for llGetLinkName() by SinglePrimPixelTomsen1-1/+1
2012-02-17Make osNpcStopAnimation() call AvatarStopAnimation() rather than ↵Justin Clark-Casey (justincc)1-1/+1
AvatarPlayAnimation()
2012-02-16Fix some logic mistakes where firstly osNpcCreate() without options was ↵Justin Clark-Casey (justincc)2-3/+18
creating npcs sensed as agents and secondly the OS_NPC_SENSE_AS_AGENT option was having the opposite effect. Hopefully makes progress on addressing http://opensimulator.org/mantis/view.php?id=5872
2012-02-10Fix an npc delete race condition with LSL sensors where an initial presence ↵Justin Clark-Casey (justincc)1-9/+20
check could succeed but then the npc removed before the subequent npc check. The resulting null would cause an exception. We now check for null before looking at SenseAsAgent. Hopefully fixes http://opensimulator.org/mantis/view.php?id=5872
2012-02-02Replace ParcelAccessEntry with a new struct, LandAccessEntry, which moreMelanie1-31/+68
accurately reflects the data sent by the viewer. Add times bans and the expiration of timed bans. Warning: Contains a Migration (and nuts)
2012-01-31Fix:llSetText - limited text to a maximum of 254 charsPixelTomsen1-3/+3
mantis: http://opensimulator.org/mantis/view.php?id=5867 Signed-off-by: nebadon <michael@osgrid.org>
2012-01-29Fix llEdgeOfWorld functionality - see mantis ↵Garmin Kawaguichi1-1/+1
http://opensimulator.org/mantis/view.php?id=5865 Signed-off-by: nebadon <michael@osgrid.org>
2012-01-28Add OS_NPC_SENSE_AS_AGENT option to osNpcCreate().Justin Clark-Casey (justincc)2-6/+17
This allows NPCs to be sensed as agents by LSL sensors rather than as a specific NPC type (which is currently an OpenSimulator-only extension). Wiki doc on this and other recent NPC functions will follow soon
2012-01-27Increment LPS script stat for OSSL functions that were not already doing thisJustin Clark-Casey (justincc)1-2/+41
2012-01-27Implement osIsNpc(key npc):integer. This return TRUE if the given key ↵Justin Clark-Casey (justincc)1-0/+17
belongs to an NPC in the region. FALSE if not or if the NPC module isn't present.
2012-01-27Implement osNpcGetOwner(key npc):key. This returns the owner for an 'owned' ↵Justin Clark-Casey (justincc)1-0/+21
NPC, the npc's own key for an 'unowned' NPC and NULL_KEY is the input key was not an npc. llGetOwnerKey() could also be extended but this does not allow one to distinguish between an unowned NPC and some other result (e.g. 'no such object' if NULL_KEY is the return. Also, any future extensions to LSL functions by Linden Lab are unpredictable and OpenSim-specific extensions could clash.
2012-01-26llManageEstateAccess implementation ↵PixelTomsen1-0/+69
http://wiki.secondlife.com/wiki/LlManageEstateAccess Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2012-01-25refactor: decompose most of RezScript() into RezScriptFromAgentInventory(), ↵Justin Clark-Casey (justincc)1-1/+2
RezNewScript() and rename one RezScript() to RezScriptFromPrim()
2012-01-25llGetParcelMusicURL implementation ↵Pixel Tomsen1-0/+12
http://wiki.secondlife.com/wiki/LlGetParcelMusicURL Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2012-01-19Add osGetGridHomeURI functionBlueWall1-0/+22
Add osGetHomeURI function to the family of osGetGrid* functions. Returns the SRV_HomeURI setting from the [LoginService] configuration.
2012-01-17Add function osGetGridCustomBlueWall1-1/+28
Add function osGetGridCustom to take an argument for the GridInfo kpv to retrieve from the GridInfoService
2012-01-17Update osGetGrid**** functionsBlueWall1-3/+69
The osGetGrid**** functions will now get the grid settings from the GridInfoService. Set the GridInfoURI in your ./bin/config-include/GridCommon.ini [GridInfo] section.
2012-01-14commented out redundant land owner checks for osTeleportAgent there isnebadon1-14/+24
no need for these checks just use Allow_osTeleportAgent = PARCEL_OWNER also increased function to severe threat level to make it harder to accidently enable it for everyone.
2012-01-14Register the UrlModule for script engine events OnScriptRemoved and ↵Justin Clark-Casey (justincc)1-5/+0
OnObjectRemoved just once in the UrlModule itself, rather than repeatedly for every script. Doing this in every script is unnecessary since the event trigger is parameterized by the item id. All that would happen is 2000 scripts would trigger 1999 unnecessary calls, and a large number of initialized scripts may eventually trigger a StackOverflowException. Registration moved to UrlModule so that the handler is registered for all script engine implementations. This required moving the OnScriptRemoved and OnObjectRemoved events (only used by UrlModule in core) from IScriptEngine to IScriptModule to avoid circular references.
2012-01-13Cleaned up the LookAt code in SOP and SOG. Added support for incrementallyMic Bowman1-4/+4
rotating physical objects. This does not use physics. Currently the rate of change is determined as 1 / (PI * Strength).
2012-01-13Fix llRotLookAt and llLookAt for non-physical objects. Per conversationMic Bowman1-7/+23
with Melanie and Nebadon, SL behavior seems to be that non physical objects snap to the request rotation.
2012-01-13Change the default osNpcCreate() to create an 'owned' npc rather than an ↵Justin Clark-Casey (justincc)1-1/+1
'unowned' one. An owned NPC is one that only the original creator can manipulate and delete. An unowned NPC is one that anybody with access to the osNpc* methods and knowledge of the avatar id can manipulate. This is to correct an oversight I made in the original reimplementation where I mistakenly assumed that avatar IDs could be treated as private. I am not anticipating that many people were deliberately making use of unowned npcs due to their insecure nature. If you do need an unowned NPC please call the new overloaded osCreateNpc() function with the option OS_NPC_NOT_OWNED.
2012-01-13Removing osNpcCreateOwned(). Please use osNpcCreate(string user, string ↵Justin Clark-Casey (justincc)1-6/+0
name, vector position, string notecard, int options) instead with option OS_NPC_CREATOR_OWNED Please note that correct option name is OS_NPC_CREATOR_OWNED not OS_NPC_CREATE_OWNED as mistakenly put in a previous commit.
2012-01-12Add osNpcCreate(string firstname, string lastname, LSL_Vector position, ↵Justin Clark-Casey (justincc)1-0/+6
string notecard, int options) variant. This will be documented soon. Options can currently be OS_NPC_CREATE_OWNED - creates a 'creator owned' avatar that will only respond to osNpc* functions made by scripts owned by the npc creator OS_NPC_NOT_OWNED - creates an avatar which will respond to any osNpc* functions that a caller has permission to make (through the usual OSSL permission mechanisms). options is being added to provide better scope for future extensibility without having to add more functions The original non-options osNpcCreate() function will continue to exist.
2012-01-12Allow all NPCs to show up on sensors as all osNpc* script methods now check ↵Justin Clark-Casey (justincc)1-6/+9
for ownership permission before executing. As per #opensim-dev irc discussion.
2012-01-12Add permissions checks for owned avatars to all other osNpc* functions.Justin Clark-Casey (justincc)1-20/+50
This is being done outside the npc module since the check is meaningless for region module callers, who can fake any id that they like.
2012-01-12refactor: Move existing npc owner checks to NPCModule.CheckPermissions() ↵Justin Clark-Casey (justincc)1-5/+1
methods and expose on interface for external calls.
2012-01-07Fix threat level setting on osNpcPlayAnimationMelanie1-1/+1
2012-01-06fix a typo "osNpcCreated" to "osNpcCreate" in OSSL threat level checknebadon1-1/+1
2012-01-06Fix some syntax issuesMelanie1-2/+2
2012-01-06Add osNpcPlayAnimation and osNpcStopAnimation which respect ownership as wellMelanie1-0/+44
2012-01-06Add osNpcCreateOwned to create an owned NPC. Those can be sensed only by the ↵Melanie2-5/+40
owner, can be destroyed only by the owner and only the owner can save their appearance. Added "NPC" as a flag to llSensor to sense NPCs and exclude them from "AGENT" results.
2012-01-06Fixed llAngleBetween() to allow denormal rotationsJohn Cochran1-5/+9
2012-01-06Add script instruction count back to llRot2Euler. Other minor ↵Justin Clark-Casey (justincc)1-2/+12
formatting/doc changes.
2012-01-06Replaced llRot2Euler function.John Cochran1-18/+13
The original function suffered from unexpected results due to rounding errors. An error of only 1 or 2 ulps would cause the code to not detect a singularity at Y rotation +/- PI/2 and take the non-singularity code path. The replacement code does not suffer from wildly inaccurate results at the +/- PI/2 singularity. The check in the code for the singularity isn't strictly needed, but gives more consistent results At the singularity, the X and Z rotations add. The if check simply forces the X rotation to be zero so the entirety of the X+Z rotation is carried by Z. Additionally, the test code has been updated to include test cases that caused the old code to fail. The test algorithm is also updated to perform a more meaningful test. The original code checked if the values against expected values. This could fail at +/- PI rotations since a rotation around an axis by PI causes the identical effect as a rotation by -PI. The new test code checks that the returned angles can be used to recreate a quaternion that causes the same rotation.