aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-01-23Fix llLookAt the right wayMelanie1-19/+24
2012-01-19Add osGetGridHomeURI functionBlueWall3-0/+28
Add osGetHomeURI function to the family of osGetGrid* functions. Returns the SRV_HomeURI setting from the [LoginService] configuration.
2012-01-17Add function osGetGridCustomBlueWall3-1/+34
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-17Spin off NPC deletion into a thread to avoid it being done on a scriptMelanie1-1/+3
microthread. A stab at fixing exceptions.
2012-01-15Disable using an agent ID to clone NPCs. The griefing potential is too greatMelanie1-7/+7
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-14Fix mergeMelanie1-56/+1
2012-01-14Extend scripts show command to accept a single item UUID parameter to ↵Justin Clark-Casey (justincc)1-40/+47
display one script's status Usage is now scripts show [<script-item-uuid>]
2012-01-14Register the UrlModule for script engine events OnScriptRemoved and ↵Justin Clark-Casey (justincc)2-12/+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)3-12/+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 missing assert to confirm owner delete succeeded to the end of ↵Justin Clark-Casey (justincc)1-0/+2
TestOsNpcRemoveOwned()
2012-01-12Add api level test for removing an owned npcJustin Clark-Casey (justincc)1-2/+55
2012-01-12Fix typoMelanie1-1/+1
2012-01-12Disable unowned NPCsMelanie1-0/+3
2012-01-12Add ossl level test for removing an unowned npcJustin Clark-Casey (justincc)1-0/+115
2012-01-12Add osNpcCreate(string firstname, string lastname, LSL_Vector position, ↵Justin Clark-Casey (justincc)4-0/+15
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-07Fix threat level setting on osNpcPlayAnimationMelanie1-1/+1
2012-01-07Force the group tag of NPCs to "- NPC -" unless the name is completely blank.Melanie1-1/+9
2012-01-06fix a typo "osNpcCreated" to "osNpcCreate" in OSSL threat level checknebadon1-1/+1
2012-01-07Make sure to prefix NPC names with "NPC:" so they can't be mistaken for usersMelanie1-0/+6
2012-01-06Fix some syntax issuesMelanie2-4/+4
2012-01-06Add osNpcPlayAnimation and osNpcStopAnimation which respect ownership as wellMelanie3-0/+56
2012-01-06Add osNpcCreateOwned to create an owned NPC. Those can be sensed only by the ↵Melanie5-6/+48
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-06Fix some syntax issuesMelanie2-4/+4
2012-01-06Add osNpcPlayAnimation and osNpcStopAnimation which respect ownership as wellMelanie3-0/+56
2012-01-06Fixed llAngleBetween() to allow denormal rotationsJohn Cochran2-20/+41
2012-01-06Add script instruction count back to llRot2Euler. Other minor ↵Justin Clark-Casey (justincc)2-16/+32
formatting/doc changes.
2012-01-06Replaced llRot2Euler function.John Cochran2-36/+92
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.
2012-01-06Replaced llRot2Euler function.John Cochran1-18/+79
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.
2012-01-06Add osNpcCreateOwned to create an owned NPC. Those can be sensed only by the ↵Melanie5-5/+45
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-06Add ThreatLevel.NoAccess to OSSL. This allows to enable OSSL without enablingMelanie2-1/+5
any methods, even those without threat, automatically. It is for use with setups wanting to allow only specific methods to specific users.
2011-12-28Introduce a LightShare kill packet ans send it when needed. Currently onlyMelanie1-0/+1
understood by AVN v0.3
2011-12-24Introduce a LightShare kill packet ans send it when needed. Currently onlyMelanie1-0/+1
understood by AVN v0.3
2011-12-24Add PRIM_POS_LOCAL as an alias to PRIM_POSITION for setting the position.Melanie1-0/+9
For SL compatibility only
2011-12-17Make raycast more efficient by checking exclusion flags earlierMelanie1-15/+21
2011-12-17Fix hit testing link sets properly. Fix raycasting for LSL.Melanie3-98/+337
2011-12-12Cleaned up ScenePresence parameters for Flying, WasFlying, FlyingOld and ↵Dan Lake1-3/+1
IsColliding
2011-12-11Mantis 5816: osParseJSON Decoding Problemsnebadon3-191/+72
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-12-09Fix llGetLinkKey to report avatars properlyMelanie1-19/+0
2011-12-07Fix task inventory givingMelanie1-15/+23
2011-12-05Add the proper result code as per the LL announcement for ↵Melanie1-1/+1
llTransferLindenDollars
2011-12-05Fix CHANGED_TEXTURE and CHANGED_COLOR.Melanie1-18/+18