Teleport Debugging
Move setting from ini to existing facitilies - thanks justincc toggle with console command: debug teleportiar_mods
parent
707c8c6f2b
commit
3deb52d399
|
@ -250,6 +250,8 @@ namespace OpenSim
|
||||||
+ "If level <= 0 then no extra http logging is done.\n",
|
+ "If level <= 0 then no extra http logging is done.\n",
|
||||||
Debug);
|
Debug);
|
||||||
|
|
||||||
|
m_console.Commands.AddCommand("region", false, "debug teleport", "debug teleport", "Toggle teleport route debugging", Debug);
|
||||||
|
|
||||||
m_console.Commands.AddCommand("region", false, "debug scene",
|
m_console.Commands.AddCommand("region", false, "debug scene",
|
||||||
"debug scene <cripting> <collisions> <physics>",
|
"debug scene <cripting> <collisions> <physics>",
|
||||||
"Turn on scene debugging", Debug);
|
"Turn on scene debugging", Debug);
|
||||||
|
@ -948,6 +950,21 @@ namespace OpenSim
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "teleport":
|
||||||
|
foreach(Scene s in m_sceneManager.Scenes)
|
||||||
|
{
|
||||||
|
if (s.DEBUG)
|
||||||
|
{
|
||||||
|
s.DEBUG = false;
|
||||||
|
MainConsole.Instance.Output("Teleport debugging is disabled!");
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
s.DEBUG = true;
|
||||||
|
MainConsole.Instance.Output("Teleport debugging is enabled!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
MainConsole.Instance.Output("Unknown debug command");
|
MainConsole.Instance.Output("Unknown debug command");
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -651,8 +651,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
//
|
//
|
||||||
IConfig startupConfig = m_config.Configs["Startup"];
|
IConfig startupConfig = m_config.Configs["Startup"];
|
||||||
|
|
||||||
DEBUG = startupConfig.GetBoolean("DEBUG", false);
|
|
||||||
|
|
||||||
m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance",m_defaultDrawDistance);
|
m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance",m_defaultDrawDistance);
|
||||||
m_useBackup = startupConfig.GetBoolean("UseSceneBackup", m_useBackup);
|
m_useBackup = startupConfig.GetBoolean("UseSceneBackup", m_useBackup);
|
||||||
if (!m_useBackup)
|
if (!m_useBackup)
|
||||||
|
|
Loading…
Reference in New Issue