diff options
author | Melanie | 2019-08-20 23:28:59 +0100 |
---|---|---|
committer | Melanie | 2019-08-20 23:28:59 +0100 |
commit | 0fd17c08ae642fac17b24dfad06c61cfe5739483 (patch) | |
tree | 4871c96eab2f5b118cb09d670a3a4ba024cf1210 /OpenSim/Region/CoreModules/World/Terrain | |
parent | change PGSQL migration (diff) | |
download | opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.zip opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.gz opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.bz2 opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.xz |
Massive console refactor. Greatly simplify interface.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Terrain')
-rwxr-xr-x[-rw-r--r--] | OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs index a786568..d8c118f 100644..100755 --- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | |||
@@ -791,8 +791,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
791 | 791 | ||
792 | if (offsetX < 0 || offsetX >= fileWidth || offsetY < 0 || offsetY >= fileHeight) | 792 | if (offsetX < 0 || offsetX >= fileWidth || offsetY < 0 || offsetY >= fileHeight) |
793 | { | 793 | { |
794 | MainConsole.Instance.OutputFormat( | 794 | MainConsole.Instance.Output( |
795 | "ERROR: file width + minimum X tile and file height + minimum Y tile must incorporate the current region at ({0},{1}). File width {2} from {3} and file height {4} from {5} does not.", | 795 | "ERROR: file width + minimum X tile and file height + minimum Y tile must incorporate the current region at ({0},{1}). File width {2} from {3} and file height {4} from {5} does not.", |
796 | null, | ||
796 | m_scene.RegionInfo.RegionLocX, m_scene.RegionInfo.RegionLocY, fileWidth, fileStartX, fileHeight, fileStartY); | 797 | m_scene.RegionInfo.RegionLocX, m_scene.RegionInfo.RegionLocY, fileWidth, fileStartX, fileHeight, fileStartY); |
797 | 798 | ||
798 | return; | 799 | return; |
@@ -810,8 +811,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
810 | (int)m_scene.RegionInfo.RegionSizeX, | 811 | (int)m_scene.RegionInfo.RegionSizeX, |
811 | (int)m_scene.RegionInfo.RegionSizeY); | 812 | (int)m_scene.RegionInfo.RegionSizeY); |
812 | 813 | ||
813 | MainConsole.Instance.OutputFormat( | 814 | MainConsole.Instance.Output( |
814 | "Saved terrain from ({0},{1}) to ({2},{3}) from {4} to {5}", | 815 | "Saved terrain from ({0},{1}) to ({2},{3}) from {4} to {5}", |
816 | null, | ||
815 | fileStartX, fileStartY, fileStartX + fileWidth - 1, fileStartY + fileHeight - 1, | 817 | fileStartX, fileStartY, fileStartX + fileWidth - 1, fileStartY + fileHeight - 1, |
816 | m_scene.RegionInfo.RegionName, filename); | 818 | m_scene.RegionInfo.RegionName, filename); |
817 | } | 819 | } |
@@ -820,8 +822,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
820 | } | 822 | } |
821 | } | 823 | } |
822 | 824 | ||
823 | MainConsole.Instance.OutputFormat( | 825 | MainConsole.Instance.Output( |
824 | "ERROR: Could not save terrain from {0} to {1}. Valid file extensions are {2}", | 826 | "ERROR: Could not save terrain from {0} to {1}. Valid file extensions are {2}", |
827 | null, | ||
825 | m_scene.RegionInfo.RegionName, filename, m_supportFileExtensionsForTileSave); | 828 | m_scene.RegionInfo.RegionName, filename, m_supportFileExtensionsForTileSave); |
826 | } | 829 | } |
827 | 830 | ||
@@ -1538,7 +1541,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1538 | } | 1541 | } |
1539 | else | 1542 | else |
1540 | { | 1543 | { |
1541 | MainConsole.Instance.OutputFormat("ERROR: Unrecognised direction {0} - need x or y", direction); | 1544 | MainConsole.Instance.Output("ERROR: Unrecognised direction {0} - need x or y", null, direction); |
1542 | } | 1545 | } |
1543 | } | 1546 | } |
1544 | 1547 | ||
@@ -1703,8 +1706,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1703 | 1706 | ||
1704 | double avg = sum / (m_channel.Height * m_channel.Width); | 1707 | double avg = sum / (m_channel.Height * m_channel.Width); |
1705 | 1708 | ||
1706 | MainConsole.Instance.OutputFormat("Channel {0}x{1}", m_channel.Width, m_channel.Height); | 1709 | MainConsole.Instance.Output("Channel {0}x{1}", null, m_channel.Width, m_channel.Height); |
1707 | MainConsole.Instance.OutputFormat("max/min/avg/sum: {0}/{1}/{2}/{3}", max, min, avg, sum); | 1710 | MainConsole.Instance.Output("max/min/avg/sum: {0}/{1}/{2}/{3}", null, max, min, avg, sum); |
1708 | } | 1711 | } |
1709 | 1712 | ||
1710 | private void InterfaceEnableExperimentalBrushes(Object[] args) | 1713 | private void InterfaceEnableExperimentalBrushes(Object[] args) |