aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMW2007-05-30 18:52:38 +0000
committerMW2007-05-30 18:52:38 +0000
commit52faae69d52dbb10eb2cf8708fea966b310b2391 (patch)
treecdf99f52c5bc66facb32700b0691dcd5688ea0cc /OpenSim
parenttrying to get login to work (diff)
downloadopensim-SC_OLD-52faae69d52dbb10eb2cf8708fea966b310b2391.zip
opensim-SC_OLD-52faae69d52dbb10eb2cf8708fea966b310b2391.tar.gz
opensim-SC_OLD-52faae69d52dbb10eb2cf8708fea966b310b2391.tar.bz2
opensim-SC_OLD-52faae69d52dbb10eb2cf8708fea966b310b2391.tar.xz
We have successful login!
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs2
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs5
-rw-r--r--OpenSim/OpenSim.World/Avatar.Update.cs1
-rw-r--r--OpenSim/OpenSim.World/Avatar.cs15
-rw-r--r--OpenSim/OpenSim/OpenSimMain.cs1
5 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs b/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
index 3c39781..9fb52c6 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
@@ -50,7 +50,7 @@ namespace OpenSim
50 this.m_inventoryCache.ClientLeaving(this.AgentID, null); 50 this.m_inventoryCache.ClientLeaving(this.AgentID, null);
51 51
52 52
53 m_gridServer.LogoutSession(this.SessionID, this.AgentID, this.CircuitCode); 53 // m_gridServer.LogoutSession(this.SessionID, this.AgentID, this.CircuitCode);
54 /*lock (m_world.Entities) 54 /*lock (m_world.Entities)
55 { 55 {
56 m_world.Entities.Remove(this.AgentID); 56 m_world.Entities.Remove(this.AgentID);
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs
index 0964fc4..d215a23 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs
@@ -38,10 +38,7 @@ namespace OpenSim
38 else 38 else
39 { 39 {
40 System.Text.Encoding _enc = System.Text.Encoding.ASCII; 40 System.Text.Encoding _enc = System.Text.Encoding.ASCII;
41 if (Pack.Type != PacketType.PacketAck) 41
42 {
43 Console.WriteLine(Pack.Type.ToString());
44 }
45 switch (Pack.Type) 42 switch (Pack.Type)
46 { 43 {
47 case PacketType.ViewerEffect: 44 case PacketType.ViewerEffect:
diff --git a/OpenSim/OpenSim.World/Avatar.Update.cs b/OpenSim/OpenSim.World/Avatar.Update.cs
index 90be4b1..9a5e06c 100644
--- a/OpenSim/OpenSim.World/Avatar.Update.cs
+++ b/OpenSim/OpenSim.World/Avatar.Update.cs
@@ -28,6 +28,7 @@ namespace OpenSim.world
28 28
29 public void SendInitialPosition() 29 public void SendInitialPosition()
30 { 30 {
31 Console.WriteLine("sending initial Avatar data");
31 this.ControllingClient.SendAvatarData(this.regionData, this.firstname, this.lastname, this.uuid, this.localid, new LLVector3(128, 128, 100)); 32 this.ControllingClient.SendAvatarData(this.regionData, this.firstname, this.lastname, this.uuid, this.localid, new LLVector3(128, 128, 100));
32 } 33 }
33 34
diff --git a/OpenSim/OpenSim.World/Avatar.cs b/OpenSim/OpenSim.World/Avatar.cs
index bbc3a58..247e194 100644
--- a/OpenSim/OpenSim.World/Avatar.cs
+++ b/OpenSim/OpenSim.World/Avatar.cs
@@ -32,30 +32,30 @@ namespace OpenSim.world
32 private AvatarWearable[] Wearables; 32 private AvatarWearable[] Wearables;
33 private LLVector3 positionLastFrame = new LLVector3(0, 0, 0); 33 private LLVector3 positionLastFrame = new LLVector3(0, 0, 0);
34 private ulong m_regionHandle; 34 private ulong m_regionHandle;
35 //private Dictionary<uint, ClientView> m_clientThreads; 35 private Dictionary<uint, IClientAPI> m_clientThreads;
36 private string m_regionName; 36 private string m_regionName;
37 private ushort m_regionWaterHeight; 37 private ushort m_regionWaterHeight;
38 private bool m_regionTerraform; 38 private bool m_regionTerraform;
39 private bool childAvatar = false; 39 private bool childAvatar = false;
40 private RegionInfo regionData; 40 private RegionInfo regionData;
41 41
42 public Avatar(IClientAPI TheClient, World world, Dictionary<uint, IClientAPI> clientThreads, RegionInfo regionDat) 42 public Avatar(IClientAPI theClient, World world, Dictionary<uint, IClientAPI> clientThreads, RegionInfo regionDat)
43 { 43 {
44 Console.WriteLine("avatar point 1"); 44
45 m_world = world; 45 m_world = world;
46 // m_clientThreads = clientThreads; 46 m_clientThreads = clientThreads;
47 regionData = regionDat;
48 this.uuid = theClient.AgentId;
47 m_regionName = regionData.RegionName; 49 m_regionName = regionData.RegionName;
48 m_regionHandle = regionData.RegionHandle; 50 m_regionHandle = regionData.RegionHandle;
49 m_regionTerraform = regionData.RegionTerraform; 51 m_regionTerraform = regionData.RegionTerraform;
50 m_regionWaterHeight = regionData.RegionWaterHeight; 52 m_regionWaterHeight = regionData.RegionWaterHeight;
51 Console.WriteLine("avatar point 2");
52 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Avatar.cs - Loading details from grid (DUMMY)"); 53 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Avatar.cs - Loading details from grid (DUMMY)");
53 ControllingClient = TheClient; 54 ControllingClient = theClient;
54 this.firstname = ControllingClient.FirstName; 55 this.firstname = ControllingClient.FirstName;
55 this.lastname = ControllingClient.LastName; 56 this.lastname = ControllingClient.LastName;
56 localid = 8880000 + (this.m_world._localNumber++); 57 localid = 8880000 + (this.m_world._localNumber++);
57 Pos = ControllingClient.StartPos; 58 Pos = ControllingClient.StartPos;
58 Console.WriteLine("avatar point 3");
59 visualParams = new byte[218]; 59 visualParams = new byte[218];
60 for (int i = 0; i < 218; i++) 60 for (int i = 0; i < 218; i++)
61 { 61 {
@@ -136,6 +136,7 @@ namespace OpenSim.world
136 //really really should be moved somewhere else (RegionInfo.cs ?) 136 //really really should be moved somewhere else (RegionInfo.cs ?)
137 public void SendRegionHandshake() 137 public void SendRegionHandshake()
138 { 138 {
139 Console.WriteLine("sending handshake");
139 this.ControllingClient.SendRegionHandshake(this.regionData); 140 this.ControllingClient.SendRegionHandshake(this.regionData);
140 } 141 }
141 142
diff --git a/OpenSim/OpenSim/OpenSimMain.cs b/OpenSim/OpenSim/OpenSimMain.cs
index db17db2..acbc15e 100644
--- a/OpenSim/OpenSim/OpenSimMain.cs
+++ b/OpenSim/OpenSim/OpenSimMain.cs
@@ -93,6 +93,7 @@ namespace OpenSim
93 this.serversData.InitConfig(this.m_sandbox, this.localConfig); 93 this.serversData.InitConfig(this.m_sandbox, this.localConfig);
94 this.localConfig.Close();//for now we can close it as no other classes read from it , but this should change 94 this.localConfig.Close();//for now we can close it as no other classes read from it , but this should change
95 95
96 ClientView.TerrainManager = new TerrainManager(new SecondLife());
96 if (m_sandbox) 97 if (m_sandbox)
97 { 98 {
98 this.SetupLocalGridServers(); 99 this.SetupLocalGridServers();