Merge branch 'master' of /var/git/opensim/
commit
d04cbd8f85
|
@ -56,7 +56,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver
|
|||
/// The maximum major version of OAR that we can read. Minor versions shouldn't need a max number since version
|
||||
/// bumps here should be compatible.
|
||||
/// </summary>
|
||||
public static int MAX_MAJOR_VERSION = 0;
|
||||
public static int MAX_MAJOR_VERSION = 1;
|
||||
|
||||
protected Scene m_scene;
|
||||
protected Stream m_loadStream;
|
||||
|
|
|
@ -192,9 +192,10 @@ namespace OpenSim.Region.CoreModules.World.Archiver
|
|||
new AssetsArchiver(archiveWriter), assetUuids,
|
||||
m_scene.AssetService, awre.ReceivedAllAssets).Execute();
|
||||
}
|
||||
finally
|
||||
catch (Exception)
|
||||
{
|
||||
m_saveStream.Close();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -122,13 +122,13 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test saving a V0.2 OpenSim Region Archive.
|
||||
/// Test saving an OpenSim Region Archive.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestSaveOarV0_2()
|
||||
public void TestSaveOar()
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
//log4net.Config.XmlConfigurator.Configure();
|
||||
// log4net.Config.XmlConfigurator.Configure();
|
||||
|
||||
SceneObjectPart part1 = CreateSceneObjectPart1();
|
||||
SceneObjectGroup sog1 = new SceneObjectGroup(part1);
|
||||
|
@ -212,10 +212,10 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test loading a V0.2 OpenSim Region Archive.
|
||||
/// Test loading an OpenSim Region Archive.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestLoadOarV0_2()
|
||||
public void TestLoadOar()
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
// log4net.Config.XmlConfigurator.Configure();
|
||||
|
@ -317,10 +317,10 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test loading the region settings of a V0.2 OpenSim Region Archive.
|
||||
/// Test loading the region settings of an OpenSim Region Archive.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestLoadOarV0_2RegionSettings()
|
||||
public void TestLoadOarRegionSettings()
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
//log4net.Config.XmlConfigurator.Configure();
|
||||
|
@ -409,10 +409,10 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test merging a V0.2 OpenSim Region Archive into an existing scene
|
||||
/// Test merging an OpenSim Region Archive into an existing scene
|
||||
/// </summary>
|
||||
//[Test]
|
||||
public void TestMergeOarV0_2()
|
||||
public void TestMergeOar()
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
//XmlConfigurator.Configure();
|
||||
|
|
|
@ -8750,24 +8750,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
switch (data)
|
||||
{
|
||||
case 5: // DATA_SIM_POS
|
||||
case ScriptBaseClass.DATA_SIM_POS:
|
||||
if (info == null)
|
||||
{
|
||||
ScriptSleep(1000);
|
||||
return UUID.Zero.ToString();
|
||||
}
|
||||
reply = new LSL_Vector(
|
||||
info.RegionLocX * Constants.RegionSize,
|
||||
info.RegionLocY * Constants.RegionSize,
|
||||
info.RegionLocX,
|
||||
info.RegionLocY,
|
||||
0).ToString();
|
||||
break;
|
||||
case 6: // DATA_SIM_STATUS
|
||||
case ScriptBaseClass.DATA_SIM_STATUS:
|
||||
if (info != null)
|
||||
reply = "up"; // Duh!
|
||||
else
|
||||
reply = "unknown";
|
||||
break;
|
||||
case 7: // DATA_SIM_RATING
|
||||
case ScriptBaseClass.DATA_SIM_RATING:
|
||||
if (info == null)
|
||||
{
|
||||
ScriptSleep(1000);
|
||||
|
@ -8783,7 +8783,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
else
|
||||
reply = "UNKNOWN";
|
||||
break;
|
||||
case 128:
|
||||
case ScriptBaseClass.DATA_SIM_RELEASE:
|
||||
if (ossl != null)
|
||||
ossl.CheckThreatLevel(ThreatLevel.High, "llRequestSimulatorData");
|
||||
reply = "OpenSim";
|
||||
|
|
Loading…
Reference in New Issue