From 398ee5f229a12bc846d9846847aedc056afc5114 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 4 Dec 2007 09:57:45 +0000 Subject: [PATCH] fixed exception and login failure in SimpleApp. (still doesn't work like it used to, though) --- OpenSim/Region/Examples/SimpleApp/Program.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs index 372d951e56..9e5ca9b782 100644 --- a/OpenSim/Region/Examples/SimpleApp/Program.cs +++ b/OpenSim/Region/Examples/SimpleApp/Program.cs @@ -55,10 +55,10 @@ namespace SimpleApp protected override void Initialize() { - StartLog(); - m_networkServersInfo = new NetworkServersInfo(1000, 1000); + m_httpServerPort = m_networkServersInfo.HttpListenerPort; + LocalAssetServer assetServer = new LocalAssetServer(); m_assetCache = new AssetCache(assetServer, m_log); @@ -66,13 +66,15 @@ namespace SimpleApp public void Run() { - base.StartUp(); + StartLog(); + StartUp(); LocalInventoryService inventoryService = new LocalInventoryService(); LocalUserServices userService = new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, m_networkServersInfo.DefaultHomeLocY, inventoryService); LocalBackEndServices backendService = new LocalBackEndServices(); + userService.AddPlugin("OpenSim.Framework.Data.SQLite.dll"); CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, userService, inventoryService, @@ -142,7 +144,6 @@ namespace SimpleApp new LLVector3((float) Util.RandomClass.Next(100, 200), (float) Util.RandomClass.Next(30, 200), 2); } - DirectoryInfo dirInfo = new DirectoryInfo("."); float x = 0;