diff options
author | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
commit | 7d89e122930be39e84a6d174548fa2d12ac0484a (patch) | |
tree | e5aa5752f988a9aba2a969f49e5e208985eda80c /OpenSim/Region/Environment/Modules/World/Serialiser | |
parent | * minor: speculatively try a change to bamboo.build to see if this generates ... (diff) | |
download | opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.zip opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.gz opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.bz2 opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.xz |
* This is the fabled LibOMV update with all of the libOMV types from JHurliman
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle.
* This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big!
* Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
Diffstat (limited to '')
4 files changed, 20 insertions, 21 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs index e76d40d..bbc4acf 100644 --- a/OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs +++ b/OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs | |||
@@ -25,7 +25,7 @@ | |||
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; | 28 | using OpenMetaverse; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.IO; | 30 | using System.IO; |
31 | using OpenSim.Region.Environment.Scenes; | 31 | using OpenSim.Region.Environment.Scenes; |
@@ -43,7 +43,7 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
43 | /// <param name="fileName"></param> | 43 | /// <param name="fileName"></param> |
44 | /// <param name="newIDS"></param> | 44 | /// <param name="newIDS"></param> |
45 | /// <param name="loadOffset"></param> | 45 | /// <param name="loadOffset"></param> |
46 | void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, LLVector3 loadOffset); | 46 | void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, Vector3 loadOffset); |
47 | 47 | ||
48 | /// <summary> | 48 | /// <summary> |
49 | /// Save prims in the xml format | 49 | /// Save prims in the xml format |
@@ -76,14 +76,14 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
76 | 76 | ||
77 | /// <summary> | 77 | /// <summary> |
78 | /// Save prims in the xml2 format, optionally specifying a bounding box for which | 78 | /// Save prims in the xml2 format, optionally specifying a bounding box for which |
79 | /// prims should be saved. If both min and max vectors are LLVector3.Zero, then all prims | 79 | /// prims should be saved. If both min and max vectors are Vector3.Zero, then all prims |
80 | /// are exported. | 80 | /// are exported. |
81 | /// </summary> | 81 | /// </summary> |
82 | /// <param name="scene"></param> | 82 | /// <param name="scene"></param> |
83 | /// <param name="stream"></param> | 83 | /// <param name="stream"></param> |
84 | /// <param name="min"></param> | 84 | /// <param name="min"></param> |
85 | /// <param name="max"></param> | 85 | /// <param name="max"></param> |
86 | void SavePrimsToXml2(Scene scene, TextWriter stream, LLVector3 min, LLVector3 max); | 86 | void SavePrimsToXml2(Scene scene, TextWriter stream, Vector3 min, Vector3 max); |
87 | 87 | ||
88 | /// <summary> | 88 | /// <summary> |
89 | /// Save a set of prims in the xml2 format | 89 | /// Save a set of prims in the xml2 format |
@@ -94,14 +94,14 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
94 | 94 | ||
95 | /// <summary> | 95 | /// <summary> |
96 | /// Save a set of prims in the xml2 format, optionally specifying a bounding box for which | 96 | /// Save a set of prims in the xml2 format, optionally specifying a bounding box for which |
97 | /// prims should be saved. If both min and max vectors are LLVector3.Zero, then all prims | 97 | /// prims should be saved. If both min and max vectors are Vector3.Zero, then all prims |
98 | /// are exported. | 98 | /// are exported. |
99 | /// </summary> | 99 | /// </summary> |
100 | /// <param name="entityList"></param> | 100 | /// <param name="entityList"></param> |
101 | /// <param name="stream"></param> | 101 | /// <param name="stream"></param> |
102 | /// <param name="min"></param> | 102 | /// <param name="min"></param> |
103 | /// <param name="max"></param> | 103 | /// <param name="max"></param> |
104 | void SavePrimListToXml2(List<EntityBase> entityList, TextWriter stream, LLVector3 min, LLVector3 max); | 104 | void SavePrimListToXml2(List<EntityBase> entityList, TextWriter stream, Vector3 min, Vector3 max); |
105 | 105 | ||
106 | /// <summary> | 106 | /// <summary> |
107 | /// Deserializes a scene object from its xml2 representation. This does not load the object into the scene. | 107 | /// Deserializes a scene object from its xml2 representation. This does not load the object into the scene. |
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs index 22c9b29..d1cc082 100644 --- a/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs +++ b/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs | |||
@@ -30,8 +30,7 @@ using System.Collections.Generic; | |||
30 | using System.IO; | 30 | using System.IO; |
31 | //using System.Reflection; | 31 | //using System.Reflection; |
32 | using System.Xml; | 32 | using System.Xml; |
33 | using Axiom.Math; | 33 | using OpenMetaverse; |
34 | using libsecondlife; | ||
35 | //using log4net; | 34 | //using log4net; |
36 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
37 | using OpenSim.Region.Physics.Manager; | 36 | using OpenSim.Region.Physics.Manager; |
@@ -45,7 +44,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
45 | { | 44 | { |
46 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 45 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
47 | 46 | ||
48 | public static void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, LLVector3 loadOffset) | 47 | public static void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, Vector3 loadOffset) |
49 | { | 48 | { |
50 | XmlDocument doc = new XmlDocument(); | 49 | XmlDocument doc = new XmlDocument(); |
51 | XmlNode rootNode; | 50 | XmlNode rootNode; |
@@ -208,7 +207,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
208 | SavePrimListToXml2(EntityList, fileName); | 207 | SavePrimListToXml2(EntityList, fileName); |
209 | } | 208 | } |
210 | 209 | ||
211 | public static void SavePrimsToXml2(Scene scene, TextWriter stream, LLVector3 min, LLVector3 max) | 210 | public static void SavePrimsToXml2(Scene scene, TextWriter stream, Vector3 min, Vector3 max) |
212 | { | 211 | { |
213 | List<EntityBase> EntityList = scene.GetEntities(); | 212 | List<EntityBase> EntityList = scene.GetEntities(); |
214 | 213 | ||
@@ -223,7 +222,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
223 | StreamWriter stream = new StreamWriter(file); | 222 | StreamWriter stream = new StreamWriter(file); |
224 | try | 223 | try |
225 | { | 224 | { |
226 | SavePrimListToXml2(entityList, stream, LLVector3.Zero, LLVector3.Zero); | 225 | SavePrimListToXml2(entityList, stream, Vector3.Zero, Vector3.Zero); |
227 | } | 226 | } |
228 | finally | 227 | finally |
229 | { | 228 | { |
@@ -236,7 +235,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
236 | } | 235 | } |
237 | } | 236 | } |
238 | 237 | ||
239 | public static void SavePrimListToXml2(List<EntityBase> entityList, TextWriter stream, LLVector3 min, LLVector3 max) | 238 | public static void SavePrimListToXml2(List<EntityBase> entityList, TextWriter stream, Vector3 min, Vector3 max) |
240 | { | 239 | { |
241 | int primCount = 0; | 240 | int primCount = 0; |
242 | stream.WriteLine("<scene>\n"); | 241 | stream.WriteLine("<scene>\n"); |
@@ -246,9 +245,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
246 | if (ent is SceneObjectGroup) | 245 | if (ent is SceneObjectGroup) |
247 | { | 246 | { |
248 | SceneObjectGroup g = (SceneObjectGroup)ent; | 247 | SceneObjectGroup g = (SceneObjectGroup)ent; |
249 | if (!min.Equals(LLVector3.Zero) || !max.Equals(LLVector3.Zero)) | 248 | if (!min.Equals(Vector3.Zero) || !max.Equals(Vector3.Zero)) |
250 | { | 249 | { |
251 | LLVector3 pos = g.RootPart.GetWorldPosition(); | 250 | Vector3 pos = g.RootPart.GetWorldPosition(); |
252 | if (min.X > pos.X || min.Y > pos.Y || min.Z > pos.Z) | 251 | if (min.X > pos.X || min.Y > pos.Y || min.Z > pos.Z) |
253 | continue; | 252 | continue; |
254 | if (max.X < pos.X || max.Y < pos.Y || max.Z < pos.Z) | 253 | if (max.X < pos.X || max.Y < pos.Y || max.Z < pos.Z) |
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiseObjects.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiseObjects.cs index 0d69553..ffd90bf 100644 --- a/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiseObjects.cs +++ b/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiseObjects.cs | |||
@@ -40,11 +40,11 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
40 | 40 | ||
41 | public string WriteToFile(Scene scene, string dir) | 41 | public string WriteToFile(Scene scene, string dir) |
42 | { | 42 | { |
43 | string targetFileName = dir + "objects.xml"; | 43 | string targetFileName = dir + "objects.Xml"; |
44 | 44 | ||
45 | SaveSerialisedToFile(targetFileName, scene); | 45 | SaveSerialisedToFile(targetFileName, scene); |
46 | 46 | ||
47 | return "objects.xml"; | 47 | return "objects.Xml"; |
48 | } | 48 | } |
49 | 49 | ||
50 | #endregion | 50 | #endregion |
@@ -122,4 +122,4 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
122 | #endregion | 122 | #endregion |
123 | } | 123 | } |
124 | } | 124 | } |
125 | } \ No newline at end of file | 125 | } |
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs index d722d68..e3eb377 100644 --- a/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.IO; | 30 | using System.IO; |
31 | using libsecondlife; | 31 | using OpenMetaverse; |
32 | using Nini.Config; | 32 | using Nini.Config; |
33 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
34 | using OpenSim.Region.Environment.Modules.Framework.InterfaceCommander; | 34 | using OpenSim.Region.Environment.Modules.Framework.InterfaceCommander; |
@@ -87,7 +87,7 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
87 | 87 | ||
88 | #region IRegionSerialiser Members | 88 | #region IRegionSerialiser Members |
89 | 89 | ||
90 | public void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, LLVector3 loadOffset) | 90 | public void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, Vector3 loadOffset) |
91 | { | 91 | { |
92 | SceneXmlLoader.LoadPrimsFromXml(scene, fileName, newIDS, loadOffset); | 92 | SceneXmlLoader.LoadPrimsFromXml(scene, fileName, newIDS, loadOffset); |
93 | } | 93 | } |
@@ -112,7 +112,7 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
112 | SceneXmlLoader.SavePrimsToXml2(scene, fileName); | 112 | SceneXmlLoader.SavePrimsToXml2(scene, fileName); |
113 | } | 113 | } |
114 | 114 | ||
115 | public void SavePrimsToXml2(Scene scene, TextWriter stream, LLVector3 min, LLVector3 max) | 115 | public void SavePrimsToXml2(Scene scene, TextWriter stream, Vector3 min, Vector3 max) |
116 | { | 116 | { |
117 | SceneXmlLoader.SavePrimsToXml2(scene, stream, min, max); | 117 | SceneXmlLoader.SavePrimsToXml2(scene, stream, min, max); |
118 | } | 118 | } |
@@ -132,7 +132,7 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
132 | SceneXmlLoader.SavePrimListToXml2(entityList, fileName); | 132 | SceneXmlLoader.SavePrimListToXml2(entityList, fileName); |
133 | } | 133 | } |
134 | 134 | ||
135 | public void SavePrimListToXml2(List<EntityBase> entityList, TextWriter stream, LLVector3 min, LLVector3 max) | 135 | public void SavePrimListToXml2(List<EntityBase> entityList, TextWriter stream, Vector3 min, Vector3 max) |
136 | { | 136 | { |
137 | SceneXmlLoader.SavePrimListToXml2(entityList, stream, min, max); | 137 | SceneXmlLoader.SavePrimListToXml2(entityList, stream, min, max); |
138 | } | 138 | } |