diff options
author | Teravus Ovares | 2009-07-25 15:49:10 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-07-25 15:49:10 +0000 |
commit | 64bd9a335444379ebe1cad8e34d5b5953a76f671 (patch) | |
tree | 66b9ce07dbf95e4c118e3d639068e2c44fc52f58 /OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |
parent | * Apply http://opensimulator.org/mantis/view.php?id=3586 (diff) | |
download | opensim-SC-64bd9a335444379ebe1cad8e34d5b5953a76f671.zip opensim-SC-64bd9a335444379ebe1cad8e34d5b5953a76f671.tar.gz opensim-SC-64bd9a335444379ebe1cad8e34d5b5953a76f671.tar.bz2 opensim-SC-64bd9a335444379ebe1cad8e34d5b5953a76f671.tar.xz |
* Updates libOMV to version 0.7.0
* Uses mantis #3811 as a base (thanks jhuliman) with changes.
* E-mail regarding interface changes sent to the opensim-dev list
* Archive: https://lists.berlios.de/pipermail/opensim-dev/2009-July/007219.html
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index c0c074b..9d839ab 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -45,6 +45,7 @@ using OpenSim.Region.Framework.Interfaces; | |||
45 | using OpenSim.Region.Framework.Scenes; | 45 | using OpenSim.Region.Framework.Scenes; |
46 | using OpenSim.Services.Interfaces; | 46 | using OpenSim.Services.Interfaces; |
47 | using Timer=System.Timers.Timer; | 47 | using Timer=System.Timers.Timer; |
48 | using AssetLandmark = OpenSim.Framework.AssetLandmark; | ||
48 | using Nini.Config; | 49 | using Nini.Config; |
49 | 50 | ||
50 | namespace OpenSim.Region.ClientStack.LindenUDP | 51 | namespace OpenSim.Region.ClientStack.LindenUDP |
@@ -1266,7 +1267,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1266 | public void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args) | 1267 | public void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args) |
1267 | { | 1268 | { |
1268 | RegionHandshakePacket handshake = (RegionHandshakePacket)PacketPool.Instance.GetPacket(PacketType.RegionHandshake); | 1269 | RegionHandshakePacket handshake = (RegionHandshakePacket)PacketPool.Instance.GetPacket(PacketType.RegionHandshake); |
1269 | 1270 | handshake.RegionInfo = new RegionHandshakePacket.RegionInfoBlock(); | |
1270 | handshake.RegionInfo.BillableFactor = args.billableFactor; | 1271 | handshake.RegionInfo.BillableFactor = args.billableFactor; |
1271 | handshake.RegionInfo.IsEstateManager = args.isEstateManager; | 1272 | handshake.RegionInfo.IsEstateManager = args.isEstateManager; |
1272 | handshake.RegionInfo.TerrainHeightRange00 = args.terrainHeightRange0; | 1273 | handshake.RegionInfo.TerrainHeightRange00 = args.terrainHeightRange0; |
@@ -1292,14 +1293,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1292 | handshake.RegionInfo.TerrainDetail2 = args.terrainDetail2; | 1293 | handshake.RegionInfo.TerrainDetail2 = args.terrainDetail2; |
1293 | handshake.RegionInfo.TerrainDetail3 = args.terrainDetail3; | 1294 | handshake.RegionInfo.TerrainDetail3 = args.terrainDetail3; |
1294 | handshake.RegionInfo.CacheID = UUID.Random(); //I guess this is for the client to remember an old setting? | 1295 | handshake.RegionInfo.CacheID = UUID.Random(); //I guess this is for the client to remember an old setting? |
1295 | 1296 | handshake.RegionInfo2 = new RegionHandshakePacket.RegionInfo2Block(); | |
1296 | handshake.RegionInfo2.RegionID = regionInfo.RegionID; | 1297 | handshake.RegionInfo2.RegionID = regionInfo.RegionID; |
1298 | |||
1299 | handshake.RegionInfo3 = new RegionHandshakePacket.RegionInfo3Block(); | ||
1300 | handshake.RegionInfo3.CPUClassID = 9; | ||
1301 | handshake.RegionInfo3.CPURatio = 1; | ||
1297 | 1302 | ||
1298 | // handshake.RegionInfo3.ColoName = Utils.EmptyBytes; | 1303 | handshake.RegionInfo3.ColoName = Utils.EmptyBytes; |
1299 | // handshake.RegionInfo3.CPUClassID = 0; | 1304 | handshake.RegionInfo3.ProductName = Utils.EmptyBytes; |
1300 | // handshake.RegionInfo3.CPURatio = 0; | 1305 | handshake.RegionInfo3.ProductSKU = Utils.EmptyBytes; |
1301 | // handshake.RegionInfo3.ProductName = Utils.StringToBytes("OpenSim"); | ||
1302 | // handshake.RegionInfo3.ProductSKU = Utils.EmptyBytes; | ||
1303 | 1306 | ||
1304 | OutPacket(handshake, ThrottleOutPacketType.Task); | 1307 | OutPacket(handshake, ThrottleOutPacketType.Task); |
1305 | } | 1308 | } |
@@ -3551,8 +3554,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
3551 | rinfoblk.UseEstateSun = args.useEstateSun; | 3554 | rinfoblk.UseEstateSun = args.useEstateSun; |
3552 | rinfoblk.WaterHeight = args.waterHeight; | 3555 | rinfoblk.WaterHeight = args.waterHeight; |
3553 | rinfoblk.SimName = Utils.StringToBytes(args.simName); | 3556 | rinfoblk.SimName = Utils.StringToBytes(args.simName); |
3554 | 3557 | ||
3558 | rinfopack.RegionInfo2 = new RegionInfoPacket.RegionInfo2Block(); | ||
3559 | rinfopack.RegionInfo2.HardMaxAgents = uint.MaxValue; | ||
3560 | rinfopack.RegionInfo2.HardMaxObjects = uint.MaxValue; | ||
3561 | rinfopack.RegionInfo2.MaxAgents32 = uint.MaxValue; | ||
3562 | rinfopack.RegionInfo2.ProductName = Utils.EmptyBytes; | ||
3563 | rinfopack.RegionInfo2.ProductSKU = Utils.EmptyBytes; | ||
3564 | |||
3565 | rinfopack.HasVariableBlocks = true; | ||
3555 | rinfopack.RegionInfo = rinfoblk; | 3566 | rinfopack.RegionInfo = rinfoblk; |
3567 | rinfopack.AgentData = new RegionInfoPacket.AgentDataBlock(); | ||
3568 | rinfopack.AgentData.AgentID = AgentId; | ||
3569 | rinfopack.AgentData.SessionID = SessionId; | ||
3570 | |||
3556 | 3571 | ||
3557 | OutPacket(rinfopack, ThrottleOutPacketType.Task); | 3572 | OutPacket(rinfopack, ThrottleOutPacketType.Task); |
3558 | } | 3573 | } |
@@ -7536,7 +7551,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
7536 | LandUpdateArgs args = new LandUpdateArgs(); | 7551 | LandUpdateArgs args = new LandUpdateArgs(); |
7537 | 7552 | ||
7538 | args.AuthBuyerID = parcelPropertiesPacket.ParcelData.AuthBuyerID; | 7553 | args.AuthBuyerID = parcelPropertiesPacket.ParcelData.AuthBuyerID; |
7539 | args.Category = (Parcel.ParcelCategory)parcelPropertiesPacket.ParcelData.Category; | 7554 | args.Category = (ParcelCategory)parcelPropertiesPacket.ParcelData.Category; |
7540 | args.Desc = Utils.BytesToString(parcelPropertiesPacket.ParcelData.Desc); | 7555 | args.Desc = Utils.BytesToString(parcelPropertiesPacket.ParcelData.Desc); |
7541 | args.GroupID = parcelPropertiesPacket.ParcelData.GroupID; | 7556 | args.GroupID = parcelPropertiesPacket.ParcelData.GroupID; |
7542 | args.LandingType = parcelPropertiesPacket.ParcelData.LandingType; | 7557 | args.LandingType = parcelPropertiesPacket.ParcelData.LandingType; |
@@ -10030,8 +10045,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
10030 | 10045 | ||
10031 | // Bit 0: Mature, bit 7: on sale, other bits: no idea | 10046 | // Bit 0: Mature, bit 7: on sale, other bits: no idea |
10032 | reply.Data.Flags = (byte)( | 10047 | reply.Data.Flags = (byte)( |
10033 | ((land.Flags & (uint)Parcel.ParcelFlags.MaturePublish) != 0 ? (1 << 0) : 0) + | 10048 | ((land.Flags & (uint)ParcelFlags.MaturePublish) != 0 ? (1 << 0) : 0) + |
10034 | ((land.Flags & (uint)Parcel.ParcelFlags.ForSale) != 0 ? (1 << 7) : 0)); | 10049 | ((land.Flags & (uint)ParcelFlags.ForSale) != 0 ? (1 << 7) : 0)); |
10035 | 10050 | ||
10036 | Vector3 pos = land.UserLocation; | 10051 | Vector3 pos = land.UserLocation; |
10037 | if (pos.Equals(Vector3.Zero)) | 10052 | if (pos.Equals(Vector3.Zero)) |