aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* On logout, delay the removal of AgentCircuitData until the very end, because ↵Diva Canto2014-08-021-5/+3
| | | | that data structure contains important information about the agent that may be needed by modules.
* This fixes the bug related to rebooting neighboring varregions while avatars ↵Diva Canto2014-08-021-10/+14
| | | | are logged in; the avies would not see the region anymore until they relogged. Same problem as before: inconsistent calculation of scope.
* Actually call Close() for shared region modules when the simulator is being ↵Justin Clark-Casey (justincc)2014-08-021-0/+1
| | | | | | shutdown. Adds regression test for this case.
* minor: Change default max phys prim size in code to match OpenSimDefaults.iniJustin Clark-Casey (justincc)2014-08-021-1/+1
|
* minor: change allow script crossings default in code to true in order to ↵Justin Clark-Casey (justincc)2014-08-021-1/+1
| | | | match OpenSimDefaults.ini
* Prevent login to a region if the Telehub or Landing Point are in a banned parcelOren Hurvitz2014-05-251-4/+33
|
* Add regression test for in-range chat between neighbouring regions from east ↵Justin Clark-Casey (justincc)2014-05-221-1/+4
| | | | to west.
* Tell QueryAccess explicitly whether the user is coming in via Teleport or ↵Oren Hurvitz2014-05-191-2/+2
| | | | | | Cross, because the permission checks are different. Previously we used a heuristic of checking if the entry position is 0 to differentiate between Teleport and Cross, but that doesn't work anymore since we've started providing the precise entry position for cross, too. That's required in order to ensure that the user is allowed to enter the parcel that he's walking into.
* Return more specific error messages if an attempt to enter a region fails ↵Oren Hurvitz2014-05-191-2/+13
| | | | due to permissions (in QueryAccess and IsAuthorizedForRegion)
* 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