diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Examples/SimpleApp/Program.cs | 2 | ||||
-rw-r--r-- | OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs | 11 | ||||
-rw-r--r-- | OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs | 96 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Scene.cs | 4 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs | 6 | ||||
-rw-r--r-- | OpenSim/OpenSim.RegionServer/ClientView.API.cs | 8 | ||||
-rw-r--r-- | OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs | 120 | ||||
-rw-r--r-- | OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj | 3 | ||||
-rw-r--r-- | OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build | 1 | ||||
-rw-r--r-- | OpenSim/OpenSim/OpenSim.csproj | 6 | ||||
-rw-r--r-- | OpenSim/OpenSim/OpenSim.exe.build | 1 | ||||
-rw-r--r-- | OpenSim/OpenSim/OpenSimMain.cs | 8 |
12 files changed, 121 insertions, 145 deletions
diff --git a/OpenSim/Examples/SimpleApp/Program.cs b/OpenSim/Examples/SimpleApp/Program.cs index de6e6d3..944bca3 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(); | 56 | CommunicationsManager communicationsManager = new CommunicationsLocal(1000, 1000); |
57 | 57 | ||
58 | RegionInfo regionInfo = new RegionInfo( ); | 58 | RegionInfo regionInfo = new RegionInfo( ); |
59 | 59 | ||
diff --git a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs index 795f99d..008d47e 100644 --- a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs +++ b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs | |||
@@ -41,13 +41,20 @@ namespace OpenSim.LocalCommunications | |||
41 | public class CommunicationsLocal : CommunicationsManager | 41 | public class CommunicationsLocal : CommunicationsManager |
42 | { | 42 | { |
43 | public LocalBackEndServices SandBoxServices = new LocalBackEndServices(); | 43 | public LocalBackEndServices SandBoxServices = new LocalBackEndServices(); |
44 | protected LocalUserServices UserServices = new LocalUserServices(); | 44 | public LocalUserServices UserServices; |
45 | 45 | ||
46 | public CommunicationsLocal() | 46 | public CommunicationsLocal(uint defaultHomeX , uint defaultHomeY) |
47 | { | 47 | { |
48 | UserServices = new LocalUserServices(this , defaultHomeX, defaultHomeY); | ||
49 | UserServices.AddPlugin("OpenGrid.Framework.Data.DB4o.dll"); | ||
48 | UserServer = UserServices; | 50 | UserServer = UserServices; |
49 | GridServer = SandBoxServices; | 51 | GridServer = SandBoxServices; |
50 | InterRegion = SandBoxServices; | 52 | InterRegion = SandBoxServices; |
51 | } | 53 | } |
54 | |||
55 | internal void InformRegionOfLogin(ulong regionHandle, Login login) | ||
56 | { | ||
57 | this.SandBoxServices.AddNewSession(regionHandle, login); | ||
58 | } | ||
52 | } | 59 | } |
53 | } | 60 | } |
diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs index fdfdd16..7a7f2bf 100644 --- a/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs +++ b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs | |||
@@ -4,9 +4,11 @@ using System.Collections.Generic; | |||
4 | using System.Text; | 4 | using System.Text; |
5 | 5 | ||
6 | using OpenGrid.Framework.Communications; | 6 | using OpenGrid.Framework.Communications; |
7 | using OpenSim.Framework.User; | 7 | //using OpenSim.Framework.User; |
8 | using OpenGrid.Framework.UserManagement; | 8 | using OpenGrid.Framework.UserManagement; |
9 | using OpenGrid.Framework.Data; | 9 | using OpenGrid.Framework.Data; |
10 | using OpenSim.Framework.Types; | ||
11 | using OpenSim.Framework.Utilities; | ||
10 | 12 | ||
11 | using libsecondlife; | 13 | using libsecondlife; |
12 | 14 | ||
@@ -14,30 +16,102 @@ namespace OpenSim.LocalCommunications | |||
14 | { | 16 | { |
15 | public class LocalUserServices : UserManagerBase, IUserServices | 17 | public class LocalUserServices : UserManagerBase, IUserServices |
16 | { | 18 | { |
17 | 19 | private CommunicationsLocal m_Parent; | |
18 | public LocalUserServices() | ||
19 | { | ||
20 | 20 | ||
21 | private uint defaultHomeX ; | ||
22 | private uint defaultHomeY; | ||
23 | public LocalUserServices(CommunicationsLocal parent, uint defHomeX, uint defHomeY) | ||
24 | { | ||
25 | m_Parent = parent; | ||
26 | defaultHomeX = defHomeX; | ||
27 | defaultHomeY = defHomeY; | ||
21 | } | 28 | } |
22 | 29 | ||
23 | public UserProfileData GetUserProfile(string first_name, string last_name) | 30 | public UserProfileData GetUserProfile(string firstName, string lastName) |
24 | { | 31 | { |
25 | return GetUserProfile(first_name + " " + last_name); | 32 | return GetUserProfile(firstName + " " + lastName); |
26 | } | 33 | } |
27 | 34 | ||
28 | public UserProfileData GetUserProfile(string name) | 35 | public UserProfileData GetUserProfile(string name) |
29 | { | 36 | { |
30 | return null; | 37 | return this.getUserProfile(name); |
38 | } | ||
39 | public UserProfileData GetUserProfile(LLUUID avatarID) | ||
40 | { | ||
41 | return this.getUserProfile(avatarID); | ||
42 | } | ||
43 | |||
44 | /// <summary> | ||
45 | /// | ||
46 | /// </summary> | ||
47 | /// <returns></returns> | ||
48 | public override string GetMessage() | ||
49 | { | ||
50 | return "Welcome to OpenSim"; | ||
51 | } | ||
52 | |||
53 | public override UserProfileData GetTheUser(string firstname, string lastname) | ||
54 | { | ||
55 | UserProfileData profile = getUserProfile(firstname, lastname); | ||
56 | if (profile != null) | ||
57 | { | ||
58 | |||
59 | return profile; | ||
60 | } | ||
61 | |||
62 | //no current user account so make one | ||
63 | Console.WriteLine("No User account found so creating a new one "); | ||
64 | this.AddUserProfile(firstname, lastname, "test", defaultHomeX, defaultHomeY); | ||
65 | |||
66 | profile = getUserProfile(firstname, lastname); | ||
67 | |||
68 | return profile; | ||
31 | } | 69 | } |
32 | public UserProfileData GetUserProfile(LLUUID avatar_id) | 70 | |
71 | public override bool AuthenticateUser(ref UserProfileData profile, string password) | ||
33 | { | 72 | { |
34 | return null; | 73 | //for now we will accept any password in sandbox mode |
74 | Console.WriteLine("authorising user"); | ||
75 | return true; | ||
35 | } | 76 | } |
36 | 77 | ||
37 | public override void CustomiseResponse(ref Hashtable response, ref UserProfileData theUser) | 78 | public override void CustomiseResponse(ref LoginResponse response, ref UserProfileData theUser) |
38 | { | 79 | { |
80 | ulong currentRegion = theUser.currentAgent.currentHandle; | ||
81 | RegionInfo reg = m_Parent.GridServer.RequestNeighbourInfo(currentRegion); | ||
82 | |||
83 | |||
84 | if (reg != null) | ||
85 | { | ||
86 | response.Home = "{'region_handle':[r" + (reg.RegionLocX * 256).ToString() + ",r" + (reg.RegionLocY * 256).ToString() + "], " + | ||
87 | "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + | ||
88 | "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; | ||
89 | |||
90 | response.SimAddress = reg.IPListenAddr; | ||
91 | response.SimPort = (Int32)reg.IPListenPort; | ||
92 | response.RegionX = reg.RegionLocX ; | ||
93 | response.RegionY = reg.RegionLocY ; | ||
94 | |||
95 | theUser.currentAgent.currentRegion = reg.SimUUID; | ||
96 | theUser.currentAgent.currentHandle = reg.RegionHandle; | ||
97 | |||
98 | Login _login = new Login(); | ||
99 | //copy data to login object | ||
100 | _login.First = response.Firstname; | ||
101 | _login.Last = response.Lastname; | ||
102 | _login.Agent = response.AgentID; | ||
103 | _login.Session = response.SessionID; | ||
104 | _login.SecureSession = response.SecureSessionID; | ||
105 | _login.CircuitCode = (uint)response.CircuitCode; | ||
106 | |||
107 | m_Parent.InformRegionOfLogin(currentRegion, _login); | ||
108 | } | ||
109 | else | ||
110 | { | ||
111 | Console.WriteLine("not found region " + currentRegion); | ||
112 | } | ||
39 | 113 | ||
40 | } | 114 | } |
41 | 115 | ||
42 | } | 116 | } |
43 | } | 117 | } |
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index 7716410..ca8e5c3 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -425,7 +425,7 @@ namespace OpenSim.Region.Scenes | |||
425 | Console.WriteLine("No default terrain, procedurally generating..."); | 425 | Console.WriteLine("No default terrain, procedurally generating..."); |
426 | this.Terrain.hills(); | 426 | this.Terrain.hills(); |
427 | 427 | ||
428 | // this.localStorage.SaveMap(this.Terrain.getHeights1D()); | 428 | this.localStorage.SaveMap(this.Terrain.getHeights1D()); |
429 | } | 429 | } |
430 | else | 430 | else |
431 | { | 431 | { |
@@ -439,7 +439,7 @@ namespace OpenSim.Region.Scenes | |||
439 | Console.WriteLine("Unable to load default terrain, procedurally generating instead..."); | 439 | Console.WriteLine("Unable to load default terrain, procedurally generating instead..."); |
440 | Terrain.hills(); | 440 | Terrain.hills(); |
441 | } | 441 | } |
442 | // this.localStorage.SaveMap(this.Terrain.getHeights1D()); | 442 | this.localStorage.SaveMap(this.Terrain.getHeights1D()); |
443 | } | 443 | } |
444 | } | 444 | } |
445 | else | 445 | else |
diff --git a/OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs index 24278da..d21b11f 100644 --- a/OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs +++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs | |||
@@ -49,7 +49,7 @@ namespace OpenSim.Region.Scenes | |||
49 | { | 49 | { |
50 | } | 50 | } |
51 | 51 | ||
52 | public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) | 52 | public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) |
53 | { | 53 | { |
54 | } | 54 | } |
55 | 55 | ||
@@ -69,11 +69,11 @@ namespace OpenSim.Region.Scenes | |||
69 | 69 | ||
70 | } | 70 | } |
71 | 71 | ||
72 | public void processMovement(IClientAPI remoteClient, uint flags, LLQuaternion bodyRotation) | 72 | public void processMovement(IClientAPI remoteClient, uint flags, LLQuaternion bodyRotation) |
73 | { | 73 | { |
74 | } | 74 | } |
75 | 75 | ||
76 | public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) | 76 | public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) |
77 | { | 77 | { |
78 | } | 78 | } |
79 | 79 | ||
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs index 7a0cbe3..1a03216 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs | |||
@@ -189,6 +189,14 @@ namespace OpenSim | |||
189 | OutPacket(mov); | 189 | OutPacket(mov); |
190 | } | 190 | } |
191 | 191 | ||
192 | /// <summary> | ||
193 | /// | ||
194 | /// </summary> | ||
195 | /// <param name="message"></param> | ||
196 | /// <param name="type"></param> | ||
197 | /// <param name="fromPos"></param> | ||
198 | /// <param name="fromName"></param> | ||
199 | /// <param name="fromAgentID"></param> | ||
192 | public void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID) | 200 | public void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID) |
193 | { | 201 | { |
194 | SendChatMessage(Helpers.StringToField(message), type, fromPos, fromName, fromAgentID); | 202 | SendChatMessage(Helpers.StringToField(message), type, fromPos, fromName, fromAgentID); |
diff --git a/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs b/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs deleted file mode 100644 index 407ebe0..0000000 --- a/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs +++ /dev/null | |||
@@ -1,120 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | using OpenSim.Framework.Interfaces; | ||
32 | |||
33 | namespace OpenSim | ||
34 | { | ||
35 | |||
36 | public class NetworkServersInfo | ||
37 | { | ||
38 | public string AssetURL = "http://127.0.0.1:8003/"; | ||
39 | public string AssetSendKey = ""; | ||
40 | |||
41 | public string GridURL = ""; | ||
42 | public string GridSendKey = ""; | ||
43 | public string GridRecvKey = ""; | ||
44 | public string UserURL = ""; | ||
45 | public string UserSendKey = ""; | ||
46 | public string UserRecvKey = ""; | ||
47 | public bool isSandbox; | ||
48 | |||
49 | public void InitConfig(bool sandboxMode, IGenericConfig configData) | ||
50 | { | ||
51 | this.isSandbox = sandboxMode; | ||
52 | |||
53 | try | ||
54 | { | ||
55 | if (!isSandbox) | ||
56 | { | ||
57 | string attri = ""; | ||
58 | //Grid Server URL | ||
59 | attri = ""; | ||
60 | attri = configData.GetAttribute("GridServerURL"); | ||
61 | if (attri == "") | ||
62 | { | ||
63 | this.GridURL = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Grid server URL", "http://127.0.0.1:8001/"); | ||
64 | configData.SetAttribute("GridServerURL", this.GridURL); | ||
65 | } | ||
66 | else | ||
67 | { | ||
68 | this.GridURL = attri; | ||
69 | } | ||
70 | |||
71 | //Grid Send Key | ||
72 | attri = ""; | ||
73 | attri = configData.GetAttribute("GridSendKey"); | ||
74 | if (attri == "") | ||
75 | { | ||
76 | this.GridSendKey = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Key to send to grid server", "null"); | ||
77 | configData.SetAttribute("GridSendKey", this.GridSendKey); | ||
78 | } | ||
79 | else | ||
80 | { | ||
81 | this.GridSendKey = attri; | ||
82 | } | ||
83 | |||
84 | //Grid Receive Key | ||
85 | attri = ""; | ||
86 | attri = configData.GetAttribute("GridRecvKey"); | ||
87 | if (attri == "") | ||
88 | { | ||
89 | this.GridRecvKey = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Key to expect from grid server", "null"); | ||
90 | configData.SetAttribute("GridRecvKey", this.GridRecvKey); | ||
91 | } | ||
92 | else | ||
93 | { | ||
94 | this.GridRecvKey = attri; | ||
95 | } | ||
96 | |||
97 | attri = ""; | ||
98 | attri = configData.GetAttribute("AssetServerURL"); | ||
99 | if (attri == "") | ||
100 | { | ||
101 | this.AssetURL = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Asset server URL", "http://127.0.0.1:8003/"); | ||
102 | configData.SetAttribute("AssetServerURL", this.GridURL); | ||
103 | } | ||
104 | else | ||
105 | { | ||
106 | this.AssetURL = attri; | ||
107 | } | ||
108 | |||
109 | } | ||
110 | configData.Commit(); | ||
111 | } | ||
112 | catch (Exception e) | ||
113 | { | ||
114 | OpenSim.Framework.Console.MainLog.Instance.Warn("Config.cs:InitConfig() - Exception occured"); | ||
115 | OpenSim.Framework.Console.MainLog.Instance.Warn(e.ToString()); | ||
116 | } | ||
117 | } | ||
118 | } | ||
119 | |||
120 | } | ||
diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj index e569187..b1ce3eb 100644 --- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj +++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj | |||
@@ -157,9 +157,6 @@ | |||
157 | <Compile Include="ClientViewBase.cs"> | 157 | <Compile Include="ClientViewBase.cs"> |
158 | <SubType>Code</SubType> | 158 | <SubType>Code</SubType> |
159 | </Compile> | 159 | </Compile> |
160 | <Compile Include="NetworkServersInfo.cs"> | ||
161 | <SubType>Code</SubType> | ||
162 | </Compile> | ||
163 | <Compile Include="PacketServer.cs"> | 160 | <Compile Include="PacketServer.cs"> |
164 | <SubType>Code</SubType> | 161 | <SubType>Code</SubType> |
165 | </Compile> | 162 | </Compile> |
diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build index 520f826..12dca8a 100644 --- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build +++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build | |||
@@ -18,7 +18,6 @@ | |||
18 | <include name="ClientView.PacketHandlers.cs" /> | 18 | <include name="ClientView.PacketHandlers.cs" /> |
19 | <include name="ClientView.ProcessPackets.cs" /> | 19 | <include name="ClientView.ProcessPackets.cs" /> |
20 | <include name="ClientViewBase.cs" /> | 20 | <include name="ClientViewBase.cs" /> |
21 | <include name="NetworkServersInfo.cs" /> | ||
22 | <include name="PacketServer.cs" /> | 21 | <include name="PacketServer.cs" /> |
23 | <include name="RegionApplicationBase.cs" /> | 22 | <include name="RegionApplicationBase.cs" /> |
24 | <include name="UDPServer.cs" /> | 23 | <include name="UDPServer.cs" /> |
diff --git a/OpenSim/OpenSim/OpenSim.csproj b/OpenSim/OpenSim/OpenSim.csproj index fb0e0c1..a8cadc0 100644 --- a/OpenSim/OpenSim/OpenSim.csproj +++ b/OpenSim/OpenSim/OpenSim.csproj | |||
@@ -86,6 +86,12 @@ | |||
86 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 86 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
87 | <Private>False</Private> | 87 | <Private>False</Private> |
88 | </ProjectReference> | 88 | </ProjectReference> |
89 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.UserManager\OpenGrid.Framework.UserManagement.csproj"> | ||
90 | <Name>OpenGrid.Framework.UserManagement</Name> | ||
91 | <Project>{DA9A7391-0000-0000-0000-000000000000}</Project> | ||
92 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
93 | <Private>False</Private> | ||
94 | </ProjectReference> | ||
89 | <ProjectReference Include="..\OpenSim.Caches\OpenSim.Caches.csproj"> | 95 | <ProjectReference Include="..\OpenSim.Caches\OpenSim.Caches.csproj"> |
90 | <Name>OpenSim.Caches</Name> | 96 | <Name>OpenSim.Caches</Name> |
91 | <Project>{1938EB12-0000-0000-0000-000000000000}</Project> | 97 | <Project>{1938EB12-0000-0000-0000-000000000000}</Project> |
diff --git a/OpenSim/OpenSim/OpenSim.exe.build b/OpenSim/OpenSim/OpenSim.exe.build index 78e4fa3..068e160 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.UserManagement.dll" /> | ||
26 | <include name="../../bin/OpenSim.Caches.dll" /> | 27 | <include name="../../bin/OpenSim.Caches.dll" /> |
27 | <include name="../../bin/OpenSim.Framework.dll" /> | 28 | <include name="../../bin/OpenSim.Framework.dll" /> |
28 | <include name="../../bin/OpenSim.Framework.Console.dll" /> | 29 | <include name="../../bin/OpenSim.Framework.Console.dll" /> |
diff --git a/OpenSim/OpenSim/OpenSimMain.cs b/OpenSim/OpenSim/OpenSimMain.cs index 0ef6cbd..3b83fd8 100644 --- a/OpenSim/OpenSim/OpenSimMain.cs +++ b/OpenSim/OpenSim/OpenSimMain.cs | |||
@@ -106,13 +106,13 @@ namespace OpenSim | |||
106 | this.SetupLocalGridServers(); | 106 | this.SetupLocalGridServers(); |
107 | this.checkServer = new CheckSumServer(12036); | 107 | this.checkServer = new CheckSumServer(12036); |
108 | this.checkServer.ServerListener(); | 108 | this.checkServer.ServerListener(); |
109 | sandboxCommunications = new CommunicationsLocal(); | 109 | sandboxCommunications = new CommunicationsLocal(this.serversData.DefaultHomeLocX, this.serversData.DefaultHomeLocY); |
110 | this.commsManager = sandboxCommunications; | 110 | this.commsManager = sandboxCommunications; |
111 | } | 111 | } |
112 | else | 112 | else |
113 | { | 113 | { |
114 | this.SetupRemoteGridServers(); | 114 | this.SetupRemoteGridServers(); |
115 | this.commsManager = new CommunicationsLocal(); //shouldn't be using the local communications manager | 115 | this.commsManager = new CommunicationsLocal(this.serversData.DefaultHomeLocX, this.serversData.DefaultHomeLocY); //shouldn't be using the local communications manager |
116 | } | 116 | } |
117 | 117 | ||
118 | startuptime = DateTime.Now; | 118 | startuptime = DateTime.Now; |
@@ -132,11 +132,15 @@ namespace OpenSim | |||
132 | 132 | ||
133 | if (m_sandbox) | 133 | if (m_sandbox) |
134 | { | 134 | { |
135 | httpServer.AddXmlRPCHandler("login_to_simulator", sandboxCommunications.UserServices.XmlRpcLoginMethod); | ||
136 | |||
137 | /* | ||
135 | loginServer = new LoginServer(regionData[0].IPListenAddr, regionData[0].IPListenPort, regionData[0].RegionLocX, regionData[0].RegionLocY, false); | 138 | loginServer = new LoginServer(regionData[0].IPListenAddr, regionData[0].IPListenPort, regionData[0].RegionLocX, regionData[0].RegionLocY, false); |
136 | loginServer.Startup(); | 139 | loginServer.Startup(); |
137 | loginServer.SetSessionHandler(sandboxCommunications.SandBoxServices.AddNewSession); | 140 | loginServer.SetSessionHandler(sandboxCommunications.SandBoxServices.AddNewSession); |
138 | //sandbox mode with loginserver not using accounts | 141 | //sandbox mode with loginserver not using accounts |
139 | httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod); | 142 | httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod); |
143 | */ | ||
140 | } | 144 | } |
141 | 145 | ||
142 | //Start http server | 146 | //Start http server |