diff options
author | MW | 2007-06-25 16:01:30 +0000 |
---|---|---|
committer | MW | 2007-06-25 16:01:30 +0000 |
commit | f41379549773531b2886b64aaacf57c954a64610 (patch) | |
tree | 09d96fbb41898db1ed55a674c1757fbaee34c7af | |
parent | Disabled the EventQueueGet CAPS as its not yet fully functional. (diff) | |
download | opensim-SC-f41379549773531b2886b64aaacf57c954a64610.zip opensim-SC-f41379549773531b2886b64aaacf57c954a64610.tar.gz opensim-SC-f41379549773531b2886b64aaacf57c954a64610.tar.bz2 opensim-SC-f41379549773531b2886b64aaacf57c954a64610.tar.xz |
updated prebuild.xml.
Added some more events to IClientAPI (OnGrapObject , OnGrapUpdate, OnDeGrapObject).
Diffstat (limited to '')
22 files changed, 322 insertions, 200 deletions
diff --git a/Common/OpenGrid.Framework.Communications.OGS1/GridCommsManager.cs b/Common/OpenGrid.Framework.Communications.OGS1/GridCommsManager.cs index 0784ffa..308e00f 100644 --- a/Common/OpenGrid.Framework.Communications.OGS1/GridCommsManager.cs +++ b/Common/OpenGrid.Framework.Communications.OGS1/GridCommsManager.cs | |||
@@ -1,12 +1,13 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using OpenSim.Framework.Types; | ||
4 | using OpenGrid.Framework.Communications; | 5 | using OpenGrid.Framework.Communications; |
5 | namespace OpenGrid.Framework.Communications.OGS1 | 6 | namespace OpenGrid.Framework.Communications.OGS1 |
6 | { | 7 | { |
7 | public class GridCommsManager : CommunicationsManager | 8 | public class GridCommsManager : CommunicationsManager |
8 | { | 9 | { |
9 | public GridCommsManager() | 10 | public GridCommsManager(NetworkServersInfo serversInfo) :base(serversInfo) |
10 | { | 11 | { |
11 | GridServer = new OGS1GridServices(); | 12 | GridServer = new OGS1GridServices(); |
12 | InterRegion = new OGSInterSimComms(); | 13 | InterRegion = new OGSInterSimComms(); |
diff --git a/Common/OpenGrid.Framework.Communications.OGS1/OpenGrid.Framework.Communications.OGS1.csproj b/Common/OpenGrid.Framework.Communications.OGS1/OpenGrid.Framework.Communications.OGS1.csproj index 4a80635..3f4f22d 100644 --- a/Common/OpenGrid.Framework.Communications.OGS1/OpenGrid.Framework.Communications.OGS1.csproj +++ b/Common/OpenGrid.Framework.Communications.OGS1/OpenGrid.Framework.Communications.OGS1.csproj | |||
@@ -1,13 +1,12 @@ | |||
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>{C1F40DD4-A68B-4233-9142-CE236775A3CE}</ProjectGuid> | 6 | <ProjectGuid>{17442AF1-0000-0000-0000-000000000000}</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>OpenGrid.Framework.Communications.OGS1</AssemblyName> | 12 | <AssemblyName>OpenGrid.Framework.Communications.OGS1</AssemblyName> |
@@ -16,11 +15,9 @@ | |||
16 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | 15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> |
17 | <DelaySign>false</DelaySign> | 16 | <DelaySign>false</DelaySign> |
18 | <OutputType>Library</OutputType> | 17 | <OutputType>Library</OutputType> |
19 | <AppDesignerFolder> | 18 | <AppDesignerFolder></AppDesignerFolder> |
20 | </AppDesignerFolder> | ||
21 | <RootNamespace>OpenGrid.Framework.Communications.OGS1</RootNamespace> | 19 | <RootNamespace>OpenGrid.Framework.Communications.OGS1</RootNamespace> |
22 | <StartupObject> | 20 | <StartupObject></StartupObject> |
23 | </StartupObject> | ||
24 | <FileUpgradeFlags> | 21 | <FileUpgradeFlags> |
25 | </FileUpgradeFlags> | 22 | </FileUpgradeFlags> |
26 | </PropertyGroup> | 23 | </PropertyGroup> |
@@ -31,8 +28,7 @@ | |||
31 | <ConfigurationOverrideFile> | 28 | <ConfigurationOverrideFile> |
32 | </ConfigurationOverrideFile> | 29 | </ConfigurationOverrideFile> |
33 | <DefineConstants>TRACE;DEBUG</DefineConstants> | 30 | <DefineConstants>TRACE;DEBUG</DefineConstants> |
34 | <DocumentationFile> | 31 | <DocumentationFile></DocumentationFile> |
35 | </DocumentationFile> | ||
36 | <DebugSymbols>True</DebugSymbols> | 32 | <DebugSymbols>True</DebugSymbols> |
37 | <FileAlignment>4096</FileAlignment> | 33 | <FileAlignment>4096</FileAlignment> |
38 | <Optimize>False</Optimize> | 34 | <Optimize>False</Optimize> |
@@ -41,8 +37,7 @@ | |||
41 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 37 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
42 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 38 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
43 | <WarningLevel>4</WarningLevel> | 39 | <WarningLevel>4</WarningLevel> |
44 | <NoWarn> | 40 | <NoWarn></NoWarn> |
45 | </NoWarn> | ||
46 | </PropertyGroup> | 41 | </PropertyGroup> |
47 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | 42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
48 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | 43 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
@@ -51,8 +46,7 @@ | |||
51 | <ConfigurationOverrideFile> | 46 | <ConfigurationOverrideFile> |
52 | </ConfigurationOverrideFile> | 47 | </ConfigurationOverrideFile> |
53 | <DefineConstants>TRACE</DefineConstants> | 48 | <DefineConstants>TRACE</DefineConstants> |
54 | <DocumentationFile> | 49 | <DocumentationFile></DocumentationFile> |
55 | </DocumentationFile> | ||
56 | <DebugSymbols>False</DebugSymbols> | 50 | <DebugSymbols>False</DebugSymbols> |
57 | <FileAlignment>4096</FileAlignment> | 51 | <FileAlignment>4096</FileAlignment> |
58 | <Optimize>True</Optimize> | 52 | <Optimize>True</Optimize> |
@@ -61,23 +55,22 @@ | |||
61 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 55 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
62 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 56 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
63 | <WarningLevel>4</WarningLevel> | 57 | <WarningLevel>4</WarningLevel> |
64 | <NoWarn> | 58 | <NoWarn></NoWarn> |
65 | </NoWarn> | ||
66 | </PropertyGroup> | 59 | </PropertyGroup> |
67 | <ItemGroup> | 60 | <ItemGroup> |
68 | <Reference Include="libsecondlife.dll"> | 61 | <Reference Include="libsecondlife.dll" > |
69 | <HintPath>..\..\bin\libsecondlife.dll</HintPath> | 62 | <HintPath>..\..\bin\libsecondlife.dll</HintPath> |
70 | <Private>False</Private> | 63 | <Private>False</Private> |
71 | </Reference> | 64 | </Reference> |
72 | <Reference Include="System"> | 65 | <Reference Include="System" > |
73 | <HintPath>System.dll</HintPath> | 66 | <HintPath>System.dll</HintPath> |
74 | <Private>False</Private> | 67 | <Private>False</Private> |
75 | </Reference> | 68 | </Reference> |
76 | <Reference Include="System.Data"> | 69 | <Reference Include="System.Data" > |
77 | <HintPath>System.Data.dll</HintPath> | 70 | <HintPath>System.Data.dll</HintPath> |
78 | <Private>False</Private> | 71 | <Private>False</Private> |
79 | </Reference> | 72 | </Reference> |
80 | <Reference Include="System.Xml"> | 73 | <Reference Include="System.Xml" > |
81 | <HintPath>System.Xml.dll</HintPath> | 74 | <HintPath>System.Xml.dll</HintPath> |
82 | <Private>False</Private> | 75 | <Private>False</Private> |
83 | </Reference> | 76 | </Reference> |
@@ -87,44 +80,52 @@ | |||
87 | <Name>OpenGrid.Framework.Communications</Name> | 80 | <Name>OpenGrid.Framework.Communications</Name> |
88 | <Project>{683344D5-0000-0000-0000-000000000000}</Project> | 81 | <Project>{683344D5-0000-0000-0000-000000000000}</Project> |
89 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 82 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
90 | <Private>False</Private> | 83 | <Private>False</Private> |
91 | </ProjectReference> | 84 | </ProjectReference> |
92 | <ProjectReference Include="..\OpenGrid.Framework.Data\OpenGrid.Framework.Data.csproj"> | 85 | <ProjectReference Include="..\OpenGrid.Framework.Data\OpenGrid.Framework.Data.csproj"> |
93 | <Project>{62CDF671-0000-0000-0000-000000000000}</Project> | ||
94 | <Name>OpenGrid.Framework.Data</Name> | 86 | <Name>OpenGrid.Framework.Data</Name> |
87 | <Project>{62CDF671-0000-0000-0000-000000000000}</Project> | ||
88 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
89 | <Private>False</Private> | ||
95 | </ProjectReference> | 90 | </ProjectReference> |
96 | <ProjectReference Include="..\OpenSim.Framework\OpenSim.Framework.csproj"> | 91 | <ProjectReference Include="..\OpenSim.Framework\OpenSim.Framework.csproj"> |
97 | <Name>OpenSim.Framework</Name> | 92 | <Name>OpenSim.Framework</Name> |
98 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> | 93 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> |
99 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 94 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
100 | <Private>False</Private> | 95 | <Private>False</Private> |
101 | </ProjectReference> | 96 | </ProjectReference> |
102 | <ProjectReference Include="..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj"> | 97 | <ProjectReference Include="..\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj"> |
103 | <Name>OpenSim.Framework.Console</Name> | 98 | <Name>OpenSim.Framework.Console</Name> |
104 | <Project>{A7CD0630-0000-0000-0000-000000000000}</Project> | 99 | <Project>{A7CD0630-0000-0000-0000-000000000000}</Project> |
105 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 100 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
106 | <Private>False</Private> | 101 | <Private>False</Private> |
107 | </ProjectReference> | 102 | </ProjectReference> |
108 | <ProjectReference Include="..\OpenSim.Servers\OpenSim.Servers.csproj"> | 103 | <ProjectReference Include="..\OpenSim.Servers\OpenSim.Servers.csproj"> |
109 | <Name>OpenSim.Servers</Name> | 104 | <Name>OpenSim.Servers</Name> |
110 | <Project>{8BB20F0A-0000-0000-0000-000000000000}</Project> | 105 | <Project>{8BB20F0A-0000-0000-0000-000000000000}</Project> |
111 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 106 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
112 | <Private>False</Private> | 107 | <Private>False</Private> |
113 | </ProjectReference> | 108 | </ProjectReference> |
114 | <ProjectReference Include="..\XmlRpcCS\XMLRPC.csproj"> | 109 | <ProjectReference Include="..\XmlRpcCS\XMLRPC.csproj"> |
115 | <Name>XMLRPC</Name> | 110 | <Name>XMLRPC</Name> |
116 | <Project>{8E81D43C-0000-0000-0000-000000000000}</Project> | 111 | <Project>{8E81D43C-0000-0000-0000-000000000000}</Project> |
117 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 112 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
118 | <Private>False</Private> | 113 | <Private>False</Private> |
119 | </ProjectReference> | 114 | </ProjectReference> |
120 | </ItemGroup> | 115 | </ItemGroup> |
121 | <ItemGroup> | 116 | <ItemGroup> |
122 | <Compile Include="GridCommsManager.cs" /> | 117 | <Compile Include="GridCommsManager.cs"> |
118 | <SubType>Code</SubType> | ||
119 | </Compile> | ||
123 | <Compile Include="OGS1GridServices.cs"> | 120 | <Compile Include="OGS1GridServices.cs"> |
124 | <SubType>Code</SubType> | 121 | <SubType>Code</SubType> |
125 | </Compile> | 122 | </Compile> |
126 | <Compile Include="OGSInterSimComms.cs" /> | 123 | <Compile Include="OGSInterSimComms.cs"> |
127 | <Compile Include="OGSUserServices.cs" /> | 124 | <SubType>Code</SubType> |
125 | </Compile> | ||
126 | <Compile Include="OGSUserServices.cs"> | ||
127 | <SubType>Code</SubType> | ||
128 | </Compile> | ||
128 | <Compile Include="Properties\AssemblyInfo.cs"> | 129 | <Compile Include="Properties\AssemblyInfo.cs"> |
129 | <SubType>Code</SubType> | 130 | <SubType>Code</SubType> |
130 | </Compile> | 131 | </Compile> |
@@ -136,4 +137,4 @@ | |||
136 | <PostBuildEvent> | 137 | <PostBuildEvent> |
137 | </PostBuildEvent> | 138 | </PostBuildEvent> |
138 | </PropertyGroup> | 139 | </PropertyGroup> |
139 | </Project> \ No newline at end of file | 140 | </Project> |
diff --git a/Common/OpenGrid.Framework.Communications/CommunicationsManager.cs b/Common/OpenGrid.Framework.Communications/CommunicationsManager.cs index 2ed4fd2..8d8a647 100644 --- a/Common/OpenGrid.Framework.Communications/CommunicationsManager.cs +++ b/Common/OpenGrid.Framework.Communications/CommunicationsManager.cs | |||
@@ -43,7 +43,7 @@ namespace OpenGrid.Framework.Communications | |||
43 | public IGridServices GridServer; | 43 | public IGridServices GridServer; |
44 | public IInterRegionCommunications InterRegion; | 44 | public IInterRegionCommunications InterRegion; |
45 | 45 | ||
46 | public CommunicationsManager() | 46 | public CommunicationsManager(NetworkServersInfo serversInfo) |
47 | { | 47 | { |
48 | 48 | ||
49 | } | 49 | } |
diff --git a/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.csproj.user b/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.csproj.user index ae8a33c..5941547 100644 --- a/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.csproj.user +++ b/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.csproj.user | |||
@@ -2,7 +2,7 @@ | |||
2 | <PropertyGroup> | 2 | <PropertyGroup> |
3 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | 3 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
4 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | 4 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
5 | <ReferencePath>E:\work\oslauth\sim\branches\Sugilite\bin\</ReferencePath> | 5 | <ReferencePath>C:\New Folder\second-life-viewer\opensim-dailys2\opensim15-06\Sugilite\bin\</ReferencePath> |
6 | <LastOpenVersion>8.0.50727</LastOpenVersion> | 6 | <LastOpenVersion>8.0.50727</LastOpenVersion> |
7 | <ProjectView>ProjectFiles</ProjectView> | 7 | <ProjectView>ProjectFiles</ProjectView> |
8 | <ProjectTrust>0</ProjectTrust> | 8 | <ProjectTrust>0</ProjectTrust> |
diff --git a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs index 9028d8d..009648c 100644 --- a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs +++ b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs | |||
@@ -55,11 +55,12 @@ namespace OpenSim.Framework.Interfaces | |||
55 | public delegate void ObjectSelect(uint localID, IClientAPI remoteClient); | 55 | public delegate void ObjectSelect(uint localID, IClientAPI remoteClient); |
56 | public delegate void UpdatePrimFlags(uint localID, Packet packet, IClientAPI remoteClient); | 56 | public delegate void UpdatePrimFlags(uint localID, Packet packet, IClientAPI remoteClient); |
57 | public delegate void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient); | 57 | public delegate void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient); |
58 | public delegate void UpdatePrimVector(uint localID, LLVector3 pos, IClientAPI remoteClient); | 58 | public delegate void UpdateVector(uint localID, LLVector3 pos, IClientAPI remoteClient); |
59 | public delegate void UpdatePrimRotation(uint localID, LLQuaternion rot, IClientAPI remoteClient); | 59 | public delegate void UpdatePrimRotation(uint localID, LLQuaternion rot, IClientAPI remoteClient); |
60 | public delegate void StatusChange(bool status); | 60 | public delegate void StatusChange(bool status); |
61 | public delegate void NewAvatar(IClientAPI remoteClient, LLUUID agentID, bool status); | 61 | public delegate void NewAvatar(IClientAPI remoteClient, LLUUID agentID, bool status); |
62 | public delegate void UpdateAgent(IClientAPI remoteClient, uint flags, LLQuaternion bodyRotation); | 62 | public delegate void UpdateAgent(IClientAPI remoteClient, uint flags, LLQuaternion bodyRotation); |
63 | public delegate void MoveObject(LLUUID objectID, LLVector3 offset, LLVector3 grapPos, IClientAPI remoteClient); | ||
63 | 64 | ||
64 | public delegate void ParcelPropertiesRequest(int start_x, int start_y, int end_x, int end_y, int sequence_id, bool snap_selection, IClientAPI remote_client); | 65 | public delegate void ParcelPropertiesRequest(int start_x, int start_y, int end_x, int end_y, int sequence_id, bool snap_selection, IClientAPI remote_client); |
65 | public delegate void ParcelDivideRequest(int west, int south, int east, int north, IClientAPI remote_client); | 66 | public delegate void ParcelDivideRequest(int west, int south, int east, int north, IClientAPI remote_client); |
@@ -86,14 +87,17 @@ namespace OpenSim.Framework.Interfaces | |||
86 | event UpdateAgent OnAgentUpdate; | 87 | event UpdateAgent OnAgentUpdate; |
87 | event GenericCall OnRequestAvatarsData; | 88 | event GenericCall OnRequestAvatarsData; |
88 | event GenericCall4 OnAddPrim; | 89 | event GenericCall4 OnAddPrim; |
90 | event UpdateVector OnGrapObject; | ||
91 | event ObjectSelect OnDeGrapObject; | ||
92 | event MoveObject OnGrapUpdate; | ||
89 | 93 | ||
90 | event UpdateShape OnUpdatePrimShape; | 94 | event UpdateShape OnUpdatePrimShape; |
91 | event ObjectSelect OnObjectSelect; | 95 | event ObjectSelect OnObjectSelect; |
92 | event UpdatePrimFlags OnUpdatePrimFlags; | 96 | event UpdatePrimFlags OnUpdatePrimFlags; |
93 | event UpdatePrimTexture OnUpdatePrimTexture; | 97 | event UpdatePrimTexture OnUpdatePrimTexture; |
94 | event UpdatePrimVector OnUpdatePrimPosition; | 98 | event UpdateVector OnUpdatePrimPosition; |
95 | event UpdatePrimRotation OnUpdatePrimRotation; | 99 | event UpdatePrimRotation OnUpdatePrimRotation; |
96 | event UpdatePrimVector OnUpdatePrimScale; | 100 | event UpdateVector OnUpdatePrimScale; |
97 | event StatusChange OnChildAgentStatus; | 101 | event StatusChange OnChildAgentStatus; |
98 | event GenericCall2 OnStopMovement; | 102 | event GenericCall2 OnStopMovement; |
99 | event NewAvatar OnNewAvatar; | 103 | event NewAvatar OnNewAvatar; |
@@ -143,13 +147,14 @@ namespace OpenSim.Framework.Interfaces | |||
143 | void SendRegionTeleport(ulong regionHandle, byte simAccess, string ipAddress, ushort ipPort, uint locationID, uint flags); | 147 | void SendRegionTeleport(ulong regionHandle, byte simAccess, string ipAddress, ushort ipPort, uint locationID, uint flags); |
144 | void SendTeleportCancel(); | 148 | void SendTeleportCancel(); |
145 | void SendTeleportLocationStart(); | 149 | void SendTeleportLocationStart(); |
150 | void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance); | ||
146 | 151 | ||
147 | void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos, byte[] textureEntry); | 152 | void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos, byte[] textureEntry); |
148 | void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity); | 153 | void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity); |
149 | 154 | ||
150 | void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint); | 155 | void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint); |
151 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLQuaternion rotation, LLUUID textureID); | 156 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLQuaternion rotation, LLUUID textureID , uint flags); |
152 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLUUID textureID); | 157 | void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLUUID textureID, uint flags); |
153 | void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLQuaternion rotation); | 158 | void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLQuaternion rotation); |
154 | } | 159 | } |
155 | } | 160 | } |
diff --git a/OpenGridServices/OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build b/OpenGridServices/OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build index d262947..a24003f 100644 --- a/OpenGridServices/OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build +++ b/OpenGridServices/OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build | |||
@@ -23,7 +23,7 @@ | |||
23 | <include name="../../bin/Db4objects.Db4o.dll" /> | 23 | <include name="../../bin/Db4objects.Db4o.dll" /> |
24 | <include name="../../bin/libsecondlife.dll" /> | 24 | <include name="../../bin/libsecondlife.dll" /> |
25 | <include name="../../bin/OpenGrid.Framework.Data.dll" /> | 25 | <include name="../../bin/OpenGrid.Framework.Data.dll" /> |
26 | <include name="OpenGrid.Framework.UserManager.dll" /> | 26 | <include name="../../bin/OpenGrid.Framework.UserManager.dll" /> |
27 | <include name="../../bin/OpenSim.Framework.dll" /> | 27 | <include name="../../bin/OpenSim.Framework.dll" /> |
28 | <include name="../../bin/OpenSim.Framework.Console.dll" /> | 28 | <include name="../../bin/OpenSim.Framework.Console.dll" /> |
29 | <include name="../../bin/OpenSim.GenericConfig.Xml.dll" /> | 29 | <include name="../../bin/OpenSim.GenericConfig.Xml.dll" /> |
diff --git a/OpenSim.sln b/OpenSim.sln index 6ae3992..9145db2 100644 --- a/OpenSim.sln +++ b/OpenSim.sln | |||
@@ -1,5 +1,5 @@ | |||
1 | Microsoft Visual Studio Solution File, Format Version 9.00 | 1 | Microsoft Visual Studio Solution File, Format Version 9.00 |
2 | # Visual Studio 2005 | 2 | # Visual C# Express 2005 |
3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Communications", "Common\OpenGrid.Framework.Communications\OpenGrid.Framework.Communications.csproj", "{683344D5-0000-0000-0000-000000000000}" | 3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Communications", "Common\OpenGrid.Framework.Communications\OpenGrid.Framework.Communications.csproj", "{683344D5-0000-0000-0000-000000000000}" |
4 | EndProject | 4 | EndProject |
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Communications.OGS1", "Common\OpenGrid.Framework.Communications.OGS1\OpenGrid.Framework.Communications.OGS1.csproj", "{17442AF1-0000-0000-0000-000000000000}" | 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Communications.OGS1", "Common\OpenGrid.Framework.Communications.OGS1\OpenGrid.Framework.Communications.OGS1.csproj", "{17442AF1-0000-0000-0000-000000000000}" |
diff --git a/OpenSim/Examples/SimpleApp/Program.cs b/OpenSim/Examples/SimpleApp/Program.cs index b56e77e..378a09c 100644 --- a/OpenSim/Examples/SimpleApp/Program.cs +++ b/OpenSim/Examples/SimpleApp/Program.cs | |||
@@ -53,7 +53,7 @@ namespace SimpleApp | |||
53 | 53 | ||
54 | ClientView.TerrainManager = new TerrainManager(new SecondLife()); | 54 | ClientView.TerrainManager = new TerrainManager(new SecondLife()); |
55 | 55 | ||
56 | CommunicationsManager communicationsManager = new CommunicationsLocal(1000, 1000); | 56 | CommunicationsManager communicationsManager = new CommunicationsLocal(null); |
57 | 57 | ||
58 | RegionInfo regionInfo = new RegionInfo( ); | 58 | RegionInfo regionInfo = new RegionInfo( ); |
59 | BaseHttpServer httpServer = new BaseHttpServer(simPort); | 59 | BaseHttpServer httpServer = new BaseHttpServer(simPort); |
diff --git a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs index 008d47e..743b9b4 100644 --- a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs +++ b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs | |||
@@ -42,10 +42,11 @@ namespace OpenSim.LocalCommunications | |||
42 | { | 42 | { |
43 | public LocalBackEndServices SandBoxServices = new LocalBackEndServices(); | 43 | public LocalBackEndServices SandBoxServices = new LocalBackEndServices(); |
44 | public LocalUserServices UserServices; | 44 | public LocalUserServices UserServices; |
45 | 45 | ||
46 | public CommunicationsLocal(uint defaultHomeX , uint defaultHomeY) | 46 | public CommunicationsLocal(NetworkServersInfo serversInfo) |
47 | : base(serversInfo) | ||
47 | { | 48 | { |
48 | UserServices = new LocalUserServices(this , defaultHomeX, defaultHomeY); | 49 | UserServices = new LocalUserServices(this , serversInfo.DefaultHomeLocX, serversInfo.DefaultHomeLocY); |
49 | UserServices.AddPlugin("OpenGrid.Framework.Data.DB4o.dll"); | 50 | UserServices.AddPlugin("OpenGrid.Framework.Data.DB4o.dll"); |
50 | UserServer = UserServices; | 51 | UserServer = UserServices; |
51 | GridServer = SandBoxServices; | 52 | GridServer = SandBoxServices; |
diff --git a/OpenSim/OpenSim.Region/Caps.cs b/OpenSim/OpenSim.Region/Caps.cs index 9cb921b..88799a0 100644 --- a/OpenSim/OpenSim.Region/Caps.cs +++ b/OpenSim/OpenSim.Region/Caps.cs | |||
@@ -27,6 +27,7 @@ namespace OpenSim.Region | |||
27 | private LLUUID agentID; | 27 | private LLUUID agentID; |
28 | private AssetCache assetCache; | 28 | private AssetCache assetCache; |
29 | private int eventQueueCount = 1; | 29 | private int eventQueueCount = 1; |
30 | private Queue<string> CapsEventQueue = new Queue<string>(); | ||
30 | 31 | ||
31 | public Caps(AssetCache assetCach, BaseHttpServer httpServer, string httpListen, uint httpPort, string capsPath, LLUUID agent) | 32 | public Caps(AssetCache assetCach, BaseHttpServer httpServer, string httpListen, uint httpPort, string capsPath, LLUUID agent) |
32 | { | 33 | { |
@@ -77,7 +78,7 @@ namespace OpenSim.Region | |||
77 | capURLS += "<key>MapLayer</key><string>http://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + capsObjectPath + mapLayerPath + "</string>"; | 78 | capURLS += "<key>MapLayer</key><string>http://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + capsObjectPath + mapLayerPath + "</string>"; |
78 | capURLS += "<key>NewFileAgentInventory</key><string>http://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + capsObjectPath + newInventory + "</string>"; | 79 | capURLS += "<key>NewFileAgentInventory</key><string>http://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + capsObjectPath + newInventory + "</string>"; |
79 | //capURLS += "<key>RequestTextureDownload</key><string>http://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + capsObjectPath + requestTexture + "</string>"; | 80 | //capURLS += "<key>RequestTextureDownload</key><string>http://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + capsObjectPath + requestTexture + "</string>"; |
80 | // capURLS += "<key>EventQueueGet</key><string>http://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + capsObjectPath + eventQueue + "</string>"; | 81 | //capURLS += "<key>EventQueueGet</key><string>http://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + capsObjectPath + eventQueue + "</string>"; |
81 | return capURLS; | 82 | return capURLS; |
82 | } | 83 | } |
83 | 84 | ||
@@ -122,9 +123,26 @@ namespace OpenSim.Region | |||
122 | 123 | ||
123 | public string ProcessEventQueue(string request, string path, string param) | 124 | public string ProcessEventQueue(string request, string path, string param) |
124 | { | 125 | { |
125 | // Console.WriteLine("event queue request " + request); | 126 | // Console.WriteLine("event queue request " + request); |
126 | string res = ""; | 127 | string res = ""; |
127 | res = this.CreateEmptyEventResponse(); | 128 | int timer = 0; |
129 | |||
130 | /*while ((timer < 200) || (this.CapsEventQueue.Count < 1)) | ||
131 | { | ||
132 | timer++; | ||
133 | }*/ | ||
134 | if (this.CapsEventQueue.Count > 0) | ||
135 | { | ||
136 | lock (this.CapsEventQueue) | ||
137 | { | ||
138 | string item = CapsEventQueue.Dequeue(); | ||
139 | res = item; | ||
140 | } | ||
141 | } | ||
142 | else | ||
143 | { | ||
144 | res = this.CreateEmptyEventResponse(); | ||
145 | } | ||
128 | return res; | 146 | return res; |
129 | } | 147 | } |
130 | 148 | ||
@@ -141,6 +159,7 @@ namespace OpenSim.Region | |||
141 | res += "</map></array>"; | 159 | res += "</map></array>"; |
142 | res += "</map></llsd>"; | 160 | res += "</map></llsd>"; |
143 | eventQueueCount++; | 161 | eventQueueCount++; |
162 | this.CapsEventQueue.Enqueue(res); | ||
144 | return res; | 163 | return res; |
145 | } | 164 | } |
146 | 165 | ||
@@ -176,7 +195,7 @@ namespace OpenSim.Region | |||
176 | 195 | ||
177 | public void UploadHandler(LLUUID assetID, LLUUID inventoryItem, byte[] data) | 196 | public void UploadHandler(LLUUID assetID, LLUUID inventoryItem, byte[] data) |
178 | { | 197 | { |
179 | // Console.WriteLine("upload handler called"); | 198 | Console.WriteLine("upload handler called"); |
180 | AssetBase asset; | 199 | AssetBase asset; |
181 | asset = new AssetBase(); | 200 | asset = new AssetBase(); |
182 | asset.FullID = assetID; | 201 | asset.FullID = assetID; |
@@ -185,7 +204,6 @@ namespace OpenSim.Region | |||
185 | asset.Name = "UploadedTexture" + Util.RandomClass.Next(1, 1000).ToString("000"); | 204 | asset.Name = "UploadedTexture" + Util.RandomClass.Next(1, 1000).ToString("000"); |
186 | asset.Data = data; | 205 | asset.Data = data; |
187 | this.assetCache.AddAsset(asset); | 206 | this.assetCache.AddAsset(asset); |
188 | |||
189 | } | 207 | } |
190 | 208 | ||
191 | public class AssetUploader | 209 | public class AssetUploader |
diff --git a/OpenSim/OpenSim.Region/EstateManager.cs b/OpenSim/OpenSim.Region/EstateManager.cs index fbcab33..dcb5564 100644 --- a/OpenSim/OpenSim.Region/EstateManager.cs +++ b/OpenSim/OpenSim.Region/EstateManager.cs | |||
@@ -265,6 +265,7 @@ namespace OpenSim.Region | |||
265 | 265 | ||
266 | public void sendRegionInfoPacket(IClientAPI remote_client) | 266 | public void sendRegionInfoPacket(IClientAPI remote_client) |
267 | { | 267 | { |
268 | Encoding _enc = System.Text.Encoding.ASCII; | ||
268 | 269 | ||
269 | AgentCircuitData circuitData = remote_client.RequestClientInfo(); | 270 | AgentCircuitData circuitData = remote_client.RequestClientInfo(); |
270 | 271 | ||
@@ -281,7 +282,7 @@ namespace OpenSim.Region | |||
281 | regionInfoPacket.RegionInfo.RedirectGridY = m_regInfo.estateSettings.redirectGridY; | 282 | regionInfoPacket.RegionInfo.RedirectGridY = m_regInfo.estateSettings.redirectGridY; |
282 | regionInfoPacket.RegionInfo.RegionFlags = (uint)m_regInfo.estateSettings.regionFlags; | 283 | regionInfoPacket.RegionInfo.RegionFlags = (uint)m_regInfo.estateSettings.regionFlags; |
283 | regionInfoPacket.RegionInfo.SimAccess = (byte)m_regInfo.estateSettings.simAccess; | 284 | regionInfoPacket.RegionInfo.SimAccess = (byte)m_regInfo.estateSettings.simAccess; |
284 | regionInfoPacket.RegionInfo.SimName = Helpers.StringToField(m_regInfo.RegionName); | 285 | regionInfoPacket.RegionInfo.SimName = _enc.GetBytes( m_regInfo.RegionName); |
285 | regionInfoPacket.RegionInfo.SunHour = m_regInfo.estateSettings.sunHour; | 286 | regionInfoPacket.RegionInfo.SunHour = m_regInfo.estateSettings.sunHour; |
286 | regionInfoPacket.RegionInfo.TerrainLowerLimit = m_regInfo.estateSettings.terrainLowerLimit; | 287 | regionInfoPacket.RegionInfo.TerrainLowerLimit = m_regInfo.estateSettings.terrainLowerLimit; |
287 | regionInfoPacket.RegionInfo.TerrainRaiseLimit = m_regInfo.estateSettings.terrainRaiseLimit; | 288 | regionInfoPacket.RegionInfo.TerrainRaiseLimit = m_regInfo.estateSettings.terrainRaiseLimit; |
diff --git a/OpenSim/OpenSim.Region/Scenes/Primitive.cs b/OpenSim/OpenSim.Region/Scenes/Primitive.cs index 62f401c..b0bfd1e 100644 --- a/OpenSim/OpenSim.Region/Scenes/Primitive.cs +++ b/OpenSim/OpenSim.Region/Scenes/Primitive.cs | |||
@@ -47,6 +47,7 @@ namespace OpenSim.Region.Scenes | |||
47 | private const uint FULL_MASK_PERMISSIONS = 2147483647; | 47 | private const uint FULL_MASK_PERMISSIONS = 2147483647; |
48 | private bool physicsEnabled = false; | 48 | private bool physicsEnabled = false; |
49 | private byte updateFlag = 0; | 49 | private byte updateFlag = 0; |
50 | private uint flags = 32 + 65536 + 131072 + 256 + 4 + 8 + 2048 + 524288 + 268435456 + 128; | ||
50 | 51 | ||
51 | private Dictionary<LLUUID, InventoryItem> inventoryItems; | 52 | private Dictionary<LLUUID, InventoryItem> inventoryItems; |
52 | 53 | ||
@@ -411,7 +412,7 @@ namespace OpenSim.Region.Scenes | |||
411 | lPos = this.Pos; | 412 | lPos = this.Pos; |
412 | } | 413 | } |
413 | 414 | ||
414 | remoteClient.SendPrimitiveToClient(this.m_regionHandle, 64096, this.LocalId, this.primData, lPos, new LLUUID("00000000-0000-0000-9999-000000000005")); | 415 | remoteClient.SendPrimitiveToClient(this.m_regionHandle, 64096, this.LocalId, this.primData, lPos, new LLUUID("00000000-0000-0000-9999-000000000005"), this.flags); |
415 | } | 416 | } |
416 | 417 | ||
417 | /// <summary> | 418 | /// <summary> |
@@ -434,7 +435,7 @@ namespace OpenSim.Region.Scenes | |||
434 | { | 435 | { |
435 | LLVector3 lPos; | 436 | LLVector3 lPos; |
436 | Axiom.MathLib.Quaternion lRot; | 437 | Axiom.MathLib.Quaternion lRot; |
437 | if (this._physActor != null && this.physicsEnabled) | 438 | if (this._physActor != null && this.physicsEnabled) //is this needed ? doesn't the property fields do this for us? |
438 | { | 439 | { |
439 | PhysicsVector pPos = this._physActor.Position; | 440 | PhysicsVector pPos = this._physActor.Position; |
440 | lPos = new LLVector3(pPos.X, pPos.Y, pPos.Z); | 441 | lPos = new LLVector3(pPos.X, pPos.Y, pPos.Z); |
@@ -445,6 +446,8 @@ namespace OpenSim.Region.Scenes | |||
445 | lPos = this.Pos; | 446 | lPos = this.Pos; |
446 | lRot = this.rotation; | 447 | lRot = this.rotation; |
447 | } | 448 | } |
449 | LLQuaternion mRot = new LLQuaternion(lRot.x, lRot.y, lRot.z, lRot.w); | ||
450 | RemoteClient.SendPrimTerseUpdate(this.m_regionHandle, 64096, this.LocalId, lPos, mRot); | ||
448 | } | 451 | } |
449 | 452 | ||
450 | /// <summary> | 453 | /// <summary> |
@@ -534,6 +537,44 @@ namespace OpenSim.Region.Scenes | |||
534 | { | 537 | { |
535 | 538 | ||
536 | } | 539 | } |
540 | |||
541 | public void GrapMovement(LLVector3 offset, LLVector3 pos, IClientAPI remoteClient) | ||
542 | { | ||
543 | Console.WriteLine("moving prim to new location " + pos.X + " , " + pos.Y + " , " + pos.Z); | ||
544 | this.Pos = pos; | ||
545 | this.SendTerseUpdateToALLClients(); | ||
546 | } | ||
547 | |||
548 | public void GetProperites(IClientAPI client) | ||
549 | { | ||
550 | //needs changing | ||
551 | ObjectPropertiesPacket proper = new ObjectPropertiesPacket(); | ||
552 | proper.ObjectData = new ObjectPropertiesPacket.ObjectDataBlock[1]; | ||
553 | proper.ObjectData[0] = new ObjectPropertiesPacket.ObjectDataBlock(); | ||
554 | proper.ObjectData[0].ItemID = LLUUID.Zero; | ||
555 | proper.ObjectData[0].CreationDate = (ulong)primData.CreationDate; | ||
556 | proper.ObjectData[0].CreatorID = primData.OwnerID; | ||
557 | proper.ObjectData[0].FolderID = LLUUID.Zero; | ||
558 | proper.ObjectData[0].FromTaskID = LLUUID.Zero; | ||
559 | proper.ObjectData[0].GroupID = LLUUID.Zero; | ||
560 | proper.ObjectData[0].InventorySerial = 0; | ||
561 | proper.ObjectData[0].LastOwnerID = LLUUID.Zero; | ||
562 | proper.ObjectData[0].ObjectID = this.uuid; | ||
563 | proper.ObjectData[0].OwnerID = primData.OwnerID; | ||
564 | proper.ObjectData[0].TouchName = new byte[0]; | ||
565 | proper.ObjectData[0].TextureID = new byte[0]; | ||
566 | proper.ObjectData[0].SitName = new byte[0]; | ||
567 | proper.ObjectData[0].Name = new byte[0]; | ||
568 | proper.ObjectData[0].Description = new byte[0]; | ||
569 | proper.ObjectData[0].OwnerMask = primData.OwnerMask; | ||
570 | proper.ObjectData[0].NextOwnerMask = primData.NextOwnerMask; | ||
571 | proper.ObjectData[0].GroupMask = primData.GroupMask; | ||
572 | proper.ObjectData[0].EveryoneMask = primData.EveryoneMask; | ||
573 | proper.ObjectData[0].BaseMask = primData.BaseMask; | ||
574 | |||
575 | client.OutPacket(proper); | ||
576 | |||
577 | } | ||
537 | 578 | ||
538 | #endregion | 579 | #endregion |
539 | 580 | ||
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs b/OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs index 01e38d5..d1a2717 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs | |||
@@ -214,7 +214,22 @@ namespace OpenSim.Region.Scenes | |||
214 | /// <param name="remoteClient"></param> | 214 | /// <param name="remoteClient"></param> |
215 | public void SelectPrim(uint primLocalID, IClientAPI remoteClient) | 215 | public void SelectPrim(uint primLocalID, IClientAPI remoteClient) |
216 | { | 216 | { |
217 | 217 | foreach (Entity ent in Entities.Values) | |
218 | { | ||
219 | if (ent.LocalId == primLocalID) | ||
220 | { | ||
221 | ((OpenSim.Region.Scenes.Primitive)ent).GetProperites(remoteClient); | ||
222 | break; | ||
223 | } | ||
224 | } | ||
225 | } | ||
226 | |||
227 | public void MoveObject(LLUUID objectID, LLVector3 offset, LLVector3 pos, IClientAPI remoteClient) | ||
228 | { | ||
229 | if (this.Entities.ContainsKey(objectID)) | ||
230 | { | ||
231 | ((Primitive)this.Entities[objectID]).GrapMovement(offset, pos, remoteClient); | ||
232 | } | ||
218 | } | 233 | } |
219 | 234 | ||
220 | /// <summary> | 235 | /// <summary> |
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index 62edc4b..426dd50 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -57,19 +57,18 @@ namespace OpenSim.Region.Scenes | |||
57 | protected Dictionary<libsecondlife.LLUUID, Primitive> Prims; | 57 | protected Dictionary<libsecondlife.LLUUID, Primitive> Prims; |
58 | private PhysicsScene phyScene; | 58 | private PhysicsScene phyScene; |
59 | private float timeStep = 0.1f; | 59 | private float timeStep = 0.1f; |
60 | public ILocalStorage localStorage; | ||
61 | private Random Rand = new Random(); | 60 | private Random Rand = new Random(); |
62 | private uint _primCount = 702000; | 61 | private uint _primCount = 702000; |
63 | private int storageCount; | 62 | private int storageCount; |
64 | private Dictionary<LLUUID, ScriptHandler> m_scriptHandlers; | 63 | private Dictionary<LLUUID, ScriptHandler> m_scriptHandlers; |
65 | private Dictionary<string, ScriptFactory> m_scripts; | 64 | private Dictionary<string, ScriptFactory> m_scripts; |
66 | private Mutex updateLock; | 65 | private Mutex updateLock; |
67 | public string m_datastore; | 66 | |
68 | protected AuthenticateSessionsBase authenticateHandler; | 67 | protected AuthenticateSessionsBase authenticateHandler; |
69 | protected RegionCommsListener regionCommsHost; | 68 | protected RegionCommsListener regionCommsHost; |
70 | protected CommunicationsManager commsManager; | 69 | protected CommunicationsManager commsManager; |
71 | 70 | ||
72 | protected List<Caps> capsHandlers = new List<Caps>(); | 71 | protected Dictionary<LLUUID, Caps> capsHandlers = new Dictionary<LLUUID, Caps>(); |
73 | protected BaseHttpServer httpListener; | 72 | protected BaseHttpServer httpListener; |
74 | 73 | ||
75 | public ParcelManager parcelManager; | 74 | public ParcelManager parcelManager; |
@@ -127,7 +126,6 @@ namespace OpenSim.Region.Scenes | |||
127 | Prims = new Dictionary<LLUUID, Primitive>(); | 126 | Prims = new Dictionary<LLUUID, Primitive>(); |
128 | 127 | ||
129 | OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs - creating LandMap"); | 128 | OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs - creating LandMap"); |
130 | TerrainManager = new TerrainManager(new SecondLife()); | ||
131 | Terrain = new TerrainEngine(); | 129 | Terrain = new TerrainEngine(); |
132 | 130 | ||
133 | ScenePresence.LoadAnims(); | 131 | ScenePresence.LoadAnims(); |
@@ -271,53 +269,6 @@ namespace OpenSim.Region.Scenes | |||
271 | } | 269 | } |
272 | #endregion | 270 | #endregion |
273 | 271 | ||
274 | #region Setup Methods | ||
275 | /// <summary> | ||
276 | /// Loads a new storage subsystem from a named library | ||
277 | /// </summary> | ||
278 | /// <param name="dllName">Storage Library</param> | ||
279 | /// <returns>Successful or not</returns> | ||
280 | public bool LoadStorageDLL(string dllName) | ||
281 | { | ||
282 | try | ||
283 | { | ||
284 | Assembly pluginAssembly = Assembly.LoadFrom(dllName); | ||
285 | ILocalStorage store = null; | ||
286 | |||
287 | foreach (Type pluginType in pluginAssembly.GetTypes()) | ||
288 | { | ||
289 | if (pluginType.IsPublic) | ||
290 | { | ||
291 | if (!pluginType.IsAbstract) | ||
292 | { | ||
293 | Type typeInterface = pluginType.GetInterface("ILocalStorage", true); | ||
294 | |||
295 | if (typeInterface != null) | ||
296 | { | ||
297 | ILocalStorage plug = (ILocalStorage)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); | ||
298 | store = plug; | ||
299 | |||
300 | store.Initialise(this.m_datastore); | ||
301 | break; | ||
302 | } | ||
303 | |||
304 | typeInterface = null; | ||
305 | } | ||
306 | } | ||
307 | } | ||
308 | pluginAssembly = null; | ||
309 | this.localStorage = store; | ||
310 | return (store == null); | ||
311 | } | ||
312 | catch (Exception e) | ||
313 | { | ||
314 | OpenSim.Framework.Console.MainLog.Instance.Warn("World.cs: LoadStorageDLL() - Failed with exception " + e.ToString()); | ||
315 | return false; | ||
316 | } | ||
317 | } | ||
318 | |||
319 | #endregion | ||
320 | |||
321 | #region Regenerate Terrain | 272 | #region Regenerate Terrain |
322 | 273 | ||
323 | /// <summary> | 274 | /// <summary> |
@@ -558,6 +509,8 @@ namespace OpenSim.Region.Scenes | |||
558 | remoteClient.OnUpdatePrimPosition += this.UpdatePrimPosition; | 509 | remoteClient.OnUpdatePrimPosition += this.UpdatePrimPosition; |
559 | remoteClient.OnRequestMapBlocks += this.RequestMapBlocks; | 510 | remoteClient.OnRequestMapBlocks += this.RequestMapBlocks; |
560 | remoteClient.OnTeleportLocationRequest += this.RequestTeleportLocation; | 511 | remoteClient.OnTeleportLocationRequest += this.RequestTeleportLocation; |
512 | //remoteClient.OnObjectSelect += this.SelectPrim; | ||
513 | remoteClient.OnGrapUpdate += this.MoveObject; | ||
561 | 514 | ||
562 | /* remoteClient.OnParcelPropertiesRequest += new ParcelPropertiesRequest(parcelManager.handleParcelPropertiesRequest); | 515 | /* remoteClient.OnParcelPropertiesRequest += new ParcelPropertiesRequest(parcelManager.handleParcelPropertiesRequest); |
563 | remoteClient.OnParcelDivideRequest += new ParcelDivideRequest(parcelManager.handleParcelDivideRequest); | 516 | remoteClient.OnParcelDivideRequest += new ParcelDivideRequest(parcelManager.handleParcelDivideRequest); |
@@ -680,22 +633,6 @@ namespace OpenSim.Region.Scenes | |||
680 | } | 633 | } |
681 | #endregion | 634 | #endregion |
682 | 635 | ||
683 | #region ShutDown | ||
684 | /// <summary> | ||
685 | /// Tidy before shutdown | ||
686 | /// </summary> | ||
687 | public override void Close() | ||
688 | { | ||
689 | try | ||
690 | { | ||
691 | this.localStorage.ShutDown(); | ||
692 | } | ||
693 | catch (Exception e) | ||
694 | { | ||
695 | OpenSim.Framework.Console.MainLog.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "World.cs: Close() - Failed with exception " + e.ToString()); | ||
696 | } | ||
697 | } | ||
698 | #endregion | ||
699 | 636 | ||
700 | #region RegionCommsHost | 637 | #region RegionCommsHost |
701 | 638 | ||
@@ -729,7 +666,7 @@ namespace OpenSim.Region.Scenes | |||
729 | //Console.WriteLine("new user, so creating caps handler for it"); | 666 | //Console.WriteLine("new user, so creating caps handler for it"); |
730 | Caps cap = new Caps(this.assetCache, httpListener, this.m_regInfo.CommsIPListenAddr, 9000, agent.CapsPath, agent.AgentID); | 667 | Caps cap = new Caps(this.assetCache, httpListener, this.m_regInfo.CommsIPListenAddr, 9000, agent.CapsPath, agent.AgentID); |
731 | cap.RegisterHandlers(); | 668 | cap.RegisterHandlers(); |
732 | this.capsHandlers.Add(cap); | 669 | this.capsHandlers.Add(agent.AgentID, cap); |
733 | } | 670 | } |
734 | this.authenticateHandler.AddNewCircuit(agent.circuitcode, agent); | 671 | this.authenticateHandler.AddNewCircuit(agent.circuitcode, agent); |
735 | } | 672 | } |
@@ -767,6 +704,7 @@ namespace OpenSim.Region.Scenes | |||
767 | agent.child = true; | 704 | agent.child = true; |
768 | this.commsManager.InterRegion.InformRegionOfChildAgent(neighbours[i].RegionHandle, agent); | 705 | this.commsManager.InterRegion.InformRegionOfChildAgent(neighbours[i].RegionHandle, agent); |
769 | remoteClient.InformClientOfNeighbour(neighbours[i].RegionHandle, System.Net.IPAddress.Parse(neighbours[i].CommsIPListenAddr), (ushort)neighbours[i].CommsIPListenPort); | 706 | remoteClient.InformClientOfNeighbour(neighbours[i].RegionHandle, System.Net.IPAddress.Parse(neighbours[i].CommsIPListenAddr), (ushort)neighbours[i].CommsIPListenPort); |
707 | //this.capsHandlers[remoteClient.AgentId].CreateEstablishAgentComms("", System.Net.IPAddress.Parse(neighbours[i].CommsIPListenAddr) + ":" + neighbours[i].CommsIPListenPort); | ||
770 | } | 708 | } |
771 | } | 709 | } |
772 | } | 710 | } |
@@ -845,16 +783,5 @@ namespace OpenSim.Region.Scenes | |||
845 | } | 783 | } |
846 | 784 | ||
847 | #endregion | 785 | #endregion |
848 | |||
849 | /// <summary> | ||
850 | /// | ||
851 | /// </summary> | ||
852 | /// <param name="px"></param> | ||
853 | /// <param name="py"></param> | ||
854 | /// <param name="RemoteClient"></param> | ||
855 | public override void SendLayerData(int px, int py, IClientAPI RemoteClient) | ||
856 | { | ||
857 | RemoteClient.SendLayerData(px, py, Terrain.getHeights1D()); | ||
858 | } | ||
859 | } | 786 | } |
860 | } | 787 | } |
diff --git a/OpenSim/OpenSim.Region/Scenes/SceneBase.cs b/OpenSim/OpenSim.Region/Scenes/SceneBase.cs index e650127..4dbd374 100644 --- a/OpenSim/OpenSim.Region/Scenes/SceneBase.cs +++ b/OpenSim/OpenSim.Region/Scenes/SceneBase.cs | |||
@@ -51,8 +51,11 @@ namespace OpenSim.Region.Scenes | |||
51 | protected string m_regionName; | 51 | protected string m_regionName; |
52 | protected RegionInfo m_regInfo; | 52 | protected RegionInfo m_regInfo; |
53 | 53 | ||
54 | public TerrainEngine Terrain; //TODO: Replace TerrainManager with this. | 54 | public TerrainEngine Terrain; |
55 | protected libsecondlife.TerrainManager TerrainManager; // To be referenced via TerrainEngine | 55 | |
56 | public string m_datastore; | ||
57 | public ILocalStorage localStorage; | ||
58 | |||
56 | protected object m_syncRoot = new object(); | 59 | protected object m_syncRoot = new object(); |
57 | private uint m_nextLocalId = 8880000; | 60 | private uint m_nextLocalId = 8880000; |
58 | protected AssetCache assetCache; | 61 | protected AssetCache assetCache; |
@@ -71,6 +74,51 @@ namespace OpenSim.Region.Scenes | |||
71 | /// Loads the World heightmap | 74 | /// Loads the World heightmap |
72 | /// </summary> | 75 | /// </summary> |
73 | public abstract void LoadWorldMap(); | 76 | public abstract void LoadWorldMap(); |
77 | |||
78 | /// <summary> | ||
79 | /// Loads a new storage subsystem from a named library | ||
80 | /// </summary> | ||
81 | /// <param name="dllName">Storage Library</param> | ||
82 | /// <returns>Successful or not</returns> | ||
83 | public bool LoadStorageDLL(string dllName) | ||
84 | { | ||
85 | try | ||
86 | { | ||
87 | Assembly pluginAssembly = Assembly.LoadFrom(dllName); | ||
88 | ILocalStorage store = null; | ||
89 | |||
90 | foreach (Type pluginType in pluginAssembly.GetTypes()) | ||
91 | { | ||
92 | if (pluginType.IsPublic) | ||
93 | { | ||
94 | if (!pluginType.IsAbstract) | ||
95 | { | ||
96 | Type typeInterface = pluginType.GetInterface("ILocalStorage", true); | ||
97 | |||
98 | if (typeInterface != null) | ||
99 | { | ||
100 | ILocalStorage plug = (ILocalStorage)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); | ||
101 | store = plug; | ||
102 | |||
103 | store.Initialise(this.m_datastore); | ||
104 | break; | ||
105 | } | ||
106 | |||
107 | typeInterface = null; | ||
108 | } | ||
109 | } | ||
110 | } | ||
111 | pluginAssembly = null; | ||
112 | this.localStorage = store; | ||
113 | return (store == null); | ||
114 | } | ||
115 | catch (Exception e) | ||
116 | { | ||
117 | OpenSim.Framework.Console.MainLog.Instance.Warn("World.cs: LoadStorageDLL() - Failed with exception " + e.ToString()); | ||
118 | return false; | ||
119 | } | ||
120 | } | ||
121 | |||
74 | 122 | ||
75 | /// <summary> | 123 | /// <summary> |
76 | /// Send the region heightmap to the client | 124 | /// Send the region heightmap to the client |
@@ -87,7 +135,10 @@ namespace OpenSim.Region.Scenes | |||
87 | /// <param name="px">Patch coordinate (x) 0..16</param> | 135 | /// <param name="px">Patch coordinate (x) 0..16</param> |
88 | /// <param name="py">Patch coordinate (y) 0..16</param> | 136 | /// <param name="py">Patch coordinate (y) 0..16</param> |
89 | /// <param name="RemoteClient">The client to send to</param> | 137 | /// <param name="RemoteClient">The client to send to</param> |
90 | public abstract void SendLayerData(int px, int py, IClientAPI RemoteClient); | 138 | public virtual void SendLayerData(int px, int py, IClientAPI RemoteClient) |
139 | { | ||
140 | RemoteClient.SendLayerData(px, py, Terrain.getHeights1D()); | ||
141 | } | ||
91 | 142 | ||
92 | #endregion | 143 | #endregion |
93 | 144 | ||
@@ -114,7 +165,7 @@ namespace OpenSim.Region.Scenes | |||
114 | /// <returns></returns> | 165 | /// <returns></returns> |
115 | public virtual RegionInfo RegionInfo | 166 | public virtual RegionInfo RegionInfo |
116 | { | 167 | { |
117 | get { return null; } | 168 | get { return this.m_regInfo; } |
118 | } | 169 | } |
119 | 170 | ||
120 | public object SyncRoot | 171 | public object SyncRoot |
@@ -131,7 +182,17 @@ namespace OpenSim.Region.Scenes | |||
131 | /// <summary> | 182 | /// <summary> |
132 | /// Tidy before shutdown | 183 | /// Tidy before shutdown |
133 | /// </summary> | 184 | /// </summary> |
134 | public abstract void Close(); | 185 | public virtual void Close() |
186 | { | ||
187 | try | ||
188 | { | ||
189 | this.localStorage.ShutDown(); | ||
190 | } | ||
191 | catch (Exception e) | ||
192 | { | ||
193 | OpenSim.Framework.Console.MainLog.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH, "World.cs: Close() - Failed with exception " + e.ToString()); | ||
194 | } | ||
195 | } | ||
135 | 196 | ||
136 | #endregion | 197 | #endregion |
137 | 198 | ||
diff --git a/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs index e2e30b9..ffec3e5 100644 --- a/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs +++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs | |||
@@ -223,26 +223,23 @@ namespace OpenSim.Region.Scenes | |||
223 | Axiom.MathLib.Quaternion q = new Axiom.MathLib.Quaternion(bodyRotation.W, bodyRotation.X, bodyRotation.Y, bodyRotation.Z); | 223 | Axiom.MathLib.Quaternion q = new Axiom.MathLib.Quaternion(bodyRotation.W, bodyRotation.X, bodyRotation.Y, bodyRotation.Z); |
224 | if (((movementflag & 1) == 0) || (q != this.bodyRot)) | 224 | if (((movementflag & 1) == 0) || (q != this.bodyRot)) |
225 | { | 225 | { |
226 | //we should add a new force to the list | ||
227 | // but for now we will deal with velocities | ||
228 | NewForce newVelocity = new NewForce(); | ||
229 | Axiom.MathLib.Vector3 v3 = new Axiom.MathLib.Vector3(1, 0, 0); | 226 | Axiom.MathLib.Vector3 v3 = new Axiom.MathLib.Vector3(1, 0, 0); |
230 | Axiom.MathLib.Vector3 direc = q * v3; | 227 | this.AddNewMovement(v3, q); |
231 | direc.Normalize(); | ||
232 | |||
233 | //work out velocity for sim physics system | ||
234 | direc = direc * ((0.03f) * 128f); | ||
235 | if (this._physActor.Flying) | ||
236 | direc *= 4; | ||
237 | |||
238 | newVelocity.X = direc.x; | ||
239 | newVelocity.Y = direc.y; | ||
240 | newVelocity.Z = direc.z; | ||
241 | this.forcesList.Add(newVelocity); | ||
242 | movementflag = 1; | 228 | movementflag = 1; |
243 | this.bodyRot = q; | 229 | this.bodyRot = q; |
244 | } | 230 | } |
245 | } | 231 | } |
232 | else if ((flags & (uint)MainAvatar.ControlFlags.AGENT_CONTROL_AT_NEG) != 0) | ||
233 | { | ||
234 | Axiom.MathLib.Quaternion q = new Axiom.MathLib.Quaternion(bodyRotation.W, bodyRotation.X, bodyRotation.Y, bodyRotation.Z); | ||
235 | if (((movementflag & 2) == 0) || (q != this.bodyRot)) | ||
236 | { | ||
237 | Axiom.MathLib.Vector3 v3 = new Axiom.MathLib.Vector3(-1, 0, 0); | ||
238 | this.AddNewMovement(v3, q); | ||
239 | movementflag = 2; | ||
240 | this.bodyRot = q; | ||
241 | } | ||
242 | } | ||
246 | else | 243 | else |
247 | { | 244 | { |
248 | if ((movementflag) != 0) | 245 | if ((movementflag) != 0) |
@@ -257,6 +254,23 @@ namespace OpenSim.Region.Scenes | |||
257 | } | 254 | } |
258 | 255 | ||
259 | } | 256 | } |
257 | |||
258 | protected void AddNewMovement(Axiom.MathLib.Vector3 vec, Axiom.MathLib.Quaternion rotation) | ||
259 | { | ||
260 | NewForce newVelocity = new NewForce(); | ||
261 | Axiom.MathLib.Vector3 direc = rotation * vec; | ||
262 | direc.Normalize(); | ||
263 | |||
264 | direc = direc * ((0.03f) * 128f); | ||
265 | if (this._physActor.Flying) | ||
266 | direc *= 4; | ||
267 | |||
268 | newVelocity.X = direc.x; | ||
269 | newVelocity.Y = direc.y; | ||
270 | newVelocity.Z = direc.z; | ||
271 | this.forcesList.Add(newVelocity); | ||
272 | } | ||
273 | |||
260 | #endregion | 274 | #endregion |
261 | 275 | ||
262 | #region Overridden Methods | 276 | #region Overridden Methods |
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs index ca473e3..902f3c7 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs | |||
@@ -51,14 +51,17 @@ namespace OpenSim | |||
51 | public event StartAnim OnStartAnim; | 51 | public event StartAnim OnStartAnim; |
52 | public event GenericCall OnRequestAvatarsData; | 52 | public event GenericCall OnRequestAvatarsData; |
53 | public event LinkObjects OnLinkObjects; | 53 | public event LinkObjects OnLinkObjects; |
54 | public event UpdateVector OnGrapObject; | ||
55 | public event ObjectSelect OnDeGrapObject; | ||
56 | public event MoveObject OnGrapUpdate; | ||
54 | public event GenericCall4 OnAddPrim; | 57 | public event GenericCall4 OnAddPrim; |
55 | public event UpdateShape OnUpdatePrimShape; | 58 | public event UpdateShape OnUpdatePrimShape; |
56 | public event ObjectSelect OnObjectSelect; | 59 | public event ObjectSelect OnObjectSelect; |
57 | public event UpdatePrimFlags OnUpdatePrimFlags; | 60 | public event UpdatePrimFlags OnUpdatePrimFlags; |
58 | public event UpdatePrimTexture OnUpdatePrimTexture; | 61 | public event UpdatePrimTexture OnUpdatePrimTexture; |
59 | public event UpdatePrimVector OnUpdatePrimPosition; | 62 | public event UpdateVector OnUpdatePrimPosition; |
60 | public event UpdatePrimRotation OnUpdatePrimRotation; | 63 | public event UpdatePrimRotation OnUpdatePrimRotation; |
61 | public event UpdatePrimVector OnUpdatePrimScale; | 64 | public event UpdateVector OnUpdatePrimScale; |
62 | public event StatusChange OnChildAgentStatus; | 65 | public event StatusChange OnChildAgentStatus; |
63 | public event GenericCall2 OnStopMovement; | 66 | public event GenericCall2 OnStopMovement; |
64 | public event NewAvatar OnNewAvatar; | 67 | public event NewAvatar OnNewAvatar; |
@@ -426,6 +429,17 @@ namespace OpenSim | |||
426 | OutPacket(tpStart); | 429 | OutPacket(tpStart); |
427 | } | 430 | } |
428 | 431 | ||
432 | public void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance) | ||
433 | { | ||
434 | MoneyBalanceReplyPacket money = new MoneyBalanceReplyPacket(); | ||
435 | money.MoneyData.AgentID = this.AgentID; | ||
436 | money.MoneyData.TransactionID = transaction; | ||
437 | money.MoneyData.TransactionSuccess = success; | ||
438 | money.MoneyData.Description = description; | ||
439 | money.MoneyData.MoneyBalance = balance; | ||
440 | OutPacket(money); | ||
441 | } | ||
442 | |||
429 | #region Appearance/ Wearables Methods | 443 | #region Appearance/ Wearables Methods |
430 | 444 | ||
431 | /// <summary> | 445 | /// <summary> |
@@ -569,13 +583,13 @@ namespace OpenSim | |||
569 | /// <param name="pos"></param> | 583 | /// <param name="pos"></param> |
570 | /// <param name="rotation"></param> | 584 | /// <param name="rotation"></param> |
571 | /// <param name="textureID"></param> | 585 | /// <param name="textureID"></param> |
572 | public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLQuaternion rotation, LLUUID textureID) | 586 | public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLQuaternion rotation, LLUUID textureID, uint flags) |
573 | { | 587 | { |
574 | ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); | 588 | ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); |
575 | outPacket.RegionData.RegionHandle = regionHandle; | 589 | outPacket.RegionData.RegionHandle = regionHandle; |
576 | outPacket.RegionData.TimeDilation = timeDilation; | 590 | outPacket.RegionData.TimeDilation = timeDilation; |
577 | outPacket.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1]; | 591 | outPacket.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1]; |
578 | outPacket.ObjectData[0] = this.CreatePrimUpdateBlock(primData, textureID); | 592 | outPacket.ObjectData[0] = this.CreatePrimUpdateBlock(primData, textureID, flags); |
579 | outPacket.ObjectData[0].ID = localID; | 593 | outPacket.ObjectData[0].ID = localID; |
580 | outPacket.ObjectData[0].FullID = primData.FullID; | 594 | outPacket.ObjectData[0].FullID = primData.FullID; |
581 | byte[] pb = pos.GetBytes(); | 595 | byte[] pb = pos.GetBytes(); |
@@ -592,13 +606,13 @@ namespace OpenSim | |||
592 | /// </summary> | 606 | /// </summary> |
593 | /// <param name="primData"></param> | 607 | /// <param name="primData"></param> |
594 | /// <param name="pos"></param> | 608 | /// <param name="pos"></param> |
595 | public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLUUID textureID) | 609 | public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimData primData, LLVector3 pos, LLUUID textureID , uint flags) |
596 | { | 610 | { |
597 | ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); | 611 | ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); |
598 | outPacket.RegionData.RegionHandle = regionHandle; | 612 | outPacket.RegionData.RegionHandle = regionHandle; |
599 | outPacket.RegionData.TimeDilation = timeDilation; | 613 | outPacket.RegionData.TimeDilation = timeDilation; |
600 | outPacket.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1]; | 614 | outPacket.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1]; |
601 | outPacket.ObjectData[0] = this.CreatePrimUpdateBlock(primData, textureID); | 615 | outPacket.ObjectData[0] = this.CreatePrimUpdateBlock(primData, textureID, flags); |
602 | outPacket.ObjectData[0].ID = localID; | 616 | outPacket.ObjectData[0].ID = localID; |
603 | outPacket.ObjectData[0].FullID = primData.FullID; | 617 | outPacket.ObjectData[0].FullID = primData.FullID; |
604 | byte[] pb = pos.GetBytes(); | 618 | byte[] pb = pos.GetBytes(); |
@@ -786,11 +800,11 @@ namespace OpenSim | |||
786 | /// </summary> | 800 | /// </summary> |
787 | /// <param name="primData"></param> | 801 | /// <param name="primData"></param> |
788 | /// <returns></returns> | 802 | /// <returns></returns> |
789 | protected ObjectUpdatePacket.ObjectDataBlock CreatePrimUpdateBlock(PrimData primData, LLUUID textureID) | 803 | protected ObjectUpdatePacket.ObjectDataBlock CreatePrimUpdateBlock(PrimData primData, LLUUID textureID, uint flags) |
790 | { | 804 | { |
791 | ObjectUpdatePacket.ObjectDataBlock objupdate = new ObjectUpdatePacket.ObjectDataBlock(); | 805 | ObjectUpdatePacket.ObjectDataBlock objupdate = new ObjectUpdatePacket.ObjectDataBlock(); |
792 | this.SetDefaultPrimPacketValues(objupdate); | 806 | this.SetDefaultPrimPacketValues(objupdate); |
793 | objupdate.UpdateFlags = 32 + 65536 + 131072 + 256 + 4 + 8 + 2048 + 524288 + 268435456; | 807 | objupdate.UpdateFlags = flags; |
794 | this.SetPrimPacketShapeData(objupdate, primData, textureID); | 808 | this.SetPrimPacketShapeData(objupdate, primData, textureID); |
795 | 809 | ||
796 | return objupdate; | 810 | return objupdate; |
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs index 65066b8..191ef21 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs | |||
@@ -254,6 +254,27 @@ namespace OpenSim | |||
254 | } | 254 | } |
255 | } | 255 | } |
256 | break; | 256 | break; |
257 | case PacketType.ObjectGrab: | ||
258 | ObjectGrabPacket grap = (ObjectGrabPacket)Pack; | ||
259 | if (OnGrapObject != null) | ||
260 | { | ||
261 | OnGrapObject(grap.ObjectData.LocalID, grap.ObjectData.GrabOffset, this); | ||
262 | } | ||
263 | break; | ||
264 | case PacketType.ObjectGrabUpdate: | ||
265 | ObjectGrabUpdatePacket grapUpdate = (ObjectGrabUpdatePacket)Pack; | ||
266 | if (OnGrapUpdate != null) | ||
267 | { | ||
268 | OnGrapUpdate(grapUpdate.ObjectData.ObjectID, grapUpdate.ObjectData.GrabOffsetInitial, grapUpdate.ObjectData.GrabPosition, this); | ||
269 | } | ||
270 | break; | ||
271 | case PacketType.ObjectDeGrab: | ||
272 | ObjectDeGrabPacket deGrap = (ObjectDeGrabPacket)Pack; | ||
273 | if (OnDeGrapObject != null) | ||
274 | { | ||
275 | OnDeGrapObject(deGrap.ObjectData.LocalID, this); | ||
276 | } | ||
277 | break; | ||
257 | #endregion | 278 | #endregion |
258 | 279 | ||
259 | #region Inventory/Asset/Other related packets | 280 | #region Inventory/Asset/Other related packets |
@@ -468,6 +489,10 @@ namespace OpenSim | |||
468 | break; | 489 | break; |
469 | #endregion | 490 | #endregion |
470 | 491 | ||
492 | case PacketType.MoneyBalanceRequest: | ||
493 | this.SendMoneyBalance(LLUUID.Zero, true, new byte[0], 1000); | ||
494 | break; | ||
495 | |||
471 | #region Parcel related packets | 496 | #region Parcel related packets |
472 | case PacketType.ParcelPropertiesRequest: | 497 | case PacketType.ParcelPropertiesRequest: |
473 | ParcelPropertiesRequestPacket propertiesRequest = (ParcelPropertiesRequestPacket)Pack; | 498 | ParcelPropertiesRequestPacket propertiesRequest = (ParcelPropertiesRequestPacket)Pack; |
diff --git a/OpenSim/OpenSim/OpenSim.csproj b/OpenSim/OpenSim/OpenSim.csproj index 91eb474..222e2f7 100644 --- a/OpenSim/OpenSim/OpenSim.csproj +++ b/OpenSim/OpenSim/OpenSim.csproj | |||
@@ -1,4 +1,4 @@ | |||
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> |
@@ -6,8 +6,7 @@ | |||
6 | <ProjectGuid>{438A9556-0000-0000-0000-000000000000}</ProjectGuid> | 6 | <ProjectGuid>{438A9556-0000-0000-0000-000000000000}</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</AssemblyName> |
@@ -16,11 +15,9 @@ | |||
16 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | 15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> |
17 | <DelaySign>false</DelaySign> | 16 | <DelaySign>false</DelaySign> |
18 | <OutputType>Exe</OutputType> | 17 | <OutputType>Exe</OutputType> |
19 | <AppDesignerFolder> | 18 | <AppDesignerFolder></AppDesignerFolder> |
20 | </AppDesignerFolder> | ||
21 | <RootNamespace>OpenSim</RootNamespace> | 19 | <RootNamespace>OpenSim</RootNamespace> |
22 | <StartupObject> | 20 | <StartupObject></StartupObject> |
23 | </StartupObject> | ||
24 | <FileUpgradeFlags> | 21 | <FileUpgradeFlags> |
25 | </FileUpgradeFlags> | 22 | </FileUpgradeFlags> |
26 | </PropertyGroup> | 23 | </PropertyGroup> |
@@ -31,8 +28,7 @@ | |||
31 | <ConfigurationOverrideFile> | 28 | <ConfigurationOverrideFile> |
32 | </ConfigurationOverrideFile> | 29 | </ConfigurationOverrideFile> |
33 | <DefineConstants>TRACE;DEBUG</DefineConstants> | 30 | <DefineConstants>TRACE;DEBUG</DefineConstants> |
34 | <DocumentationFile> | 31 | <DocumentationFile></DocumentationFile> |
35 | </DocumentationFile> | ||
36 | <DebugSymbols>True</DebugSymbols> | 32 | <DebugSymbols>True</DebugSymbols> |
37 | <FileAlignment>4096</FileAlignment> | 33 | <FileAlignment>4096</FileAlignment> |
38 | <Optimize>False</Optimize> | 34 | <Optimize>False</Optimize> |
@@ -41,8 +37,7 @@ | |||
41 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 37 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
42 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 38 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
43 | <WarningLevel>4</WarningLevel> | 39 | <WarningLevel>4</WarningLevel> |
44 | <NoWarn> | 40 | <NoWarn></NoWarn> |
45 | </NoWarn> | ||
46 | </PropertyGroup> | 41 | </PropertyGroup> |
47 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | 42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
48 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | 43 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
@@ -51,8 +46,7 @@ | |||
51 | <ConfigurationOverrideFile> | 46 | <ConfigurationOverrideFile> |
52 | </ConfigurationOverrideFile> | 47 | </ConfigurationOverrideFile> |
53 | <DefineConstants>TRACE</DefineConstants> | 48 | <DefineConstants>TRACE</DefineConstants> |
54 | <DocumentationFile> | 49 | <DocumentationFile></DocumentationFile> |
55 | </DocumentationFile> | ||
56 | <DebugSymbols>False</DebugSymbols> | 50 | <DebugSymbols>False</DebugSymbols> |
57 | <FileAlignment>4096</FileAlignment> | 51 | <FileAlignment>4096</FileAlignment> |
58 | <Optimize>True</Optimize> | 52 | <Optimize>True</Optimize> |
@@ -61,113 +55,114 @@ | |||
61 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 55 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
62 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 56 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
63 | <WarningLevel>4</WarningLevel> | 57 | <WarningLevel>4</WarningLevel> |
64 | <NoWarn> | 58 | <NoWarn></NoWarn> |
65 | </NoWarn> | ||
66 | </PropertyGroup> | 59 | </PropertyGroup> |
67 | <ItemGroup> | 60 | <ItemGroup> |
68 | <Reference Include="Axiom.MathLib.dll"> | 61 | <Reference Include="Axiom.MathLib.dll" > |
69 | <HintPath>..\..\bin\Axiom.MathLib.dll</HintPath> | 62 | <HintPath>..\..\bin\Axiom.MathLib.dll</HintPath> |
70 | <Private>False</Private> | 63 | <Private>False</Private> |
71 | </Reference> | 64 | </Reference> |
72 | <Reference Include="Db4objects.Db4o.dll"> | 65 | <Reference Include="Db4objects.Db4o.dll" > |
73 | <HintPath>..\..\bin\Db4objects.Db4o.dll</HintPath> | 66 | <HintPath>..\..\bin\Db4objects.Db4o.dll</HintPath> |
74 | <Private>False</Private> | 67 | <Private>False</Private> |
75 | </Reference> | 68 | </Reference> |
76 | <Reference Include="libsecondlife.dll"> | 69 | <Reference Include="libsecondlife.dll" > |
77 | <HintPath>..\..\bin\libsecondlife.dll</HintPath> | 70 | <HintPath>..\..\bin\libsecondlife.dll</HintPath> |
78 | <Private>False</Private> | 71 | <Private>False</Private> |
79 | </Reference> | 72 | </Reference> |
80 | <Reference Include="System"> | 73 | <Reference Include="System" > |
81 | <HintPath>System.dll</HintPath> | 74 | <HintPath>System.dll</HintPath> |
82 | <Private>False</Private> | 75 | <Private>False</Private> |
83 | </Reference> | 76 | </Reference> |
84 | <Reference Include="System.Xml"> | 77 | <Reference Include="System.Xml" > |
85 | <HintPath>System.Xml.dll</HintPath> | 78 | <HintPath>System.Xml.dll</HintPath> |
86 | <Private>False</Private> | 79 | <Private>False</Private> |
87 | </Reference> | 80 | </Reference> |
88 | </ItemGroup> | 81 | </ItemGroup> |
89 | <ItemGroup> | 82 | <ItemGroup> |
90 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.Communications.OGS1\OpenGrid.Framework.Communications.OGS1.csproj"> | ||
91 | <Project>{C1F40DD4-A68B-4233-9142-CE236775A3CE}</Project> | ||
92 | <Name>OpenGrid.Framework.Communications.OGS1</Name> | ||
93 | </ProjectReference> | ||
94 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.Communications\OpenGrid.Framework.Communications.csproj"> | 83 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.Communications\OpenGrid.Framework.Communications.csproj"> |
95 | <Name>OpenGrid.Framework.Communications</Name> | 84 | <Name>OpenGrid.Framework.Communications</Name> |
96 | <Project>{683344D5-0000-0000-0000-000000000000}</Project> | 85 | <Project>{683344D5-0000-0000-0000-000000000000}</Project> |
97 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 86 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
98 | <Private>False</Private> | 87 | <Private>False</Private> |
88 | </ProjectReference> | ||
89 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.Communications.OGS1\OpenGrid.Framework.Communications.OGS1.csproj"> | ||
90 | <Name>OpenGrid.Framework.Communications.OGS1</Name> | ||
91 | <Project>{17442AF1-0000-0000-0000-000000000000}</Project> | ||
92 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
93 | <Private>False</Private> | ||
99 | </ProjectReference> | 94 | </ProjectReference> |
100 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.UserManager\OpenGrid.Framework.UserManagement.csproj"> | 95 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.UserManager\OpenGrid.Framework.UserManagement.csproj"> |
101 | <Name>OpenGrid.Framework.UserManagement</Name> | 96 | <Name>OpenGrid.Framework.UserManagement</Name> |
102 | <Project>{DA9A7391-0000-0000-0000-000000000000}</Project> | 97 | <Project>{DA9A7391-0000-0000-0000-000000000000}</Project> |
103 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 98 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
104 | <Private>False</Private> | 99 | <Private>False</Private> |
105 | </ProjectReference> | 100 | </ProjectReference> |
106 | <ProjectReference Include="..\OpenSim.Caches\OpenSim.Caches.csproj"> | 101 | <ProjectReference Include="..\OpenSim.Caches\OpenSim.Caches.csproj"> |
107 | <Name>OpenSim.Caches</Name> | 102 | <Name>OpenSim.Caches</Name> |
108 | <Project>{1938EB12-0000-0000-0000-000000000000}</Project> | 103 | <Project>{1938EB12-0000-0000-0000-000000000000}</Project> |
109 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 104 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
110 | <Private>False</Private> | 105 | <Private>False</Private> |
111 | </ProjectReference> | 106 | </ProjectReference> |
112 | <ProjectReference Include="..\..\Common\OpenSim.Framework\OpenSim.Framework.csproj"> | 107 | <ProjectReference Include="..\..\Common\OpenSim.Framework\OpenSim.Framework.csproj"> |
113 | <Name>OpenSim.Framework</Name> | 108 | <Name>OpenSim.Framework</Name> |
114 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> | 109 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> |
115 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 110 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
116 | <Private>False</Private> | 111 | <Private>False</Private> |
117 | </ProjectReference> | 112 | </ProjectReference> |
118 | <ProjectReference Include="..\..\Common\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj"> | 113 | <ProjectReference Include="..\..\Common\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj"> |
119 | <Name>OpenSim.Framework.Console</Name> | 114 | <Name>OpenSim.Framework.Console</Name> |
120 | <Project>{A7CD0630-0000-0000-0000-000000000000}</Project> | 115 | <Project>{A7CD0630-0000-0000-0000-000000000000}</Project> |
121 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 116 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
122 | <Private>False</Private> | 117 | <Private>False</Private> |
123 | </ProjectReference> | 118 | </ProjectReference> |
124 | <ProjectReference Include="..\..\Common\OpenSim.GenericConfig\Xml\OpenSim.GenericConfig.Xml.csproj"> | 119 | <ProjectReference Include="..\..\Common\OpenSim.GenericConfig\Xml\OpenSim.GenericConfig.Xml.csproj"> |
125 | <Name>OpenSim.GenericConfig.Xml</Name> | 120 | <Name>OpenSim.GenericConfig.Xml</Name> |
126 | <Project>{E88EF749-0000-0000-0000-000000000000}</Project> | 121 | <Project>{E88EF749-0000-0000-0000-000000000000}</Project> |
127 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 122 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
128 | <Private>False</Private> | 123 | <Private>False</Private> |
129 | </ProjectReference> | 124 | </ProjectReference> |
130 | <ProjectReference Include="..\OpenSim.LocalCommunications\OpenSim.LocalCommunications.csproj"> | 125 | <ProjectReference Include="..\OpenSim.LocalCommunications\OpenSim.LocalCommunications.csproj"> |
131 | <Name>OpenSim.LocalCommunications</Name> | 126 | <Name>OpenSim.LocalCommunications</Name> |
132 | <Project>{79CED992-0000-0000-0000-000000000000}</Project> | 127 | <Project>{79CED992-0000-0000-0000-000000000000}</Project> |
133 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 128 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
134 | <Private>False</Private> | 129 | <Private>False</Private> |
135 | </ProjectReference> | 130 | </ProjectReference> |
136 | <ProjectReference Include="..\OpenSim.Physics\Manager\OpenSim.Physics.Manager.csproj"> | 131 | <ProjectReference Include="..\OpenSim.Physics\Manager\OpenSim.Physics.Manager.csproj"> |
137 | <Name>OpenSim.Physics.Manager</Name> | 132 | <Name>OpenSim.Physics.Manager</Name> |
138 | <Project>{8BE16150-0000-0000-0000-000000000000}</Project> | 133 | <Project>{8BE16150-0000-0000-0000-000000000000}</Project> |
139 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 134 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
140 | <Private>False</Private> | 135 | <Private>False</Private> |
141 | </ProjectReference> | 136 | </ProjectReference> |
142 | <ProjectReference Include="..\OpenSim.Region\OpenSim.Region.csproj"> | 137 | <ProjectReference Include="..\OpenSim.Region\OpenSim.Region.csproj"> |
143 | <Name>OpenSim.Region</Name> | 138 | <Name>OpenSim.Region</Name> |
144 | <Project>{196916AF-0000-0000-0000-000000000000}</Project> | 139 | <Project>{196916AF-0000-0000-0000-000000000000}</Project> |
145 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 140 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
146 | <Private>False</Private> | 141 | <Private>False</Private> |
147 | </ProjectReference> | 142 | </ProjectReference> |
148 | <ProjectReference Include="..\OpenSim.RegionServer\OpenSim.RegionServer.csproj"> | 143 | <ProjectReference Include="..\OpenSim.RegionServer\OpenSim.RegionServer.csproj"> |
149 | <Name>OpenSim.RegionServer</Name> | 144 | <Name>OpenSim.RegionServer</Name> |
150 | <Project>{632E1BFD-0000-0000-0000-000000000000}</Project> | 145 | <Project>{632E1BFD-0000-0000-0000-000000000000}</Project> |
151 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 146 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
152 | <Private>False</Private> | 147 | <Private>False</Private> |
153 | </ProjectReference> | 148 | </ProjectReference> |
154 | <ProjectReference Include="..\..\Common\OpenSim.Servers\OpenSim.Servers.csproj"> | 149 | <ProjectReference Include="..\..\Common\OpenSim.Servers\OpenSim.Servers.csproj"> |
155 | <Name>OpenSim.Servers</Name> | 150 | <Name>OpenSim.Servers</Name> |
156 | <Project>{8BB20F0A-0000-0000-0000-000000000000}</Project> | 151 | <Project>{8BB20F0A-0000-0000-0000-000000000000}</Project> |
157 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 152 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
158 | <Private>False</Private> | 153 | <Private>False</Private> |
159 | </ProjectReference> | 154 | </ProjectReference> |
160 | <ProjectReference Include="..\OpenSim.Terrain.BasicTerrain\OpenSim.Terrain.BasicTerrain.csproj"> | 155 | <ProjectReference Include="..\OpenSim.Terrain.BasicTerrain\OpenSim.Terrain.BasicTerrain.csproj"> |
161 | <Name>OpenSim.Terrain.BasicTerrain</Name> | 156 | <Name>OpenSim.Terrain.BasicTerrain</Name> |
162 | <Project>{2270B8FE-0000-0000-0000-000000000000}</Project> | 157 | <Project>{2270B8FE-0000-0000-0000-000000000000}</Project> |
163 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 158 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
164 | <Private>False</Private> | 159 | <Private>False</Private> |
165 | </ProjectReference> | 160 | </ProjectReference> |
166 | <ProjectReference Include="..\..\Common\XmlRpcCS\XMLRPC.csproj"> | 161 | <ProjectReference Include="..\..\Common\XmlRpcCS\XMLRPC.csproj"> |
167 | <Name>XMLRPC</Name> | 162 | <Name>XMLRPC</Name> |
168 | <Project>{8E81D43C-0000-0000-0000-000000000000}</Project> | 163 | <Project>{8E81D43C-0000-0000-0000-000000000000}</Project> |
169 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 164 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
170 | <Private>False</Private> | 165 | <Private>False</Private> |
171 | </ProjectReference> | 166 | </ProjectReference> |
172 | </ItemGroup> | 167 | </ItemGroup> |
173 | <ItemGroup> | 168 | <ItemGroup> |
@@ -185,4 +180,4 @@ | |||
185 | <PostBuildEvent> | 180 | <PostBuildEvent> |
186 | </PostBuildEvent> | 181 | </PostBuildEvent> |
187 | </PropertyGroup> | 182 | </PropertyGroup> |
188 | </Project> \ No newline at end of file | 183 | </Project> |
diff --git a/OpenSim/OpenSim/OpenSim.exe.build b/OpenSim/OpenSim/OpenSim.exe.build index 068e160..13ca938 100644 --- a/OpenSim/OpenSim/OpenSim.exe.build +++ b/OpenSim/OpenSim/OpenSim.exe.build | |||
@@ -23,6 +23,7 @@ | |||
23 | <include name="../../bin/Db4objects.Db4o.dll" /> | 23 | <include name="../../bin/Db4objects.Db4o.dll" /> |
24 | <include name="../../bin/libsecondlife.dll" /> | 24 | <include name="../../bin/libsecondlife.dll" /> |
25 | <include name="../../bin/OpenGrid.Framework.Communications.dll" /> | 25 | <include name="../../bin/OpenGrid.Framework.Communications.dll" /> |
26 | <include name="../../bin/OpenGrid.Framework.Communications.OGS1.dll" /> | ||
26 | <include name="../../bin/OpenGrid.Framework.UserManagement.dll" /> | 27 | <include name="../../bin/OpenGrid.Framework.UserManagement.dll" /> |
27 | <include name="../../bin/OpenSim.Caches.dll" /> | 28 | <include name="../../bin/OpenSim.Caches.dll" /> |
28 | <include name="../../bin/OpenSim.Framework.dll" /> | 29 | <include name="../../bin/OpenSim.Framework.dll" /> |
diff --git a/OpenSim/OpenSim/OpenSimMain.cs b/OpenSim/OpenSim/OpenSimMain.cs index 50da5a1..ef4aa62 100644 --- a/OpenSim/OpenSim/OpenSimMain.cs +++ b/OpenSim/OpenSim/OpenSimMain.cs | |||
@@ -109,13 +109,13 @@ namespace OpenSim | |||
109 | this.SetupLocalGridServers(); | 109 | this.SetupLocalGridServers(); |
110 | // this.checkServer = new CheckSumServer(12036); | 110 | // this.checkServer = new CheckSumServer(12036); |
111 | // this.checkServer.ServerListener(); | 111 | // this.checkServer.ServerListener(); |
112 | sandboxCommunications = new CommunicationsLocal(this.serversData.DefaultHomeLocX, this.serversData.DefaultHomeLocY); | 112 | sandboxCommunications = new CommunicationsLocal(this.serversData); |
113 | this.commsManager = sandboxCommunications; | 113 | this.commsManager = sandboxCommunications; |
114 | } | 114 | } |
115 | else | 115 | else |
116 | { | 116 | { |
117 | this.SetupRemoteGridServers(); | 117 | this.SetupRemoteGridServers(); |
118 | this.commsManager = new GridCommsManager(); | 118 | this.commsManager = new GridCommsManager(this.serversData); |
119 | } | 119 | } |
120 | 120 | ||
121 | startuptime = DateTime.Now; | 121 | startuptime = DateTime.Now; |
diff --git a/prebuild.xml b/prebuild.xml index 44b41f0..d67ca4a 100644 --- a/prebuild.xml +++ b/prebuild.xml | |||
@@ -534,6 +534,7 @@ | |||
534 | <Reference name="OpenSim.Framework.Console"/> | 534 | <Reference name="OpenSim.Framework.Console"/> |
535 | <Reference name="OpenSim.Servers"/> | 535 | <Reference name="OpenSim.Servers"/> |
536 | <Reference name="OpenGrid.Framework.Communications" /> | 536 | <Reference name="OpenGrid.Framework.Communications" /> |
537 | <Reference name="OpenGrid.Framework.Data" /> | ||
537 | <Reference name="libsecondlife.dll"/> | 538 | <Reference name="libsecondlife.dll"/> |
538 | <Reference name="XMLRPC"/> | 539 | <Reference name="XMLRPC"/> |
539 | 540 | ||
@@ -664,6 +665,7 @@ | |||
664 | <Reference name="OpenSim.RegionServer"/> | 665 | <Reference name="OpenSim.RegionServer"/> |
665 | <Reference name="OpenSim.GenericConfig.Xml"/> | 666 | <Reference name="OpenSim.GenericConfig.Xml"/> |
666 | <Reference name="OpenGrid.Framework.Communications"/> | 667 | <Reference name="OpenGrid.Framework.Communications"/> |
668 | <Reference name="OpenGrid.Framework.Communications.OGS1"/> | ||
667 | <Reference name="OpenSim.Caches"/> | 669 | <Reference name="OpenSim.Caches"/> |
668 | <Reference name="XMLRPC"/> | 670 | <Reference name="XMLRPC"/> |
669 | <Reference name="OpenGrid.Framework.UserManagement" /> | 671 | <Reference name="OpenGrid.Framework.UserManagement" /> |