parent
d3766d0aef
commit
f741e00ad8
|
@ -160,6 +160,8 @@ namespace OpenGridServices.GridServer
|
|||
respstring+="<estate_id>1</estate_id>";
|
||||
respstring+="</sim>";
|
||||
break;
|
||||
case "POST":
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -55,6 +55,7 @@ namespace OpenSim
|
|||
public class OpenSimMain : OpenSimNetworkHandler, conscmd_callback
|
||||
{
|
||||
|
||||
LLUUID SimUUID;
|
||||
//private SimConfig Cfg;
|
||||
private IGenericConfig localConfig;
|
||||
//private IGenericConfig remoteConfig;
|
||||
|
@ -110,19 +111,8 @@ namespace OpenSim
|
|||
Console.WriteLine(e.Message);
|
||||
}
|
||||
m_console.WriteLine("Main.cs:Startup() - Loading configuration");
|
||||
string configfromgrid = localConfig.GetAttribute("ConfigFromGrid");
|
||||
if (configfromgrid == "true")
|
||||
{
|
||||
//config from remote server is not implemented yet
|
||||
//this.remoteConfig = new RemoteConfig(localConfig.GetAttribute("RemoteConfigURL"), localConfig.GetAttribute("SimUUID"));
|
||||
//this.remoteConfig.LoadData();
|
||||
//this.regionData.InitConfig(this.m_sandbox, this.remoteConfig);
|
||||
//this.remoteConfig.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.regionData.InitConfig(this.m_sandbox, this.localConfig);
|
||||
}
|
||||
SimUUID = new LLUUID(localConfig.GetAttribute("SimUUID"));
|
||||
this.localConfig.Close();//for now we can close it as no other classes read from it , but this should change
|
||||
|
||||
GridServers = new Grid();
|
||||
|
|
|
@ -3,12 +3,14 @@ using System.Collections.Generic;
|
|||
using System.Text;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Utilities;
|
||||
using libsecondlife;
|
||||
|
||||
namespace OpenSim
|
||||
{
|
||||
public class RegionInfo // could inherit from SimProfileBase
|
||||
{
|
||||
public string RegionName;
|
||||
public LLUUID SimUUID;
|
||||
|
||||
public uint RegionLocX;
|
||||
public uint RegionLocY;
|
||||
|
@ -40,8 +42,21 @@ namespace OpenSim
|
|||
this.isSandbox = sandboxMode;
|
||||
try
|
||||
{
|
||||
// Sim name
|
||||
// Sim UUID
|
||||
string attri ="";
|
||||
attri = configData.GetAttribute("SimUUID");
|
||||
if (attri == "")
|
||||
{
|
||||
this.SimUUID = LLUUID.Random();
|
||||
configData.SetAttribute("SimUUID", this.SimUUID.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SimUUID = new LLUUID(attri);
|
||||
}
|
||||
|
||||
// Sim name
|
||||
attri ="";
|
||||
attri = configData.GetAttribute("SimName");
|
||||
if (attri == "")
|
||||
{
|
||||
|
@ -215,6 +230,7 @@ namespace OpenSim
|
|||
}
|
||||
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Sim settings loaded:");
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("UUID: " + this.SimUUID.ToStringHyphenated());
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Name: " + this.RegionName);
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Region Location: [" + this.RegionLocX.ToString() + "," + this.RegionLocY + "]");
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Region Handle: " + this.RegionHandle.ToString());
|
||||
|
|
Loading…
Reference in New Issue