diff options
author | mingchen | 2007-06-28 16:17:20 +0000 |
---|---|---|
committer | mingchen | 2007-06-28 16:17:20 +0000 |
commit | 108d89f89436556c8f4662197903c374db943f7d (patch) | |
tree | 4a089c43c54bdef28c0883fd9aaef464c840c3ac /OpenSim/Region | |
parent | Applied ScenePresence movement patch from Darok. (diff) | |
download | opensim-SC_OLD-108d89f89436556c8f4662197903c374db943f7d.zip opensim-SC_OLD-108d89f89436556c8f4662197903c374db943f7d.tar.gz opensim-SC_OLD-108d89f89436556c8f4662197903c374db943f7d.tar.bz2 opensim-SC_OLD-108d89f89436556c8f4662197903c374db943f7d.tar.xz |
*Master User is now set up
*Added support for getting user profile information from remote grid server (untested)
*Updated prebuild.xml
Diffstat (limited to 'OpenSim/Region')
18 files changed, 161 insertions, 82 deletions
diff --git a/OpenSim/Region/Application/OpenSim.csproj b/OpenSim/Region/Application/OpenSim.csproj index 5cefa96..f5da23d 100644 --- a/OpenSim/Region/Application/OpenSim.csproj +++ b/OpenSim/Region/Application/OpenSim.csproj | |||
@@ -102,6 +102,12 @@ | |||
102 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 102 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
103 | <Private>False</Private> | 103 | <Private>False</Private> |
104 | </ProjectReference> | 104 | </ProjectReference> |
105 | <ProjectReference Include="..\..\Framework\Data\OpenSim.Framework.Data.csproj"> | ||
106 | <Name>OpenSim.Framework.Data</Name> | ||
107 | <Project>{36B72A9B-0000-0000-0000-000000000000}</Project> | ||
108 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
109 | <Private>False</Private> | ||
110 | </ProjectReference> | ||
105 | <ProjectReference Include="..\..\Framework\GenericConfig\Xml\OpenSim.Framework.GenericConfig.Xml.csproj"> | 111 | <ProjectReference Include="..\..\Framework\GenericConfig\Xml\OpenSim.Framework.GenericConfig.Xml.csproj"> |
106 | <Name>OpenSim.Framework.GenericConfig.Xml</Name> | 112 | <Name>OpenSim.Framework.GenericConfig.Xml</Name> |
107 | <Project>{C74E4A30-0000-0000-0000-000000000000}</Project> | 113 | <Project>{C74E4A30-0000-0000-0000-000000000000}</Project> |
@@ -164,13 +170,13 @@ | |||
164 | </ProjectReference> | 170 | </ProjectReference> |
165 | </ItemGroup> | 171 | </ItemGroup> |
166 | <ItemGroup> | 172 | <ItemGroup> |
167 | <Compile Include="Application.cs"> | 173 | <Compile Include="VersionInfo.cs"> |
168 | <SubType>Code</SubType> | 174 | <SubType>Code</SubType> |
169 | </Compile> | 175 | </Compile> |
170 | <Compile Include="OpenSimMain.cs"> | 176 | <Compile Include="Application.cs"> |
171 | <SubType>Code</SubType> | 177 | <SubType>Code</SubType> |
172 | </Compile> | 178 | </Compile> |
173 | <Compile Include="VersionInfo.cs"> | 179 | <Compile Include="OpenSimMain.cs"> |
174 | <SubType>Code</SubType> | 180 | <SubType>Code</SubType> |
175 | </Compile> | 181 | </Compile> |
176 | </ItemGroup> | 182 | </ItemGroup> |
diff --git a/OpenSim/Region/Application/OpenSim.exe.build b/OpenSim/Region/Application/OpenSim.exe.build index 74eee5b..9890cfa 100644 --- a/OpenSim/Region/Application/OpenSim.exe.build +++ b/OpenSim/Region/Application/OpenSim.exe.build | |||
@@ -11,9 +11,9 @@ | |||
11 | <resources prefix="OpenSim" dynamicprefix="true" > | 11 | <resources prefix="OpenSim" dynamicprefix="true" > |
12 | </resources> | 12 | </resources> |
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="VersionInfo.cs" /> | ||
14 | <include name="Application.cs" /> | 15 | <include name="Application.cs" /> |
15 | <include name="OpenSimMain.cs" /> | 16 | <include name="OpenSimMain.cs" /> |
16 | <include name="VersionInfo.cs" /> | ||
17 | </sources> | 17 | </sources> |
18 | <references basedir="${project::get-base-directory()}"> | 18 | <references basedir="${project::get-base-directory()}"> |
19 | <lib> | 19 | <lib> |
@@ -26,6 +26,7 @@ | |||
26 | <include name="../../../bin/OpenSim.Framework.dll" /> | 26 | <include name="../../../bin/OpenSim.Framework.dll" /> |
27 | <include name="../../../bin/OpenSim.Framework.Communications.dll" /> | 27 | <include name="../../../bin/OpenSim.Framework.Communications.dll" /> |
28 | <include name="../../../bin/OpenSim.Framework.Console.dll" /> | 28 | <include name="../../../bin/OpenSim.Framework.Console.dll" /> |
29 | <include name="../../../bin/OpenSim.Framework.Data.dll" /> | ||
29 | <include name="../../../bin/OpenSim.Framework.GenericConfig.Xml.dll" /> | 30 | <include name="../../../bin/OpenSim.Framework.GenericConfig.Xml.dll" /> |
30 | <include name="../../../bin/OpenSim.Framework.Servers.dll" /> | 31 | <include name="../../../bin/OpenSim.Framework.Servers.dll" /> |
31 | <include name="../../../bin/OpenSim.Framework.UserManagement.dll" /> | 32 | <include name="../../../bin/OpenSim.Framework.UserManagement.dll" /> |
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 7bf6b8d..6e600b8 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -42,6 +42,8 @@ using OpenSim.Region.Environment; | |||
42 | using OpenSim.Region.Environment.Scenes; | 42 | using OpenSim.Region.Environment.Scenes; |
43 | using OpenSim.Region.Terrain; | 43 | using OpenSim.Region.Terrain; |
44 | using OpenSim.Framework.Interfaces; | 44 | using OpenSim.Framework.Interfaces; |
45 | using OpenSim.Framework.Data; | ||
46 | |||
45 | using OpenSim.Framework.Types; | 47 | using OpenSim.Framework.Types; |
46 | using OpenSim.Framework; | 48 | using OpenSim.Framework; |
47 | using OpenSim.Assets; | 49 | using OpenSim.Assets; |
@@ -250,7 +252,14 @@ namespace OpenSim | |||
250 | LocalWorld.PhysScene = this.physManager.GetPhysicsScene(this.m_physicsEngine); | 252 | LocalWorld.PhysScene = this.physManager.GetPhysicsScene(this.m_physicsEngine); |
251 | LocalWorld.PhysScene.SetTerrain(LocalWorld.Terrain.getHeights1D()); | 253 | LocalWorld.PhysScene.SetTerrain(LocalWorld.Terrain.getHeights1D()); |
252 | LocalWorld.LoadPrimsFromStorage(); | 254 | LocalWorld.LoadPrimsFromStorage(); |
253 | LocalWorld.localStorage.LoadParcels((ILocalStorageParcelReceiver)LocalWorld.parcelManager); | 255 | |
256 | //Master Avatar Setup | ||
257 | UserProfileData masterAvatar = commsManager.UserServer.SetupMasterUser(LocalWorld.RegionInfo.MasterAvatarFirstName, LocalWorld.RegionInfo.MasterAvatarLastName, LocalWorld.RegionInfo.MasterAvatarSandboxPassword); | ||
258 | if (masterAvatar != null) | ||
259 | { | ||
260 | LocalWorld.RegionInfo.MasterAvatarAssignedUUID = masterAvatar.UUID; | ||
261 | LocalWorld.localStorage.LoadParcels((ILocalStorageParcelReceiver)LocalWorld.parcelManager); | ||
262 | } | ||
254 | 263 | ||
255 | 264 | ||
256 | LocalWorld.StartTimer(); | 265 | LocalWorld.StartTimer(); |
diff --git a/OpenSim/Region/Capabilities/OpenSim.Region.Capabilities.csproj b/OpenSim/Region/Capabilities/OpenSim.Region.Capabilities.csproj index 4667d52..1ed28d2 100644 --- a/OpenSim/Region/Capabilities/OpenSim.Region.Capabilities.csproj +++ b/OpenSim/Region/Capabilities/OpenSim.Region.Capabilities.csproj | |||
@@ -96,40 +96,40 @@ | |||
96 | </ProjectReference> | 96 | </ProjectReference> |
97 | </ItemGroup> | 97 | </ItemGroup> |
98 | <ItemGroup> | 98 | <ItemGroup> |
99 | <Compile Include="Caps.cs"> | 99 | <Compile Include="LLSDCapsDetails.cs"> |
100 | <SubType>Code</SubType> | 100 | <SubType>Code</SubType> |
101 | </Compile> | 101 | </Compile> |
102 | <Compile Include="LLSDArray.cs"> | 102 | <Compile Include="LLSDArray.cs"> |
103 | <SubType>Code</SubType> | 103 | <SubType>Code</SubType> |
104 | </Compile> | 104 | </Compile> |
105 | <Compile Include="LLSDCapEvent.cs"> | 105 | <Compile Include="LLSDEmpty.cs"> |
106 | <SubType>Code</SubType> | 106 | <SubType>Code</SubType> |
107 | </Compile> | 107 | </Compile> |
108 | <Compile Include="LLSDCapsDetails.cs"> | 108 | <Compile Include="LLSDTest.cs"> |
109 | <SubType>Code</SubType> | 109 | <SubType>Code</SubType> |
110 | </Compile> | 110 | </Compile> |
111 | <Compile Include="LLSDEmpty.cs"> | 111 | <Compile Include="LLSDUploadReply.cs"> |
112 | <SubType>Code</SubType> | 112 | <SubType>Code</SubType> |
113 | </Compile> | 113 | </Compile> |
114 | <Compile Include="LLSDHelpers.cs"> | 114 | <Compile Include="LLSDType.cs"> |
115 | <SubType>Code</SubType> | 115 | <SubType>Code</SubType> |
116 | </Compile> | 116 | </Compile> |
117 | <Compile Include="LLSDMapLayer.cs"> | 117 | <Compile Include="LLSDHelpers.cs"> |
118 | <SubType>Code</SubType> | 118 | <SubType>Code</SubType> |
119 | </Compile> | 119 | </Compile> |
120 | <Compile Include="LLSDMapLayerResponse.cs"> | 120 | <Compile Include="LLSDCapEvent.cs"> |
121 | <SubType>Code</SubType> | 121 | <SubType>Code</SubType> |
122 | </Compile> | 122 | </Compile> |
123 | <Compile Include="LLSDMapRequest.cs"> | 123 | <Compile Include="LLSDMapRequest.cs"> |
124 | <SubType>Code</SubType> | 124 | <SubType>Code</SubType> |
125 | </Compile> | 125 | </Compile> |
126 | <Compile Include="LLSDTest.cs"> | 126 | <Compile Include="Caps.cs"> |
127 | <SubType>Code</SubType> | 127 | <SubType>Code</SubType> |
128 | </Compile> | 128 | </Compile> |
129 | <Compile Include="LLSDType.cs"> | 129 | <Compile Include="LLSDMapLayerResponse.cs"> |
130 | <SubType>Code</SubType> | 130 | <SubType>Code</SubType> |
131 | </Compile> | 131 | </Compile> |
132 | <Compile Include="LLSDUploadReply.cs"> | 132 | <Compile Include="LLSDMapLayer.cs"> |
133 | <SubType>Code</SubType> | 133 | <SubType>Code</SubType> |
134 | </Compile> | 134 | </Compile> |
135 | </ItemGroup> | 135 | </ItemGroup> |
diff --git a/OpenSim/Region/Capabilities/OpenSim.Region.Capabilities.dll.build b/OpenSim/Region/Capabilities/OpenSim.Region.Capabilities.dll.build index a091b5c..dd853e7 100644 --- a/OpenSim/Region/Capabilities/OpenSim.Region.Capabilities.dll.build +++ b/OpenSim/Region/Capabilities/OpenSim.Region.Capabilities.dll.build | |||
@@ -11,18 +11,18 @@ | |||
11 | <resources prefix="OpenSim.Region.Capabilities" dynamicprefix="true" > | 11 | <resources prefix="OpenSim.Region.Capabilities" dynamicprefix="true" > |
12 | </resources> | 12 | </resources> |
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="Caps.cs" /> | ||
15 | <include name="LLSDArray.cs" /> | ||
16 | <include name="LLSDCapEvent.cs" /> | ||
17 | <include name="LLSDCapsDetails.cs" /> | 14 | <include name="LLSDCapsDetails.cs" /> |
15 | <include name="LLSDArray.cs" /> | ||
18 | <include name="LLSDEmpty.cs" /> | 16 | <include name="LLSDEmpty.cs" /> |
19 | <include name="LLSDHelpers.cs" /> | ||
20 | <include name="LLSDMapLayer.cs" /> | ||
21 | <include name="LLSDMapLayerResponse.cs" /> | ||
22 | <include name="LLSDMapRequest.cs" /> | ||
23 | <include name="LLSDTest.cs" /> | 17 | <include name="LLSDTest.cs" /> |
24 | <include name="LLSDType.cs" /> | ||
25 | <include name="LLSDUploadReply.cs" /> | 18 | <include name="LLSDUploadReply.cs" /> |
19 | <include name="LLSDType.cs" /> | ||
20 | <include name="LLSDHelpers.cs" /> | ||
21 | <include name="LLSDCapEvent.cs" /> | ||
22 | <include name="LLSDMapRequest.cs" /> | ||
23 | <include name="Caps.cs" /> | ||
24 | <include name="LLSDMapLayerResponse.cs" /> | ||
25 | <include name="LLSDMapLayer.cs" /> | ||
26 | </sources> | 26 | </sources> |
27 | <references basedir="${project::get-base-directory()}"> | 27 | <references basedir="${project::get-base-directory()}"> |
28 | <lib> | 28 | <lib> |
diff --git a/OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.csproj b/OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.csproj index 3093eb0..2e1d8e2 100644 --- a/OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.csproj +++ b/OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.csproj | |||
@@ -122,34 +122,34 @@ | |||
122 | </ProjectReference> | 122 | </ProjectReference> |
123 | </ItemGroup> | 123 | </ItemGroup> |
124 | <ItemGroup> | 124 | <ItemGroup> |
125 | <Compile Include="ClientStackNetworkHandler.cs"> | 125 | <Compile Include="ClientView.AgentAssetUpload.cs"> |
126 | <SubType>Code</SubType> | 126 | <SubType>Code</SubType> |
127 | </Compile> | 127 | </Compile> |
128 | <Compile Include="ClientView.AgentAssetUpload.cs"> | 128 | <Compile Include="ClientStackNetworkHandler.cs"> |
129 | <SubType>Code</SubType> | 129 | <SubType>Code</SubType> |
130 | </Compile> | 130 | </Compile> |
131 | <Compile Include="ClientView.API.cs"> | 131 | <Compile Include="PacketServer.cs"> |
132 | <SubType>Code</SubType> | 132 | <SubType>Code</SubType> |
133 | </Compile> | 133 | </Compile> |
134 | <Compile Include="ClientView.cs"> | 134 | <Compile Include="UDPServer.cs"> |
135 | <SubType>Code</SubType> | 135 | <SubType>Code</SubType> |
136 | </Compile> | 136 | </Compile> |
137 | <Compile Include="ClientView.PacketHandlers.cs"> | 137 | <Compile Include="ClientView.PacketHandlers.cs"> |
138 | <SubType>Code</SubType> | 138 | <SubType>Code</SubType> |
139 | </Compile> | 139 | </Compile> |
140 | <Compile Include="ClientView.ProcessPackets.cs"> | 140 | <Compile Include="ClientView.API.cs"> |
141 | <SubType>Code</SubType> | 141 | <SubType>Code</SubType> |
142 | </Compile> | 142 | </Compile> |
143 | <Compile Include="ClientViewBase.cs"> | 143 | <Compile Include="ClientView.ProcessPackets.cs"> |
144 | <SubType>Code</SubType> | 144 | <SubType>Code</SubType> |
145 | </Compile> | 145 | </Compile> |
146 | <Compile Include="PacketServer.cs"> | 146 | <Compile Include="RegionApplicationBase.cs"> |
147 | <SubType>Code</SubType> | 147 | <SubType>Code</SubType> |
148 | </Compile> | 148 | </Compile> |
149 | <Compile Include="RegionApplicationBase.cs"> | 149 | <Compile Include="ClientViewBase.cs"> |
150 | <SubType>Code</SubType> | 150 | <SubType>Code</SubType> |
151 | </Compile> | 151 | </Compile> |
152 | <Compile Include="UDPServer.cs"> | 152 | <Compile Include="ClientView.cs"> |
153 | <SubType>Code</SubType> | 153 | <SubType>Code</SubType> |
154 | </Compile> | 154 | </Compile> |
155 | <Compile Include="Assets\InventoryCache.cs"> | 155 | <Compile Include="Assets\InventoryCache.cs"> |
diff --git a/OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.dll.build b/OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.dll.build index f76a4c8..1c791d3 100644 --- a/OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.dll.build +++ b/OpenSim/Region/ClientStack/OpenSim.Region.ClientStack.dll.build | |||
@@ -11,16 +11,16 @@ | |||
11 | <resources prefix="OpenSim.Region.ClientStack" dynamicprefix="true" > | 11 | <resources prefix="OpenSim.Region.ClientStack" dynamicprefix="true" > |
12 | </resources> | 12 | </resources> |
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="ClientStackNetworkHandler.cs" /> | ||
15 | <include name="ClientView.AgentAssetUpload.cs" /> | 14 | <include name="ClientView.AgentAssetUpload.cs" /> |
16 | <include name="ClientView.API.cs" /> | 15 | <include name="ClientStackNetworkHandler.cs" /> |
17 | <include name="ClientView.cs" /> | 16 | <include name="PacketServer.cs" /> |
17 | <include name="UDPServer.cs" /> | ||
18 | <include name="ClientView.PacketHandlers.cs" /> | 18 | <include name="ClientView.PacketHandlers.cs" /> |
19 | <include name="ClientView.API.cs" /> | ||
19 | <include name="ClientView.ProcessPackets.cs" /> | 20 | <include name="ClientView.ProcessPackets.cs" /> |
20 | <include name="ClientViewBase.cs" /> | ||
21 | <include name="PacketServer.cs" /> | ||
22 | <include name="RegionApplicationBase.cs" /> | 21 | <include name="RegionApplicationBase.cs" /> |
23 | <include name="UDPServer.cs" /> | 22 | <include name="ClientViewBase.cs" /> |
23 | <include name="ClientView.cs" /> | ||
24 | <include name="Assets/InventoryCache.cs" /> | 24 | <include name="Assets/InventoryCache.cs" /> |
25 | </sources> | 25 | </sources> |
26 | <references basedir="${project::get-base-directory()}"> | 26 | <references basedir="${project::get-base-directory()}"> |
diff --git a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs index f5aa8ae..bacaa3e 100644 --- a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs +++ b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs | |||
@@ -45,7 +45,7 @@ namespace OpenSim.Region.Communications.Local | |||
45 | public CommunicationsLocal(NetworkServersInfo serversInfo) | 45 | public CommunicationsLocal(NetworkServersInfo serversInfo) |
46 | : base(serversInfo) | 46 | : base(serversInfo) |
47 | { | 47 | { |
48 | UserServices = new LocalUserServices(this , serversInfo.DefaultHomeLocX, serversInfo.DefaultHomeLocY); | 48 | UserServices = new LocalUserServices(this,this.ServersInfo.DefaultHomeLocX,this.ServersInfo.DefaultHomeLocY); |
49 | UserServices.AddPlugin("OpenSim.Framework.Data.DB4o.dll"); | 49 | UserServices.AddPlugin("OpenSim.Framework.Data.DB4o.dll"); |
50 | UserServer = UserServices; | 50 | UserServer = UserServices; |
51 | GridServer = SandBoxServices; | 51 | GridServer = SandBoxServices; |
diff --git a/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj b/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj index 0a15a49..200fa3a 100644 --- a/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj +++ b/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj | |||
@@ -98,15 +98,15 @@ | |||
98 | </ProjectReference> | 98 | </ProjectReference> |
99 | </ItemGroup> | 99 | </ItemGroup> |
100 | <ItemGroup> | 100 | <ItemGroup> |
101 | <Compile Include="CommunicationsLocal.cs"> | ||
102 | <SubType>Code</SubType> | ||
103 | </Compile> | ||
104 | <Compile Include="LocalBackEndServices.cs"> | 101 | <Compile Include="LocalBackEndServices.cs"> |
105 | <SubType>Code</SubType> | 102 | <SubType>Code</SubType> |
106 | </Compile> | 103 | </Compile> |
107 | <Compile Include="LocalUserServices.cs"> | 104 | <Compile Include="LocalUserServices.cs"> |
108 | <SubType>Code</SubType> | 105 | <SubType>Code</SubType> |
109 | </Compile> | 106 | </Compile> |
107 | <Compile Include="CommunicationsLocal.cs"> | ||
108 | <SubType>Code</SubType> | ||
109 | </Compile> | ||
110 | <Compile Include="Properties\AssemblyInfo.cs"> | 110 | <Compile Include="Properties\AssemblyInfo.cs"> |
111 | <SubType>Code</SubType> | 111 | <SubType>Code</SubType> |
112 | </Compile> | 112 | </Compile> |
diff --git a/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build b/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build index 3cac9d3..60a90bd 100644 --- a/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build +++ b/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build | |||
@@ -11,9 +11,9 @@ | |||
11 | <resources prefix="OpenSim.Region.Communications.Local" dynamicprefix="true" > | 11 | <resources prefix="OpenSim.Region.Communications.Local" dynamicprefix="true" > |
12 | </resources> | 12 | </resources> |
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="CommunicationsLocal.cs" /> | ||
15 | <include name="LocalBackEndServices.cs" /> | 14 | <include name="LocalBackEndServices.cs" /> |
16 | <include name="LocalUserServices.cs" /> | 15 | <include name="LocalUserServices.cs" /> |
16 | <include name="CommunicationsLocal.cs" /> | ||
17 | <include name="Properties/AssemblyInfo.cs" /> | 17 | <include name="Properties/AssemblyInfo.cs" /> |
18 | </sources> | 18 | </sources> |
19 | <references basedir="${project::get-base-directory()}"> | 19 | <references basedir="${project::get-base-directory()}"> |
diff --git a/OpenSim/Region/Communications/OGS1/GridCommsManager.cs b/OpenSim/Region/Communications/OGS1/GridCommsManager.cs index 77848fa..2bf9536 100644 --- a/OpenSim/Region/Communications/OGS1/GridCommsManager.cs +++ b/OpenSim/Region/Communications/OGS1/GridCommsManager.cs | |||
@@ -12,7 +12,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
12 | { | 12 | { |
13 | GridServer = gridInterComms; | 13 | GridServer = gridInterComms; |
14 | InterRegion = gridInterComms; | 14 | InterRegion = gridInterComms; |
15 | UserServer = new OGSUserServices(); | 15 | UserServer = new OGSUserServices(this); |
16 | } | 16 | } |
17 | } | 17 | } |
18 | } | 18 | } |
diff --git a/OpenSim/Region/Communications/OGS1/OGSUserServices.cs b/OpenSim/Region/Communications/OGS1/OGSUserServices.cs index 48d3018..d41bdaf 100644 --- a/OpenSim/Region/Communications/OGS1/OGSUserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGSUserServices.cs | |||
@@ -1,24 +1,87 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections; | ||
2 | using System.Collections.Generic; | 3 | using System.Collections.Generic; |
3 | using System.Text; | 4 | using System.Text; |
5 | using OpenSim.Framework.Types; | ||
4 | using OpenSim.Framework.Communications; | 6 | using OpenSim.Framework.Communications; |
5 | using OpenSim.Framework.Data; | 7 | using OpenSim.Framework.Data; |
6 | using libsecondlife; | 8 | using libsecondlife; |
7 | 9 | ||
10 | using Nwc.XmlRpc; | ||
11 | |||
8 | namespace OpenSim.Region.Communications.OGS1 | 12 | namespace OpenSim.Region.Communications.OGS1 |
9 | { | 13 | { |
10 | public class OGSUserServices :IUserServices | 14 | public class OGSUserServices :IUserServices |
11 | { | 15 | { |
16 | GridCommsManager m_parent; | ||
17 | public OGSUserServices(GridCommsManager parent) | ||
18 | { | ||
19 | m_parent = parent; | ||
20 | } | ||
21 | |||
22 | public UserProfileData ConvertXMLRPCDataToUserProfile(Hashtable data) | ||
23 | { | ||
24 | UserProfileData userData = new UserProfileData(); | ||
25 | userData.username = (string)data["firstname"]; | ||
26 | userData.surname = (string)data["lastname"]; | ||
27 | userData.UUID = new LLUUID((string)data["uuid"]); | ||
28 | userData.userInventoryURI = (string)data["server_inventory"]; | ||
29 | userData.userAssetURI = (string)data["server_asset"]; | ||
30 | userData.profileFirstText = (string)data["profile_firstlife_about"]; | ||
31 | userData.profileFirstImage = new LLUUID((string)data["profile_firstlife_image"]); | ||
32 | userData.profileCanDoMask = (uint)data["profile_can_do"]; | ||
33 | userData.profileWantDoMask = (uint)data["profile_want_do"]; | ||
34 | userData.profileImage = new LLUUID((string)data["profile_image"]); | ||
35 | userData.lastLogin = (int)data["profile_lastlogin"]; | ||
36 | userData.homeLocation = new LLVector3(); | ||
37 | userData.homeLookAt = new LLVector3(); | ||
38 | |||
39 | return userData; | ||
40 | } | ||
12 | public UserProfileData GetUserProfile(string firstName, string lastName) | 41 | public UserProfileData GetUserProfile(string firstName, string lastName) |
13 | { | 42 | { |
14 | return GetUserProfile(firstName + " " + lastName); | 43 | return GetUserProfile(firstName + " " + lastName); |
15 | } | 44 | } |
16 | public UserProfileData GetUserProfile(string name) | 45 | public UserProfileData GetUserProfile(string name) |
17 | { | 46 | { |
47 | |||
48 | try | ||
49 | { | ||
50 | Hashtable param = new Hashtable(); | ||
51 | param["avatar_name"] = name; | ||
52 | IList parameters = new ArrayList(); | ||
53 | parameters.Add(param); | ||
54 | XmlRpcRequest req = new XmlRpcRequest("get_user_by_name", parameters); | ||
55 | XmlRpcResponse resp = req.Send(m_parent.ServersInfo.UserURL, 3000); | ||
56 | Hashtable respData = (Hashtable)resp.Value; | ||
57 | |||
58 | return ConvertXMLRPCDataToUserProfile(respData); | ||
59 | } | ||
60 | catch (Exception e) | ||
61 | { | ||
62 | Console.WriteLine("Error when trying to fetch profile data by name from remote user server: " + e.Message); | ||
63 | } | ||
18 | return null; | 64 | return null; |
19 | } | 65 | } |
20 | public UserProfileData GetUserProfile(LLUUID avatarID) | 66 | public UserProfileData GetUserProfile(LLUUID avatarID) |
21 | { | 67 | { |
68 | try | ||
69 | { | ||
70 | |||
71 | Hashtable param = new Hashtable(); | ||
72 | param["avatar_uuid"] = avatarID.ToString(); | ||
73 | IList parameters = new ArrayList(); | ||
74 | parameters.Add(param); | ||
75 | XmlRpcRequest req = new XmlRpcRequest("get_user_by_uuid", parameters); | ||
76 | XmlRpcResponse resp = req.Send(m_parent.ServersInfo.UserURL, 3000); | ||
77 | Hashtable respData = (Hashtable)resp.Value; | ||
78 | |||
79 | return ConvertXMLRPCDataToUserProfile(respData); | ||
80 | } | ||
81 | catch (Exception e) | ||
82 | { | ||
83 | Console.WriteLine("Error when trying to fetch profile data by uuid from remote user server: " + e.Message); | ||
84 | } | ||
22 | return null; | 85 | return null; |
23 | } | 86 | } |
24 | 87 | ||
diff --git a/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj b/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj index 8cc5641..2124bd9 100644 --- a/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj +++ b/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj | |||
@@ -116,13 +116,13 @@ | |||
116 | </ProjectReference> | 116 | </ProjectReference> |
117 | </ItemGroup> | 117 | </ItemGroup> |
118 | <ItemGroup> | 118 | <ItemGroup> |
119 | <Compile Include="GridCommsManager.cs"> | 119 | <Compile Include="OGSInterSimComms.cs"> |
120 | <SubType>Code</SubType> | 120 | <SubType>Code</SubType> |
121 | </Compile> | 121 | </Compile> |
122 | <Compile Include="OGS1GridServices.cs"> | 122 | <Compile Include="OGS1GridServices.cs"> |
123 | <SubType>Code</SubType> | 123 | <SubType>Code</SubType> |
124 | </Compile> | 124 | </Compile> |
125 | <Compile Include="OGSInterSimComms.cs"> | 125 | <Compile Include="GridCommsManager.cs"> |
126 | <SubType>Code</SubType> | 126 | <SubType>Code</SubType> |
127 | </Compile> | 127 | </Compile> |
128 | <Compile Include="OGSUserServices.cs"> | 128 | <Compile Include="OGSUserServices.cs"> |
diff --git a/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build b/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build index 21bb15c..1a7cf69 100644 --- a/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build +++ b/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build | |||
@@ -11,9 +11,9 @@ | |||
11 | <resources prefix="OpenSim.Region.Communications.OGS1" dynamicprefix="true" > | 11 | <resources prefix="OpenSim.Region.Communications.OGS1" dynamicprefix="true" > |
12 | </resources> | 12 | </resources> |
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="GridCommsManager.cs" /> | ||
15 | <include name="OGS1GridServices.cs" /> | ||
16 | <include name="OGSInterSimComms.cs" /> | 14 | <include name="OGSInterSimComms.cs" /> |
15 | <include name="OGS1GridServices.cs" /> | ||
16 | <include name="GridCommsManager.cs" /> | ||
17 | <include name="OGSUserServices.cs" /> | 17 | <include name="OGSUserServices.cs" /> |
18 | <include name="Properties/AssemblyInfo.cs" /> | 18 | <include name="Properties/AssemblyInfo.cs" /> |
19 | </sources> | 19 | </sources> |
diff --git a/OpenSim/Region/Environment/OpenSim.Region.Environment.csproj b/OpenSim/Region/Environment/OpenSim.Region.Environment.csproj index 4069454..9f8d2c3 100644 --- a/OpenSim/Region/Environment/OpenSim.Region.Environment.csproj +++ b/OpenSim/Region/Environment/OpenSim.Region.Environment.csproj | |||
@@ -148,64 +148,64 @@ | |||
148 | </ProjectReference> | 148 | </ProjectReference> |
149 | </ItemGroup> | 149 | </ItemGroup> |
150 | <ItemGroup> | 150 | <ItemGroup> |
151 | <Compile Include="EstateManager.cs"> | 151 | <Compile Include="RegionManager.cs"> |
152 | <SubType>Code</SubType> | 152 | <SubType>Code</SubType> |
153 | </Compile> | 153 | </Compile> |
154 | <Compile Include="ParcelManager.cs"> | 154 | <Compile Include="EstateManager.cs"> |
155 | <SubType>Code</SubType> | 155 | <SubType>Code</SubType> |
156 | </Compile> | 156 | </Compile> |
157 | <Compile Include="RegionManager.cs"> | 157 | <Compile Include="ParcelManager.cs"> |
158 | <SubType>Code</SubType> | 158 | <SubType>Code</SubType> |
159 | </Compile> | 159 | </Compile> |
160 | <Compile Include="Scenes\Entity.cs"> | 160 | <Compile Include="Scenes\ScenePresence.Body.cs"> |
161 | <SubType>Code</SubType> | 161 | <SubType>Code</SubType> |
162 | </Compile> | 162 | </Compile> |
163 | <Compile Include="Scenes\IScenePresenceBody.cs"> | 163 | <Compile Include="Scenes\SceneEvents.cs"> |
164 | <SubType>Code</SubType> | 164 | <SubType>Code</SubType> |
165 | </Compile> | 165 | </Compile> |
166 | <Compile Include="Scenes\Primitive.cs"> | 166 | <Compile Include="Scenes\ScenePresence.cs"> |
167 | <SubType>Code</SubType> | 167 | <SubType>Code</SubType> |
168 | </Compile> | 168 | </Compile> |
169 | <Compile Include="Scenes\Scene.cs"> | 169 | <Compile Include="Scenes\ScenePresence.Animations.cs"> |
170 | <SubType>Code</SubType> | 170 | <SubType>Code</SubType> |
171 | </Compile> | 171 | </Compile> |
172 | <Compile Include="Scenes\Scene.PacketHandlers.cs"> | 172 | <Compile Include="Scenes\Scene.PacketHandlers.cs"> |
173 | <SubType>Code</SubType> | 173 | <SubType>Code</SubType> |
174 | </Compile> | 174 | </Compile> |
175 | <Compile Include="Scenes\SceneBase.cs"> | 175 | <Compile Include="Scenes\SceneObject.cs"> |
176 | <SubType>Code</SubType> | 176 | <SubType>Code</SubType> |
177 | </Compile> | 177 | </Compile> |
178 | <Compile Include="Scenes\SceneEvents.cs"> | 178 | <Compile Include="Scenes\Primitive.cs"> |
179 | <SubType>Code</SubType> | 179 | <SubType>Code</SubType> |
180 | </Compile> | 180 | </Compile> |
181 | <Compile Include="Scenes\SceneObject.cs"> | 181 | <Compile Include="Scenes\IScenePresenceBody.cs"> |
182 | <SubType>Code</SubType> | 182 | <SubType>Code</SubType> |
183 | </Compile> | 183 | </Compile> |
184 | <Compile Include="Scenes\ScenePresence.Animations.cs"> | 184 | <Compile Include="Scenes\Entity.cs"> |
185 | <SubType>Code</SubType> | 185 | <SubType>Code</SubType> |
186 | </Compile> | 186 | </Compile> |
187 | <Compile Include="Scenes\ScenePresence.Body.cs"> | 187 | <Compile Include="Scenes\SceneBase.cs"> |
188 | <SubType>Code</SubType> | 188 | <SubType>Code</SubType> |
189 | </Compile> | 189 | </Compile> |
190 | <Compile Include="Scenes\ScenePresence.cs"> | 190 | <Compile Include="Scenes\Scene.cs"> |
191 | <SubType>Code</SubType> | 191 | <SubType>Code</SubType> |
192 | </Compile> | 192 | </Compile> |
193 | <Compile Include="Scenes\scripting\Script.cs"> | 193 | <Compile Include="Scenes\scripting\ScriptManager.cs"> |
194 | <SubType>Code</SubType> | 194 | <SubType>Code</SubType> |
195 | </Compile> | 195 | </Compile> |
196 | <Compile Include="Scenes\scripting\ScriptInfo.cs"> | 196 | <Compile Include="Scenes\scripting\ScriptInfo.cs"> |
197 | <SubType>Code</SubType> | 197 | <SubType>Code</SubType> |
198 | </Compile> | 198 | </Compile> |
199 | <Compile Include="Scenes\scripting\ScriptManager.cs"> | 199 | <Compile Include="Scenes\scripting\Script.cs"> |
200 | <SubType>Code</SubType> | 200 | <SubType>Code</SubType> |
201 | </Compile> | 201 | </Compile> |
202 | <Compile Include="Scenes\scripting\Engines\CSharpScriptEngine.cs"> | 202 | <Compile Include="Scenes\scripting\Engines\CSharpScriptEngine.cs"> |
203 | <SubType>Code</SubType> | 203 | <SubType>Code</SubType> |
204 | </Compile> | 204 | </Compile> |
205 | <Compile Include="Scenes\scripting\Engines\JScriptEngine.cs"> | 205 | <Compile Include="Scenes\scripting\Engines\JSharpScriptEngine.cs"> |
206 | <SubType>Code</SubType> | 206 | <SubType>Code</SubType> |
207 | </Compile> | 207 | </Compile> |
208 | <Compile Include="Scenes\scripting\Engines\JSharpScriptEngine.cs"> | 208 | <Compile Include="Scenes\scripting\Engines\JScriptEngine.cs"> |
209 | <SubType>Code</SubType> | 209 | <SubType>Code</SubType> |
210 | </Compile> | 210 | </Compile> |
211 | </ItemGroup> | 211 | </ItemGroup> |
diff --git a/OpenSim/Region/Environment/OpenSim.Region.Environment.dll.build b/OpenSim/Region/Environment/OpenSim.Region.Environment.dll.build index 51924d5..667f1d7 100644 --- a/OpenSim/Region/Environment/OpenSim.Region.Environment.dll.build +++ b/OpenSim/Region/Environment/OpenSim.Region.Environment.dll.build | |||
@@ -11,26 +11,26 @@ | |||
11 | <resources prefix="OpenSim.Region.Environment" dynamicprefix="true" > | 11 | <resources prefix="OpenSim.Region.Environment" dynamicprefix="true" > |
12 | </resources> | 12 | </resources> |
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="RegionManager.cs" /> | ||
14 | <include name="EstateManager.cs" /> | 15 | <include name="EstateManager.cs" /> |
15 | <include name="ParcelManager.cs" /> | 16 | <include name="ParcelManager.cs" /> |
16 | <include name="RegionManager.cs" /> | ||
17 | <include name="Scenes/Entity.cs" /> | ||
18 | <include name="Scenes/IScenePresenceBody.cs" /> | ||
19 | <include name="Scenes/Primitive.cs" /> | ||
20 | <include name="Scenes/Scene.cs" /> | ||
21 | <include name="Scenes/Scene.PacketHandlers.cs" /> | ||
22 | <include name="Scenes/SceneBase.cs" /> | ||
23 | <include name="Scenes/SceneEvents.cs" /> | ||
24 | <include name="Scenes/SceneObject.cs" /> | ||
25 | <include name="Scenes/ScenePresence.Animations.cs" /> | ||
26 | <include name="Scenes/ScenePresence.Body.cs" /> | 17 | <include name="Scenes/ScenePresence.Body.cs" /> |
18 | <include name="Scenes/SceneEvents.cs" /> | ||
27 | <include name="Scenes/ScenePresence.cs" /> | 19 | <include name="Scenes/ScenePresence.cs" /> |
28 | <include name="Scenes/scripting/Script.cs" /> | 20 | <include name="Scenes/ScenePresence.Animations.cs" /> |
29 | <include name="Scenes/scripting/ScriptInfo.cs" /> | 21 | <include name="Scenes/Scene.PacketHandlers.cs" /> |
22 | <include name="Scenes/SceneObject.cs" /> | ||
23 | <include name="Scenes/Primitive.cs" /> | ||
24 | <include name="Scenes/IScenePresenceBody.cs" /> | ||
25 | <include name="Scenes/Entity.cs" /> | ||
26 | <include name="Scenes/SceneBase.cs" /> | ||
27 | <include name="Scenes/Scene.cs" /> | ||
30 | <include name="Scenes/scripting/ScriptManager.cs" /> | 28 | <include name="Scenes/scripting/ScriptManager.cs" /> |
29 | <include name="Scenes/scripting/ScriptInfo.cs" /> | ||
30 | <include name="Scenes/scripting/Script.cs" /> | ||
31 | <include name="Scenes/scripting/Engines/CSharpScriptEngine.cs" /> | 31 | <include name="Scenes/scripting/Engines/CSharpScriptEngine.cs" /> |
32 | <include name="Scenes/scripting/Engines/JScriptEngine.cs" /> | ||
33 | <include name="Scenes/scripting/Engines/JSharpScriptEngine.cs" /> | 32 | <include name="Scenes/scripting/Engines/JSharpScriptEngine.cs" /> |
33 | <include name="Scenes/scripting/Engines/JScriptEngine.cs" /> | ||
34 | </sources> | 34 | </sources> |
35 | <references basedir="${project::get-base-directory()}"> | 35 | <references basedir="${project::get-base-directory()}"> |
36 | <lib> | 36 | <lib> |
diff --git a/OpenSim/Region/Storage/LocalStorageDb4o/OpenSim.Region.Storage.LocalStorageDb4o.csproj b/OpenSim/Region/Storage/LocalStorageDb4o/OpenSim.Region.Storage.LocalStorageDb4o.csproj index 147158c..716fd57 100644 --- a/OpenSim/Region/Storage/LocalStorageDb4o/OpenSim.Region.Storage.LocalStorageDb4o.csproj +++ b/OpenSim/Region/Storage/LocalStorageDb4o/OpenSim.Region.Storage.LocalStorageDb4o.csproj | |||
@@ -93,9 +93,6 @@ | |||
93 | <Compile Include="AssemblyInfo.cs"> | 93 | <Compile Include="AssemblyInfo.cs"> |
94 | <SubType>Code</SubType> | 94 | <SubType>Code</SubType> |
95 | </Compile> | 95 | </Compile> |
96 | <Compile Include="Db4LocalStorage.cs"> | ||
97 | <SubType>Code</SubType> | ||
98 | </Compile> | ||
99 | <Compile Include="MapStorage.cs"> | 96 | <Compile Include="MapStorage.cs"> |
100 | <SubType>Code</SubType> | 97 | <SubType>Code</SubType> |
101 | </Compile> | 98 | </Compile> |
@@ -105,6 +102,9 @@ | |||
105 | <Compile Include="UUIDPrimQuery.cs"> | 102 | <Compile Include="UUIDPrimQuery.cs"> |
106 | <SubType>Code</SubType> | 103 | <SubType>Code</SubType> |
107 | </Compile> | 104 | </Compile> |
105 | <Compile Include="Db4LocalStorage.cs"> | ||
106 | <SubType>Code</SubType> | ||
107 | </Compile> | ||
108 | </ItemGroup> | 108 | </ItemGroup> |
109 | <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> | 109 | <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> |
110 | <PropertyGroup> | 110 | <PropertyGroup> |
diff --git a/OpenSim/Region/Storage/LocalStorageDb4o/OpenSim.Region.Storage.LocalStorageDb4o.dll.build b/OpenSim/Region/Storage/LocalStorageDb4o/OpenSim.Region.Storage.LocalStorageDb4o.dll.build index fc9f055..112ff1c 100644 --- a/OpenSim/Region/Storage/LocalStorageDb4o/OpenSim.Region.Storage.LocalStorageDb4o.dll.build +++ b/OpenSim/Region/Storage/LocalStorageDb4o/OpenSim.Region.Storage.LocalStorageDb4o.dll.build | |||
@@ -12,10 +12,10 @@ | |||
12 | </resources> | 12 | </resources> |
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="AssemblyInfo.cs" /> | 14 | <include name="AssemblyInfo.cs" /> |
15 | <include name="Db4LocalStorage.cs" /> | ||
16 | <include name="MapStorage.cs" /> | 15 | <include name="MapStorage.cs" /> |
17 | <include name="UUIDParcelQuery.cs" /> | 16 | <include name="UUIDParcelQuery.cs" /> |
18 | <include name="UUIDPrimQuery.cs" /> | 17 | <include name="UUIDPrimQuery.cs" /> |
18 | <include name="Db4LocalStorage.cs" /> | ||
19 | </sources> | 19 | </sources> |
20 | <references basedir="${project::get-base-directory()}"> | 20 | <references basedir="${project::get-base-directory()}"> |
21 | <lib> | 21 | <lib> |