aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Main.cs
diff options
context:
space:
mode:
authorlbsa712007-03-13 08:55:47 +0000
committerlbsa712007-03-13 08:55:47 +0000
commit0587158f9208ecf9f39a6dd0ef7cb7c5663a39f8 (patch)
treebf86015426ec54fa1f1b5902236670f752473497 /src/Main.cs
parent(no commit message) (diff)
downloadopensim-SC_OLD-0587158f9208ecf9f39a6dd0ef7cb7c5663a39f8.zip
opensim-SC_OLD-0587158f9208ecf9f39a6dd0ef7cb7c5663a39f8.tar.gz
opensim-SC_OLD-0587158f9208ecf9f39a6dd0ef7cb7c5663a39f8.tar.bz2
opensim-SC_OLD-0587158f9208ecf9f39a6dd0ef7cb7c5663a39f8.tar.xz
-- Trying to get trunk to run from first build
* Collected required dll's into /bin * Moved timer start for great justice * Added some Writes to Console, and a Status field * Added dumb NullPhysicsScene and NullPhysicsActor that kicks in if Physics Plugin not specified * Svn-ignored a shitload
Diffstat (limited to '')
-rw-r--r--src/Main.cs18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/Main.cs b/src/Main.cs
index 3103ea3..0680cbb 100644
--- a/src/Main.cs
+++ b/src/Main.cs
@@ -71,7 +71,7 @@ namespace OpenSim
71 private PhysicsManager physManager; 71 private PhysicsManager physManager;
72 private System.Timers.Timer timer1 = new System.Timers.Timer(); 72 private System.Timers.Timer timer1 = new System.Timers.Timer();
73 private string ConfigDll = "SimConfig.dll"; 73 private string ConfigDll = "SimConfig.dll";
74 private string _physicsEngine = "PhysX"; 74 private string _physicsEngine = "";
75 public bool sandbox = false; 75 public bool sandbox = false;
76 public bool loginserver = false; 76 public bool loginserver = false;
77 77
@@ -83,13 +83,18 @@ namespace OpenSim
83 ServerConsole.MainConsole.Instance = new MServerConsole(ServerConsole.ConsoleBase.ConsoleType.Local,"",0); 83 ServerConsole.MainConsole.Instance = new MServerConsole(ServerConsole.ConsoleBase.ConsoleType.Local,"",0);
84 84
85 sim = new OpenSim_Main(); 85 sim = new OpenSim_Main();
86 86
87 sim.sandbox = false;
88 sim.loginserver = false;
89 sim._physicsEngine = "";
90
87 for (int i = 0; i < args.Length; i++) 91 for (int i = 0; i < args.Length; i++)
88 { 92 {
89 if(args[i] == "-sandbox") 93 if(args[i] == "-sandbox")
90 { 94 {
91 sim.sandbox = true; 95 sim.sandbox = true;
92 } 96 }
97
93 if(args[i] == "-loginserver") 98 if(args[i] == "-loginserver")
94 { 99 {
95 sim.loginserver = true; 100 sim.loginserver = true;
@@ -136,9 +141,6 @@ namespace OpenSim
136 141
137 private void Startup() { 142 private void Startup() {
138 startuptime=DateTime.Now; 143 startuptime=DateTime.Now;
139 timer1.Enabled = true;
140 timer1.Interval = 100;
141 timer1.Elapsed +=new ElapsedEventHandler( this.Timer1Tick );
142 144
143 // We check our local database first, then the grid for config options 145 // We check our local database first, then the grid for config options
144 ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - Loading configuration"); 146 ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - Loading configuration");
@@ -150,7 +152,11 @@ namespace OpenSim
150 ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - We are " + cfg.RegionName + " at " + cfg.RegionLocX.ToString() + "," + cfg.RegionLocY.ToString()); 152 ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - We are " + cfg.RegionName + " at " + cfg.RegionLocX.ToString() + "," + cfg.RegionLocY.ToString());
151 ServerConsole.MainConsole.Instance.WriteLine("Initialising world"); 153 ServerConsole.MainConsole.Instance.WriteLine("Initialising world");
152 local_world = cfg.LoadWorld(); 154 local_world = cfg.LoadWorld();
153 155
156 timer1.Enabled = true;
157 timer1.Interval = 100;
158 timer1.Elapsed += new ElapsedEventHandler(this.Timer1Tick);
159
154 this.physManager = new PhysicsSystem.PhysicsManager(); 160 this.physManager = new PhysicsSystem.PhysicsManager();
155 this.physManager.LoadPlugins(); 161 this.physManager.LoadPlugins();
156 ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - Starting up messaging system"); 162 ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - Starting up messaging system");