aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-09-12minor: if the script engine fails to find a prim for a script, also print ↵Justin Clark-Casey (justincc)1-1/+1
out that prim's local id in the error message.
2011-09-09Delay loading scripts until the scene has finished loadingOren Hurvitz1-0/+3
2011-09-01Eliminate pointless checks of SOG.RootPart != nullJustin Clark-Casey (justincc)1-5/+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-2/+2
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-24Fix llAttachToAvatar()Justin Clark-Casey (justincc)1-0/+9
Apart from one obvious bug, this was failing because attempting to serialize the script from inside the script (as part of saving the attachment as an inventory asset) was triggering an extremely long delay. So we now don't do this. The state will be serialized anyway when the avatar normally logs out. The worst that can happen is that if the client/server crashes, the attachment scripts start without previous state.
2011-05-24Create a method to force the script engine to save state from outsideMelanie1-4/+9
2011-05-21Get rid of OpenSim.Tests.Common.Setup subpackage in favour of just ↵Justin Clark-Casey (justincc)1-1/+0
OpenSim.Tests.Common instead
2011-04-30First stab at cleaning up Caps. Compiles. Untested.Diva Canto1-2/+1
2010-09-26Add configurable path to script engine assembliesBlueWall1-10/+17
Adding ability to place script engine assemblies outside the codebase directories. Uses new [XEngine] option: ScriptEnginesPath = "path_to_assemblies" Signed-off-by: Melanie <melanie@t-data.com>
2010-09-12Formatting cleanup.Jeff Ames1-1/+1
2010-08-23Remove various warnings and improve logging messages. No functional changes.Justin Clark-Casey (justincc)1-1/+1
2010-07-20Adding it again.Diva Canto1-28/+36
Revert "Reverting this for now, but this needs to go in again." This reverts commit c0d9ab941dd1ab88f00f6d4f2a53a4fe5c605e57.
2010-07-19Reverting this for now, but this needs to go in again.Diva Canto1-36/+28
Revert "Another stab at http://opensimulator.org/mantis/view.php?id=4858. Eliminated more nested locks." This reverts commit ffbae52a130376ecaa04d7d475709985c62c06ed.
2010-07-19Another stab at http://opensimulator.org/mantis/view.php?id=4858. Eliminated ↵Diva Canto1-28/+36
more nested locks.
2010-07-19One more stab at http://opensimulator.org/mantis/view.php?id=4858.Diva Canto1-33/+33
Eliminated the nested locks of m_Scripts and m_PrimObjects.
2010-07-19Revert "A stab in the dark. Revert the compile lockout temporarily. If you ↵Melanie1-20/+20
know what" This reverts commit f798679b8005e532f933553007cca989112f4a1d.
2010-07-19A stab in the dark. Revert the compile lockout temporarily. If you know whatMelanie1-20/+20
this is, you should test it. If you don't, don't use it.
2010-07-11Remove localID from script controls data. It won't transfer to anotherMelanie1-2/+2
region anyway
2010-07-09Bug in 0.6.9 sometimes restoring script state causes region console to crash ↵unknown1-39/+84
due to unhandled file lock exception. Attempt to resolve by wrapping several instances of file create / read logic in using statements and added some error handling for locked file exceptions. If it is IDisposable, it must be disposed! The close statements are unnecessary but harmless so I have left those in. The end of the using block will close and dispose automagically.
2010-07-01Add region name on the end of script startup debug messagesJustin Clark-Casey (justincc)1-2/+4
2010-06-30Fix scripts in rezzed objects not starting (Mantis #4775)Melanie1-0/+5
2010-06-29Fix the XML serializationt to provide an empty script state element ifMelanie1-4/+28
the script hasn't yet saved state, or can't save state because of a loop
2010-06-09If a script is deleted before it gets compiled, don't even bother to tryMelanie1-0/+19
compiling it
2010-04-19All scripts are now created suspended and are only unsuspended when the objectMelanie1-0/+18
is fully rezzed and all scripts in it are instantiated. This ensures that link messages will not be lost on rez/region crossing and makes heavily scripted objects reliable.
2010-02-15Formatting cleanup.Jeff Ames1-1/+1
2010-01-29Apply http://opensimulator.org/mantis/view.php?id=3334Justin Clark-Casey (justincc)1-1/+6
Send continuous touch() events if the left mouse button is held down while moving over an object This conforms with Linden Lab practice Thanks Revolution
2010-01-25Fix a problem where llDie() calls were sometimes leaving dead objects behind.Justin Clark-Casey (justincc)1-6/+3
When an object was deleted, the remove script instance call was aggregating the scripting events as normal. This would queue a full update of the prim before the viewer was notifed of the deletion of that prim (QuitPacket) On some occasions, the QuitPacket would be sent before the full update was dequeued and sent. In principle, you would think that a viewer would ignore updates for deleted prims. But it appears that in the Linden viewer (1.23.5), a prim update that arrives after the prim was deleted instead makes the deleted prim persist in the viewer. Such prims have no properties and cannot be removed from the viewer except by a relog. This change stops the prim event aggregation call if it's being deleted anyway, hence removing the spurious viewer-confusing update.
2010-01-11Whitespace cleanupMelanie1-10/+10
2010-01-11Adds llRotTarget and the events at_rot_target and not_at_rot_target.Revolution1-8/+14
Signed-off-by: Melanie <melanie@t-data.com>
2010-01-10Adds land collision events.Revolution1-17/+54
CRs cleaned from patch Signed-off-by: Melanie <melanie@t-data.com>
2010-01-04Formatting cleanup. Add copyright headers.Jeff Ames1-1/+1
2009-12-22Remove GetState. It is really unused and was reinstated by the revertMelanie1-7/+0
2009-12-22Revert "Remove an insterface member that was never used"Melanie1-0/+15
It was used. By the API, which is dynamically loaded. So it didn't complain until it hit Bamboo This reverts commit 33d5018e94e52cb875bf43bced623bdc6aa41ef0.
2009-12-22Remove an insterface member that was never usedMelanie1-15/+0
2009-12-22FINALLY! Script compile errors now appear in the script error pane,Melanie1-70/+93
not in a funky debug window.
2009-12-22Add a data path for error messagesroot1-0/+5
Committed from my other box where git is not configured properly Signed-off-by: Melanie <melanie@t-data.com>
2009-12-21Script State Fix: Part 2Melanie1-16/+20
Change the reader to wrap old-style definitions in new style wrappers. Change importer to not check irrelevant data that can't be reconstructed This removes the last bit of knowledge of XEngine's .state files from core.
2009-12-21Remove extra checking on the itemID of saved state, since it changes duringMelanie1-4/+5
rez from inventory.
2009-12-21Script State Fix: Step 1Melanie1-0/+6
Add Engine=xxx attribute and check for it's presence. Ignore state data written bby another engine
2009-11-27minor: remove mono compiler warningJustin Clark-Casey (justincc)1-1/+1
2009-11-26Fix a small bug. Trusted script crossings now work againMelanie1-1/+1
2009-11-26Remove the old (Remoting) region crossing code. Fix the new code toMelanie1-8/+116
pass script state and assembly again properly. Reintroduce respecting tht TrustBinaries flag. Changes the interregion protocol! No version bump because it was broken anyway, so with a version mismatch it will simply stay broken, but not crash. Region corssing still doesn't work because there is still monkey business with both rezzed prims being pushed across a border and attached prims when walking across a border. Teleport is untested by may work.
2009-11-26Remove GetAssemblyName and friends from the SE interface. It's now handledMelanie1-9/+86
internally
2009-11-03Remove parallel loading from XEngine, but retain the new design whereMelanie1-8/+19
all scripts are loaded from the same thread, rather than launching a new one for each script. This is only marginally slower, but avoids the race condition that led to script engine failure.
2009-10-29More performance improvements to XEngine script loadingJohn Hurliman1-42/+25
2009-10-29* Misc. formatting cleanup for the previous patchJohn Hurliman1-9/+9
* Added the new AppDomainLoading variable to the [XEngine] section in the example config
2009-10-29OptimizationsDan Lake1-20/+31
2009-10-17Add support for display of the script compilation errors in the script editor'sMelanie1-13/+32
debug pane. This will still use DEBUG_CHANNEL currently, since it is not fully implemented. This also removes the "Compiled successfully" message that pops up in the viewer.
2009-10-09Apply http://opensimulator.org/mantis/view.php?id=4066Justin Clark-Casey (justincc)1-1/+1
If XEngine compile fails, show script name in error message in-world as well as the exception itself Thanks Luca Peck
2009-10-01Formatting cleanup.Jeff Ames1-4/+4