aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer
diff options
context:
space:
mode:
authorlbsa712007-03-24 08:06:41 +0000
committerlbsa712007-03-24 08:06:41 +0000
commit50f5686d918dbd519f21c0c611bea3f28daf4657 (patch)
tree769f71b6f5854b524fd5895fc05718da6a1991da /OpenSim.RegionServer
parentAdded Fly animation (diff)
downloadopensim-SC_OLD-50f5686d918dbd519f21c0c611bea3f28daf4657.zip
opensim-SC_OLD-50f5686d918dbd519f21c0c611bea3f28daf4657.tar.gz
opensim-SC_OLD-50f5686d918dbd519f21c0c611bea3f28daf4657.tar.bz2
opensim-SC_OLD-50f5686d918dbd519f21c0c611bea3f28daf4657.tar.xz
* Added separate exe project
* Prebuild exe is now built in /bin dir
Diffstat (limited to 'OpenSim.RegionServer')
-rw-r--r--OpenSim.RegionServer/OpenSim.RegionServer.csproj66
-rw-r--r--OpenSim.RegionServer/OpenSim.RegionServer.dll.build68
-rw-r--r--OpenSim.RegionServer/OpenSimMain.cs72
3 files changed, 106 insertions, 100 deletions
diff --git a/OpenSim.RegionServer/OpenSim.RegionServer.csproj b/OpenSim.RegionServer/OpenSim.RegionServer.csproj
index 8129741..b191922 100644
--- a/OpenSim.RegionServer/OpenSim.RegionServer.csproj
+++ b/OpenSim.RegionServer/OpenSim.RegionServer.csproj
@@ -1,24 +1,23 @@
1<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 1<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2 <PropertyGroup> 2 <PropertyGroup>
3 <ProjectType>Local</ProjectType> 3 <ProjectType>Local</ProjectType>
4 <ProductVersion>8.0.50727</ProductVersion> 4 <ProductVersion>8.0.50727</ProductVersion>
5 <SchemaVersion>2.0</SchemaVersion> 5 <SchemaVersion>2.0</SchemaVersion>
6 <ProjectGuid>{50D8594C-39E2-4695-B28D-AC8ADE15BC5A}</ProjectGuid> 6 <ProjectGuid>{457CE564-0922-4F15-846F-147E5BE62D67}</ProjectGuid>
7 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 7 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
8 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 8 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
9 <ApplicationIcon> 9 <ApplicationIcon></ApplicationIcon>
10 </ApplicationIcon>
11 <AssemblyKeyContainerName> 10 <AssemblyKeyContainerName>
12 </AssemblyKeyContainerName> 11 </AssemblyKeyContainerName>
13 <AssemblyName>OpenSim</AssemblyName> 12 <AssemblyName>OpenSim.RegionServer</AssemblyName>
14 <DefaultClientScript>JScript</DefaultClientScript> 13 <DefaultClientScript>JScript</DefaultClientScript>
15 <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> 14 <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
16 <DefaultTargetSchema>IE50</DefaultTargetSchema> 15 <DefaultTargetSchema>IE50</DefaultTargetSchema>
17 <DelaySign>false</DelaySign> 16 <DelaySign>false</DelaySign>
18 <OutputType>Exe</OutputType> 17 <OutputType>Library</OutputType>
19 <AppDesignerFolder> 18 <AppDesignerFolder></AppDesignerFolder>
20 </AppDesignerFolder>
21 <RootNamespace>OpenSim.RegionServer</RootNamespace> 19 <RootNamespace>OpenSim.RegionServer</RootNamespace>
20 <StartupObject></StartupObject>
22 <FileUpgradeFlags> 21 <FileUpgradeFlags>
23 </FileUpgradeFlags> 22 </FileUpgradeFlags>
24 </PropertyGroup> 23 </PropertyGroup>
@@ -29,8 +28,7 @@
29 <ConfigurationOverrideFile> 28 <ConfigurationOverrideFile>
30 </ConfigurationOverrideFile> 29 </ConfigurationOverrideFile>
31 <DefineConstants>TRACE;DEBUG</DefineConstants> 30 <DefineConstants>TRACE;DEBUG</DefineConstants>
32 <DocumentationFile> 31 <DocumentationFile></DocumentationFile>
33 </DocumentationFile>
34 <DebugSymbols>True</DebugSymbols> 32 <DebugSymbols>True</DebugSymbols>
35 <FileAlignment>4096</FileAlignment> 33 <FileAlignment>4096</FileAlignment>
36 <Optimize>False</Optimize> 34 <Optimize>False</Optimize>
@@ -39,8 +37,7 @@
39 <RemoveIntegerChecks>False</RemoveIntegerChecks> 37 <RemoveIntegerChecks>False</RemoveIntegerChecks>
40 <TreatWarningsAsErrors>False</TreatWarningsAsErrors> 38 <TreatWarningsAsErrors>False</TreatWarningsAsErrors>
41 <WarningLevel>4</WarningLevel> 39 <WarningLevel>4</WarningLevel>
42 <NoWarn> 40 <NoWarn></NoWarn>
43 </NoWarn>
44 </PropertyGroup> 41 </PropertyGroup>
45 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 42 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
46 <AllowUnsafeBlocks>False</AllowUnsafeBlocks> 43 <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
@@ -49,8 +46,7 @@
49 <ConfigurationOverrideFile> 46 <ConfigurationOverrideFile>
50 </ConfigurationOverrideFile> 47 </ConfigurationOverrideFile>
51 <DefineConstants>TRACE</DefineConstants> 48 <DefineConstants>TRACE</DefineConstants>
52 <DocumentationFile> 49 <DocumentationFile></DocumentationFile>
53 </DocumentationFile>
54 <DebugSymbols>False</DebugSymbols> 50 <DebugSymbols>False</DebugSymbols>
55 <FileAlignment>4096</FileAlignment> 51 <FileAlignment>4096</FileAlignment>
56 <Optimize>True</Optimize> 52 <Optimize>True</Optimize>
@@ -59,41 +55,48 @@
59 <RemoveIntegerChecks>False</RemoveIntegerChecks> 55 <RemoveIntegerChecks>False</RemoveIntegerChecks>
60 <TreatWarningsAsErrors>False</TreatWarningsAsErrors> 56 <TreatWarningsAsErrors>False</TreatWarningsAsErrors>
61 <WarningLevel>4</WarningLevel> 57 <WarningLevel>4</WarningLevel>
62 <NoWarn> 58 <NoWarn></NoWarn>
63 </NoWarn>
64 </PropertyGroup> 59 </PropertyGroup>
65 <ItemGroup> 60 <ItemGroup>
66 <Reference Include="System"> 61 <Reference Include="System" >
67 <HintPath>\System.dll</HintPath> 62 <HintPath>System.dll</HintPath>
63 <Private>False</Private>
68 </Reference> 64 </Reference>
69 <Reference Include="System.Xml.dll"> 65 <Reference Include="System.Xml" >
70 <HintPath>\System.Xml.dll.dll</HintPath> 66 <HintPath>System.Xml.dll</HintPath>
67 <Private>False</Private>
71 </Reference> 68 </Reference>
72 <Reference Include="libsecondlife.dll"> 69 <Reference Include="libsecondlife.dll" >
73 <HintPath>\libsecondlife.dll.dll</HintPath> 70 <HintPath>..\bin\libsecondlife.dll</HintPath>
71 <Private>False</Private>
74 </Reference> 72 </Reference>
75 <Reference Include="Axiom.MathLib.dll"> 73 <Reference Include="Axiom.MathLib.dll" >
76 <HintPath>\Axiom.MathLib.dll.dll</HintPath> 74 <HintPath>..\bin\Axiom.MathLib.dll</HintPath>
75 <Private>False</Private>
77 </Reference> 76 </Reference>
78 <Reference Include="Db4objects.Db4o.dll"> 77 <Reference Include="Db4objects.Db4o.dll" >
79 <HintPath>\Db4objects.Db4o.dll.dll</HintPath> 78 <HintPath>..\bin\Db4objects.Db4o.dll</HintPath>
79 <Private>False</Private>
80 </Reference> 80 </Reference>
81 </ItemGroup> 81 </ItemGroup>
82 <ItemGroup> 82 <ItemGroup>
83 <ProjectReference Include="..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj"> 83 <ProjectReference Include="..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj">
84 <Name>OpenSim.Framework.Console</Name> 84 <Name>OpenSim.Framework.Console</Name>
85 <Project>{C8405E1A-EC19-48B6-9C8C-CA03624B9916}</Project> 85 <Project>{CE124F22-69FC-4499-AE68-1B877C5898C4}</Project>
86 <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> 86 <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
87 <Private>False</Private>
87 </ProjectReference> 88 </ProjectReference>
88 <ProjectReference Include="..\OpenSim.Physics\Manager\OpenSim.Physics.Manager.csproj"> 89 <ProjectReference Include="..\OpenSim.Physics\Manager\OpenSim.Physics.Manager.csproj">
89 <Name>OpenSim.Physics.Manager</Name> 90 <Name>OpenSim.Physics.Manager</Name>
90 <Project>{58360A80-9333-4E0F-8F83-3CF937E51633}</Project> 91 <Project>{79C8C9A7-EF80-426D-B815-AC88E7998DFE}</Project>
91 <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> 92 <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
93 <Private>False</Private>
92 </ProjectReference> 94 </ProjectReference>
93 <ProjectReference Include="..\OpenSim.Framework\OpenSim.Framework.csproj"> 95 <ProjectReference Include="..\OpenSim.Framework\OpenSim.Framework.csproj">
94 <Name>OpenSim.Framework</Name> 96 <Name>OpenSim.Framework</Name>
95 <Project>{1D2865A9-CF8E-45F7-B96D-91ED128A32CF}</Project> 97 <Project>{71848571-2BC0-41DC-A69C-28B6DDB8C8CE}</Project>
96 <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> 98 <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
99 <Private>False</Private>
97 </ProjectReference> 100 </ProjectReference>
98 </ItemGroup> 101 </ItemGroup>
99 <ItemGroup> 102 <ItemGroup>
@@ -145,6 +148,9 @@
145 <Compile Include="world\Avatar.cs"> 148 <Compile Include="world\Avatar.cs">
146 <SubType>Code</SubType> 149 <SubType>Code</SubType>
147 </Compile> 150 </Compile>
151 <Compile Include="world\AvatarAnimations.cs">
152 <SubType>Code</SubType>
153 </Compile>
148 <Compile Include="world\Entity.cs"> 154 <Compile Include="world\Entity.cs">
149 <SubType>Code</SubType> 155 <SubType>Code</SubType>
150 </Compile> 156 </Compile>
@@ -171,4 +177,4 @@
171 <PostBuildEvent> 177 <PostBuildEvent>
172 </PostBuildEvent> 178 </PostBuildEvent>
173 </PropertyGroup> 179 </PropertyGroup>
174</Project> \ No newline at end of file 180</Project>
diff --git a/OpenSim.RegionServer/OpenSim.RegionServer.dll.build b/OpenSim.RegionServer/OpenSim.RegionServer.dll.build
new file mode 100644
index 0000000..dce4dc1
--- /dev/null
+++ b/OpenSim.RegionServer/OpenSim.RegionServer.dll.build
@@ -0,0 +1,68 @@
1<?xml version="1.0" ?>
2<project name="OpenSim.RegionServer" default="build">
3 <target name="build">
4 <echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
5 <mkdir dir="${project::get-base-directory()}/${build.dir}" />
6 <copy todir="${project::get-base-directory()}/${build.dir}">
7 <fileset basedir="${project::get-base-directory()}">
8 </fileset>
9 </copy>
10 <csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
11 <resources prefix="OpenSim.RegionServer" dynamicprefix="true" >
12 </resources>
13 <sources failonempty="true">
14 <include name="Grid.cs" />
15 <include name="OpenSimApplication.cs" />
16 <include name="OpenSimMain.cs" />
17 <include name="OpenSimRoot.cs" />
18 <include name="QueItem.cs" />
19 <include name="SimClient.cs" />
20 <include name="SimConsole.cs" />
21 <include name="VersionInfo.cs" />
22 <include name="Assets/AssetCache.cs" />
23 <include name="Assets/InventoryCache.cs" />
24 <include name="CAPS/SimHttp.cs" />
25 <include name="types/Mesh.cs" />
26 <include name="types/Triangle.cs" />
27 <include name="UserServer/LocalUserProfileManager.cs" />
28 <include name="UserServer/LoginServer.cs" />
29 <include name="world/Avatar.cs" />
30 <include name="world/AvatarAnimations.cs" />
31 <include name="world/Entity.cs" />
32 <include name="world/Primitive.cs" />
33 <include name="world/ScriptEngine.cs" />
34 <include name="world/SurfacePatch.cs" />
35 <include name="world/World.cs" />
36 <include name="world/scripting/IScript.cs" />
37 </sources>
38 <references basedir="${project::get-base-directory()}">
39 <lib>
40 <include name="${project::get-base-directory()}" />
41 <include name="${project::get-base-directory()}/${build.dir}" />
42 </lib>
43 <include name="System.dll" />
44 <include name="System.Xml.dll" />
45 <include name="../bin/libsecondlife.dll" />
46 <include name="../bin/Axiom.MathLib.dll" />
47 <include name="../bin/Db4objects.Db4o.dll" />
48 <include name="../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
49 <include name="../OpenSim.Physics/Manager/${build.dir}/OpenSim.Physics.Manager.dll" />
50 <include name="../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
51 </references>
52 </csc>
53 <echo message="Copying from [${project::get-base-directory()}/${build.dir}/] to [${project::get-base-directory()}/../bin/" />
54 <mkdir dir="${project::get-base-directory()}/../bin/"/>
55 <copy todir="${project::get-base-directory()}/../bin/">
56 <fileset basedir="${project::get-base-directory()}/${build.dir}/" >
57 <include name="*.dll"/>
58 <include name="*.exe"/>
59 </fileset>
60 </copy>
61 </target>
62 <target name="clean">
63 <delete dir="${bin.dir}" failonerror="false" />
64 <delete dir="${obj.dir}" failonerror="false" />
65 </target>
66 <target name="doc" description="Creates documentation.">
67 </target>
68</project>
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs
index b2bc0b3..cb184e8 100644
--- a/OpenSim.RegionServer/OpenSimMain.cs
+++ b/OpenSim.RegionServer/OpenSimMain.cs
@@ -48,9 +48,6 @@ using OpenSim.Physics.Manager;
48 48
49namespace OpenSim 49namespace OpenSim
50{ 50{
51 /// <summary>
52 ///
53 /// </summary>
54 public class OpenSimMain : OpenSimApplication 51 public class OpenSimMain : OpenSimApplication
55 { 52 {
56 private Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>(); 53 private Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>();
@@ -66,76 +63,11 @@ namespace OpenSim
66 63
67 private System.Timers.Timer timer1 = new System.Timers.Timer(); 64 private System.Timers.Timer timer1 = new System.Timers.Timer();
68 private string ConfigDll = "OpenSim.Config.SimConfigDb4o.dll"; 65 private string ConfigDll = "OpenSim.Config.SimConfigDb4o.dll";
69 private string _physicsEngine = "basicphysics"; 66 public string _physicsEngine = "basicphysics";
70 public bool sandbox = false; 67 public bool sandbox = false;
71 public bool loginserver = false; 68 public bool loginserver = false;
72 69
73 [STAThread] 70 public OpenSimMain()
74 public static void Main(string[] args)
75 {
76 Console.WriteLine("OpenSim " + VersionInfo.Version + "\n");
77 Console.WriteLine("Starting...\n");
78 OpenSim.Framework.Console.MainConsole.Instance = new SimConsole(OpenSim.Framework.Console.ConsoleBase.ConsoleType.Local, "", 0);
79
80 //OpenSimRoot.instance = new OpenSimRoot();
81 OpenSimMain sim = new OpenSimMain();
82 OpenSimRoot.Instance.Application = sim;
83
84 sim.sandbox = false;
85 sim.loginserver = false;
86 sim._physicsEngine = "basicphysics";
87
88 for (int i = 0; i < args.Length; i++)
89 {
90 if (args[i] == "-sandbox")
91 {
92 sim.sandbox = true;
93 OpenSimRoot.Instance.Sandbox = true;
94 }
95
96 if (args[i] == "-loginserver")
97 {
98 sim.loginserver = true;
99 }
100 if (args[i] == "-realphysx")
101 {
102 sim._physicsEngine = "RealPhysX";
103 OpenSim.world.Avatar.PhysicsEngineFlying = true;
104 }
105 }
106
107
108 OpenSimRoot.Instance.GridServers = new Grid();
109 if (sim.sandbox)
110 {
111 OpenSimRoot.Instance.GridServers.AssetDll = "OpenSim.GridInterfaces.Local.dll";
112 OpenSimRoot.Instance.GridServers.GridDll = "OpenSim.GridInterfaces.Local.dll";
113 OpenSimRoot.Instance.GridServers.Initialise();
114 OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Starting in Sandbox mode");
115 }
116 else
117 {
118 OpenSimRoot.Instance.GridServers.AssetDll = "OpenSim.GridInterfaces.Remote.dll";
119 OpenSimRoot.Instance.GridServers.GridDll = "OpenSim.GridInterfaces.Remote.dll";
120 OpenSimRoot.Instance.GridServers.Initialise();
121 OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Starting in Grid mode");
122 }
123
124 if (sim.loginserver && sim.sandbox)
125 {
126 LoginServer loginServer = new LoginServer(OpenSimRoot.Instance.GridServers.GridServer);
127 loginServer.Startup();
128 }
129
130 OpenSimRoot.Instance.StartUp();
131
132 while (true)
133 {
134 OpenSim.Framework.Console.MainConsole.Instance.MainConsolePrompt();
135 }
136 }
137
138 private OpenSimMain()
139 { 71 {
140 } 72 }
141 73