a mess with Modules and Module

avinationmerge
UbitUmarov 2015-09-08 20:03:54 +01:00
parent 3780e98d36
commit 40fd7cbf74
42 changed files with 56 additions and 96 deletions

View File

@ -932,23 +932,7 @@ namespace OpenSim.Region.Framework.Scenes
EventManager.OnLandObjectRemoved +=
new EventManager.LandObjectRemoved(simDataService.RemoveLandObject);
m_sceneGraph = new SceneGraph(this);
m_sceneGraph.PhysicsScene = PhysicsScene;
// If the scene graph has an Unrecoverable error, restart this sim.
// Currently the only thing that causes it to happen is two kinds of specific
// Physics based crashes.
//
// Out of memory
// Operating system has killed the plugin
m_sceneGraph.UnRecoverableError
+= () =>
{
m_log.ErrorFormat("[SCENE]: Restarting region {0} due to unrecoverable physics crash", Name);
RestartNow();
};
RegisterDefaultSceneEvents();
RegisterDefaultSceneEvents();
// XXX: Don't set the public property since we don't want to activate here. This needs to be handled
// better in the future.
@ -1199,8 +1183,7 @@ namespace OpenSim.Region.Framework.Scenes
StatsReporter.OnSendStatsResult += SendSimStatsPackets;
StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats;
MainConsole.Instance.Commands.AddCommand("scene", false, "gc collect", "gc collect", "gc collect", "Cause the garbage collector to make a single pass", HandleGcCollect);
}
public Scene(RegionInfo regInfo)
@ -1223,36 +1206,13 @@ namespace OpenSim.Region.Framework.Scenes
PhysicalPrims = true;
CollidablePrims = true;
// this is done above acording to config
// PhysicsEnabled = true;
PhysicsEnabled = true;
AllowAvatarCrossing = true;
PeriodicBackup = true;
UseBackup = true;
IsReprioritizationEnabled = true;
UpdatePrioritizationScheme = UpdatePrioritizationSchemes.Time;
ReprioritizationInterval = 5000;

View File

@ -33,7 +33,7 @@ using log4net;
using OMV = OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet;
using OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet;
namespace OpenSim.Region.PhysicsModule.BulletS
{

View File

@ -30,7 +30,6 @@ using System.Text;
using OMV = OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet;
namespace OpenSim.Region.PhysicsModule.BulletS
{

View File

@ -31,8 +31,8 @@ using System.Text;
using OpenSim.Framework;
using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Region.PhysicsModules.Meshing;
using OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet;
using OpenSim.Region.PhysicsModule.Meshing;
using OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet;
using OMV = OpenMetaverse;

View File

@ -34,7 +34,7 @@ using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Region.PhysicsModules.Meshing;
using OpenSim.Region.PhysicsModule.Meshing;
using OpenSim.Region.Framework.Interfaces;
using OpenMetaverse;
@ -86,7 +86,7 @@ public static class BulletSimTestsUtil
info.RegionSizeX = info.RegionSizeY = info.RegionSizeZ = Constants.RegionSize;
OpenSim.Region.Framework.Scenes.Scene scene = new OpenSim.Region.Framework.Scenes.Scene(info);
IMesher mesher = new OpenSim.Region.PhysicsModules.Meshing.Meshmerizer();
IMesher mesher = new OpenSim.Region.PhysicsModule.Meshing.Meshmerizer();
INonSharedRegionModule mod = mesher as INonSharedRegionModule;
mod.Initialise(openSimINI);
mod.AddRegion(scene);

View File

@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class Wpoint
{

View File

@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public static class Concavity
{

View File

@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class DecompDesc
{

View File

@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public delegate void ConvexDecompositionCallback(ConvexResult result);

View File

@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class ConvexResult
{

View File

@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class HullResult
{

View File

@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class HullTriangle : int3
{

View File

@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public static class HullUtils
{

View File

@ -27,7 +27,7 @@
using System;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class Plane
{

View File

@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public enum PlaneTriResult : int
{

View File

@ -27,7 +27,7 @@
using System;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class Quaternion : float4
{

View File

@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class Rect3d
{

View File

@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class VertexPool
{

View File

@ -27,7 +27,7 @@
using System;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class float2
{

View File

@ -27,7 +27,7 @@
using System;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class float3 : IEquatable<float3>
{

View File

@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class float3x3
{

View File

@ -27,7 +27,7 @@
using System;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class float4
{

View File

@ -30,7 +30,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class float4x4
{

View File

@ -27,7 +27,7 @@
using System;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class int3
{

View File

@ -27,7 +27,7 @@
using System;
namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
namespace OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet
{
public class int4
{

View File

@ -31,7 +31,7 @@ using System.Diagnostics;
using System.Globalization;
using OpenMetaverse;
using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Region.PhysicsModules.Meshing;
using OpenSim.Region.PhysicsModule.Meshing;
public class Vertex : IComparable<Vertex>
{

View File

@ -33,7 +33,7 @@ using OpenSim.Region.PhysicsModules.SharedBase;
using PrimMesher;
using OpenMetaverse;
namespace OpenSim.Region.PhysicsModules.Meshing
namespace OpenSim.Region.PhysicsModule.Meshing
{
public class Mesh : IMesh
{

View File

@ -44,7 +44,7 @@ using log4net;
using Nini.Config;
using Mono.Addins;
namespace OpenSim.Region.PhysicsModules.Meshing
namespace OpenSim.Region.PhysicsModule.Meshing
{
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "Meshmerizer")]
public class Meshmerizer : IMesher, INonSharedRegionModule

View File

@ -6,7 +6,7 @@ using Mono.Addins;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OpenSim.Region.PhysicsModules.Meshing")]
[assembly: AssemblyTitle("OpenSim.Region.PhysicsModule.Meshing")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("http://opensimulator.org")]
@ -32,5 +32,5 @@ using Mono.Addins;
//
[assembly: AssemblyVersion("0.8.2.*")]
[assembly: Addin("OpenSim.Region.PhysicsModules.Meshing", OpenSim.VersionInfo.VersionNumber)]
[assembly: Addin("OpenSim.Region.PhysicsModule.Meshing", OpenSim.VersionInfo.VersionNumber)]
[assembly: AddinDependency("OpenSim.Region.Framework", OpenSim.VersionInfo.VersionNumber)]

View File

@ -47,7 +47,7 @@ using log4net;
* it's always availabe and thus the default in case of configuration errors
*/
namespace OpenSim.Region.PhysicsModules.Meshing
namespace OpenSim.Region.PhysicsModule.Meshing
{
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "ZeroMesher")]

View File

@ -65,7 +65,7 @@ namespace OpenSim.Region.PhysicsModule.ODE.Tests
info.RegionSizeX = info.RegionSizeY = info.RegionSizeZ = Constants.RegionSize;
OpenSim.Region.Framework.Scenes.Scene scene = new OpenSim.Region.Framework.Scenes.Scene(info);
//IMesher mesher = new OpenSim.Region.PhysicsModules.Meshing.Meshmerizer();
//IMesher mesher = new OpenSim.Region.PhysicsModule.Meshing.Meshmerizer();
//INonSharedRegionModule mod = mesher as INonSharedRegionModule;
//mod.Initialise(openSimINI);
//mod.AddRegion(scene);

View File

@ -31,7 +31,7 @@ using System.Diagnostics;
using System.Globalization;
using OpenMetaverse;
using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Region.PhysicsModules.UbitMeshing;
using OpenSim.Region.PhysicsModule.UbitMeshing;
public class Vertex : IComparable<Vertex>
{

View File

@ -35,7 +35,7 @@ using OpenMetaverse;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
namespace OpenSim.Region.PhysicsModules.UbitMeshing
namespace OpenSim.Region.PhysicsModule.UbitMeshing
{
public class MeshBuildingData
{

View File

@ -32,7 +32,7 @@ using OpenSim.Framework;
using OpenSim.Region.Framework.Scenes;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet;
using OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet;
using OpenMetaverse;
using OpenMetaverse.StructuredData;
using System.Drawing;
@ -49,7 +49,7 @@ using System.Runtime.Serialization.Formatters.Binary;
using Mono.Addins;
namespace OpenSim.Region.PhysicsModules.UbitMeshing
namespace OpenSim.Region.PhysicsModule.UbitMeshing
{
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "UbitMeshmerizer")]
public class UbitMeshmerizer : IMesher, INonSharedRegionModule

View File

@ -37,7 +37,7 @@ using OpenSim.Framework;
using OpenSim.Region.PhysicsModules.SharedBase;
using log4net;
namespace OpenSim.Region.PhysicsModules.UbitOde
namespace OpenSim.Region.PhysicsModule.UbitOde
{
/// <summary>
/// Various properties that ODE uses for AMotors but isn't exposed in ODE.NET so we must define them ourselves.

View File

@ -50,7 +50,7 @@ using OdeAPI;
using OpenSim.Framework;
using OpenSim.Region.PhysicsModules.SharedBase;
namespace OpenSim.Region.PhysicsModules.UbitOde
namespace OpenSim.Region.PhysicsModule.UbitOde
{
public class ODEDynamics
{

View File

@ -16,7 +16,7 @@ using log4net;
using Nini.Config;
using OpenMetaverse;
namespace OpenSim.Region.PhysicsModules.UbitOde
namespace OpenSim.Region.PhysicsModule.UbitOde
{
public enum MeshState : byte
{

View File

@ -57,7 +57,7 @@ using OdeAPI;
using OpenSim.Framework;
using OpenSim.Region.PhysicsModules.SharedBase;
namespace OpenSim.Region.PhysicsModules.UbitOde
namespace OpenSim.Region.PhysicsModule.UbitOde
{
public class OdePrim : PhysicsActor
{

View File

@ -36,7 +36,7 @@ using OdeAPI;
using log4net;
using OpenMetaverse;
namespace OpenSim.Region.PhysicsModules.UbitOde
namespace OpenSim.Region.PhysicsModule.UbitOde
{
/// <summary>
/// Processes raycast requests as ODE is in a state to be able to do them.

View File

@ -36,7 +36,7 @@ using OdeAPI;
using log4net;
using OpenMetaverse;
namespace OpenSim.Region.PhysicsModules.UbitOde
namespace OpenSim.Region.PhysicsModule.UbitOde
{
/// <summary>
/// </summary>

View File

@ -45,7 +45,7 @@ using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.PhysicsModules.SharedBase;
using OpenMetaverse;
namespace OpenSim.Region.PhysicsModules.UbitOde
namespace OpenSim.Region.PhysicsModule.UbitOde
{
// colision flags of things others can colide with
// rays, sensors, probes removed since can't be colided with
@ -384,6 +384,7 @@ namespace OpenSim.Region.PhysicsModules.UbitOde
PhysicsSceneName = EngineType + "/" + scene.RegionInfo.RegionName;
scene.RegisterModuleInterface<PhysicsScene>(this);
Vector3 extent = new Vector3(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY, scene.RegionInfo.RegionSizeZ);
Initialization(extent);

View File

@ -359,7 +359,7 @@
</Files>
</Project>
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.UbitOde" path="OpenSim/Region/PhysicsModules/UbitOde" type="Library">
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.UbitOde" path="OpenSim/Region/PhysicsModules/UbitOde" type="Library">
<Configuration name="Debug">
<Options>
<OutputPath>../../../../bin/</OutputPath>
@ -381,7 +381,7 @@
<Reference name="OpenSim.Framework.Console"/>
<Reference name="OpenSim.Region.Framework"/>
<Reference name="OpenSim.Region.PhysicsModules.SharedBase"/>
<Reference name="OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet"/>
<Reference name="OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet"/>
<Reference name="Mono.Addins" path="../../../../bin/"/>
<Reference name="log4net" path="../../../../bin/"/>
@ -392,7 +392,7 @@
</Files>
</Project>
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.UbitMeshing" path="OpenSim/Region/PhysicsModules/UbitMeshing" type="Library">
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.UbitMeshing" path="OpenSim/Region/PhysicsModules/UbitMeshing" type="Library">
<Configuration name="Debug">
<Options>
<OutputPath>../../../../bin/</OutputPath>
@ -416,7 +416,7 @@
<Reference name="OpenSim.Framework.Console"/>
<Reference name="OpenSim.Region.PhysicsModules.SharedBase"/>
<Reference name="OpenSim.Region.Framework"/>
<Reference name="OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet"/>
<Reference name="OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet"/>
<Reference name="zlib.net" path="../../../../bin/"/>
<Reference name="Mono.Addins" path="../../../../bin/"/>
<Reference name="log4net" path="../../../../bin/"/>
@ -1592,7 +1592,7 @@
</Files>
</Project>
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet" path="OpenSim/Region/PhysicsModules/ConvexDecompositionDotNet" type="Library">
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet" path="OpenSim/Region/PhysicsModules/ConvexDecompositionDotNet" type="Library">
<Configuration name="Debug">
<Options>
<OutputPath>../../../../bin/</OutputPath>
@ -1617,7 +1617,7 @@
</Files>
</Project>
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.Meshing" path="OpenSim/Region/PhysicsModules/Meshing" type="Library">
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.Meshing" path="OpenSim/Region/PhysicsModules/Meshing" type="Library">
<Configuration name="Debug">
<Options>
<OutputPath>../../../../bin/</OutputPath>
@ -1757,8 +1757,8 @@
<Reference name="OpenSim.Region.Framework"/>
<Reference name="OpenSim.Framework.Console"/>
<Reference name="OpenSim.Region.PhysicsModules.SharedBase"/>
<Reference name="OpenSim.Region.PhysicsModules.Meshing" path="../../../../bin/"/>
<Reference name="OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet"/>
<Reference name="OpenSim.Region.PhysicsModule.Meshing" path="../../../../bin/"/>
<Reference name="OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet"/>
<Reference name="Mono.Addins" path="../../../../bin/"/>
<Reference name="BulletXNA.dll" path="../../../../bin/"/>
<Reference name="log4net.dll" path="../../../../bin/"/>
@ -3223,7 +3223,7 @@
<Reference name="OpenSim.Framework"/>
<Reference name="OpenSim.Tests.Common"/>
<Reference name="OpenSim.Region.Framework"/>
<Reference name="OpenSim.Region.PhysicsModules.Meshing"/>
<Reference name="OpenSim.Region.PhysicsModule.Meshing"/>
<Reference name="OpenSim.Region.PhysicsModules.SharedBase"/>
<Reference name="OpenSim.Region.PhysicsModule.BulletS"/>