* Code to make MRM debugging easier.

0.6.5-rc1
Adam Frisby 2009-05-09 17:44:12 +00:00
parent 93d54d7652
commit c534d7f614
2 changed files with 6 additions and 1 deletions

View File

@ -142,7 +142,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
m_scene.Broadcast(delegate(IClientAPI user)
{
user.SendAlertMessage(
"MiniRegionModule Compilation and Initialisation failed: " + e);
"Compile error while building MRM script, check OpenSim console for more information.");
});
}
}
@ -256,6 +256,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
}
libraries.Add("OpenSim.Region.OptionalModules.dll");
libraries.Add("OpenMetaverseTypes.dll");
libraries.Add("log4net.dll");
foreach (string library in libraries)

View File

@ -28,7 +28,9 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using log4net;
using OpenSim.Region.OptionalModules.Scripting.Minimodule.Interfaces;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
@ -54,8 +56,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
while (m_threads.Count > 0 && i < count)
{
i++;
bool running = m_threads[i%m_threads.Count].MoveNext();
if (!running)
m_threads.Remove(m_threads[i%m_threads.Count]);
}