aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/OpenSimMain.cs
diff options
context:
space:
mode:
authorMW2007-04-03 13:37:11 +0000
committerMW2007-04-03 13:37:11 +0000
commit56e6587c9f3ff9b8b9e48ff20a21244b739e2081 (patch)
tree4ef13347d53989281c8d554be8102f4227bcf3df /OpenSim.RegionServer/OpenSimMain.cs
parentOpenSim no longer uses OpenSim.Config.SimConfigDb4o, it now uses OpenSim.Gene... (diff)
downloadopensim-SC_OLD-56e6587c9f3ff9b8b9e48ff20a21244b739e2081.zip
opensim-SC_OLD-56e6587c9f3ff9b8b9e48ff20a21244b739e2081.tar.gz
opensim-SC_OLD-56e6587c9f3ff9b8b9e48ff20a21244b739e2081.tar.bz2
opensim-SC_OLD-56e6587c9f3ff9b8b9e48ff20a21244b739e2081.tar.xz
Temporary fix for the object taking bug
Diffstat (limited to 'OpenSim.RegionServer/OpenSimMain.cs')
-rw-r--r--OpenSim.RegionServer/OpenSimMain.cs30
1 files changed, 13 insertions, 17 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs
index 8bbdcd5..316bcd9 100644
--- a/OpenSim.RegionServer/OpenSimMain.cs
+++ b/OpenSim.RegionServer/OpenSimMain.cs
@@ -108,7 +108,7 @@ namespace OpenSim
108 { 108 {
109 Console.WriteLine(e.Message); 109 Console.WriteLine(e.Message);
110 } 110 }
111 111 m_console.WriteLine("Main.cs:Startup() - Loading configuration");
112 string configfromgrid = localConfig.GetAttribute("ConfigFromGrid"); 112 string configfromgrid = localConfig.GetAttribute("ConfigFromGrid");
113 if (configfromgrid == "true") 113 if (configfromgrid == "true")
114 { 114 {
@@ -122,6 +122,7 @@ namespace OpenSim
122 { 122 {
123 this.regionData.InitConfig(this.m_sandbox, this.localConfig); 123 this.regionData.InitConfig(this.m_sandbox, this.localConfig);
124 } 124 }
125 this.localConfig.Close();//for now we can close it as no other classes read from it , but this should change
125 126
126 GridServers = new Grid(); 127 GridServers = new Grid();
127 if (m_sandbox) 128 if (m_sandbox)
@@ -146,11 +147,6 @@ namespace OpenSim
146 AssetCache = new AssetCache(GridServers.AssetServer); 147 AssetCache = new AssetCache(GridServers.AssetServer);
147 InventoryCache = new InventoryCache(); 148 InventoryCache = new InventoryCache();
148 149
149 // We check our local database first, then the grid for config options
150 m_console.WriteLine("Main.cs:Startup() - Loading configuration");
151 //Cfg = this.LoadConfigDll(this.ConfigDll);
152 //Cfg.InitConfig(this.m_sandbox);
153
154 PacketServer packetServer = new PacketServer(this); 150 PacketServer packetServer = new PacketServer(this);
155 151
156 m_console.WriteLine("Main.cs:Startup() - We are " + regionData.RegionName + " at " + regionData.RegionLocX.ToString() + "," + regionData.RegionLocY.ToString()); 152 m_console.WriteLine("Main.cs:Startup() - We are " + regionData.RegionName + " at " + regionData.RegionLocX.ToString() + "," + regionData.RegionLocY.ToString());
@@ -207,11 +203,11 @@ namespace OpenSim
207 203
208 return new XmlRpcResponse(); 204 return new XmlRpcResponse();
209 }); 205 });
210 _httpServer.AddRestHandler("GET","/simstatus/", 206 _httpServer.AddRestHandler("GET", "/simstatus/",
211 delegate(string request, string path) 207 delegate(string request, string path)
212 { 208 {
213 return "OK"; 209 return "OK";
214 }); 210 });
215 } 211 }
216 212
217 LoginServer loginServer = null; 213 LoginServer loginServer = null;
@@ -222,14 +218,14 @@ namespace OpenSim
222 { 218 {
223 loginServer = new LoginServer(gridServer, regionData.IPListenAddr, regionData.IPListenPort, this.user_accounts); 219 loginServer = new LoginServer(gridServer, regionData.IPListenAddr, regionData.IPListenPort, this.user_accounts);
224 loginServer.Startup(); 220 loginServer.Startup();
225 221
226 if( user_accounts ) 222 if (user_accounts)
227 { 223 {
228 //sandbox mode with loginserver using accounts 224 //sandbox mode with loginserver using accounts
229 this.GridServers.UserServer = loginServer; 225 this.GridServers.UserServer = loginServer;
230 adminLoginServer = loginServer; 226 adminLoginServer = loginServer;
231 227
232 _httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.LocalUserManager.XmlRpcLoginMethod); 228 _httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.LocalUserManager.XmlRpcLoginMethod);
233 } 229 }
234 else 230 else
235 { 231 {
@@ -239,8 +235,8 @@ namespace OpenSim
239 } 235 }
240 236
241 AdminWebFront adminWebFront = new AdminWebFront("Admin", LocalWorld, InventoryCache, adminLoginServer); 237 AdminWebFront adminWebFront = new AdminWebFront("Admin", LocalWorld, InventoryCache, adminLoginServer);
242 adminWebFront.LoadMethods( _httpServer ); 238 adminWebFront.LoadMethods(_httpServer);
243 239
244 m_console.WriteLine("Main.cs:Startup() - Starting HTTP server"); 240 m_console.WriteLine("Main.cs:Startup() - Starting HTTP server");
245 _httpServer.Start(); 241 _httpServer.Start();
246 242