aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-10 23:49:48 +0000
committerJustin Clark-Casey (justincc)2013-01-10 23:49:48 +0000
commita16ae5d7e3e687fdcdae39f848f66087f16433a2 (patch)
treefe0c7fe3aaff713bdce71f1ba2a86c1a9170f291 /OpenSim/Region/Application
parentrefactor: route the final scene backup through the same code that handles per... (diff)
downloadopensim-SC_OLD-a16ae5d7e3e687fdcdae39f848f66087f16433a2.zip
opensim-SC_OLD-a16ae5d7e3e687fdcdae39f848f66087f16433a2.tar.gz
opensim-SC_OLD-a16ae5d7e3e687fdcdae39f848f66087f16433a2.tar.bz2
opensim-SC_OLD-a16ae5d7e3e687fdcdae39f848f66087f16433a2.tar.xz
Move scene debug commands into separate module. Command changes from "debug scene <key> <value>" to "debug scene set <key> <value>" to accomodate future settings
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs37
1 files changed, 0 insertions, 37 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 603cfbc..c4731a3 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -236,18 +236,6 @@ namespace OpenSim
236 + "If an avatar name is given then only packets from that avatar are logged", 236 + "If an avatar name is given then only packets from that avatar are logged",
237 Debug); 237 Debug);
238 238
239 m_console.Commands.AddCommand("Debug", false, "debug scene",
240 "debug scene active|collisions|pbackup|physics|scripting|teleport|updates true|false",
241 "Turn on scene debugging options.",
242 "If active is false then main scene update and maintenance loops are suspended.\n"
243 + "If collisions is false then collisions with other objects are turned off.\n"
244 + "If pbackup is false then periodic scene backup is turned off.\n"
245 + "If physics is false then all physics objects are non-physical.\n"
246 + "If scripting is false then no scripting operations happen.\n"
247 + "If teleport is true then some extra teleport debug information is logged.\n"
248 + "If updates is true then any frame which exceeds double the maximum desired frame time is logged.",
249 Debug);
250
251 m_console.Commands.AddCommand("General", false, "change region", 239 m_console.Commands.AddCommand("General", false, "change region",
252 "change region <region name>", 240 "change region <region name>",
253 "Change current console region", ChangeSelectedRegion); 241 "Change current console region", ChangeSelectedRegion);
@@ -744,31 +732,6 @@ namespace OpenSim
744 732
745 break; 733 break;
746 734
747 case "scene":
748 if (args.Length == 4)
749 {
750 if (SceneManager.CurrentScene == null)
751 {
752 MainConsole.Instance.Output("Please use 'change region <regioname>' first");
753 }
754 else
755 {
756 string key = args[2];
757 string value = args[3];
758 SceneManager.CurrentScene.SetSceneCoreDebug(
759 new Dictionary<string, string>() { { key, value } });
760
761 MainConsole.Instance.OutputFormat("Set debug scene {0} = {1}", key, value);
762 }
763 }
764 else
765 {
766 MainConsole.Instance.Output(
767 "Usage: debug scene active|collisions|pbackup|physics|scripting|teleport|updates true|false");
768 }
769
770 break;
771
772 default: 735 default:
773 MainConsole.Instance.Output("Unknown debug command"); 736 MainConsole.Instance.Output("Unknown debug command");
774 break; 737 break;