diff options
Diffstat (limited to '')
18 files changed, 71 insertions, 86 deletions
diff --git a/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs b/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs index 75d4870..fe9c8e7 100644 --- a/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs +++ b/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs | |||
@@ -25,11 +25,9 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
30 | using System.Xml; | 29 | using System.Xml; |
31 | using libsecondlife; | 30 | using libsecondlife; |
32 | using OpenSim.Framework.Console; | ||
33 | 31 | ||
34 | namespace OpenSim.Region.Environment.Scenes | 32 | namespace OpenSim.Region.Environment.Scenes |
35 | { | 33 | { |
diff --git a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs index 750129b..8f29507 100644 --- a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs +++ b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs | |||
@@ -26,11 +26,11 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Runtime.Serialization; | ||
30 | using System.Security.Permissions; | ||
29 | using libsecondlife; | 31 | using libsecondlife; |
30 | using libsecondlife.Packets; | 32 | using libsecondlife.Packets; |
31 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
32 | using System.Runtime.Serialization; | ||
33 | using System.Security.Permissions; | ||
34 | 34 | ||
35 | namespace OpenSim.Region.Environment.Scenes | 35 | namespace OpenSim.Region.Environment.Scenes |
36 | { | 36 | { |
@@ -159,7 +159,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
159 | 159 | ||
160 | if (info == null) | 160 | if (info == null) |
161 | { | 161 | { |
162 | throw new System.ArgumentNullException("info"); | 162 | throw new ArgumentNullException("info"); |
163 | } | 163 | } |
164 | 164 | ||
165 | m_scenePresenceID = new LLUUID((Guid)info.GetValue("m_scenePresenceID", typeof(Guid))); | 165 | m_scenePresenceID = new LLUUID((Guid)info.GetValue("m_scenePresenceID", typeof(Guid))); |
@@ -182,7 +182,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
182 | { | 182 | { |
183 | if (info == null) | 183 | if (info == null) |
184 | { | 184 | { |
185 | throw new System.ArgumentNullException("info"); | 185 | throw new ArgumentNullException("info"); |
186 | } | 186 | } |
187 | 187 | ||
188 | info.AddValue("m_scenePresenceID", m_scenePresenceID.UUID); | 188 | info.AddValue("m_scenePresenceID", m_scenePresenceID.UUID); |
diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs index 438118f..1faba9a 100644 --- a/OpenSim/Region/Environment/Scenes/EntityBase.cs +++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs | |||
@@ -25,13 +25,11 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Collections.Generic; | ||
29 | using Axiom.Math; | ||
30 | using libsecondlife; | ||
31 | |||
32 | using System; | 28 | using System; |
33 | using System.Runtime.Serialization; | 29 | using System.Runtime.Serialization; |
34 | using System.Security.Permissions; | 30 | using System.Security.Permissions; |
31 | using Axiom.Math; | ||
32 | using libsecondlife; | ||
35 | 33 | ||
36 | namespace OpenSim.Region.Environment.Scenes | 34 | namespace OpenSim.Region.Environment.Scenes |
37 | { | 35 | { |
@@ -145,7 +143,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
145 | 143 | ||
146 | if (info == null) | 144 | if (info == null) |
147 | { | 145 | { |
148 | throw new System.ArgumentNullException("info"); | 146 | throw new ArgumentNullException("info"); |
149 | } | 147 | } |
150 | 148 | ||
151 | m_uuid = new LLUUID((Guid)info.GetValue("m_uuid", typeof(Guid))); | 149 | m_uuid = new LLUUID((Guid)info.GetValue("m_uuid", typeof(Guid))); |
@@ -188,7 +186,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
188 | { | 186 | { |
189 | if (info == null) | 187 | if (info == null) |
190 | { | 188 | { |
191 | throw new System.ArgumentNullException("info"); | 189 | throw new ArgumentNullException("info"); |
192 | } | 190 | } |
193 | 191 | ||
194 | info.AddValue("m_uuid", m_uuid.UUID); | 192 | info.AddValue("m_uuid", m_uuid.UUID); |
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 8894db0..329f900 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -27,11 +27,12 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | ||
30 | using Axiom.Math; | 31 | using Axiom.Math; |
31 | using libsecondlife; | 32 | using libsecondlife; |
32 | using libsecondlife.Packets; | 33 | using libsecondlife.Packets; |
34 | using log4net; | ||
33 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Console; | ||
35 | using OpenSim.Region.Environment.Types; | 36 | using OpenSim.Region.Environment.Types; |
36 | using OpenSim.Region.Physics.Manager; | 37 | using OpenSim.Region.Physics.Manager; |
37 | 38 | ||
@@ -41,7 +42,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
41 | 42 | ||
42 | public class InnerScene | 43 | public class InnerScene |
43 | { | 44 | { |
44 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 46 | ||
46 | #region Events | 47 | #region Events |
47 | 48 | ||
@@ -295,7 +296,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
295 | 296 | ||
296 | public void AttachObject(IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, LLQuaternion rot) | 297 | public void AttachObject(IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, LLQuaternion rot) |
297 | { | 298 | { |
298 | System.Console.WriteLine("Attaching object " + objectLocalID + " to " + AttachmentPt); | 299 | Console.WriteLine("Attaching object " + objectLocalID + " to " + AttachmentPt); |
299 | SceneObjectPart p = GetSceneObjectPart(objectLocalID); | 300 | SceneObjectPart p = GetSceneObjectPart(objectLocalID); |
300 | if (p != null) | 301 | if (p != null) |
301 | { | 302 | { |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 2db9242..c5a1be1 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -27,23 +27,21 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using Axiom.Math; | 30 | using System.Reflection; |
31 | using System.Text; | ||
31 | using libsecondlife; | 32 | using libsecondlife; |
32 | using libsecondlife.Packets; | 33 | using libsecondlife.Packets; |
34 | using log4net; | ||
33 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Communications.Cache; | 36 | using OpenSim.Framework.Communications.Cache; |
35 | using OpenSim.Framework.Console; | ||
36 | using System.IO; | ||
37 | using System.Text; | ||
38 | using System.Xml; | ||
39 | using OpenSim.Region.Environment.Interfaces; | 37 | using OpenSim.Region.Environment.Interfaces; |
40 | 38 | ||
41 | namespace OpenSim.Region.Environment.Scenes | 39 | namespace OpenSim.Region.Environment.Scenes |
42 | { | 40 | { |
43 | public partial class Scene | 41 | public partial class Scene |
44 | { | 42 | { |
45 | private static readonly log4net.ILog m_log | 43 | private static readonly ILog m_log |
46 | = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 44 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
47 | 45 | ||
48 | /// <summary> | 46 | /// <summary> |
49 | /// Start all the scripts in the scene which should be started. | 47 | /// Start all the scripts in the scene which should be started. |
@@ -454,7 +452,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
454 | InventoryItemBase item = userInfo.RootFolder.HasItem(itemID); | 452 | InventoryItemBase item = userInfo.RootFolder.HasItem(itemID); |
455 | if (item != null) | 453 | if (item != null) |
456 | { | 454 | { |
457 | if (newName != System.String.Empty) | 455 | if (newName != String.Empty) |
458 | { | 456 | { |
459 | item.Name = newName; | 457 | item.Name = newName; |
460 | } | 458 | } |
@@ -1014,7 +1012,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1014 | public void RezSingleAttachment(IClientAPI remoteClient, LLUUID itemID, uint AttachmentPt, | 1012 | public void RezSingleAttachment(IClientAPI remoteClient, LLUUID itemID, uint AttachmentPt, |
1015 | uint ItemFlags, uint NextOwnerMask) | 1013 | uint ItemFlags, uint NextOwnerMask) |
1016 | { | 1014 | { |
1017 | System.Console.WriteLine("RezSingleAttachment: unimplemented yet"); | 1015 | Console.WriteLine("RezSingleAttachment: unimplemented yet"); |
1018 | } | 1016 | } |
1019 | } | 1017 | } |
1020 | } | 1018 | } |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 7e2c9ff..8fdb468 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |||
@@ -29,8 +29,6 @@ using System.Collections.Generic; | |||
29 | using libsecondlife; | 29 | using libsecondlife; |
30 | using libsecondlife.Packets; | 30 | using libsecondlife.Packets; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Framework.UserManagement; | ||
33 | using OpenSim.Framework.Console; | ||
34 | 32 | ||
35 | namespace OpenSim.Region.Environment.Scenes | 33 | namespace OpenSim.Region.Environment.Scenes |
36 | { | 34 | { |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index a3f6948..6d8d481 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -40,11 +40,12 @@ using OpenSim.Framework.Communications; | |||
40 | using OpenSim.Framework.Communications.Cache; | 40 | using OpenSim.Framework.Communications.Cache; |
41 | using OpenSim.Framework.Servers; | 41 | using OpenSim.Framework.Servers; |
42 | using OpenSim.Region.Environment.Interfaces; | 42 | using OpenSim.Region.Environment.Interfaces; |
43 | using OpenSim.Region.Environment.Modules.Terrain; | ||
43 | using OpenSim.Region.Environment.Scenes.Scripting; | 44 | using OpenSim.Region.Environment.Scenes.Scripting; |
44 | using OpenSim.Region.Physics.Manager; | 45 | using OpenSim.Region.Physics.Manager; |
45 | using Caps = OpenSim.Region.Capabilities.Caps; | 46 | using Caps=OpenSim.Region.Capabilities.Caps; |
46 | using Image = System.Drawing.Image; | 47 | using Image=System.Drawing.Image; |
47 | using Timer = System.Timers.Timer; | 48 | using Timer=System.Timers.Timer; |
48 | 49 | ||
49 | namespace OpenSim.Region.Environment.Scenes | 50 | namespace OpenSim.Region.Environment.Scenes |
50 | { | 51 | { |
@@ -580,7 +581,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
580 | if (!avatar.IsChildAgent) | 581 | if (!avatar.IsChildAgent) |
581 | avatar.ControllingClient.Kick("The simulator is going down."); | 582 | avatar.ControllingClient.Kick("The simulator is going down."); |
582 | 583 | ||
583 | avatar.ControllingClient.OutPacket(PacketPool.Instance.GetPacket(libsecondlife.Packets.PacketType.DisableSimulator), | 584 | avatar.ControllingClient.OutPacket(PacketPool.Instance.GetPacket(PacketType.DisableSimulator), |
584 | ThrottleOutPacketType.Task); | 585 | ThrottleOutPacketType.Task); |
585 | }); | 586 | }); |
586 | 587 | ||
@@ -755,17 +756,17 @@ namespace OpenSim.Region.Environment.Scenes | |||
755 | { | 756 | { |
756 | throw; | 757 | throw; |
757 | } | 758 | } |
758 | catch (System.AccessViolationException e) | 759 | catch (AccessViolationException e) |
759 | { | 760 | { |
760 | m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); | 761 | m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); |
761 | 762 | ||
762 | } | 763 | } |
763 | catch (System.NullReferenceException e) | 764 | catch (NullReferenceException e) |
764 | { | 765 | { |
765 | m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); | 766 | m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); |
766 | 767 | ||
767 | } | 768 | } |
768 | catch (System.InvalidOperationException e) | 769 | catch (InvalidOperationException e) |
769 | { | 770 | { |
770 | m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); | 771 | m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); |
771 | 772 | ||
@@ -941,13 +942,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
941 | if (map == null) | 942 | if (map == null) |
942 | { | 943 | { |
943 | m_log.Info("[TERRAIN]: No default terrain. Generating a new terrain."); | 944 | m_log.Info("[TERRAIN]: No default terrain. Generating a new terrain."); |
944 | Heightmap = new Modules.Terrain.TerrainChannel(); | 945 | Heightmap = new TerrainChannel(); |
945 | 946 | ||
946 | m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); | 947 | m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); |
947 | } | 948 | } |
948 | else | 949 | else |
949 | { | 950 | { |
950 | Heightmap = new Modules.Terrain.TerrainChannel(map); | 951 | Heightmap = new TerrainChannel(map); |
951 | } | 952 | } |
952 | 953 | ||
953 | } | 954 | } |
@@ -1094,7 +1095,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1094 | byte[] data; | 1095 | byte[] data; |
1095 | try | 1096 | try |
1096 | { | 1097 | { |
1097 | data = OpenJPEGNet.OpenJPEG.EncodeFromImage(mapbmp, false); | 1098 | data = OpenJPEG.EncodeFromImage(mapbmp, false); |
1098 | } | 1099 | } |
1099 | catch (Exception) | 1100 | catch (Exception) |
1100 | { | 1101 | { |
@@ -1420,7 +1421,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1420 | { | 1421 | { |
1421 | DeleteSceneObjectGroup(grp); | 1422 | DeleteSceneObjectGroup(grp); |
1422 | } | 1423 | } |
1423 | catch (System.Exception) | 1424 | catch (Exception) |
1424 | { | 1425 | { |
1425 | m_log.Warn("[DATABASE]: exception when trying to remove the prim that crossed the border."); | 1426 | m_log.Warn("[DATABASE]: exception when trying to remove the prim that crossed the border."); |
1426 | } | 1427 | } |
@@ -1714,7 +1715,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1714 | { | 1715 | { |
1715 | client.SendKillObject(avatar.RegionHandle, avatar.LocalId); | 1716 | client.SendKillObject(avatar.RegionHandle, avatar.LocalId); |
1716 | } | 1717 | } |
1717 | catch (System.NullReferenceException) | 1718 | catch (NullReferenceException) |
1718 | { | 1719 | { |
1719 | //We can safely ignore null reference exceptions. It means the avatar are dead and cleaned up anyway. | 1720 | //We can safely ignore null reference exceptions. It means the avatar are dead and cleaned up anyway. |
1720 | } | 1721 | } |
@@ -2041,7 +2042,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2041 | m_innerScene.removeUserCount(true); | 2042 | m_innerScene.removeUserCount(true); |
2042 | } | 2043 | } |
2043 | // Tell a single agent to disconnect from the region. | 2044 | // Tell a single agent to disconnect from the region. |
2044 | libsecondlife.Packets.DisableSimulatorPacket disable = (libsecondlife.Packets.DisableSimulatorPacket)PacketPool.Instance.GetPacket(libsecondlife.Packets.PacketType.DisableSimulator); | 2045 | DisableSimulatorPacket disable = (DisableSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.DisableSimulator); |
2045 | presence.ControllingClient.OutPacket(disable, ThrottleOutPacketType.Unknown); | 2046 | presence.ControllingClient.OutPacket(disable, ThrottleOutPacketType.Unknown); |
2046 | presence.ControllingClient.Close(true); | 2047 | presence.ControllingClient.Close(true); |
2047 | } | 2048 | } |
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs index 5551173..d9dc1da 100644 --- a/OpenSim/Region/Environment/Scenes/SceneBase.cs +++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs | |||
@@ -27,18 +27,18 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | ||
30 | using libsecondlife; | 31 | using libsecondlife; |
32 | using log4net; | ||
31 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
32 | using OpenSim.Framework.Communications.Cache; | 34 | using OpenSim.Framework.Communications.Cache; |
33 | using OpenSim.Framework.Console; | ||
34 | using OpenSim.Region.Terrain; | ||
35 | using OpenSim.Region.Environment.Interfaces; | 35 | using OpenSim.Region.Environment.Interfaces; |
36 | 36 | ||
37 | namespace OpenSim.Region.Environment.Scenes | 37 | namespace OpenSim.Region.Environment.Scenes |
38 | { | 38 | { |
39 | public abstract class SceneBase : IScene | 39 | public abstract class SceneBase : IScene |
40 | { | 40 | { |
41 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 41 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
42 | 42 | ||
43 | #region Events | 43 | #region Events |
44 | 44 | ||
@@ -204,7 +204,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
204 | /// <summary> | 204 | /// <summary> |
205 | /// XXX These two methods are very temporary | 205 | /// XXX These two methods are very temporary |
206 | /// </summary> | 206 | /// </summary> |
207 | protected Dictionary<LLUUID, String> capsPaths = new Dictionary<LLUUID, String>(); | 207 | protected Dictionary<LLUUID, string> capsPaths = new Dictionary<LLUUID, string>(); |
208 | public string GetCapsPath(LLUUID agentId) | 208 | public string GetCapsPath(LLUUID agentId) |
209 | { | 209 | { |
210 | if (capsPaths.ContainsKey(agentId)) | 210 | if (capsPaths.ContainsKey(agentId)) |
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index db2327e..0062e4d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |||
@@ -28,10 +28,11 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Reflection; | ||
31 | using libsecondlife; | 32 | using libsecondlife; |
33 | using log4net; | ||
32 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Communications; | 35 | using OpenSim.Framework.Communications; |
34 | using OpenSim.Framework.Console; | ||
35 | 36 | ||
36 | namespace OpenSim.Region.Environment.Scenes | 37 | namespace OpenSim.Region.Environment.Scenes |
37 | { | 38 | { |
@@ -41,7 +42,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
41 | 42 | ||
42 | public class SceneCommunicationService //one instance per region | 43 | public class SceneCommunicationService //one instance per region |
43 | { | 44 | { |
44 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 46 | ||
46 | protected CommunicationsManager m_commsProvider; | 47 | protected CommunicationsManager m_commsProvider; |
47 | protected RegionInfo m_regionInfo; | 48 | protected RegionInfo m_regionInfo; |
@@ -416,7 +417,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
416 | } | 417 | } |
417 | } | 418 | } |
418 | } | 419 | } |
419 | catch (System.InvalidOperationException) | 420 | catch (InvalidOperationException) |
420 | { | 421 | { |
421 | // We're ignoring a collection was modified error because this data gets old and outdated fast. | 422 | // We're ignoring a collection was modified error because this data gets old and outdated fast. |
422 | } | 423 | } |
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 5cf8ece..c9c0ad6 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -25,11 +25,11 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using libsecondlife; | ||
29 | using System; | 28 | using System; |
29 | using libsecondlife; | ||
30 | using OpenSim.Framework; | 30 | using OpenSim.Framework; |
31 | using OpenSim.Region.Environment.Interfaces; | 31 | using OpenSim.Region.Environment.Interfaces; |
32 | using Caps = OpenSim.Region.Capabilities.Caps; | 32 | using Caps=OpenSim.Region.Capabilities.Caps; |
33 | 33 | ||
34 | namespace OpenSim.Region.Environment.Scenes | 34 | namespace OpenSim.Region.Environment.Scenes |
35 | { | 35 | { |
@@ -155,7 +155,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
155 | public delegate void DeregisterCapsEvent(LLUUID agentID, Caps caps); | 155 | public delegate void DeregisterCapsEvent(LLUUID agentID, Caps caps); |
156 | public event DeregisterCapsEvent OnDeregisterCaps; | 156 | public event DeregisterCapsEvent OnDeregisterCaps; |
157 | 157 | ||
158 | public class MoneyTransferArgs : System.EventArgs | 158 | public class MoneyTransferArgs : EventArgs |
159 | { | 159 | { |
160 | public LLUUID sender; | 160 | public LLUUID sender; |
161 | public LLUUID receiver; | 161 | public LLUUID receiver; |
@@ -176,7 +176,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
176 | } | 176 | } |
177 | } | 177 | } |
178 | 178 | ||
179 | public class LandBuyArgs : System.EventArgs | 179 | public class LandBuyArgs : EventArgs |
180 | { | 180 | { |
181 | public LLUUID agentId = LLUUID.Zero; | 181 | public LLUUID agentId = LLUUID.Zero; |
182 | 182 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 102be30..61a4eae 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs | |||
@@ -28,10 +28,10 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Net.Sockets; | 31 | using System.Reflection; |
32 | using libsecondlife; | 32 | using libsecondlife; |
33 | using log4net; | ||
33 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Console; | ||
35 | 35 | ||
36 | namespace OpenSim.Region.Environment.Scenes | 36 | namespace OpenSim.Region.Environment.Scenes |
37 | { | 37 | { |
@@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
39 | 39 | ||
40 | public class SceneManager | 40 | public class SceneManager |
41 | { | 41 | { |
42 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
43 | 43 | ||
44 | public event RestartSim OnRestartSim; | 44 | public event RestartSim OnRestartSim; |
45 | 45 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs index 495b604..d9808e6 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs | |||
@@ -25,19 +25,17 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System.Reflection; |
29 | |||
30 | using libsecondlife; | 29 | using libsecondlife; |
31 | 30 | using log4net; | |
32 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Console; | ||
34 | using OpenSim.Region.Environment.Interfaces; | 32 | using OpenSim.Region.Environment.Interfaces; |
35 | 33 | ||
36 | namespace OpenSim.Region.Environment.Scenes | 34 | namespace OpenSim.Region.Environment.Scenes |
37 | { | 35 | { |
38 | public partial class SceneObjectGroup : EntityBase | 36 | public partial class SceneObjectGroup : EntityBase |
39 | { | 37 | { |
40 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 38 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
41 | 39 | ||
42 | /// <summary> | 40 | /// <summary> |
43 | /// Start a given script. | 41 | /// Start a given script. |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 7abaaee..8651d7e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -29,13 +29,11 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Drawing; | 30 | using System.Drawing; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Text; | ||
33 | using System.Xml; | 32 | using System.Xml; |
34 | using Axiom.Math; | 33 | using Axiom.Math; |
35 | using libsecondlife; | 34 | using libsecondlife; |
36 | using libsecondlife.Packets; | 35 | using libsecondlife.Packets; |
37 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
38 | using OpenSim.Framework.Console; | ||
39 | using OpenSim.Region.Environment.Interfaces; | 37 | using OpenSim.Region.Environment.Interfaces; |
40 | using OpenSim.Region.Physics.Manager; | 38 | using OpenSim.Region.Physics.Manager; |
41 | 39 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index 8ce71c4..72f78f3 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -27,13 +27,11 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Xml.Serialization; | 30 | using System.Reflection; |
31 | |||
32 | using libsecondlife; | 31 | using libsecondlife; |
33 | 32 | using log4net; | |
34 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Communications.Cache; | 34 | using OpenSim.Framework.Communications.Cache; |
36 | using OpenSim.Framework.Console; | ||
37 | using OpenSim.Region.Environment.Interfaces; | 35 | using OpenSim.Region.Environment.Interfaces; |
38 | using OpenSim.Region.Environment.Scenes.Scripting; | 36 | using OpenSim.Region.Environment.Scenes.Scripting; |
39 | 37 | ||
@@ -41,7 +39,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
41 | { | 39 | { |
42 | public partial class SceneObjectPart : IScriptHost | 40 | public partial class SceneObjectPart : IScriptHost |
43 | { | 41 | { |
44 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 43 | ||
46 | private string m_inventoryFileName = String.Empty; | 44 | private string m_inventoryFileName = String.Empty; |
47 | 45 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 61d10c9..40a9fcf 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -28,18 +28,16 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Drawing; | 30 | using System.Drawing; |
31 | using System.Runtime.Serialization; | ||
32 | using System.Security.Permissions; | ||
31 | using System.Xml; | 33 | using System.Xml; |
32 | using System.Xml.Serialization; | 34 | using System.Xml.Serialization; |
33 | using Axiom.Math; | 35 | using Axiom.Math; |
34 | using libsecondlife; | 36 | using libsecondlife; |
35 | using libsecondlife.Packets; | 37 | using libsecondlife.Packets; |
36 | using OpenSim.Framework; | 38 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Console; | ||
38 | using OpenSim.Region.Environment.Interfaces; | ||
39 | using OpenSim.Region.Environment.Scenes.Scripting; | 39 | using OpenSim.Region.Environment.Scenes.Scripting; |
40 | using OpenSim.Region.Physics.Manager; | 40 | using OpenSim.Region.Physics.Manager; |
41 | using System.Runtime.Serialization; | ||
42 | using System.Security.Permissions; | ||
43 | 41 | ||
44 | namespace OpenSim.Region.Environment.Scenes | 42 | namespace OpenSim.Region.Environment.Scenes |
45 | { | 43 | { |
@@ -324,7 +322,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
324 | ParentGroup.ResetChildPrimPhysicsPositions(); | 322 | ParentGroup.ResetChildPrimPhysicsPositions(); |
325 | 323 | ||
326 | } | 324 | } |
327 | catch (System.NullReferenceException) | 325 | catch (NullReferenceException) |
328 | { | 326 | { |
329 | // Ignore, and skip over. | 327 | // Ignore, and skip over. |
330 | } | 328 | } |
@@ -2326,7 +2324,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2326 | 2324 | ||
2327 | if (info == null) | 2325 | if (info == null) |
2328 | { | 2326 | { |
2329 | throw new System.ArgumentNullException("info"); | 2327 | throw new ArgumentNullException("info"); |
2330 | } | 2328 | } |
2331 | 2329 | ||
2332 | /* | 2330 | /* |
@@ -2344,7 +2342,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2344 | { | 2342 | { |
2345 | if (info == null) | 2343 | if (info == null) |
2346 | { | 2344 | { |
2347 | throw new System.ArgumentNullException("info"); | 2345 | throw new ArgumentNullException("info"); |
2348 | } | 2346 | } |
2349 | 2347 | ||
2350 | info.AddValue("m_inventoryFileName", m_inventoryFileName); | 2348 | info.AddValue("m_inventoryFileName", m_inventoryFileName); |
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 8b8373d..d85eea6 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -27,16 +27,16 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | ||
31 | using System.Runtime.Serialization; | ||
32 | using System.Security.Permissions; | ||
30 | using Axiom.Math; | 33 | using Axiom.Math; |
31 | using libsecondlife; | 34 | using libsecondlife; |
32 | using libsecondlife.Packets; | 35 | using libsecondlife.Packets; |
36 | using log4net; | ||
33 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Console; | ||
35 | using OpenSim.Region.Environment.Types; | 38 | using OpenSim.Region.Environment.Types; |
36 | using OpenSim.Region.Physics.Manager; | 39 | using OpenSim.Region.Physics.Manager; |
37 | using OpenSim.Region.Environment.Interfaces; | ||
38 | using System.Runtime.Serialization; | ||
39 | using System.Security.Permissions; | ||
40 | 40 | ||
41 | namespace OpenSim.Region.Environment.Scenes | 41 | namespace OpenSim.Region.Environment.Scenes |
42 | { | 42 | { |
@@ -48,7 +48,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
48 | // System.Console.WriteLine("[ScenePresence] Destructor called"); | 48 | // System.Console.WriteLine("[ScenePresence] Destructor called"); |
49 | // } | 49 | // } |
50 | 50 | ||
51 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 51 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
52 | 52 | ||
53 | public static AvatarAnimations Animations = new AvatarAnimations(); | 53 | public static AvatarAnimations Animations = new AvatarAnimations(); |
54 | public static byte[] DefaultTexture; | 54 | public static byte[] DefaultTexture; |
@@ -1746,7 +1746,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1746 | movementvector.Z = force.Z; | 1746 | movementvector.Z = force.Z; |
1747 | Velocity = movementvector; | 1747 | Velocity = movementvector; |
1748 | } | 1748 | } |
1749 | catch (System.NullReferenceException) | 1749 | catch (NullReferenceException) |
1750 | { | 1750 | { |
1751 | // Under extreme load, this returns a NullReference Exception that we can ignore. | 1751 | // Under extreme load, this returns a NullReference Exception that we can ignore. |
1752 | // Ignoring this causes no movement to be sent to the physics engine... | 1752 | // Ignoring this causes no movement to be sent to the physics engine... |
@@ -1800,7 +1800,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1800 | 1800 | ||
1801 | if (info == null) | 1801 | if (info == null) |
1802 | { | 1802 | { |
1803 | throw new System.ArgumentNullException("info"); | 1803 | throw new ArgumentNullException("info"); |
1804 | } | 1804 | } |
1805 | 1805 | ||
1806 | FullID = new LLUUID((Guid)info.GetValue("FullID", typeof(Guid))); | 1806 | FullID = new LLUUID((Guid)info.GetValue("FullID", typeof(Guid))); |
@@ -1817,7 +1817,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1817 | { | 1817 | { |
1818 | if (info == null) | 1818 | if (info == null) |
1819 | { | 1819 | { |
1820 | throw new System.ArgumentNullException("info"); | 1820 | throw new ArgumentNullException("info"); |
1821 | } | 1821 | } |
1822 | 1822 | ||
1823 | info.AddValue("FullID", FullID.UUID); | 1823 | info.AddValue("FullID", FullID.UUID); |
@@ -1928,7 +1928,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1928 | 1928 | ||
1929 | if (info == null) | 1929 | if (info == null) |
1930 | { | 1930 | { |
1931 | throw new System.ArgumentNullException("info"); | 1931 | throw new ArgumentNullException("info"); |
1932 | } | 1932 | } |
1933 | /* JB | 1933 | /* JB |
1934 | if (Animations == null) | 1934 | if (Animations == null) |
@@ -2100,7 +2100,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2100 | { | 2100 | { |
2101 | if (info == null) | 2101 | if (info == null) |
2102 | { | 2102 | { |
2103 | throw new System.ArgumentNullException("info"); | 2103 | throw new ArgumentNullException("info"); |
2104 | } | 2104 | } |
2105 | 2105 | ||
2106 | base.GetObjectData(info, context); | 2106 | base.GetObjectData(info, context); |
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs index 18b3f46..b1ee519 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs | |||
@@ -25,8 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using OpenSim.Framework.Console; | ||
29 | |||
30 | //TODO: WHERE TO PLACE THIS? | 28 | //TODO: WHERE TO PLACE THIS? |
31 | 29 | ||
32 | namespace OpenSim.Region.Environment.Scenes.Scripting | 30 | namespace OpenSim.Region.Environment.Scenes.Scripting |
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs index 7dee2e4..6216e2c 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs | |||
@@ -29,13 +29,13 @@ | |||
29 | using System; | 29 | using System; |
30 | using System.IO; | 30 | using System.IO; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using OpenSim.Framework.Console; | 32 | using log4net; |
33 | 33 | ||
34 | namespace OpenSim.Region.Environment.Scenes.Scripting | 34 | namespace OpenSim.Region.Environment.Scenes.Scripting |
35 | { | 35 | { |
36 | public class ScriptEngineLoader | 36 | public class ScriptEngineLoader |
37 | { | 37 | { |
38 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 38 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
39 | 39 | ||
40 | public ScriptEngineInterface LoadScriptEngine(string EngineName) | 40 | public ScriptEngineInterface LoadScriptEngine(string EngineName) |
41 | { | 41 | { |