diff options
author | Justin Clark-Casey (justincc) | 2010-10-16 07:09:13 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-10-16 07:09:13 +0100 |
commit | edc31adf954276f00e272d1de9d162c3940ec62b (patch) | |
tree | 1b357a3151dba9bfb1881ca690317f319b01a336 /OpenSim/Region/CoreModules | |
parent | change --old-guids switch on the save oar command line to --version=<x> (diff) | |
download | opensim-SC_OLD-edc31adf954276f00e272d1de9d162c3940ec62b.zip opensim-SC_OLD-edc31adf954276f00e272d1de9d162c3940ec62b.tar.gz opensim-SC_OLD-edc31adf954276f00e272d1de9d162c3940ec62b.tar.bz2 opensim-SC_OLD-edc31adf954276f00e272d1de9d162c3940ec62b.tar.xz |
Rip out version option since it turns out that the changed object serialization format can actually be loaded by older OpenSims after all
This bumps the OAR version to 0.4 instead, signalling some change but with backwards compatability... for now.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs index 79bec56..c062833 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs | |||
@@ -138,8 +138,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
138 | m_log.InfoFormat("[ARCHIVER]: Added terrain information to archive."); | 138 | m_log.InfoFormat("[ARCHIVER]: Added terrain information to archive."); |
139 | 139 | ||
140 | Dictionary<string, object> serializationOptions = new Dictionary<string, object>(); | 140 | Dictionary<string, object> serializationOptions = new Dictionary<string, object>(); |
141 | if (m_options.ContainsKey("version") && (string)m_options["version"] == "0") | 141 | // if (m_options.ContainsKey("version") && (string)m_options["version"] == "0") |
142 | serializationOptions["old-guids"] = true; | 142 | // serializationOptions["old-guids"] = true; |
143 | 143 | ||
144 | // Write out scene object metadata | 144 | // Write out scene object metadata |
145 | foreach (SceneObjectGroup sceneObject in m_sceneObjects) | 145 | foreach (SceneObjectGroup sceneObject in m_sceneObjects) |
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs index d21efed..43789af 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs | |||
@@ -186,7 +186,9 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
186 | /// <returns></returns> | 186 | /// <returns></returns> |
187 | public static string Create0p2ControlFile(Dictionary<string, object> options) | 187 | public static string Create0p2ControlFile(Dictionary<string, object> options) |
188 | { | 188 | { |
189 | int majorVersion, minorVersion; | 189 | int majorVersion = 0, minorVersion = 4; |
190 | |||
191 | /* | ||
190 | if (options.ContainsKey("version") && (string)options["version"] == "0") | 192 | if (options.ContainsKey("version") && (string)options["version"] == "0") |
191 | { | 193 | { |
192 | majorVersion = 0; | 194 | majorVersion = 0; |
@@ -197,12 +199,14 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
197 | majorVersion = 1; | 199 | majorVersion = 1; |
198 | minorVersion = 0; | 200 | minorVersion = 0; |
199 | } | 201 | } |
202 | */ | ||
200 | 203 | ||
201 | m_log.InfoFormat("[ARCHIVER]: Creating version {0}.{1} OAR", majorVersion, minorVersion); | 204 | m_log.InfoFormat("[ARCHIVER]: Creating version {0}.{1} OAR", majorVersion, minorVersion); |
202 | if (majorVersion == 1) | 205 | // if (majorVersion == 1) |
203 | { | 206 | // { |
204 | m_log.WarnFormat("[ARCHIVER]: Please be aware that version 1.0 OARs are not compatible with OpenSim 0.7.0.2 and earlier. Please use the --version=0 option if you want to produce a compatible OAR"); | 207 | // m_log.WarnFormat("[ARCHIVER]: Please be aware that version 1.0 OARs are not compatible with OpenSim 0.7.0.2 and earlier. Please use the --version=0 option if you want to produce a compatible OAR"); |
205 | } | 208 | // } |
209 | |||
206 | 210 | ||
207 | StringWriter sw = new StringWriter(); | 211 | StringWriter sw = new StringWriter(); |
208 | XmlTextWriter xtw = new XmlTextWriter(sw); | 212 | XmlTextWriter xtw = new XmlTextWriter(sw); |