aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorTedd Hansen2008-01-02 15:58:33 +0000
committerTedd Hansen2008-01-02 15:58:33 +0000
commit198dea28add519a5cd14b47a01345cf4207b4ee3 (patch)
treed04822584c5634aaa07c7c7550c0dde3668d739e /OpenSim
parent* Fixed an issue where the PacketPool would ZeroDecodeCommand into a too smal... (diff)
downloadopensim-SC_OLD-198dea28add519a5cd14b47a01345cf4207b4ee3.zip
opensim-SC_OLD-198dea28add519a5cd14b47a01345cf4207b4ee3.tar.gz
opensim-SC_OLD-198dea28add519a5cd14b47a01345cf4207b4ee3.tar.bz2
opensim-SC_OLD-198dea28add519a5cd14b47a01345cf4207b4ee3.tar.xz
Full .dll-name in config option for ScriptEngine. Loading only scriptengine specified in config.
ScriptServer will still not start!
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/ScriptServer/Application.cs5
-rw-r--r--OpenSim/Grid/ScriptServer/RemotingObject.cs1
-rw-r--r--OpenSim/Grid/ScriptServer/ScriptServerMain.cs1
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs6
4 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Grid/ScriptServer/Application.cs b/OpenSim/Grid/ScriptServer/Application.cs
index 5076618..7b62727 100644
--- a/OpenSim/Grid/ScriptServer/Application.cs
+++ b/OpenSim/Grid/ScriptServer/Application.cs
@@ -35,11 +35,12 @@ namespace OpenSim.Grid.ScriptServer
35 35
36 private static void Main(string[] args) 36 private static void Main(string[] args)
37 { 37 {
38 AppDomain.CurrentDomain.UnhandledException +=
39 new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
40
38 // Application is starting 41 // Application is starting
39 SE = new ScriptServerMain(); 42 SE = new ScriptServerMain();
40 43
41 AppDomain.CurrentDomain.UnhandledException +=
42 new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
43 } 44 }
44 45
45 private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) 46 private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
diff --git a/OpenSim/Grid/ScriptServer/RemotingObject.cs b/OpenSim/Grid/ScriptServer/RemotingObject.cs
index 179a2f6..2d5936e 100644
--- a/OpenSim/Grid/ScriptServer/RemotingObject.cs
+++ b/OpenSim/Grid/ScriptServer/RemotingObject.cs
@@ -14,6 +14,7 @@ namespace OpenSim.Grid.ScriptServer
14 // NOTE! CURRENTLY JUST HARDWIRED DOTNETENGINE! 14 // NOTE! CURRENTLY JUST HARDWIRED DOTNETENGINE!
15 public OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine ScriptEngine = new OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine(); 15 public OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine ScriptEngine = new OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine();
16 16
17
17 /// <summary> 18 /// <summary>
18 /// Receives calls from remote grids. 19 /// Receives calls from remote grids.
19 /// </summary> 20 /// </summary>
diff --git a/OpenSim/Grid/ScriptServer/ScriptServerMain.cs b/OpenSim/Grid/ScriptServer/ScriptServerMain.cs
index 8bba38a..884a09e 100644
--- a/OpenSim/Grid/ScriptServer/ScriptServerMain.cs
+++ b/OpenSim/Grid/ScriptServer/ScriptServerMain.cs
@@ -54,6 +54,7 @@ namespace OpenSim.Grid.ScriptServer
54 //ScriptEngines = new ScriptEngineManager(this, m_log); 54 //ScriptEngines = new ScriptEngineManager(this, m_log);
55 m_RemotingServer = new RemotingServer(); 55 m_RemotingServer = new RemotingServer();
56 m_RemotingServer.CreateServer(listenPort, "DotNetEngine"); 56 m_RemotingServer.CreateServer(listenPort, "DotNetEngine");
57 System.Console.ReadLine();
57 } 58 }
58 59
59 ~ScriptServerMain() 60 ~ScriptServerMain()
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 6eb292d..fdc3d79 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -173,7 +173,7 @@ namespace OpenSim
173 config.Set("storage_connection_string", "URI=file:OpenSim.db,version=3"); 173 config.Set("storage_connection_string", "URI=file:OpenSim.db,version=3");
174 config.Set("startup_console_commands_file", ""); 174 config.Set("startup_console_commands_file", "");
175 config.Set("shutdown_console_commands_file", ""); 175 config.Set("shutdown_console_commands_file", "");
176 config.Set("script_engine", "DotNetEngine"); 176 config.Set("script_engine", "OpenSim.Region.ScriptEngine.DotNetEngine.dll");
177 config.Set("asset_database", "sqlite"); 177 config.Set("asset_database", "sqlite");
178 } 178 }
179 179
@@ -246,7 +246,7 @@ namespace OpenSim
246 m_startupCommandsFile = startupConfig.GetString("startup_console_commands_file", ""); 246 m_startupCommandsFile = startupConfig.GetString("startup_console_commands_file", "");
247 m_shutdownCommandsFile = startupConfig.GetString("shutdown_console_commands_file", ""); 247 m_shutdownCommandsFile = startupConfig.GetString("shutdown_console_commands_file", "");
248 248
249 m_scriptEngine = startupConfig.GetString("script_engine", "DotNetEngine"); 249 m_scriptEngine = startupConfig.GetString("script_engine", "OpenSim.Region.ScriptEngine.DotNetEngine.dll");
250 250
251 m_assetStorage = startupConfig.GetString("asset_database", "sqlite"); 251 m_assetStorage = startupConfig.GetString("asset_database", "sqlite");
252 252
@@ -374,7 +374,7 @@ namespace OpenSim
374 374
375 m_moduleLoader.PickupModules(scene, "."); 375 m_moduleLoader.PickupModules(scene, ".");
376 //m_moduleLoader.PickupModules(scene, "ScriptEngines"); 376 //m_moduleLoader.PickupModules(scene, "ScriptEngines");
377 m_moduleLoader.LoadRegionModules(Path.Combine("ScriptEngines", "OpenSim.Region.ScriptEngine.DotNetEngine.dll"), scene); 377 m_moduleLoader.LoadRegionModules(Path.Combine("ScriptEngines", m_scriptEngine), scene);
378 378
379 379
380 m_moduleLoader.InitialiseSharedModules(scene); 380 m_moduleLoader.InitialiseSharedModules(scene);