aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorMW2007-11-18 12:04:21 +0000
committerMW2007-11-18 12:04:21 +0000
commit87b07c19ef3612c9f330770ea3e0eb066f062284 (patch)
tree4d096cf10ebc2b7c2fd84e25687d13fa445f8ab9 /OpenSim/Region/Application
parentAttempt to get World Map working in Grid mode, will need to be using the grid... (diff)
downloadopensim-SC_OLD-87b07c19ef3612c9f330770ea3e0eb066f062284.zip
opensim-SC_OLD-87b07c19ef3612c9f330770ea3e0eb066f062284.tar.gz
opensim-SC_OLD-87b07c19ef3612c9f330770ea3e0eb066f062284.tar.bz2
opensim-SC_OLD-87b07c19ef3612c9f330770ea3e0eb066f062284.tar.xz
Added "export-map <filename>" console command to the region server that will export a jpg image of the world map covering a 20 X 20 regions area centred on the current active region (ie the one set with change-region). While this should work in grid mode (if using the grid asset server and if my last commit did fix the world map), you might need to call the "export-map" command then wait a little while (60 seconds?) and then call it again so that you make sure the region has got all the texture assets from the asset server.
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index ce2b856..eb09de3 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -688,6 +688,20 @@ namespace OpenSim
688 688
689 break; 689 break;
690 690
691 case "export-map":
692 if (m_sceneManager.CurrentScene != null)
693 {
694 if (cmdparams.Length > 0)
695 {
696 m_sceneManager.CurrentScene.ExportWorldMap(cmdparams[0]);
697 }
698 else
699 {
700 m_sceneManager.CurrentScene.ExportWorldMap("exportmap.jpg");
701 }
702 }
703 break;
704
691 default: 705 default:
692 m_log.Error("Unknown command"); 706 m_log.Error("Unknown command");
693 break; 707 break;