From b42dfff4b811312ebc5353b81056d4685ae3f126 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 14 Nov 2007 22:03:11 +0000 Subject: Added "show regions" console command that displays the list of regions in that instance and their X , Y locations. (as requested/suggested by ckrinke) --- OpenSim/Region/Application/OpenSimMain.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 06dc900..501f14e 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -110,7 +110,7 @@ namespace OpenSim : base() { IConfig startupConfig = configSource.Configs["Startup"]; - + AddinManager.Initialize("."); AddinManager.Registry.Update(null); @@ -642,7 +642,7 @@ namespace OpenSim string regName = CombineParams(cmdparams, 0); Scene killScene; - if(m_sceneManager.TryGetScene(regName, out killScene)) + if (m_sceneManager.TryGetScene(regName, out killScene)) { if (m_sceneManager.CurrentScene.RegionInfo.RegionID == killScene.RegionInfo.RegionID) { @@ -650,7 +650,7 @@ namespace OpenSim } m_regionData.Remove(killScene.RegionInfo); m_sceneManager.CloseScene(killScene); - + } break; @@ -768,6 +768,13 @@ namespace OpenSim m_log.Error("Shared Module: " + module.Name); } break; + + case "regions": + m_sceneManager.ForEachScene(delegate(Scene scene) + { + Console.WriteLine("Region Name: " + scene.RegionInfo.RegionName + " , Region XLoc: " + scene.RegionInfo.RegionLocX + " , Region YLoc: " + scene.RegionInfo.RegionLocY); + }); + break; } } -- cgit v1.1