aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-10Fix a regression where objects crossing regions in the same simulator (on ↵Justin Clark-Casey (justincc)5-61/+257
their own or as attachments) with AppDomainLoading = false would create the new state in the source region area rather than the dest. This was beause the code was finding the script DLL compiled for the source region as everything is in the same appdomain and using this as the location for the destination script state, etc. This resolves the regression by passing the proper destination separately from the DLL retrieved. Probably a regression since commit d7b92604 (11 July 2014). Added regression test for this case. At least partly addresses http://opensimulator.org/mantis/view.php?id=7278
2014-12-10Avoid a possible race condition where the XEngine script compile thread ↵Justin Clark-Casey (justincc)1-0/+8
could complete but see OnRezScript() insert a new job and complete before it set m_CurrentCompile = null If the above happened, it would mean the new script would not compile until some script was added for compilation.
2014-12-09In XEngine, enqueue a script rez to the compile queue after setting ↵Justin Clark-Casey (justincc)1-3/+4
m_CompileDict to avoid a rare but not impossible race condition.
2014-12-03minor: If we are recompiling scripts in response to a ScriptStopStrategy ↵Justin Clark-Casey (justincc)1-0/+8
config change (a rare situation), then explicitly log this for debug purposes.
2014-12-03Reintroduce general xengine extra debugging log level. This can be ↵Justin Clark-Casey (justincc)1-31/+32
controlled at runtime with the command "debug xengine log <level>", as with similar commands. If log level is 1 then every script load is logged. This means the <logger name="OpenSim.Region.ScriptEngine.XEngine"> section in OpenSim.exe.config is no longer needed to avoid log spam on regions with many scripts and can be removed.
2014-12-03minor: improve logged error in XEngine.SetXmlState if there was a problem ↵Justin Clark-Casey (justincc)1-1/+2
writing the linemap. The previous error report of already exists is inaccurate since existing files do get overwritten.
2014-12-03Always close script linemap file after reading and always dispose of other ↵Justin Clark-Casey (justincc)2-29/+29
streams in the script engine even if exceptions are thrown.
2014-11-29Correct 690fe0c to actually log the exception reported in ↵Justin Clark-Casey (justincc)1-1/+2
DoOnRezScriptQueue()(and now the scene name).
2014-11-29If there are any exceptions in XEngine.DoOnRezScriptQueue() then log the ↵Justin Clark-Casey (justincc)1-31/+43
error and always set m_CurrentCompile = null Setting m_CurrentCompile = null in the finally block reduces the risk that an exception could permanently stop any future scripts compiling until the simulator is restarted. If an exception is seen from this then please report and further changes to fix the bug or improve compiling reliability can be made.
2014-11-29Remove minor race condition where two threads could race on fields such as ↵Justin Clark-Casey (justincc)1-6/+6
m_ScriptFailCount as set in XEngine.DoOnRezScriptQueue()
2014-11-25refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)1-1/+1
thread and run work in the jobengine from Watchdog to a WorkManager class. This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management. Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget. Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere
2014-11-25Fix compile error from previous 1d56029848e96016b5809f596619e32d0ebcc995Justin Clark-Casey (justincc)1-1/+1
2014-11-25Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵Justin Clark-Casey (justincc)1-0/+47
valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case.
2014-11-25Label all threadpool calls being made in core OpenSimulator. This is to add ↵Justin Clark-Casey (justincc)2-10/+14
problem diagnosis. "show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats.
2014-11-25Add some more llGiveInventory() regression testsJustin Clark-Casey (justincc)1-48/+1
2014-11-25refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)13-14/+0
package rather than some in OpenSim.Tests.Common.Mock the separate mock package was not useful and was just another using line to always add
2014-11-21Remove braindead "fix" that messed up intersim scripted giving.Melanie Thielker1-1/+14
2014-11-20LSL key should be implicitly cast to a boolean valueCinder1-0/+10
Signed-off-by: James Hughes <jamesh@ascent.bluewallgroup.com>
2014-11-19 some steps to rez center or root of prim inventory object at requestedUbitUmarov1-5/+7
position ( does nothing diferent still )
2014-11-18 dont do recoil on llRezObject called from attachments, as seem to happenUbitUmarov1-8/+13
at sl
2014-11-14n llPushObject if pushed object is a avatar use its rotation, not pusherUbitUmarov1-1/+2
rotation
2014-11-11Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵Justin Clark-Casey1-0/+48
valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case.
2014-10-22remove some Xengine errors on scripted object deleteUbitUmarov1-14/+8
2014-10-16Add some more llGiveInventory() regression testsJustin Clark-Casey (justincc)1-0/+71
2014-10-11Change name of just added OSSL osForceSit() to osForceOtherSit()Justin Clark-Casey (justincc)3-11/+12
This is somewhat more in keeping with something like osForceAttachToOtherAvatarFromInventory() and potentially allows a separate osForceSit() command with High threat rather than VeryHigh that only sits the owner and can be enabled without enabling sit of other avatars.
2014-10-11minor: spacing cleanup from previous commit 79a4d1eaJustin Clark-Casey (justincc)1-3/+3
2014-10-11Implements osForceSit(string avatar) & overload osForceSit(string avatar, ↵Vegaslon3-0/+64
string target) Allows a script IN the target prim to force an avatar to sit on it using normal methods as if called by the client. Overload method of osForceSit() to allow a script NOT in the target prim to force an avatar to sit on the target prim using normal methods as if called by the client. This patch is based on previous work from http://opensimulator.org/mantis/view.php?id=4492 and also includes the suggestions from justincc including change of threat level Thank you Christos Lightling.
2014-10-08Change thread of osForceAttachToOvtherAvatarFromInventory to VeryHigh from ↵Justin Clark-Casey (justincc)1-1/+1
Severe It fits much better in this category.
2014-10-04Add LSL transaction_result event.Justin Clark-Casey (justincc)3-10406/+11381
This is cinderblocks' transaction_result.diff from http://opensimulator.org/mantis/view.php?id=7329 but I have used lsl.parser.cs and lsl.lexer.cs files generated directly from opensim-libs rather than those supplied in the patch. I also added scriptEvents.transaction_reuslt. The required parser/lexer generation file changes were made in commit d564f28 in the opensim-libs repo. Thanks!
2014-09-23 populate collision lists with LinkNumber, and detected structure inUbitUmarov1-0/+3
Xengine
2014-09-21remove LockItemsForRead(false) without previus call with trueUbitUmarov2-3/+1
2014-09-17Changes to be committed: modified: ↵Edward1-0/+6
OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs modified: OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs This solves mantis bug# 5005: llRegionSay script does not trigger ChatFromWorld event. This was solved by adding World.SimChat() command to the llRegionSay() function (per suggestion of DrCuriosity). Additionally this fixes llRegionSayTo() which was also not functioning by adding a World.SimChat() command and adding a new SimChatToAgent() overrided function to Scene.PacketHandlers.cs This is the second patch revision. Corrections made to the position of World.SimChat() and removal of tabs per suggestion by justincc.
2014-09-10*TEST* add movement states SIT and SITGROUND. ScenePresence on SIT,UbitUmarov1-13/+17
SITGROUND or STAND, sets directly the state, and desired sitAnimation for default sits
2014-09-09it its a default ( internal ) animation return its name in lower caseUbitUmarov1-1/+1
2014-09-09 remove the check animState == anim for same reasonsUbitUmarov1-16/+10
2014-09-09 look for animation on part inventory before default animations, soUbitUmarov1-4/+7
user can use same name. Search directly on default animations using uppercase.
2014-09-09Plumb the rest of the serverside AOMelanie Thielker3-0/+108
2014-09-09Add some case magic and send an anim pack when an override is setMelanie Thielker1-1/+1
2014-09-09Add perms checkMelanie Thielker1-0/+3
2014-09-09Also check standard anim namesMelanie Thielker1-4/+16
2014-09-09make PERMISSION_OVERRIDE_ANIMATIONS implicit for attachmentsMelanie Thielker1-1/+2
2014-09-09Plumb llSetAnimationOverrideMelanie Thielker4-0/+50
2014-09-08limit number of prims on physical objects. Not all cases covered stillUbitUmarov1-0/+11
2014-09-02Fix recent regression from 473c5594 where camera started to judder on moving ↵Justin Clark-Casey (justincc)1-3/+3
vehicles. Other parts of OpenSimulator are relying on SP.Velocity == 0 for vehicles. So add and use SP.GetWorldVelocity() instead when we need vehicle velocity, along the same lines as existing SP.GetWorldRotation()
2014-08-30As per the LL grid, for attachments make llGetObjectDetails() ↵Justin Clark-Casey (justincc)1-1/+15
OBJECT_VELOCITY return the avatar's velocity and not always Vector3.Zero. This completes http://opensimulator.org/mantis/view.php?id=7177
2014-08-30minor: fix wrong indentation in previous commit 0cc3cdJustin Clark-Casey (justincc)1-1/+1
2014-08-30As per the LL grid, for attachments make llGetObjectDetails() OBJECT_ROT ↵Justin Clark-Casey (justincc)1-4/+13
return the avatar's rotation. This is already the behaviour of OBJECT_POS. Partially satisfies http://opensimulator.org/mantis/view.php?id=7177
2014-08-29Implement STATUS_BLOCK_GRAB_OBJECT in llSetStatus()/llGetStatus() and ↵Justin Clark-Casey (justincc)2-10/+9
correct effect of STATUS_BLOCK_GRAB As per http://wiki.secondlife.com/wiki/LlSetStatus Setting STATUS_BLOCK_GRAB_OBJECT prevents or allows move of a physical linkset by grab on any prim. Setting STATUS_BLOCK_GRAB prevents or allows move of a physical linkset by grab on a particular prim. Previously, setting STATUS_BLOCK_GRAB would prevent drag via all prims of the linkset.
2014-08-18Prevent exception if inventory item in llGiveInventory() call doesn't exist.Kevin Cozens1-0/+1
2014-08-14Added RestrictEmail to make llEmail only send to avatars email address if true.Kevin Cozens1-0/+34