diff options
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 102 | ||||
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 12 |
2 files changed, 66 insertions, 48 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index ac6a5c1..33621a9 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -496,6 +496,7 @@ namespace OpenSim | |||
496 | case "reset": | 496 | case "reset": |
497 | Reset(cmdparams); | 497 | Reset(cmdparams); |
498 | break; | 498 | break; |
499 | |||
499 | case "predecode-j2k": | 500 | case "predecode-j2k": |
500 | if (cmdparams.Length > 0) | 501 | if (cmdparams.Length > 0) |
501 | { | 502 | { |
@@ -661,53 +662,62 @@ namespace OpenSim | |||
661 | { | 662 | { |
662 | base.ShowHelp(helpArgs); | 663 | base.ShowHelp(helpArgs); |
663 | 664 | ||
664 | m_console.Notice("alert - send alert to a designated user or all users."); | 665 | if (helpArgs.Length == 0) |
665 | m_console.Notice(" alert [First] [Last] [Message] - send an alert to a user. Case sensitive."); | 666 | { |
666 | m_console.Notice(" alert general [Message] - send an alert to all users."); | 667 | m_console.Notice("alert - send alert to a designated user or all users."); |
667 | m_console.Notice("backup - persist simulator objects to the database ahead of the normal schedule."); | 668 | m_console.Notice(" alert [First] [Last] [Message] - send an alert to a user. Case sensitive."); |
668 | m_console.Notice("clear-assets - clear the asset cache"); | 669 | m_console.Notice(" alert general [Message] - send an alert to all users."); |
669 | m_console.Notice("create-region <name> <regionfile.xml> - create a new region"); | 670 | m_console.Notice("backup - persist simulator objects to the database ahead of the normal schedule."); |
670 | m_console.Notice("change-region <name> - select the region that single region commands operate upon."); | 671 | m_console.Notice("clear-assets - clear the asset cache"); |
671 | m_console.Notice("command-script [filename] - Execute command in a file."); | 672 | m_console.Notice("create-region <name> <regionfile.xml> - create a new region"); |
672 | m_console.Notice("debug - debugging commands"); | 673 | m_console.Notice("change-region <name> - select the region that single region commands operate upon."); |
673 | m_console.Notice(" debug packet 0..255 - print incoming/outgoing packets (0=off)"); | 674 | m_console.Notice("command-script [filename] - Execute command in a file."); |
674 | m_console.Notice(" debug scene [scripting] [collision] [physics] - Enable/Disable debug stuff, each can be True/False"); | 675 | m_console.Notice("debug - debugging commands"); |
675 | m_console.Notice("edit-scale [prim name] [x] [y] [z] - resize given prim"); | 676 | m_console.Notice(" debug packet 0..255 - print incoming/outgoing packets (0=off)"); |
676 | m_console.Notice("export-map [filename] - save image of world map"); | 677 | m_console.Notice(" debug scene [scripting] [collision] [physics] - Enable/Disable debug stuff, each can be True/False"); |
677 | m_console.Notice("force-update - force an update of prims in the scene"); | 678 | m_console.Notice("edit-scale [prim name] [x] [y] [z] - resize given prim"); |
678 | m_console.Notice("restart - disconnects all clients and restarts the sims in the instance."); | 679 | m_console.Notice("export-map [filename] - save image of world map"); |
679 | m_console.Notice("remove-region [name] - remove a region"); | 680 | m_console.Notice("force-update - force an update of prims in the scene"); |
680 | m_console.Notice("delete-region [name] - delete a region and its associated region file"); | 681 | m_console.Notice("restart - disconnects all clients and restarts the sims in the instance."); |
681 | m_console.Notice("load-xml [filename] - load prims from XML (DEPRECATED)"); | 682 | m_console.Notice("remove-region [name] - remove a region"); |
682 | m_console.Notice("save-xml [filename] - save prims to XML (DEPRECATED)"); | 683 | m_console.Notice("delete-region [name] - delete a region and its associated region file"); |
683 | m_console.Notice("save-xml2 [filename] - save prims to XML using version 2 format"); | 684 | m_console.Notice("load-xml [filename] - load prims from XML (DEPRECATED)"); |
684 | m_console.Notice("load-xml2 [filename] - load prims from XML using version 2 format"); | 685 | m_console.Notice("save-xml [filename] - save prims to XML (DEPRECATED)"); |
685 | m_console.Notice("load-oar [filename] - load an OpenSimulator region archive. This replaces everything in the current region."); | 686 | m_console.Notice("save-xml2 [filename] - save prims to XML using version 2 format"); |
686 | m_console.Notice("save-oar [filename] - Save the current region to an OpenSimulator region archive."); | 687 | m_console.Notice("load-xml2 [filename] - load prims from XML using version 2 format"); |
687 | m_console.Notice("script - manually trigger scripts? or script commands?"); | 688 | m_console.Notice("load-oar [filename] - load an OpenSimulator region archive. This replaces everything in the current region."); |
688 | m_console.Notice("show assets - show state of asset cache."); | 689 | m_console.Notice("save-oar [filename] - Save the current region to an OpenSimulator region archive."); |
689 | m_console.Notice("show modules - shows info about loaded modules."); | 690 | m_console.Notice("script - manually trigger scripts? or script commands?"); |
690 | m_console.Notice("show queues - show packet queues length for all clients."); | 691 | m_console.Notice("show assets - show state of asset cache."); |
691 | m_console.Notice("show regions - show running region information."); | 692 | m_console.Notice("show modules - shows info about loaded modules."); |
692 | m_console.Notice("show users - show info about connected users (only root agents)."); | 693 | m_console.Notice("show queues - show packet queues length for all clients."); |
693 | m_console.Notice("show users full - show info about connected users (root and child agents)."); | 694 | m_console.Notice("show regions - show running region information."); |
694 | m_console.Notice("config set section field value - set a config value"); | 695 | m_console.Notice("show users - show info about connected users (only root agents)."); |
695 | m_console.Notice("config get section field - get a config value"); | 696 | m_console.Notice("show users full - show info about connected users (root and child agents)."); |
696 | m_console.Notice("config save - save OpenSim.ini"); | 697 | m_console.Notice("config set section field value - set a config value"); |
697 | m_console.Notice("terrain help - show help for terrain commands."); | 698 | m_console.Notice("config get section field - get a config value"); |
698 | m_console.Notice("login-enable - Allows login at sim level"); | 699 | m_console.Notice("config save - save OpenSim.ini"); |
699 | m_console.Notice("login-disable - Disable login at sim level"); | 700 | m_console.Notice("login-enable - Allows login at sim level"); |
700 | m_console.Notice("login-status - Show the actual login status"); | 701 | m_console.Notice("login-disable - Disable login at sim level"); |
701 | m_console.Notice("predecode-j2k - Precache assets,decode j2k layerdata, First parameter is threads to use"); | 702 | m_console.Notice("login-status - Show the actual login status"); |
702 | 703 | m_console.Notice("predecode-j2k - Precache assets,decode j2k layerdata, First parameter is threads to use"); | |
703 | ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console); | 704 | ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console); |
704 | 705 | ||
705 | if (ConfigurationSettings.Standalone) | 706 | if (ConfigurationSettings.Standalone) |
706 | { | 707 | { |
707 | m_console.Notice(""); | 708 | m_console.Notice(""); |
708 | m_console.Notice("create user - adds a new user."); | 709 | m_console.Notice("create user - adds a new user."); |
709 | m_console.Notice("reset user password - reset a user's password."); | 710 | m_console.Notice("reset user password - reset a user's password."); |
711 | } | ||
710 | } | 712 | } |
713 | else | ||
714 | { | ||
715 | ICommander moduleCommander = SceneManager.CurrentOrFirstScene.GetCommander(helpArgs[0]); | ||
716 | if (moduleCommander != null) | ||
717 | { | ||
718 | m_console.Notice(moduleCommander.Help); | ||
719 | } | ||
720 | } | ||
711 | } | 721 | } |
712 | 722 | ||
713 | // see BaseOpenSimServer | 723 | // see BaseOpenSimServer |
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index aca1829..89f16d6 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -59,7 +59,7 @@ namespace OpenSim | |||
59 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 59 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
60 | 60 | ||
61 | protected string proxyUrl; | 61 | protected string proxyUrl; |
62 | protected int proxyOffset = 0; | 62 | protected int proxyOffset = 0; |
63 | 63 | ||
64 | /// <summary> | 64 | /// <summary> |
65 | /// The file used to load and save prim backup xml if no filename has been specified | 65 | /// The file used to load and save prim backup xml if no filename has been specified |
@@ -158,7 +158,15 @@ namespace OpenSim | |||
158 | loader.Load("/OpenSim/Startup"); | 158 | loader.Load("/OpenSim/Startup"); |
159 | m_plugins = loader.Plugins; | 159 | m_plugins = loader.Plugins; |
160 | } | 160 | } |
161 | 161 | ||
162 | protected override List<string> GetHelpTopics() | ||
163 | { | ||
164 | List<string> topics = base.GetHelpTopics(); | ||
165 | topics.AddRange(SceneManager.CurrentOrFirstScene.GetCommanders().Keys); | ||
166 | |||
167 | return topics; | ||
168 | } | ||
169 | |||
162 | /// <summary> | 170 | /// <summary> |
163 | /// Performs startup specific to this region server, including initialization of the scene | 171 | /// Performs startup specific to this region server, including initialization of the scene |
164 | /// such as loading configuration from disk. | 172 | /// such as loading configuration from disk. |