aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-02-18Route logins according to Estate, Telehub and TeleportFlagsBlueWall1-2/+4
2012-02-18Propagate our teleport flags on loginsBlueWall1-1/+4
2012-02-18Fix a bug where changing shape parameters of a child prim in a linkset would ↵Justin Clark-Casey (justincc)1-2/+2
not persist. Resolves http://opensimulator.org/mantis/view.php?id=5819
2012-02-17Added the TriggerAvatarAppearanceChanged to EventManager. It's triggered by ↵Dan Lake1-0/+24
AvatarFactoryModule after an avatar's appearance has been succesfully changed and persisted (if the persist option is set).
2012-02-17Add new and updated script eventsRobert Adams2-3/+67
2012-02-17Fix missing telehub handling on loginBlueWall1-0/+21
2012-02-16Fix: Object owned by the group does not return to the last owner ↵PixelTomsen2-2/+2
http://opensimulator.org/mantis/view.php?id=5404
2012-02-16If shape properties fail SOP parsing (e.g. due to commas instead of decimal ↵Justin Clark-Casey (justincc)1-12/+22
points) print out one short message listing the failing node names rather than lots of exceptions. Adds skeleton bad float values deserialization test
2012-02-15In ObjectTortureTests, run garbage collector on Teardown and run scene loop ↵Justin Clark-Casey (justincc)3-7/+47
update when scene objects have been deleted. At least on mono 2.6.4, running GC.Collect() is not guaranteed to force gc of all objects when run in the same method where those objects had references. Therefore, GC.Collect() is now being done in the per-script teardown of ObjectTortureTests. In addition, scene loop update is being run after garbage collection in order to clean out the viewer update list of scene objects in the SceneGraph. These measures mean that scene objects/parts are now garbage collected after a test run if deleted from the scene, resulting in a much better memory usage report (though probably still not very accurate). However, deletion takes a very long time - what's really needed is to find out now why the entire scene isn't being GC'd by this measure. This change hasn't yet been applied to the other stress tests.
2012-02-14Refactor appearance saving for NPC to use AvatarFactoryModule interface.Dan Lake1-0/+1
2012-02-14Add some more data to the new user connection logging for debug purposes.Justin Clark-Casey (justincc)1-3/+3
2012-02-13On object deserialization, go back to logging errors at DEBUG level rather ↵Justin Clark-Casey (justincc)1-5/+9
than ERROR. Restore extra log message if shape processing fails. Logging level was DEBUG before 312e145 (Fri Feb 3 2012). 312e145 also accidentally removed the 'general error' log message if any shape deserialization failed. This commit restores it, though this has no functional impact.
2012-02-11Make ScenePresence.MovementFlag a private only settable value to reduce ↵Justin Clark-Casey (justincc)1-7/+4
complexity of code analysis
2012-02-10Fix bug where somebody taking a copy of an object they didn't own that was ↵Justin Clark-Casey (justincc)1-1/+2
rezzed before the region was restarted would wrongly place the copy in the object owner's inventory. Addresses http://opensimulator.org/mantis/view.php?id=5825
2012-02-10When an asset is uploaded (e.g. a mesh) set individual copy/move/transfer ↵Justin Clark-Casey (justincc)2-0/+11
permissions, not PermissionMask.All Setting PermissionMask.All will cause next permissions to replace current permissions when the object is rezzed, since bit 4 will be set. This is not correct behaviour for a freshly uploaded mesh. Freshly rezzed in-world prims also do not have bit 4 set (don't yet know exactly what this is). Should resolve http://opensimulator.org/mantis/view.php?id=5651
2012-02-09If NPCModule.CreateNPC() fails to create the required ScenePresence (which ↵Justin Clark-Casey (justincc)1-1/+1
should in theory never happen), don't add the NPC to the npc list but return UUID.Zero instead.
2012-02-08Stop a scene object from attempting to link with itself (which results in an ↵Justin Clark-Casey (justincc)4-10/+54
exception and constant complaints in v3 viewers). Aims to address http://opensimulator.org/mantis/view.php?id=5878
2012-02-07Add start GC memory and end GC memory to object stress test printouts.Justin Clark-Casey (justincc)1-1/+2
This illustrates that references to Scene, SOG, etc. are not currently being released when a stress test ends (or at regression test end in general). This means even the current stress tests take much more memory than they need, a problem that will have to be addressed.
2012-02-07Add TestAddTaskInventoryItem()Justin Clark-Casey (justincc)1-1/+25
2012-02-07Remove debug logging if physics actor is null in SOP.ApplyPhysics()Justin Clark-Casey (justincc)1-5/+1
This is not valid in the case of BasicPhysics which can return a null PhysicsActor (though I think it should really return a do-nothing PhysicsActor).
2012-02-07Add a regression test to compile and start a script. Remove ↵Justin Clark-Casey (justincc)1-8/+4
Path.GetDirectoryName when getting assembly loading path in Compiler.CompileFromDotNetText(). The Path.GetDirectoryName call in Compiler.CompileFromDotNetText is unnecessary since AppDomain.CurrentDomain.BaseDirectory is always a directory. Later path concatenation is already done by Path.Combine() which handles any trailing slash. Removing Path.GetDirectoryName() will not affect the runtime but allows NUnit to work since it doesn't add a trailing slash to AppDomain.CurrentDomain.BaseDirectory.
2012-02-05Make configuration uniformBlueWall1-3/+3
Pickup the max physical prim size in Scene to make it uniform since adding code to get default size from the OpenSim*.ini.
2012-02-04change NonPhysicalPrimMax to NonphysicalPrimMax in Scenes.cs to make thenebadon1-1/+1
variable in OpenSim.ini and Regions.ini match
2012-02-04Only look for an uploaded transactional asset in Scene.UpdateTaskInventory ↵Justin Clark-Casey (justincc)3-22/+21
if we have been passed a non-zero transaction ID. This resolves the recent regression from deeb728 where notecards could not be saved in prim inventories. This looks like a better solution than deeb728 since only non-caps updates pass in a transaction ID. Hopefully resolves http://opensimulator.org/mantis/view.php?id=5873
2012-02-03Change SceneObjectSerializer to use common ↵Justin Clark-Casey (justincc)1-74/+29
ExternalRepresentationUtils.ExecuteReadProcessors() methods. Adds ability to submit a customized exception message to match logging.
2012-02-03Check for null scene in ScheduleFullUpdate and ScheduleTerseUpdate before ↵Dan Lake1-4/+7
triggering events on a potentially null Scene
2012-02-02Commenting out new event until I can fix OpenSim tests. Currently, testing ↵Dan Lake1-6/+6
objects does not create a Scene or EventManager so triggering events crashes some tests
2012-02-02OpenSim tests do not always create an EventManager so calls to trigger ↵Dan Lake1-2/+6
events during tests must check for null EventManager
2012-02-02ObjectAddedToScene event should be fired when duplicating objectsDan Lake2-20/+22
2012-02-02Improve reliability of script state saving by covering various savingMelanie2-14/+17
and loading scenarios which resulted in loss of continuity on item ids
2012-02-01Add event RegionHeartbeatEnd for modules interested in coordinating activity ↵Dan Lake2-10/+36
with region heartbeats
2012-02-01Small optimization to last commitMelanie1-5/+5
2012-02-01Fix copy/paste errorsMelanie2-3/+3
2012-02-01Straighten out some attachment mess. Don't save attachment states for HGMelanie1-1/+11
visitors at all. On Leaving a sim, save only the changed ones. Don't save all scripted stuff when leaving a sim.
2012-01-31Implement "show object uuid <uuid>" console command.Justin Clark-Casey (justincc)1-0/+6
This will show details about a part with the given uuid if it's found.
2012-01-31Move object delete commands into a commands region module, in preparation ↵Justin Clark-Casey (justincc)1-104/+0
for adding similar show commands.
2012-01-31Remove scene object null check on SceneGraph.AddSceneObject(). Complain ↵Justin Clark-Casey (justincc)1-1/+7
explicitly if there's an attempt to add any object with a zero UUID. Callers themselves need to check that they're not attempting to add a null scene object.
2012-01-31Add torture tests to test adding 10,000, 100,000 and 200,000 single prim ↵Justin Clark-Casey (justincc)2-0/+8
scene objects. These can be run using the "nant torture" target. They are not part of "nant test" due to their long-run future nature. Such tests are designed to do some testing of extreme situations and give some feedback on memory usage, etc. However, data can be inconsistent due to different machine circumstances and virtual machine actions. This area is under development.
2012-01-30lock SceneObjectGroupsByFullID in SceneGraph.ForEachSOG() to stop failure if ↵Justin Clark-Casey (justincc)1-5/+7
SceneObjectGroupsByFullID is updated elsewhere at the same time.
2012-01-28Add an overloaded SceneObjectPart.UpdateTextureEntry(Primitive.TextureEntry ↵Justin Clark-Casey (justincc)1-4/+12
texEntry) for region modules
2012-01-28Add experimental --publish option to "save oar" so that OARs reloaded to the ↵Justin Clark-Casey (justincc)2-5/+21
same grid don't have the publisher as owner.
2012-01-28Comment out xfer section in Scene.UpdateTaskInventory() which was causing ↵Justin Clark-Casey (justincc)1-13/+20
spurious errors and "script saved" messages when script properties were changed. Viewers since at least Linden Lab 1.23 use the script upload capability to save script changes. It's unknown whether the commented out code was working for very old viewers or not. Code is commented out to reduce complexity and so that useful error messages don't need to be removed. If there is a substantial population using extremely old viewers that can't upgrade to a newer version 1 viewer (e.g. 1.23) or similar TPV then this can be revisited.
2012-01-28Add OS_NPC_SENSE_AS_AGENT option to osNpcCreate().Justin Clark-Casey (justincc)1-1/+33
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-27Implement osNpcGetOwner(key npc):key. This returns the owner for an 'owned' ↵Justin Clark-Casey (justincc)1-1/+1
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-26Support rejecting a teleport if a user is banned in all parcels that haveMelanie1-0/+30
spawn points
2012-01-26Add basic TestAddScript() regression testJustin Clark-Casey (justincc)2-0/+87
2012-01-26refactor: change RezScriptFromAgentInventory(), RezNewScript() and ↵Justin Clark-Casey (justincc)2-31/+34
AddInventoryItem() to accept an agent id rather than a full IClientAPI. This stops some code having to make spurious client == null checks and reduces regression test complexity.
2012-01-25refactor: decompose most of RezScript() into RezScriptFromAgentInventory(), ↵Justin Clark-Casey (justincc)1-79/+95
RezNewScript() and rename one RezScript() to RezScriptFromPrim()
2012-01-24Removed unused delegates in SceneGraph: ObjectDuplicateDelegate, ↵Dan Lake1-6/+0
ObjectCreateDelegate, ObjectDeleteDelegate
2012-01-24Removed unused events in SceneGraph: OnObjectCreate, OnObjectRemove, ↵Dan Lake1-13/+0
OnObjectDuplicate