aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-07-04refactor: In llRemoveInventory() use existing GetInventoryItem() method ↵Justin Clark-Casey (justincc)1-14/+9
rather than have it iterate through TaskInventory itself.
2012-07-04refactor: make llGiveInventory() use existing GetInventoryItem() method ↵Justin Clark-Casey (justincc)1-24/+11
rather than iterate through TaskInventory itself.
2012-07-01Add preservation of running state of scripts when drag-copying.Melanie1-0/+12
2012-06-28Change AttachmentsModule.DetachSingleAttachmentToInv() to accept a SOG ↵Justin Clark-Casey (justincc)1-9/+6
directly instead of an item ID to then shuffle through attachments, saving CPU busywork. Almost all callers already had the sog to hand. Still checking that it's really an attachment, but now by inspecting SOG.AttachedAvatar
2012-06-28If rest of first line after colon is blank then still warn about running in ↵Justin Clark-Casey (justincc)1-11/+18
XEngine if engine specified does not exist. This is to take account of situations where the user was intending to specify a script engine using colon using its default language. This probably generates few false positive as scripts are less likely to end a first line colon with a comment for other purposes.
2012-06-28Avoid reporting false positives when a colon is in a comment in the first ↵Justin Clark-Casey (justincc)1-17/+41
line of a script where the user was not trying to select a different script engine. This works by only posting the "Selected engine unavailable" message if we're falling back on XEngine and the language is one handled by XEngine. In cases where the language is not handled or not allowed, the user will still be notified by the later compiler error. This avoids the overwhelming majority of false positives where the first line contains a : for other reasons (e.g. source control systems, vim settings, etc.) Ultimately, I think it would be better to detect script language/engine with a mechanism that didn't just rely on : detection (e.g like #! in unix scripts).
2012-06-28minor: reuse colon index calculation in XEngine.OnRezScript. The index if a ↵Justin Clark-Casey (justincc)1-2/+2
colon is found on the first line will always be the same as for the whole script.
2012-06-26Add stub for llCastRayBlueWall1-0/+5
2012-06-23Fix script "Running" behaviorBlueWall4-0/+37
Unchecking "Running" box in script editor now persists. This fixes http://opensimulator.org/mantis/view.php?id=6057
2012-06-22Avoid race condition between m_PrimObjects iteration in ↵Justin Clark-Casey (justincc)1-14/+14
XEngine.PostObjectEvent and places where the list is modified by extending the m_PrimObjects lock.
2012-06-22If starting scripts on initial sim start, provide INFO level log feedback ↵Justin Clark-Casey (justincc)1-6/+10
each time 50 scripts have been started. This is to provide an indication of what's happening now that the default isn't to report every single script start. Changes XEngine logging level in OpenSim.exe.config from WARN to INFO.
2012-06-22Eliminate unnecessary extra call to TriggerEmptyScriptCompileQueue in ↵Justin Clark-Casey (justincc)1-9/+2
XEngine.DoOnRezScriptQueue() The later invocation of this function will happen on an empty compile queue.
2012-06-21Add item id, name, prim name and id to log message when state exists but ↵Justin Clark-Casey (justincc)1-5/+5
loading fails. Drop logging about memory limit exceeded to warn from error
2012-06-21Retrigger build - last jenkins run was glitchedJustin Clark-Casey (justincc)1-1/+2
2012-06-21Add state file location to errors logged when there's some issue with ↵Justin Clark-Casey (justincc)1-4/+4
retrieving state (e.g. exceeds memory limit)
2012-06-20Comment out recently added log message detailing number of scripts started ↵Justin Clark-Casey (justincc)1-2/+2
when compile queue empties for now
2012-06-20Raise some IO associated Exception logging in XEngine to error level, in ↵Justin Clark-Casey (justincc)1-7/+5
line with other similar cases. Remove more unnecessary Close() calls - these are being triggered by the Dispose() called when exiting the using statement for these sdk io objects.
2012-06-20Log how many scripts are candidates for starting and how many are actually ↵Justin Clark-Casey (justincc)1-4/+60
started. Adds DebugLevel infrastructure to XEngine though currently commented out and unused.
2012-06-19Like the assembly and text files, only write the c#-lsl linemap in ↵Justin Clark-Casey (justincc)1-27/+27
XEngine.SetXMLState() if the trust binaries flag is set. This doesn't affect other locations where the map is written, such as on script compilation.
2012-06-19minor: Add a little more detail to IOException logging in XEngine.SetXMLState()Justin Clark-Casey (justincc)1-11/+14
Also removes superflous Close() commands for statements taking place within using() constructs Also adds some comment out debug log messages for future use.
2012-06-13In the osGetGrid functions, if the [GridInfo] section does not exist then ↵Justin Clark-Casey (justincc)1-1/+6
return "Configuration Error", as already happens if there is no GridInfoURI
2012-06-13Committing the Avination implementation of llCastRay. This is a complete rewriteMelanie1-100/+345
wich does it's thing independently of physics. Enjoy!
2012-06-11Revert "Bind ~ and ! operators in LSL tighter in order to resolve issues in ↵Justin Clark-Casey (justincc)1-3956/+3978
LSL where these aren't evaluated propertly." This reverts commit a8a9d13dc07bc9e23ebf439cbea5ece6ae002315. Accidentally committed, this patch might not be the correct approach.
2012-06-11Commitig the Avination implementation of llTeleportAgent andMelanie3-0/+106
llTeleportAgentGlobalCoords. These do NOT use PERMISSION_TELEPORT like their SL counterparts because that permission is not yet understood by TPVs based on v1.x.
2012-06-09Bind ~ and ! operators in LSL tighter in order to resolve issues in LSL ↵Justin Clark-Casey (justincc)1-3978/+3956
where these aren't evaluated propertly. Addresses http://opensimulator.org/mantis/view.php?id=3268
2012-06-05Remove unused ScenePresence list structure in llGetAgentList()Justin Clark-Casey (justincc)1-1/+0
2012-05-26minor: code formatting from 0b72f773Justin Clark-Casey (justincc)1-12/+11
2012-05-26Mantis 6025 llRequestPermissions auto grant for NPCs.Talun1-1/+23
If the script requesting permissions is owned by either the NPC or the NPCs owner (if the NPC is created as owned) then grant any permissions automatically.
2012-05-26One can now get hyoergrid region co-ordinates with llRequestSimulatorDataBlake.Bourque1-5/+21
2012-05-26Use GetInventoryItem() in LSL_Api.InventoryKey(string name, int type).Justin Clark-Casey (justincc)1-17/+7
Also removes small bug where calling this method would add 1 to LPS, evne though all callers already did this.
2012-05-26Use SceneObjectPartInventory.GetInventoryItem() in OSSL.AvatarStopAnimation ↵Justin Clark-Casey (justincc)1-14/+12
instead of searching the task inventory manually.
2012-05-26refactor: replace LSL_Api.InventoryKey(string) largely with ↵Justin Clark-Casey (justincc)1-37/+15
SceneObjectPartInventory.GetInventoryItem(string) Also gets llStopAnimation() to call KeyOrName rather than duplicating logic.
2012-05-25Mantis 6028 osAvatarStopAnimation not stopping animations via UUIDTalun1-7/+11
Corrected to stop animations using the animation UUID similar to llStopAnimation. See http://opensimulator.org/wiki/OsAvatarStopAnimation
2012-05-23Fix llGetSimulatorHostname to return configured hostnameBlueWall1-1/+2
2012-05-15Port Avination's collision fixes to core.Melanie1-10/+11
2012-05-13Modifications for SMTP in OpenSimulator. Email size limit was fixed (was out ↵Chris Koeritz1-7/+21
of step with documentation at 1024, so boosted to 4096). Added configuration item for maximum email size. Redundant sleep inside email module was fixed (LSL Api was already sleeping). Added sleep time configuration item for snooze between email sending for LSL Api. Added two new configuration items (email_max_size and email_pause_time) into the example OpenSim.ini, plus fixed a spelling error (llimits) and odd tabbing. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2012-05-09Mantis 6015 new LSL function llGetAgentList.Talun4-0/+96
Details in the lsl wiki
2012-05-08Add automated TestllBreakLink()Justin Clark-Casey (justincc)1-0/+27
2012-05-08Add automated TestllCreateLink()Justin Clark-Casey (justincc)1-0/+112
2012-05-08refactor: Eliminate local id parameter from api initialize.Justin Clark-Casey (justincc)10-46/+36
This is always available from m_host.LocalId
2012-05-08Instead of constantly looking up unchanging self item in script code, pass ↵Justin Clark-Casey (justincc)10-190/+145
in self item on initialization.
2012-05-07For osGetGridNick(), osGetGridName(), osGetGridLoginURI() and ↵Justin Clark-Casey (justincc)1-8/+10
osGetGridCustom(), try to read from the [GridInfoService] section on standalone rather than [GridInfo] [GridInfoService] is the section that's actually in bin/config-include/StandaloneCommon.ini.example
2012-05-07remove default values from prior commit since mono cant deal with themdahlia1-1/+1
2012-05-06add OS_NPC_RUNNING option to osNpcMoveToTarget() to allow running speed for ↵dahlia2-1/+3
moving NPCs
2012-05-03Fixes Mantis #5999. llSetLinkPrimitiveParams with PRIM_BUMP_SHINY did cause ↵Snoopy Pfeffer1-1/+1
a runtime error.
2012-04-30llGenerateKey implementation. Creates a random UUID I.E: ↵TBG Renfold3-0/+13
UUID.Random().ToString(); Signed-off-by: TBG Renfold <tbg.renfold@g2mv.co.uk>
2012-04-27minor: style adjustments in SensorRepeat, mainly related to patch from stoehrJustin Clark-Casey (justincc)1-3/+4
2012-04-27Fixing wrong position of llSensor, SensePoint wasnt following the rotation ↵Stefan_Boom1-8/+22
of the root prim.
2012-04-27Add regression test for teleporting an agent between separated regions on ↵Justin Clark-Casey (justincc)5-6/+6
the same simulator. This involves a large amount of change in test scene setup code to allow test scenes to share shared modules SetupScene is now an instance method that requires an instantiation of SceneHelpers, though other SceneHelpers methods are still static May split these out into separate classes in the future.
2012-04-26OSSL: Removed check for CanRunConsoleCommand() in osKickAvatar.Oren Hurvitz1-13/+12
OSSL permissions are now controlled in OpenSim.ini.