aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Archiver/ArchiveConstants.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs2
-rw-r--r--OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs16
-rw-r--r--OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs24
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs2
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs4
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs2
7 files changed, 29 insertions, 25 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveConstants.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveConstants.cs
index 0766c95..f4586b0 100644
--- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveConstants.cs
+++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveConstants.cs
@@ -72,7 +72,9 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
72 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Notecard] = ".ncd"; 72 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Notecard] = ".ncd";
73 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Object] = ".oob"; 73 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Object] = ".oob";
74 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.RootFolder] = ".rfd"; // Not sure if we'll ever see this 74 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.RootFolder] = ".rfd"; // Not sure if we'll ever see this
75 #pragma warning disable 0612
75 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Script] = ".spt"; // Not sure if we'll ever see this 76 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Script] = ".spt"; // Not sure if we'll ever see this
77 #pragma warning restore 0612
76 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Simstate] = ".sst"; // Not sure if we'll ever see this 78 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Simstate] = ".sst"; // Not sure if we'll ever see this
77 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.SnapshotFolder] = ".sfd"; // Not sure if we'll ever see this 79 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.SnapshotFolder] = ".sfd"; // Not sure if we'll ever see this
78 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Sound] = ".ogg"; 80 ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Sound] = ".ogg";
@@ -95,7 +97,9 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
95 EXTENSION_TO_ASSET_TYPE[".ncd"] = (sbyte)AssetType.Notecard; 97 EXTENSION_TO_ASSET_TYPE[".ncd"] = (sbyte)AssetType.Notecard;
96 EXTENSION_TO_ASSET_TYPE[".oob"] = (sbyte)AssetType.Object; 98 EXTENSION_TO_ASSET_TYPE[".oob"] = (sbyte)AssetType.Object;
97 EXTENSION_TO_ASSET_TYPE[".rfd"] = (sbyte)AssetType.RootFolder; 99 EXTENSION_TO_ASSET_TYPE[".rfd"] = (sbyte)AssetType.RootFolder;
100 #pragma warning disable 0612
98 EXTENSION_TO_ASSET_TYPE[".spt"] = (sbyte)AssetType.Script; 101 EXTENSION_TO_ASSET_TYPE[".spt"] = (sbyte)AssetType.Script;
102 #pragma warning restore 0612
99 EXTENSION_TO_ASSET_TYPE[".sst"] = (sbyte)AssetType.Simstate; 103 EXTENSION_TO_ASSET_TYPE[".sst"] = (sbyte)AssetType.Simstate;
100 EXTENSION_TO_ASSET_TYPE[".sfd"] = (sbyte)AssetType.SnapshotFolder; 104 EXTENSION_TO_ASSET_TYPE[".sfd"] = (sbyte)AssetType.SnapshotFolder;
101 EXTENSION_TO_ASSET_TYPE[".ogg"] = (sbyte)AssetType.Sound; 105 EXTENSION_TO_ASSET_TYPE[".ogg"] = (sbyte)AssetType.Sound;
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs
index ae3d333..69f712c 100644
--- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs
@@ -42,7 +42,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
42 /// </summary> 42 /// </summary>
43 public class ArchiverModule : IRegionModule, IRegionArchiver 43 public class ArchiverModule : IRegionModule, IRegionArchiver
44 { 44 {
45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 45 // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
46 46
47 /// <summary> 47 /// <summary>
48 /// Scene to which this module belongs 48 /// Scene to which this module belongs
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs
index 32a3cc4..86472f6 100644
--- a/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs
@@ -34,17 +34,17 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
34{ 34{
35 public class NPCModule : IRegionModule 35 public class NPCModule : IRegionModule
36 { 36 {
37 private const bool m_enabled = false; 37 // private const bool m_enabled = false;
38 38
39 public void Initialise(Scene scene, IConfigSource source) 39 public void Initialise(Scene scene, IConfigSource source)
40 { 40 {
41 if (m_enabled) 41 // if (m_enabled)
42 { 42 // {
43 NPCAvatar testAvatar = new NPCAvatar("Jack", "NPC", new LLVector3(128, 128, 40), scene); 43 // NPCAvatar testAvatar = new NPCAvatar("Jack", "NPC", new LLVector3(128, 128, 40), scene);
44 NPCAvatar testAvatar2 = new NPCAvatar("Jill", "NPC", new LLVector3(136, 128, 40), scene); 44 // NPCAvatar testAvatar2 = new NPCAvatar("Jill", "NPC", new LLVector3(136, 128, 40), scene);
45 scene.AddNewClient(testAvatar, false); 45 // scene.AddNewClient(testAvatar, false);
46 scene.AddNewClient(testAvatar2, false); 46 // scene.AddNewClient(testAvatar2, false);
47 } 47 // }
48 } 48 }
49 49
50 public void PostInitialise() 50 public void PostInitialise()
diff --git a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs
index bb4a568..f73c193 100644
--- a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs
@@ -57,16 +57,16 @@ namespace OpenSim.Region.Environment.Modules
57 private double m_day_length = 0; 57 private double m_day_length = 0;
58 private int m_year_length = 0; 58 private int m_year_length = 0;
59 private double m_day_night = 0; 59 private double m_day_night = 0;
60 private double m_longitude = 0; 60 // private double m_longitude = 0;
61 private double m_latitude = 0; 61 // private double m_latitude = 0;
62 // Configurable defaults Defaults close to SL 62 // Configurable defaults Defaults close to SL
63 private string d_mode = "SL"; 63 private string d_mode = "SL";
64 private int d_frame_mod = 100; // Every 10 seconds (actually less) 64 private int d_frame_mod = 100; // Every 10 seconds (actually less)
65 private double d_day_length = 4; // A VW day is 4 RW hours long 65 private double d_day_length = 4; // A VW day is 4 RW hours long
66 private int d_year_length = 60; // There are 60 VW days in a VW year 66 private int d_year_length = 60; // There are 60 VW days in a VW year
67 private double d_day_night = 0.45; // axis offset: ratio of light-to-dark, approx 1:3 67 private double d_day_night = 0.45; // axis offset: ratio of light-to-dark, approx 1:3
68 private double d_longitude = -73.53; 68 // private double d_longitude = -73.53;
69 private double d_latitude = 41.29; 69 // private double d_latitude = 41.29;
70 70
71 // Frame counter 71 // Frame counter
72 private uint m_frame = 0; 72 private uint m_frame = 0;
@@ -80,7 +80,7 @@ namespace OpenSim.Region.Environment.Modules
80 private uint SecondsPerYear; // Length of a virtual year in RW seconds 80 private uint SecondsPerYear; // Length of a virtual year in RW seconds
81 private double SunSpeed; // Rate of passage in radians/second 81 private double SunSpeed; // Rate of passage in radians/second
82 private double SeasonSpeed; // Rate of change for seasonal effects 82 private double SeasonSpeed; // Rate of change for seasonal effects
83 private double HoursToRadians; // Rate of change for seasonal effects 83 // private double HoursToRadians; // Rate of change for seasonal effects
84 private long TicksOffset = 0; // seconds offset from UTC 84 private long TicksOffset = 0; // seconds offset from UTC
85 // Calculated every update 85 // Calculated every update
86 private float OrbitalPosition; // Orbital placement at a point in time 86 private float OrbitalPosition; // Orbital placement at a point in time
@@ -88,7 +88,7 @@ namespace OpenSim.Region.Environment.Modules
88 private double TotalDistanceTravelled; // Distance since beginning of time (in radians) 88 private double TotalDistanceTravelled; // Distance since beginning of time (in radians)
89 private double SeasonalOffset; // Seaonal variation of tilt 89 private double SeasonalOffset; // Seaonal variation of tilt
90 private float Magnitude; // Normal tilt 90 private float Magnitude; // Normal tilt
91 private double VWTimeRatio; // VW time as a ratio of real time 91 // private double VWTimeRatio; // VW time as a ratio of real time
92 92
93 // Working values 93 // Working values
94 private LLVector3 Position = new LLVector3(0,0,0); 94 private LLVector3 Position = new LLVector3(0,0,0);
@@ -173,9 +173,9 @@ namespace OpenSim.Region.Environment.Modules
173 // Mode: determines how the sun is handled 173 // Mode: determines how the sun is handled
174 m_mode = config.Configs["Sun"].GetString("mode", d_mode); 174 m_mode = config.Configs["Sun"].GetString("mode", d_mode);
175 // Mode: determines how the sun is handled 175 // Mode: determines how the sun is handled
176 m_latitude = config.Configs["Sun"].GetDouble("latitude", d_latitude); 176 // m_latitude = config.Configs["Sun"].GetDouble("latitude", d_latitude);
177 // Mode: determines how the sun is handled 177 // Mode: determines how the sun is handled
178 m_longitude = config.Configs["Sun"].GetDouble("longitude", d_longitude); 178 // m_longitude = config.Configs["Sun"].GetDouble("longitude", d_longitude);
179 // Day length in decimal hours 179 // Day length in decimal hours
180 m_year_length = config.Configs["Sun"].GetInt("year_length", d_year_length); 180 m_year_length = config.Configs["Sun"].GetInt("year_length", d_year_length);
181 // Day length in decimal hours 181 // Day length in decimal hours
@@ -193,8 +193,8 @@ namespace OpenSim.Region.Environment.Modules
193 m_day_length = d_day_length; 193 m_day_length = d_day_length;
194 m_day_night = d_day_night; 194 m_day_night = d_day_night;
195 m_frame_mod = d_frame_mod; 195 m_frame_mod = d_frame_mod;
196 m_latitude = d_latitude; 196 // m_latitude = d_latitude;
197 m_longitude = d_longitude; 197 // m_longitude = d_longitude;
198 } 198 }
199 199
200 switch (m_mode) 200 switch (m_mode)
@@ -209,7 +209,7 @@ namespace OpenSim.Region.Environment.Modules
209 209
210 // Ration of real-to-virtual time 210 // Ration of real-to-virtual time
211 211
212 VWTimeRatio = 24/m_day_length; 212 // VWTimeRatio = 24/m_day_length;
213 213
214 // Speed of rotation needed to complete a cycle in the 214 // Speed of rotation needed to complete a cycle in the
215 // designated period (day and season) 215 // designated period (day and season)
@@ -220,7 +220,7 @@ namespace OpenSim.Region.Environment.Modules
220 // Horizon translation 220 // Horizon translation
221 221
222 HorizonShift = m_day_night; // Z axis translation 222 HorizonShift = m_day_night; // Z axis translation
223 HoursToRadians = (SunCycle/24)*VWTimeRatio; 223 // HoursToRadians = (SunCycle/24)*VWTimeRatio;
224 224
225 // Insert our event handling hooks 225 // Insert our event handling hooks
226 226
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 3879b57..b7117df 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -72,7 +72,7 @@ namespace OpenSim.Region.Environment.Scenes
72 72
73 public InnerScene m_innerScene; 73 public InnerScene m_innerScene;
74 74
75 private Random Rand = new Random(); 75 // private Random Rand = new Random();
76 private uint _primCount = 720000; 76 private uint _primCount = 720000;
77 private readonly Mutex _primAllocateMutex = new Mutex(false); 77 private readonly Mutex _primAllocateMutex = new Mutex(false);
78 78
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 74f9d6c..4a24dad 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -87,7 +87,7 @@ namespace OpenSim.Region.Environment.Scenes
87 /// </summary> 87 /// </summary>
88 public partial class SceneObjectGroup : EntityBase 88 public partial class SceneObjectGroup : EntityBase
89 { 89 {
90 private PrimCountTaintedDelegate handlerPrimCountTainted = null; 90 // private PrimCountTaintedDelegate handlerPrimCountTainted = null;
91 91
92 /// <summary> 92 /// <summary>
93 /// Signal whether the non-inventory attributes of any prims in the group have changed 93 /// Signal whether the non-inventory attributes of any prims in the group have changed
@@ -107,7 +107,7 @@ namespace OpenSim.Region.Environment.Scenes
107 107
108 protected ulong m_regionHandle; 108 protected ulong m_regionHandle;
109 protected SceneObjectPart m_rootPart; 109 protected SceneObjectPart m_rootPart;
110 private Dictionary<LLUUID, scriptEvents> m_scriptEvents = new Dictionary<LLUUID, scriptEvents>(); 110 // private Dictionary<LLUUID, scriptEvents> m_scriptEvents = new Dictionary<LLUUID, scriptEvents>();
111 111
112 private Dictionary<uint, scriptPosTarget> m_targets = new Dictionary<uint, scriptPosTarget>(); 112 private Dictionary<uint, scriptPosTarget> m_targets = new Dictionary<uint, scriptPosTarget>();
113 113
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index b610477..7b04c82 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -169,7 +169,7 @@ namespace OpenSim.Region.Environment.Scenes
169 private Color m_color = Color.Black; 169 private Color m_color = Color.Black;
170 private string m_description = String.Empty; 170 private string m_description = String.Empty;
171 private List<uint> m_lastColliders = new List<uint>(); 171 private List<uint> m_lastColliders = new List<uint>();
172 private PhysicsVector m_lastRotationalVelocity = PhysicsVector.Zero; 172 // private PhysicsVector m_lastRotationalVelocity = PhysicsVector.Zero;
173 private int m_linkNum = 0; 173 private int m_linkNum = 0;
174 [XmlIgnore] 174 [XmlIgnore]
175 private int m_scriptAccessPin = 0; 175 private int m_scriptAccessPin = 0;