mirror of
https://github.com/opensim/opensim.git
synced 2026-06-27 09:15:49 +08:00
Formatting cleanup.
This commit is contained in:
@@ -225,7 +225,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
// TODO: Let users in the sim and those entering it and possibly an external watchdog know what has happened
|
||||
m_log.ErrorFormat(
|
||||
"[{0}]: Event queue thread terminating with exception. PLEASE REBOOT YOUR SIM - SCRIPT EVENTS WILL NOT WORK UNTIL YOU DO. Exception is {1}",
|
||||
ScriptEngineName, e);
|
||||
ScriptEngineName, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -418,7 +418,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
{
|
||||
InstanceData id = m_ScriptManager.GetScript(localID, itemID);
|
||||
if (id == null)
|
||||
return;
|
||||
return;
|
||||
|
||||
if (!id.Disabled)
|
||||
id.Running = true;
|
||||
@@ -428,7 +428,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
{
|
||||
InstanceData id = m_ScriptManager.GetScript(localID, itemID);
|
||||
if (id == null)
|
||||
return;
|
||||
return;
|
||||
|
||||
id.Running = false;
|
||||
}
|
||||
@@ -442,7 +442,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
|
||||
InstanceData id = m_ScriptManager.GetScript(localID, itemID);
|
||||
if (id == null)
|
||||
return;
|
||||
return;
|
||||
|
||||
IEventQueue eq = World.RequestModuleInterface<IEventQueue>();
|
||||
if (eq == null)
|
||||
|
||||
@@ -520,13 +520,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
ExeStage = 5; // ;^) Ewe Loon, for debuging
|
||||
}
|
||||
catch (Exception e) // ;^) Ewe Loon, From here down tis fix
|
||||
{
|
||||
{
|
||||
if ((ExeStage == 3)&&(qParams.Length>0))
|
||||
detparms.Remove(id);
|
||||
SceneObjectPart ob = m_scriptEngine.World.GetSceneObjectPart(localID);
|
||||
m_log.InfoFormat("[Script Error] ,{0},{1},@{2},{3},{4},{5}", ob.Name , FunctionName, ExeStage, e.Message, qParams.Length, detparms.Count);
|
||||
if (ExeStage != 2) throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public uint GetLocalID(UUID itemID)
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_OSSL_Functions.osWindActiveModelPluginName();
|
||||
}
|
||||
|
||||
// Not yet plugged in as available OSSL functions, so commented out
|
||||
// Not yet plugged in as available OSSL functions, so commented out
|
||||
// void osWindParamSet(string plugin, string param, float value)
|
||||
// {
|
||||
// m_OSSL_Functions.osWindParamSet(plugin, param, value);
|
||||
@@ -329,7 +329,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
|
||||
public string osGetSimulatorVersion()
|
||||
{
|
||||
return m_OSSL_Functions.osGetSimulatorVersion();
|
||||
return m_OSSL_Functions.osGetSimulatorVersion();
|
||||
}
|
||||
|
||||
public Hashtable osParseJSON(string JSON)
|
||||
|
||||
@@ -261,7 +261,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
"SecondLife.Script");
|
||||
|
||||
//ILease lease = (ILease)RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass);
|
||||
RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass);
|
||||
RemotingServices.GetLifetimeService(m_Script as ScriptBaseClass);
|
||||
// lease.Register(this);
|
||||
}
|
||||
catch (Exception)
|
||||
@@ -430,7 +430,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
|
||||
permsGranter = part.TaskInventory[m_ItemID].PermsGranter;
|
||||
permsMask = part.TaskInventory[m_ItemID].PermsMask;
|
||||
}
|
||||
}
|
||||
|
||||
if ((permsMask & ScriptBaseClass.PERMISSION_TAKE_CONTROLS) != 0)
|
||||
{
|
||||
@@ -630,7 +630,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
/// <summary>
|
||||
/// Process the next event queued for this script
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <returns></returns>
|
||||
public object EventProcessor()
|
||||
{
|
||||
lock (m_Script)
|
||||
@@ -925,7 +925,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return String.Format("{0} {1} on {2}", m_ScriptName, m_ItemID, m_PrimName);
|
||||
return String.Format("{0} {1} on {2}", m_ScriptName, m_ItemID, m_PrimName);
|
||||
}
|
||||
|
||||
string FormatException(Exception e)
|
||||
|
||||
@@ -554,7 +554,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
// We must look for the part outside the m_Scripts lock because GetSceneObjectPart later triggers the
|
||||
// m_parts lock on SOG. At the same time, a scene object that is being deleted will take the m_parts lock
|
||||
// and then later on try to take the m_scripts lock in this class when it calls OnRemoveScript()
|
||||
// and then later on try to take the m_scripts lock in this class when it calls OnRemoveScript()
|
||||
SceneObjectPart part = m_Scene.GetSceneObjectPart(localID);
|
||||
if (part == null)
|
||||
{
|
||||
@@ -562,7 +562,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
m_ScriptErrorMessage += "SceneObjectPart unavailable. Script NOT started.\n";
|
||||
m_ScriptFailCount++;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
TaskInventoryItem item = part.Inventory.GetInventoryItem(itemID);
|
||||
if (item == null)
|
||||
@@ -692,7 +692,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
AppDomain.CreateDomain(
|
||||
m_Scene.RegionInfo.RegionID.ToString(),
|
||||
evidence, appSetup);
|
||||
/*
|
||||
/*
|
||||
PolicyLevel sandboxPolicy = PolicyLevel.CreateAppDomainLevel();
|
||||
AllMembershipCondition sandboxMembershipCondition = new AllMembershipCondition();
|
||||
PermissionSet sandboxPermissionSet = sandboxPolicy.GetNamedPermissionSet("Internet");
|
||||
@@ -925,7 +925,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
return new XWorkItem(m_ThreadPool.QueueWorkItem(
|
||||
new WorkItemCallback(this.ProcessEventHandler),
|
||||
parms));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Process a previously posted script event.
|
||||
|
||||
Reference in New Issue
Block a user