From cf284efcda246b8b615bd0eb4e799fe13a29a94b Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 10 Feb 2008 16:03:58 +0000 Subject: Thank you very much, Hashbox for : Add scene-debug command to Enable/Disable scripting, collision, and physics from console. --- OpenSim/Region/Application/OpenSimMain.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 2328c49..6fd479c 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -678,6 +678,18 @@ namespace OpenSim } break; + case "scene-debug": + if (cmdparams.Length == 3) { + if (m_sceneManager.CurrentScene == null) { + m_console.Error("CONSOLE", "Please use 'change-region ' first"); + } else { + m_sceneManager.CurrentScene.SetSceneCoreDebug(!System.Convert.ToBoolean(cmdparams[0]), !System.Convert.ToBoolean(cmdparams[1]), !System.Convert.ToBoolean(cmdparams[2])); + } + } else { + m_console.Error("scene-debug (where inside <> is true/false)"); + } + break; + case "help": m_console.Notice("alert - send alert to a designated user or all users."); m_console.Notice(" alert [First] [Last] [Message] - send an alert to a user. Case sensitive."); @@ -689,6 +701,7 @@ namespace OpenSim m_console.Notice("command-script [filename] - Execute command in a file."); m_console.Notice("debug - debugging commands"); m_console.Notice(" packet 0..255 - print incoming/outgoing packets (0=off)"); + m_console.Notice("scene-debug [scripting] [collision] [physics] - Enable/Disable debug stuff, each can be True/False"); m_console.Notice("edit-scale [prim name] [x] [y] [z] - resize given prim"); m_console.Notice("export-map [filename] - save image of world map"); m_console.Notice("force-update - force an update of prims in the scene"); -- cgit v1.1