* MRM Scripts will now no longer disconnect the client if there was an error in compilation or script initialisation.
* Clarified some debug text for MRM Enabling0.6.5-rc1
parent
7e91f41535
commit
36bc485e7e
|
@ -35,6 +35,7 @@ using log4net;
|
|||
using Microsoft.CSharp;
|
||||
using Nini.Config;
|
||||
using OpenMetaverse;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
|
||||
|
@ -61,18 +62,20 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[MRM] Disabled MRM Module (Express)");
|
||||
m_log.Info("[MRM] Disabled MRM Module (Disabled in ini)");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[MRM] Disabled MRM Module (Omission)");
|
||||
m_log.Info("[MRM] Disabled MRM Module (Default disabled)");
|
||||
}
|
||||
}
|
||||
|
||||
void EventManager_OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource)
|
||||
{
|
||||
if (script.StartsWith("//MiniMod:C#"))
|
||||
{
|
||||
try
|
||||
{
|
||||
m_log.Info("[MRM] Found C# MRM");
|
||||
IWorld m_world = new World(m_scene);
|
||||
|
@ -88,6 +91,15 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
m_log.Info("[MRM] Starting MRM");
|
||||
mmb.Start();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_scene.Broadcast(delegate(IClientAPI user)
|
||||
{
|
||||
user.SendAlertMessage(
|
||||
"MiniRegionModule Compilation and Initialisation failed: " + e);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void PostInitialise()
|
||||
|
|
Loading…
Reference in New Issue