aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/SimClient.cs
diff options
context:
space:
mode:
authorMW2007-03-30 12:12:33 +0000
committerMW2007-03-30 12:12:33 +0000
commitcf182b98970a684ba57eed590db17a039d66158b (patch)
treec4f80d82c4dcf90febe0886c7c2587597c52e0d7 /OpenSim.RegionServer/SimClient.cs
parentRemoved a few comments sent to the console (diff)
downloadopensim-SC_OLD-cf182b98970a684ba57eed590db17a039d66158b.zip
opensim-SC_OLD-cf182b98970a684ba57eed590db17a039d66158b.tar.gz
opensim-SC_OLD-cf182b98970a684ba57eed590db17a039d66158b.tar.bz2
opensim-SC_OLD-cf182b98970a684ba57eed590db17a039d66158b.tar.xz
Clothing now seems to work (though there are likely to still be some problems)
Diffstat (limited to 'OpenSim.RegionServer/SimClient.cs')
-rw-r--r--OpenSim.RegionServer/SimClient.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/OpenSim.RegionServer/SimClient.cs b/OpenSim.RegionServer/SimClient.cs
index 0985447..6ea9e6e 100644
--- a/OpenSim.RegionServer/SimClient.cs
+++ b/OpenSim.RegionServer/SimClient.cs
@@ -69,7 +69,7 @@ namespace OpenSim
69 private const int MAX_SEQUENCE = 0xFFFFFF; 69 private const int MAX_SEQUENCE = 0xFFFFFF;
70 private AgentAssetUpload UploadAssets; 70 private AgentAssetUpload UploadAssets;
71 private LLUUID newAssetFolder = LLUUID.Zero; 71 private LLUUID newAssetFolder = LLUUID.Zero;
72 private bool debug = false; 72 private bool debug = true;//false;
73 private World m_world; 73 private World m_world;
74 private Dictionary<uint, SimClient> m_clientThreads; 74 private Dictionary<uint, SimClient> m_clientThreads;
75 private AssetCache m_assetCache; 75 private AssetCache m_assetCache;
@@ -78,6 +78,7 @@ namespace OpenSim
78 private OpenSimNetworkHandler m_application; 78 private OpenSimNetworkHandler m_application;
79 private InventoryCache m_inventoryCache; 79 private InventoryCache m_inventoryCache;
80 private bool m_sandboxMode; 80 private bool m_sandboxMode;
81 private int cachedtextureserial = 0;
81 82
82 83
83 public IUserServer UserServer 84 public IUserServer UserServer
@@ -149,6 +150,25 @@ namespace OpenSim
149 // Console.WriteLine(appear.ToString()); 150 // Console.WriteLine(appear.ToString());
150 this.ClientAvatar.SetAppearance(appear); 151 this.ClientAvatar.SetAppearance(appear);
151 break; 152 break;
153 case PacketType.AgentCachedTexture:
154 Console.WriteLine(Pack.ToString());
155 AgentCachedTexturePacket chechedtex = (AgentCachedTexturePacket)Pack;
156 AgentCachedTextureResponsePacket cachedresp = new AgentCachedTextureResponsePacket();
157 cachedresp.AgentData.AgentID = this.AgentID;
158 cachedresp.AgentData.SessionID = this.SessionID;
159 cachedresp.AgentData.SerialNum = this.cachedtextureserial;
160 this.cachedtextureserial++;
161 cachedresp.WearableData = new AgentCachedTextureResponsePacket.WearableDataBlock[chechedtex.WearableData.Length];
162 for (int i = 0; i < chechedtex.WearableData.Length; i++)
163 {
164 cachedresp.WearableData[i] = new AgentCachedTextureResponsePacket.WearableDataBlock();
165 cachedresp.WearableData[i].TextureIndex = chechedtex.WearableData[i].TextureIndex;
166 cachedresp.WearableData[i].TextureID = LLUUID.Zero;
167 cachedresp.WearableData[i].HostName = new byte[0];
168 }
169
170 this.OutPacket(cachedresp);
171 break;
152 case PacketType.ObjectAdd: 172 case PacketType.ObjectAdd:
153 m_world.AddNewPrim((ObjectAddPacket)Pack, this); 173 m_world.AddNewPrim((ObjectAddPacket)Pack, this);
154 break; 174 break;