aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine
diff options
context:
space:
mode:
authorMelanie2011-10-25 03:06:18 +0100
committerMelanie2011-10-25 03:06:18 +0100
commit1ec82bb000db9ca76969638504030d6ec69f51e3 (patch)
treea7070c778ba8071eb98be34b7dd38536143e4b0e /OpenSim/Region/ScriptEngine/XEngine
parentMerge commit 'ecad9f9fd589f90d1c7a20faf14af0304804b616' into bigmerge (diff)
parentadd current script status to "scripts show" command (running, suspended, etc.) (diff)
downloadopensim-SC_OLD-1ec82bb000db9ca76969638504030d6ec69f51e3.zip
opensim-SC_OLD-1ec82bb000db9ca76969638504030d6ec69f51e3.tar.gz
opensim-SC_OLD-1ec82bb000db9ca76969638504030d6ec69f51e3.tar.bz2
opensim-SC_OLD-1ec82bb000db9ca76969638504030d6ec69f51e3.tar.xz
Merge commit '116fbe8258e336be3f6ac1e11119214629799faa' into bigmerge
Conflicts: OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs22
1 files changed, 20 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index 572ca07..d606b37 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -354,11 +354,29 @@ namespace OpenSim.Region.ScriptEngine.XEngine
354 foreach (IScriptInstance instance in m_Scripts.Values) 354 foreach (IScriptInstance instance in m_Scripts.Values)
355 { 355 {
356 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); 356 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID);
357 string status;
358
359 if (instance.ShuttingDown)
360 {
361 status = "shutting down";
362 }
363 else if (instance.Suspended)
364 {
365 status = "suspended";
366 }
367 else if (!instance.Running)
368 {
369 status = "stopped";
370 }
371 else
372 {
373 status = "running";
374 }
357 375
358 MainConsole.Instance.OutputFormat( 376 MainConsole.Instance.OutputFormat(
359 "{0}.{1}, script UUID {2}, prim UUID {3} @ {4}", 377 "{0}.{1}, script UUID {2}, prim UUID {3} @ {4} ({5})",
360 instance.PrimName, instance.ScriptName, instance.AssetID, instance.ObjectID, 378 instance.PrimName, instance.ScriptName, instance.AssetID, instance.ObjectID,
361 sop.AbsolutePosition, m_Scene.RegionInfo.RegionName); 379 sop.AbsolutePosition, status);
362 } 380 }
363 } 381 }
364 } 382 }