Thank you very much, Hashbox for :
Add scene-debug command to Enable/Disable scripting, collision, and physics from console.ThreadPoolClientBranch
parent
e0424254bd
commit
cf284efcda
|
@ -678,6 +678,18 @@ namespace OpenSim
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "scene-debug":
|
||||||
|
if (cmdparams.Length == 3) {
|
||||||
|
if (m_sceneManager.CurrentScene == null) {
|
||||||
|
m_console.Error("CONSOLE", "Please use 'change-region <regioname>' 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 <scripting> <collisions> <physics> (where inside <> is true/false)");
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case "help":
|
case "help":
|
||||||
m_console.Notice("alert - send alert to a designated user or all users.");
|
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.");
|
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("command-script [filename] - Execute command in a file.");
|
||||||
m_console.Notice("debug - debugging commands");
|
m_console.Notice("debug - debugging commands");
|
||||||
m_console.Notice(" packet 0..255 - print incoming/outgoing packets (0=off)");
|
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("edit-scale [prim name] [x] [y] [z] - resize given prim");
|
||||||
m_console.Notice("export-map [filename] - save image of world map");
|
m_console.Notice("export-map [filename] - save image of world map");
|
||||||
m_console.Notice("force-update - force an update of prims in the scene");
|
m_console.Notice("force-update - force an update of prims in the scene");
|
||||||
|
|
|
@ -2189,7 +2189,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
//return ret;
|
//return ret;
|
||||||
NotImplemented("llListRandomize");
|
NotImplemented("llListRandomize");
|
||||||
return new LSL_Types.list();
|
return src;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LSL_Types.list llList2ListStrided(LSL_Types.list src, int start, int end, int stride)
|
public LSL_Types.list llList2ListStrided(LSL_Types.list src, int start, int end, int stride)
|
||||||
|
|
|
@ -126,12 +126,12 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||||
string strlan = strl.Trim(" \t".ToCharArray()).ToLower();
|
string strlan = strl.Trim(" \t".ToCharArray()).ToLower();
|
||||||
if (!LanguageMapping.ContainsKey(strlan))
|
if (!LanguageMapping.ContainsKey(strlan))
|
||||||
{
|
{
|
||||||
m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Config error. Compiler is unable to recongnize language type \"" + strlan + "\" specified in \"AllowedCompilers\".");
|
m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Config error. Compiler is unable to recognize language type \"" + strlan + "\" specified in \"AllowedCompilers\".");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
m_scriptEngine.Log.Debug("[" + m_scriptEngine.ScriptEngineName + "]: Config OK. Compiler recongnized language type \"" + strlan + "\" specified in \"AllowedCompilers\".");
|
m_scriptEngine.Log.Debug("[" + m_scriptEngine.ScriptEngineName + "]: Config OK. Compiler recognized language type \"" + strlan + "\" specified in \"AllowedCompilers\".");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
AllowedCompilers.Add(strlan, true);
|
AllowedCompilers.Add(strlan, true);
|
||||||
|
|
Loading…
Reference in New Issue