aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs74
1 files changed, 73 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs b/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
index 7d35473..11af2f3 100644
--- a/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
@@ -81,7 +81,13 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
81 m_console.Commands.AddCommand( 81 m_console.Commands.AddCommand(
82 "Regions", false, "show scene", 82 "Regions", false, "show scene",
83 "show scene", 83 "show scene",
84 "Show live scene information for the currently selected region.", HandleShowScene); 84 "Show live information for the currently selected scene (fps, prims, etc.).", HandleShowScene);
85
86 m_console.Commands.AddCommand(
87 "Regions", false, "show region",
88 "show scene",
89 "Show control information for the currently selected region (host name, max physical prim size, etc).",
90 HandleShowRegion);
85 } 91 }
86 92
87 public void RemoveRegion(Scene scene) 93 public void RemoveRegion(Scene scene)
@@ -94,6 +100,72 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
94// m_log.DebugFormat("[REGION COMMANDS MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); 100// m_log.DebugFormat("[REGION COMMANDS MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName);
95 } 101 }
96 102
103 private void HandleShowRegion(string module, string[] cmd)
104 {
105 if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_scene))
106 return;
107
108 RegionInfo ri = m_scene.RegionInfo;
109 RegionSettings rs = ri.RegionSettings;
110
111 StringBuilder sb = new StringBuilder();
112 sb.AppendFormat("Region information for {0}\n", m_scene.Name);
113
114 ConsoleDisplayList dispList = new ConsoleDisplayList();
115 dispList.AddRow("Region ID", ri.RegionID);
116 dispList.AddRow("Region handle", ri.RegionHandle);
117 dispList.AddRow("Region location", string.Format("{0},{1}", ri.RegionLocX, ri.RegionLocY));
118 dispList.AddRow("Region size", string.Format("{0}x{1}", ri.RegionSizeX, ri.RegionSizeY));
119 //dispList.AddRow("Region type", ri.RegionType);
120 dispList.AddRow("Maturity", rs.Maturity);
121 dispList.AddRow("Region address", ri.ServerURI);
122 dispList.AddRow("From region file", ri.RegionFile);
123 dispList.AddRow("External endpoint", ri.ExternalEndPoint);
124 dispList.AddRow("Internal endpoint", ri.InternalEndPoint);
125 dispList.AddRow("Access level", ri.AccessLevel);
126 dispList.AddRow("Max agent limit", ri.AgentCapacity);
127 dispList.AddRow("Current agent limit", rs.AgentLimit);
128 dispList.AddRow("Linkset capacity", ri.LinksetCapacity <= 0 ? "not set" : ri.LinksetCapacity.ToString());
129 dispList.AddRow("Prim capacity", ri.ObjectCapacity);
130 dispList.AddRow("Prim bonus", rs.ObjectBonus);
131 dispList.AddRow("Max prims per user", ri.MaxPrimsPerUser < 0 ? "n/a" : ri.MaxPrimsPerUser.ToString());
132 dispList.AddRow("Clamp prim size", ri.ClampPrimSize);
133 dispList.AddRow("Non physical prim min size", ri.NonphysPrimMin <= 0 ? "not set" : string.Format("{0} m", ri.NonphysPrimMin));
134 dispList.AddRow("Non physical prim max size", ri.NonphysPrimMax <= 0 ? "not set" : string.Format("{0} m", ri.NonphysPrimMax));
135 dispList.AddRow("Physical prim min size", ri.PhysPrimMin <= 0 ? "not set" : string.Format("{0} m", ri.PhysPrimMin));
136 dispList.AddRow("Physical prim max size", ri.PhysPrimMax <= 0 ? "not set" : string.Format("{0} m", ri.PhysPrimMax));
137
138 dispList.AddRow("Allow Damage", rs.AllowDamage);
139 dispList.AddRow("Allow Land join/divide", rs.AllowLandJoinDivide);
140 dispList.AddRow("Allow land resell", rs.AllowLandResell);
141 dispList.AddRow("Block fly", rs.BlockFly);
142 dispList.AddRow("Block show in search", rs.BlockShowInSearch);
143 dispList.AddRow("Block terraform", rs.BlockTerraform);
144 dispList.AddRow("Covenant UUID", rs.Covenant);
145 dispList.AddRow("Convenant change Unix time", rs.CovenantChangedDateTime);
146 dispList.AddRow("Disable collisions", rs.DisableCollisions);
147 dispList.AddRow("Disable physics", rs.DisablePhysics);
148 dispList.AddRow("Disable scripts", rs.DisableScripts);
149 dispList.AddRow("Restrict pushing", rs.RestrictPushing);
150 dispList.AddRow("Fixed sun", rs.FixedSun);
151 dispList.AddRow("Sun position", rs.SunPosition);
152 dispList.AddRow("Sun vector", rs.SunVector);
153 dispList.AddRow("Use estate sun", rs.UseEstateSun);
154 dispList.AddRow("Telehub UUID", rs.TelehubObject);
155 dispList.AddRow("Terrain lower limit", string.Format("{0} m", rs.TerrainLowerLimit));
156 dispList.AddRow("Terrain raise limit", string.Format("{0} m", rs.TerrainRaiseLimit));
157 dispList.AddRow("Water height", rs.WaterHeight);
158
159 dispList.AddRow("Maptile static file", ri.MaptileStaticFile);
160 dispList.AddRow("Maptile static UUID", ri.MaptileStaticUUID);
161 dispList.AddRow("Last map refresh", ri.lastMapRefresh);
162 dispList.AddRow("Last map UUID", ri.lastMapUUID);
163
164 dispList.AddToStringBuilder(sb);
165
166 MainConsole.Instance.Output(sb.ToString());
167 }
168
97 private void HandleShowScene(string module, string[] cmd) 169 private void HandleShowScene(string module, string[] cmd)
98 { 170 {
99 if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_scene)) 171 if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_scene))