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