Temporary fix for the object taking bug

This commit is contained in:
MW
2007-04-03 13:37:11 +00:00
parent fdc9ed89b4
commit 56e6587c9f
8 changed files with 33 additions and 69 deletions

View File

@@ -108,7 +108,7 @@ namespace OpenSim
{
Console.WriteLine(e.Message);
}
m_console.WriteLine("Main.cs:Startup() - Loading configuration");
string configfromgrid = localConfig.GetAttribute("ConfigFromGrid");
if (configfromgrid == "true")
{
@@ -122,6 +122,7 @@ namespace OpenSim
{
this.regionData.InitConfig(this.m_sandbox, this.localConfig);
}
this.localConfig.Close();//for now we can close it as no other classes read from it , but this should change
GridServers = new Grid();
if (m_sandbox)
@@ -146,11 +147,6 @@ namespace OpenSim
AssetCache = new AssetCache(GridServers.AssetServer);
InventoryCache = new InventoryCache();
// We check our local database first, then the grid for config options
m_console.WriteLine("Main.cs:Startup() - Loading configuration");
//Cfg = this.LoadConfigDll(this.ConfigDll);
//Cfg.InitConfig(this.m_sandbox);
PacketServer packetServer = new PacketServer(this);
m_console.WriteLine("Main.cs:Startup() - We are " + regionData.RegionName + " at " + regionData.RegionLocX.ToString() + "," + regionData.RegionLocY.ToString());
@@ -207,11 +203,11 @@ namespace OpenSim
return new XmlRpcResponse();
});
_httpServer.AddRestHandler("GET","/simstatus/",
delegate(string request, string path)
{
return "OK";
});
_httpServer.AddRestHandler("GET", "/simstatus/",
delegate(string request, string path)
{
return "OK";
});
}
LoginServer loginServer = null;
@@ -222,14 +218,14 @@ namespace OpenSim
{
loginServer = new LoginServer(gridServer, regionData.IPListenAddr, regionData.IPListenPort, this.user_accounts);
loginServer.Startup();
if( user_accounts )
if (user_accounts)
{
//sandbox mode with loginserver using accounts
this.GridServers.UserServer = loginServer;
adminLoginServer = loginServer;
_httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.LocalUserManager.XmlRpcLoginMethod);
_httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.LocalUserManager.XmlRpcLoginMethod);
}
else
{
@@ -239,8 +235,8 @@ namespace OpenSim
}
AdminWebFront adminWebFront = new AdminWebFront("Admin", LocalWorld, InventoryCache, adminLoginServer);
adminWebFront.LoadMethods( _httpServer );
adminWebFront.LoadMethods(_httpServer);
m_console.WriteLine("Main.cs:Startup() - Starting HTTP server");
_httpServer.Start();