aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-10-02Prevent the ExtraSettings code from crashing SQLite driven sims.Melanie1-0/+6
2012-09-27Add MaxPrimsUndo config setting to [Startup] section of OpenSim.ini.Justin Clark-Casey (justincc)1-3/+2
This controls how many undo steps the simulator will store for each prim. Default is now 20 rather than 5 as it briefly was. The default number could be increased through this is a memory tradeoff which will scale with the number of prims in the sim and level of activity.
2012-09-26Enforce existing 5 action hardcoded undo limit.Justin Clark-Casey (justincc)1-1/+5
This was present in the code but not enforced, which led to a memory leak over time as part properties were changed, whether by viewer, script or another source. This commit enforces that limit, which will soon become configurable. Regression test for undo limit added Should help with http://opensimulator.org/mantis/view.php?id=6279
2012-09-20Make ResendAppearanceUpdates = true by default in [Appearance] in ↵Justin Clark-Casey (justincc)1-0/+2
OpenSimDefaults.ini. This resends appearance uuids to avatars in the scene once a minute. I have seen this help in the past resolve grey appearance problems where viewers have for unknown reasons sometimes ignored the packet. The overhead is very small since only the UUIDs are sent - the viewer then requests the texture only if it does not have it cached. This setting will not help with cloudy avatars which are usually due to the viewer not uploading baked texture data or uploading something that isn't valid JPEG2000
2012-09-18Cleanup from prev. commitBlueWall1-2/+2
Make correct defaults to Phys/nonPhys prims to fix errors in prev. commit
2012-09-18Fix some inconsistencies in configurartion: NonPhys primsBlueWall1-3/+3
Fix inconsistencies between configuration parameter names and their description names. Changing the configuration parameters for non physical prim size min-max from Nonphys* to NonPhys*. Please update your OpenSim.ini and Regions.ini to reflect these changes.
2012-09-17preventing a null reference exception from being thrownSignpostMarv1-0/+3
Signed-off-by: Melanie <melanie@t-data.com>
2012-09-09implementing per-region configuration of limits on the number of prims one ↵SignpostMarv1-0/+11
can have in a linkset Applied with changes - patch was based on a repo different from core Signed-off-by: Melanie <melanie@t-data.com>
2012-09-08refactoring to allow Scene.GetLandData to accept Vector3 as an argument. ↵SignpostMarv1-0/+10
Note that the prior work on LSL_Vector implicit operators means one does not need to explicitly cast a LSL_Vector to Vector3
2012-09-06adding utility method for getting SceneObjectGroup from sceneSignpostMarv1-0/+12
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2012-09-06adding utility method for getting SceneObjectPart from sceneSignpostMarv1-0/+12
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2012-08-24If a connecting scene presence is replacing an existing scene presence then ↵Justin Clark-Casey (justincc)1-1/+1
bypass close checks.
2012-08-20Add --force flag to "kick user" console command to allow bypassing of recent ↵Justin Clark-Casey (justincc)1-3/+6
race condition checks. This is to allow a second attempt to remove an avatar even if "show connections" shows them as already inactive (i.e. close has already been attempted once). You should only attempt --force if a normal kick fails. This is partly for diagnostics as we have seen some connections occasionally remain on lbsa plaza even if they are registered as inactive. This is not a permanent solution and may not work anyway - the ultimate solution is to stop this problem from happening in the first place.
2012-08-15enables configurable minimum sizes for physical & non-physical primsSignpostMarv1-1/+30
2012-08-15Add support for the extra params to scene and the event managerMelanie1-0/+39
2012-08-15Add a skeleton for a name value storage associated with regionsMelanie1-0/+4
2012-08-14Lay some groundwork for temp attachments. Decouple attachments from inventory.Melanie1-1/+1
2012-08-03Move previously unadvertised SendPeriodicAppearanceUpdates setting from ↵Justin Clark-Casey (justincc)1-1/+7
[Startup] to [Appearance] config section. Add description and default of false (as before) to OpenSimDefaults.ini If set to true, this config switch will resend avatar appearance information (a small amount of UUID data, not the baked textures themselves) to other avatars in the sim every 60 seconds. For me, this has helped with situations where avatars appear persistently grey - the LL viewer sometimes did not appear to request assets the first time the appearance data was sent. However, this switch will not help with other appearance failure situations (e.g. failure to bake assets). This setting is experimental but will not have any significant impact on the simulator if turned to true.
2012-08-01Create the ability for physics modules to request assets on demand byMelanie1-0/+16
themselves. For that, the physics module simply calls RequestAssetMethod, which in turn points to Scene.PhysicsRequestAsset. This gives physics access to the asset system without introducing unwanted knowledge of the scene class.
2012-07-27Avoid a race condition between the scene shutdown thread and the update ↵Justin Clark-Casey (justincc)1-3/+5
thread since commit c150320 (Thu Jul 26 15:27:18 2012) c150320 started explicitly disposing of the physics scene and nulling it out on region shutdown. However, the update loop may not have yet checked Scene.ShuttingDown, particularly if avatars were not in the scene, causing failure when it tried to lookup time dilation. This commit moves the setting of m_shuttingDown above the existing 500ms pause to notify avatars that they are being kicked. This should not affect the few other places that use this flag.
2012-07-26Add a Dispose() of the physics engine when a scene is being shutdown.Robert Adams1-0/+9
2012-07-25Move Watchdog and MemoryWatchdog classes into OpenSim.Framework.Monitoring ↵Justin Clark-Casey (justincc)1-0/+1
with other monitoring code from OpenSim.Framework
2012-07-25Make SceneManager.OnRegionsReadyStatusChange event available.Justin Clark-Casey (justincc)1-2/+2
This is fired when all regions are ready or when at least one region becomes not ready. Recently added EventManager.OnRegionReady becomes OnRegionReadyStatusChange to match OnLoginsEnabledStatusChange
2012-07-23Change attachment handling to remove object from the scene first as perMelanie1-11/+1
justincc's original work. Sample scripts before doing so. Also refactor some crucial common code and eliminate parameters that were only ever used with the same constant value.
2012-07-19Prevent race conditions between two threads that call LLClientView.Close() ↵Justin Clark-Casey (justincc)1-3/+3
simultaneously (e.g. ack timeout and an attempt to reconnect)
2012-07-19Add TestCreateDuplicateRootScenePresence() regression test.Justin Clark-Casey (justincc)1-0/+17
2012-07-19Add EventManager.OnRegionLoginsStatusChange fired whenever logins are ↵Justin Clark-Casey (justincc)1-5/+5
enabled or disabled at any point, not just during initial startup. This replaces EventManager.OnLoginsEnabled which only fired when logins were first enabled and was affected by a bug where it would never fire if the region started with logins disabled.
2012-07-18Add back notification to neighbouring regions when RegionReadyModule is not ↵Justin Clark-Casey (justincc)1-0/+3
active accidentally just removed in 528004d
2012-07-18Perform other region ready actions even if simulator is configured to leave ↵Justin Clark-Casey (justincc)1-19/+18
logins disabled on startup.
2012-07-18Fix bug where region ready was being triggered twice in quick succession if ↵Justin Clark-Casey (justincc)1-9/+12
a region contained no scripts.
2012-07-18Establish EventManager.OnRegionReady event. This will only be triggerred ↵Justin Clark-Casey (justincc)1-0/+1
once when the region is ready. Switch MapImageServiceModule to use this.
2012-07-18Pass entire scene object in OnLoginsEnabled event rather than just the ↵Justin Clark-Casey (justincc)1-1/+1
region name. This saves listeners from having to re-retrieve the scene from their own lists, which won't work anyway if multiple regions with the same name have been allowed
2012-07-18Close() the ScenePresence after we've removed it from the scene graph, to ↵Justin Clark-Casey (justincc)1-10/+16
cut down race conditions when another thread manages the grab the presence after some SP structures have been reset.
2012-07-12Change very recent AllowedViewerList and BannedViewerList config setting ↵Justin Clark-Casey (justincc)1-4/+4
names in OpenSim.ini.example to AllowedClients and BannedClients to match long-existing settings in [LoginService] Also changes separator from comma to bar to match existing [LoginService] config features. Divergence of config names for identical facilities in different places makes for an unnecessarily confusing user experience.
2012-07-10When an attachment is detached to inv or derezzed, stop the scripts, update ↵Justin Clark-Casey (justincc)1-1/+18
the known item with script state still in the script engine and then remove the scripts. This is to fix a regression starting from 5301648 where attachments had to start being deleted before persistence in order to avoid race conditions with hud update threads.
2012-07-07Remove redundant SetScene() function in Scene.AddSceneObject()Justin Clark-Casey (justincc)1-2/+0
This is always done later on in SceneGraph.AddSceneObject() if the call hasn't failed due to sanity checks. There's no other purpose for this method to exist and it's dangerous/pointless to call in other conditions.
2012-07-06Remove now duplicate interregion object check that should have been removed ↵Justin Clark-Casey (justincc)1-12/+0
a few commits ago in 43a2da9
2012-07-06Add assert to attachment regression tests to check that number of objects in ↵Justin Clark-Casey (justincc)1-0/+11
the scene graph
2012-07-06Pull prim crossing/teleport checks up into Scene.IncomingCreateObject() from ↵Justin Clark-Casey (justincc)1-14/+27
Scene.AddObject() Only IncomingCreateObject() needs these checks. General object adding does not need to perform crossing perm checks
2012-07-03Correct spelling mistake m_BanedViewers to m_BannedViewersJustin Clark-Casey (justincc)1-4/+4
2012-07-02Adds a list of viewers that are allowed or banned from the region.Michelle Argus1-0/+65
Signed-off-by: Melanie <melanie@t-data.com>
2012-06-30Removing unused handling of incoming create object by userID and itemID only.Justin Clark-Casey (justincc)1-22/+0
It appears this was never actually used since attachments were rezzed in other code. This was never available on remote simulator comms, only local.
2012-06-30Remove code listed for removal in 0.7.3 that handled script restart for ↵Justin Clark-Casey (justincc)1-16/+0
incoming attachments from pre-fatpack regions (versions of OpenSimulator more than a year old)
2012-06-29Add IScene.Name for code clarity to replace the RegionInfo.RegionName used ↵Justin Clark-Casey (justincc)1-26/+24
in many, many log messages.
2012-06-25When attachments are being saved and deleted for a closing root agent, ↵Justin Clark-Casey (justincc)1-11/+13
delete first to avoid a hud race condition with update threads. If delete doesn't occur first then the update thread can outrace the IsAttachment = false necessary to save attachments and send hud artifacts to other viewers.
2012-06-20If RegionReady is active, don't falsely say that logins are enabled in the ↵Justin Clark-Casey (justincc)1-2/+2
main scene loop before RegionReady is signalled when initial script compilation finishes. Also raises this logging level to Info from Debug since this information is of high importance. This matches the behaviour of the RegionReady module
2012-06-12In PresenceDetector.OnConnectionClose(), use the IsChildAgent check already ↵Justin Clark-Casey (justincc)1-4/+3
available on IClientAPI.SceneAgent rather than retrieving it again by scanning all scenes.
2012-06-08Don't make duplicate call to ScenePresence.Close() separately in ↵Justin Clark-Casey (justincc)1-79/+70
ETM.DoTeleport() if an agent needs closing. This is always done as part of Scene.RemoveClient() Also refactors try/catching in Scene.RemoveClient() to log NREs instead of silently discarding, since these are useful symptoms of problems.
2012-06-08Remove duplicate update of user count in Scene.IncomingCloseAgent()Justin Clark-Casey (justincc)1-10/+0
This is already done in Scene.RemoveClient() which IncomingCloseAgent() always ends up calling.
2012-06-08Fix bug with "kick user" reducing agent counts by 2 instead of 1.Justin Clark-Casey (justincc)1-14/+17
This is done by making the kick user command call IClientAPI.Close() rather than routing through Scene.IncomingCloseAgent(), which also called IClientAPI.Close() DisableSimulator for child agents is moved from IncomingCloseAgent() to RemoveClient(), this is not a functional change since IncomingCloseAgent() always ends up calling RemoveClient()