aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/HypergridLinker.cs
diff options
context:
space:
mode:
authoronefang2020-09-09 06:15:12 +1000
committeronefang2020-09-09 06:15:12 +1000
commite5c367442132d7edc846b28f36ddac9e82b66cda (patch)
treea31fc2f4c558e306822128ad38a99f1529a70af2 /OpenSim/Services/GridService/HypergridLinker.cs
parentOpenSim changed the way FSAssets directory structure works by default, sort t... (diff)
downloadopensim-SC-e5c367442132d7edc846b28f36ddac9e82b66cda.zip
opensim-SC-e5c367442132d7edc846b28f36ddac9e82b66cda.tar.gz
opensim-SC-e5c367442132d7edc846b28f36ddac9e82b66cda.tar.bz2
opensim-SC-e5c367442132d7edc846b28f36ddac9e82b66cda.tar.xz
Remove various limits.
Silly 4096 sim TP check for a client bug that was fixed long ago, seems they removed it themselves. Upgrade sim height. Allow menu items longer than 24 characters once more. Allow sitting on attachments, and attaching things with people sitting on them. Revert don't wear vegetables. Remove some script distance limits. Gods can do anything they want, including bypassing OhSilly threat levels. Low Y regions are no longer reserved for HG links. Varregions don't have to be square. Both now report a warning, but continue anyway. Cool VL Viewer handles non square regions, Singularity crashes. Not tested on others.
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/GridService/HypergridLinker.cs62
1 files changed, 0 insertions, 62 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs
index 4f5fe59..3c7295a 100644
--- a/OpenSim/Services/GridService/HypergridLinker.cs
+++ b/OpenSim/Services/GridService/HypergridLinker.cs
@@ -63,7 +63,6 @@ namespace OpenSim.Services.GridService
63 protected GatekeeperServiceConnector m_GatekeeperConnector; 63 protected GatekeeperServiceConnector m_GatekeeperConnector;
64 64
65 protected UUID m_ScopeID = UUID.Zero; 65 protected UUID m_ScopeID = UUID.Zero;
66// protected bool m_Check4096 = true;
67 protected string m_MapTileDirectory = string.Empty; 66 protected string m_MapTileDirectory = string.Empty;
68 protected string m_ThisGatekeeperURI = string.Empty; 67 protected string m_ThisGatekeeperURI = string.Empty;
69 protected string m_ThisGatekeeperHost = string.Empty; 68 protected string m_ThisGatekeeperHost = string.Empty;
@@ -93,8 +92,6 @@ namespace OpenSim.Services.GridService
93 if (scope != string.Empty) 92 if (scope != string.Empty)
94 UUID.TryParse(scope, out m_ScopeID); 93 UUID.TryParse(scope, out m_ScopeID);
95 94
96// m_Check4096 = gridConfig.GetBoolean("Check4096", true);
97
98//// TODO OpenSim is crazy, this is called from Robust and OpenSim, Robust needs the ../caches bit, OpenSim somehow adds a path already. I can't tell why. So strip the path. 95//// TODO OpenSim is crazy, this is called from Robust and OpenSim, Robust needs the ../caches bit, OpenSim somehow adds a path already. I can't tell why. So strip the path.
99 m_MapTileDirectory = Path.Combine(Util.cacheDir(), Path.GetFileName(gridConfig.GetString("MapTileDirectory", "maptiles"))); 96 m_MapTileDirectory = Path.Combine(Util.cacheDir(), Path.GetFileName(gridConfig.GetString("MapTileDirectory", "maptiles")));
100 97
@@ -305,19 +302,6 @@ namespace OpenSim.Services.GridService
305 return true; 302 return true;
306 } 303 }
307 304
308 // We are now performing this check for each individual teleport in the EntityTransferModule instead. This
309 // allows us to give better feedback when teleports fail because of the distance reason (which can't be
310 // done here) and it also hypergrid teleports that are within range (possibly because the source grid
311 // itself has regions that are very far apart).
312// uint x, y;
313// if (m_Check4096 && !Check4096(handle, out x, out y))
314// {
315// //RemoveHyperlinkRegion(regInfo.RegionID);
316// reason = "Region is too far (" + x + ", " + y + ")";
317// m_log.Info("[HYPERGRID LINKER]: Unable to link, region is too far (" + x + ", " + y + ")");
318// //return false;
319// }
320
321 regInfo.RegionID = regionID; 305 regInfo.RegionID = regionID;
322 regInfo.RegionSizeX = sizeX; 306 regInfo.RegionSizeX = sizeX;
323 regInfo.RegionSizeY = sizeY; 307 regInfo.RegionSizeY = sizeY;
@@ -370,52 +354,6 @@ namespace OpenSim.Services.GridService
370 } 354 }
371 } 355 }
372 356
373// Not currently used
374// /// <summary>
375// /// Cope with this viewer limitation.
376// /// </summary>
377// /// <param name="regInfo"></param>
378// /// <returns></returns>
379// public bool Check4096(ulong realHandle, out uint x, out uint y)
380// {
381// uint ux = 0, uy = 0;
382// Utils.LongToUInts(realHandle, out ux, out uy);
383// x = Util.WorldToRegionLoc(ux);
384// y = Util.WorldToRegionLoc(uy);
385//
386// const uint limit = Util.RegionToWorldLoc(4096 - 1);
387// uint xmin = ux - limit;
388// uint xmax = ux + limit;
389// uint ymin = uy - limit;
390// uint ymax = uy + limit;
391// // World map boundary checks
392// if (xmin < 0 || xmin > ux)
393// xmin = 0;
394// if (xmax > int.MaxValue || xmax < ux)
395// xmax = int.MaxValue;
396// if (ymin < 0 || ymin > uy)
397// ymin = 0;
398// if (ymax > int.MaxValue || ymax < uy)
399// ymax = int.MaxValue;
400//
401// // Check for any regions that are within the possible teleport range to the linked region
402// List<GridRegion> regions = m_GridService.GetRegionRange(m_ScopeID, (int)xmin, (int)xmax, (int)ymin, (int)ymax);
403// if (regions.Count == 0)
404// {
405// return false;
406// }
407// else
408// {
409// // Check for regions which are not linked regions
410// List<GridRegion> hyperlinks = m_GridService.GetHyperlinks(m_ScopeID);
411// IEnumerable<GridRegion> availableRegions = regions.Except(hyperlinks);
412// if (availableRegions.Count() == 0)
413// return false;
414// }
415//
416// return true;
417// }
418
419 private void AddHyperlinkRegion(GridRegion regionInfo, ulong regionHandle) 357 private void AddHyperlinkRegion(GridRegion regionInfo, ulong regionHandle)
420 { 358 {
421 RegionData rdata = m_GridService.RegionInfo2RegionData(regionInfo); 359 RegionData rdata = m_GridService.RegionInfo2RegionData(regionInfo);