change --old-guids switch on the save oar command line to --version=<x>

if x is 0, then an old version 0.3 archive is saved.  If it is anything else or missing, then a version 1.0 archive is saved
version 1.0 archives cannot be loaded on OpenSim 0.7.0.2 and earlier
also add various informational notices about what version we've saving/loading
This commit is contained in:
Justin Clark-Casey (justincc)
2010-10-16 05:38:44 +01:00
parent 3df8d8ff76
commit e41b23a1a4
6 changed files with 33 additions and 11 deletions

View File

@@ -264,11 +264,11 @@ namespace OpenSim
LoadOar);
m_console.Commands.AddCommand("region", false, "save oar",
"save oar [--old-guids] [<OAR path>]",
"save oar [--version=<version>] [<OAR path>]",
"Save a region's data to an OAR archive.",
"The OAR path must be a filesystem path."
+ " If this is not given then the oar is saved to region.oar in the current directory." + Environment.NewLine
+ "--old-guids produces OARs compatible with older (pre 0.7.1) OpenSim versions.",
+ "--version=0 produces old version 0.3 OARs that are compatible with OpenSim 0.7.0.2 and earlier. Current OAR version is 1.0. This version of OpenSim can load any OAR later than version 0.3",
SaveOar);
m_console.Commands.AddCommand("region", false, "edit scale",