aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed: the parcel flag "Allow Scripts from Group" should only check if the ↵Oren Hurvitz2014-04-201-19/+8
| | | | | | parcel has a Group set; it doesn't have to be *deeded* to the group Also some cleanup of the use of Group ID's (with no change to functionality).
* In teleports, pass the source region to the destination (similar to an HTTP ↵Oren Hurvitz2014-04-091-5/+8
| | | | referrer)
* When sending QueryAccess to a region, also send the user's Home URIOren Hurvitz2014-04-071-2/+3
|
* Refactored: use Scene.GetAgentHomeURI() to get the Home URI of a userOren Hurvitz2014-04-071-0/+12
|
* minor: Add some doc to Scene.Backup() detailing its direct invocation if the ↵Justin Clark-Casey (justincc)2014-03-261-1/+5
| | | | indepedent backup thread is not running (e.g. in a regression test)
* Run slow operations in a separate thread, instead of using FireAndForget ↵Oren Hurvitz2014-03-251-3/+3
| | | | | | (which has a 1-minute timeout) Resolves http://opensimulator.org/mantis/view.php?id=6945
* Get the full viewer name even if it's (incorrectly) sent in the 'Channel' fieldOren Hurvitz2014-03-241-4/+5
| | | | | | Recent versions of Firestorm and Singularity have started sending the viewer name in the 'Channel' field, leaving only their version number in the 'Viewer' field. So we need to search both of these fields for the viewer name. This resolves http://opensimulator.org/mantis/view.php?id=6952
* When linking two groups, and then deleting the combined group: delete *all* ↵Oren Hurvitz2014-03-241-6/+6
| | | | | | of the combined group's prims, including those that came from the second subgroup This fixes http://opensimulator.org/mantis/view.php?id=6175
* Allow Region specific static maptiles to be loaded from file.Jak Daniels2014-03-181-1/+2
|
* If an avatar is sitting, send out position updates to clients for any ↵Justin Clark-Casey (justincc)2014-03-051-1/+1
| | | | | | | | change, not just those outside the usual tolerances. This is to allow small adjustments of less than 0.05m in functions such as llSetPrimitiveLinkParams() to work This is another fix for http://opensimulator.org/mantis/view.php?id=7044 Extends regression test for this case.
* Make Scene.DefaultDrawDistance to be the max of the region size and theRobert Adams2014-02-231-1/+3
| | | | user setting. Seems this parameter has many side effects.
* add newRegion parameter to CrossAgentToNewRegion event and trigger the event ↵dahlia2014-02-201-1/+0
| | | | after crossing thread is invoked
* add EventManager event OnCrossAgentToNewRegiondahlia2014-02-191-0/+1
|
* varregion: make scene default draw distance to be the maximum size of theRobert Adams2014-02-191-1/+8
| | | | | | region. This is a temp fix for the use of draw distance to compute child regions. Eventually must use the draw distance from the viewer for the computation.
* Repair check for if in region position (I mean || is kinda like &&).Robert Adams2014-02-151-1/+1
|
* Rewrite of mega-region code to use new form of border checking.Robert Adams2014-02-151-275/+18
| | | | | | | This commit eliminates all of the 'border' class and list code and replaces it with testing if in the current region. Impacts: can make a mega-region out of varregions of the same size; and mega-region combinations must be rectangular (not square but rectangular)
* Merge branch 'master' into varregionRobert Adams2014-01-211-15/+35
|\
| * Merge branch 'justincc-master'Justin Clark-Casey (justincc)2014-01-201-15/+35
| |\
| | * Stop exceptions being generated on agent connection if a telehub object has ↵Justin Clark-Casey (justincc)2014-01-201-15/+35
| | | | | | | | | | | | been deleted or has no spawn points.
* | | Merge branch 'master' into varregionRobert Adams2014-01-191-12/+0
|\ \ \ | |/ /
| * | Merge branch 'justincc-master'Justin Clark-Casey (justincc)2014-01-161-12/+0
| |\ \ | | |/
| | * Remove old IInterRegionComms and references. This hasn't been used since ↵Justin Clark-Casey (justincc)2014-01-161-12/+0
| | | | | | | | | | | | 2009 and was superseded by ISimulationService
| * | varregion: Add region size to teleport event messages (EnableSimulator,Robert Adams2014-01-041-0/+5
| |/ | | | | | | | | | | | | | | | | | | | | CorssRegion, TeleportFinishEvent). Have Simian grid service return the region size. Many teleport related debug log messages. Can be removed when teleport works (like that's ever going to happen). Conflicts: OpenSim/Framework/RegionInfo.cs
* | varregion: Add region size to teleport event messages (EnableSimulator,Robert Adams2014-01-031-0/+5
| | | | | | | | | | | | | | CorssRegion, TeleportFinishEvent). Have Simian grid service return the region size. Many teleport related debug log messages. Can be removed when teleport works (like that's ever going to happen).
* | varregion: many more updates removing the constant RegionSize and replacingRobert Adams2013-12-261-51/+2
| | | | | | | | with a passed region size. This time in the map code and grid services code.
* | varregion: remove unused Scene.HaveNeighbor routine. Its computationRobert Adams2013-12-241-42/+1
| | | | | | | | was wrong for large regions anyway.
* | varregion: rename 'LegacyRegionLocX' back to 'RegionLocX' and same for Y and Z.Robert Adams2013-12-141-10/+10
| | | | | | | | | | | | Rename 'RegionWorldLocX' to 'WorldLocX' and same for Y and Z. This keeps the downward compatibility and follows the scheme of 'region' and 'world' location naming that is happening in the Util module.
* | varregion: Add MaxRegionSize constant and enforce in RegionInfo.Robert Adams2013-11-301-0/+17
| | | | | | | | | | Intermediate checkin of changing border cross computation from checking boundry limits to requests to GridService. Not totally functional.
* | varregion: elimination of Constants.RegionSize from all over OpenSimulator.Robert Adams2013-11-081-16/+32
| | | | | | | | | | | | | | Routines in Util to compute region world coordinates from region coordinates as well as the conversion to and from region handles. These routines have replaced a lot of math scattered throughout the simulator. Should be no functional changes.
* | varregion: remove uses of region size constant. In particular, update sceneRobert Adams2013-11-041-6/+6
| | | | | | | | to check for border crossings based on the size of the region.
* | varregion: push TerrainData implementation up and down the database storage ↵Robert Adams2013-11-011-2/+2
| | | | | | | | | | | | | | stack. Implement both LoadTerrain and StoreTerrain for all DBs. Move all database blob serialization/deserialization into TerrainData.
* | varregion: plug in TerrainData class and modify TerrainModule and ↵Robert Adams2013-10-071-1/+1
| | | | | | | | LLClientView to use same. This passes a terrain info class around rather than passing a one dimensional array thus allowing variable regions. Update the database storage for variable region sizes. This should be downward compatible (same format for 256x256 regions).
* | varregion: serious rework of TerrainChannel:Robert Adams2013-09-281-2/+2
| | | | | | | | | | | | | | | | | | -- addition of varaible region size in X and Y -- internal storage of heightmap changed from double[] to short[] -- helper routines for handling internal structure while keeping existing API -- to and from XML that adds region size information (for downward compatibility, output in the legacy XML format if X and Y are 256) Updated and commented Constants.RegionSize but didn't change the name for compatibility.
* | VarRegion: change RegionInfo storage of region coordinates from regionRobert Adams2013-09-281-12/+12
|/ | | | | | | | count number to integer world coordinates. Added new methods RegionWorldLoc[XY]. Refactored name of 'RegionLoc*' to 'LegacyRegionLoc*' throughout OpenSim. Kept old 'RegionLoc*' entrypoint to RegionInfo for downward compatability of external region management packages.
* refactor: Rename Scene.AddNewClient() to AddNewAgent() to make it obvious in ↵Justin Clark-Casey (justincc)2013-09-271-6/+6
| | | | the code that this is symmetric with CloseAgent()
* refactor: rename Scene.IncomingCloseAgent() to CloseAgent() in order to make ↵Justin Clark-Casey (justincc)2013-09-271-13/+13
| | | | | | it clear that all non-clientstack callers should be using this rather than RemoveClient() in order to step through the ScenePresence state machine properly. Adds IScene.CloseAgent() to replace RemoveClient()
* Reinsert client.SceneAgent checks into ↵Justin Clark-Casey (justincc)2013-09-251-0/+3
| | | | | | | | LLUDPServer.HandleCompleteMovementIntoRegion() to fix race condition regression in commit 7dbc93c (Wed Sep 18 21:41:51 2013 +0100) This check is necessary to close a race condition where the CompleteAgentMovement processing could proceed when the UseCircuitCode thread had added the client to the client manager but before the ScenePresence had registered to process the CompleteAgentMovement message. This is most probably why the message appeared to get lost on a proportion of entity transfers. A better long term solution may be to set the IClientAPI.SceneAgent property before the client is added to the manager.
* Change some message log levels in Scene.IncomingUpdateChildAgent() for ↵Justin Clark-Casey (justincc)2013-09-201-3/+3
| | | | debugging purposes
* Revert "Also check user authorization if looking to upgrade from a child to ↵Justin Clark-Casey (justincc)2013-09-191-13/+0
| | | | | | | a root agent." This reverts commit c7ded0618c303f8c24a91c83c2129292beebe466. This proves not to be necessary - the necessary checks are already being done via QueryAccess() before cross or teleport
* Create regression TestCrossOnSameSimulatorNoRootDestPerm() to check that ↵Justin Clark-Casey (justincc)2013-09-191-1/+2
| | | | avatars are not allowed to cross into a neighbour where they are not authorized, even if a child agent was allowed.
* refactor: rename *ChildAgentDataUpdate() methods to *UpdateChildAgent()Justin Clark-Casey (justincc)2013-09-181-4/+4
| | | | verb-noun is consistent with other similar methods
* minor: Make log message when Scene.IncomingChildAgentDateUpdate() more ↵Justin Clark-Casey (justincc)2013-09-181-3/+8
| | | | | | | explicit that there is a problem if it still finds the agent to be a child if the sender wanted to wait till it became root Add some comments about the mssage sequence, though much more data is at http://opensimulator.org/wiki/Teleports
* Restore group membership check for HG users in QueryAccess.Diva Canto2013-09-051-5/+1
|
* Also check user authorization if looking to upgrade from a child to a root ↵Justin Clark-Casey (justincc)2013-09-041-0/+13
| | | | | | agent. Relevant if a child agent has been allowed into the region which should not be upgraded to a root agent.
* For a Hypergrid user, delay estate access checks until NewUserConnection() ↵Justin Clark-Casey (justincc)2013-09-041-2/+6
| | | | | | | | | | so that they work. This is necessary because the hypergrid groups checks (as referenced by estates) require an agent circuit to be present to construct the hypergrid ID. However, this is not around until Scene.NewUserConnection(), as called by CreateAgent() in EntityTransferModule. Therefore, if we're dealing with a hypergrid user, delay the check until NewUserConnection()/CreateAgent() The entity transfer impact should be minimal since CreateAgent() is the next significant call after NewUserConnection() However, to preserve the accuracy of query access we will only relax the check for HG users.
* Fix bug where users teleporting to non-neighbour regions could continue to ↵Justin Clark-Casey (justincc)2013-09-021-5/+54
| | | | | | | | hear chat from their source region for some time after teleport completion. This occurs on v2 teleport since the source region now waits 15 secs before closing the old child agent, which could still receive chat. This commit introduces a ScenePresenceState.PreClose which is set before the wait, so that ChatModule can check for ScenePresenceState.Running. This was theoretically also an issue on v1 teleport but since the pause before close was only 2 secs there, it was not noticed.
* Comment out warning about agent updating without valid session ID for now.Justin Clark-Casey (justincc)2013-09-021-4/+4
| | | | This causes extreme console spam if a simulator running latest master and one running 0.7.5 have adjacent regions occupied by avatars.
* Potential fix for access control bug on login introduced with SeeIntoRegion ↵Diva Canto2013-08-241-1/+1
| | | | commit.
* Stop error messages being misleadingly generated when on client connection ↵Justin Clark-Casey (justincc)2013-08-221-2/+19
| | | | | | activity timeout, a root connection triggers a CloseAgent to a neighbour region which has already closed the agent due to inactivity. Also separates out log messages to distinguish between close not finding an agent and wrong auth token, and downgrades former to debug and latter to warn
* Rely on the Scene.IncomingCloseAgent() check as to whether the connection ↵Justin Clark-Casey (justincc)2013-08-151-1/+1
| | | | | | should be kept open after teleport-end rather than doing this in the ET Module This is safer since the close check in IncomingCloseAgent() is done under lock conditions, which prevents a race between ETM and Scene.AddClient()