* Moved script packet handlers from 'unimplemented' to 'Script Packets'
parent
35f5db2a1c
commit
b1b529f94e
|
@ -42,7 +42,7 @@ using OpenSim.Framework.Communications.Cache;
|
|||
using OpenSim.Framework.Statistics;
|
||||
using OpenSim.Region.ClientStack.LindenUDP;
|
||||
using OpenSim.Region.Environment.Scenes;
|
||||
using Timer=System.Timers.Timer;
|
||||
using Timer = System.Timers.Timer;
|
||||
|
||||
namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
{
|
||||
|
@ -1120,7 +1120,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
// SendLayerPacket(map, y, x);
|
||||
// Thread.Sleep(150);
|
||||
//}
|
||||
for (int x= 0; x < 16; x++)
|
||||
for (int x = 0; x < 16; x++)
|
||||
{
|
||||
SendLayerData(x, y, map);
|
||||
Thread.Sleep(35);
|
||||
|
@ -1389,14 +1389,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
payPriceReply.ObjectData.ObjectID = objectID;
|
||||
payPriceReply.ObjectData.DefaultPayPrice = payPrice[0];
|
||||
|
||||
payPriceReply.ButtonData=new PayPriceReplyPacket.ButtonDataBlock[4];
|
||||
payPriceReply.ButtonData[0]=new PayPriceReplyPacket.ButtonDataBlock();
|
||||
payPriceReply.ButtonData = new PayPriceReplyPacket.ButtonDataBlock[4];
|
||||
payPriceReply.ButtonData[0] = new PayPriceReplyPacket.ButtonDataBlock();
|
||||
payPriceReply.ButtonData[0].PayButton = payPrice[1];
|
||||
payPriceReply.ButtonData[1]=new PayPriceReplyPacket.ButtonDataBlock();
|
||||
payPriceReply.ButtonData[1] = new PayPriceReplyPacket.ButtonDataBlock();
|
||||
payPriceReply.ButtonData[1].PayButton = payPrice[2];
|
||||
payPriceReply.ButtonData[2]=new PayPriceReplyPacket.ButtonDataBlock();
|
||||
payPriceReply.ButtonData[2] = new PayPriceReplyPacket.ButtonDataBlock();
|
||||
payPriceReply.ButtonData[2].PayButton = payPrice[3];
|
||||
payPriceReply.ButtonData[3]=new PayPriceReplyPacket.ButtonDataBlock();
|
||||
payPriceReply.ButtonData[3] = new PayPriceReplyPacket.ButtonDataBlock();
|
||||
payPriceReply.ButtonData[3].PayButton = payPrice[4];
|
||||
|
||||
OutPacket(payPriceReply, ThrottleOutPacketType.Task);
|
||||
|
@ -1448,8 +1448,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
// 6 to 7 items at a time, so let's stick with 6
|
||||
int MAX_ITEMS_PER_PACKET = 6;
|
||||
|
||||
//Ckrinke This variable is not used, so comment out to remove the warning from the compiler (3-21-08)
|
||||
//Ckrinke uint FULL_MASK_PERMISSIONS = 2147483647;
|
||||
//Ckrinke This variable is not used, so comment out to remove the warning from the compiler (3-21-08)
|
||||
//Ckrinke uint FULL_MASK_PERMISSIONS = 2147483647;
|
||||
|
||||
if (fetchItems)
|
||||
{
|
||||
|
@ -1576,7 +1576,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
descend.FolderData[i].FolderID = folder.ID;
|
||||
descend.FolderData[i].Name = Helpers.StringToField(folder.Name);
|
||||
descend.FolderData[i].ParentID = folder.ParentID;
|
||||
descend.FolderData[i].Type = (sbyte) folder.Type;
|
||||
descend.FolderData[i].Type = (sbyte)folder.Type;
|
||||
|
||||
i++;
|
||||
count++;
|
||||
|
@ -2296,7 +2296,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
SendPrimitiveToClient(regionHandle, timeDilation, localID, primShape, pos, vel,
|
||||
acc, rotation, rvel, flags,
|
||||
objectID, ownerID, text, color, parentID, particleSystem,
|
||||
clickAction, textureanim, false,(uint)0, LLUUID.Zero, LLUUID.Zero,0,0,0);
|
||||
clickAction, textureanim, false, (uint)0, LLUUID.Zero, LLUUID.Zero, 0, 0, 0);
|
||||
}
|
||||
|
||||
public void SendPrimitiveToClient(
|
||||
|
@ -2491,7 +2491,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
|
||||
public void SendObjectPropertiesFamilyData(uint RequestFlags, LLUUID ObjectUUID, LLUUID OwnerID, LLUUID GroupID,
|
||||
uint BaseMask, uint OwnerMask, uint GroupMask, uint EveryoneMask,
|
||||
uint NextOwnerMask, int OwnershipCost, byte SaleType,int SalePrice, uint Category,
|
||||
uint NextOwnerMask, int OwnershipCost, byte SaleType, int SalePrice, uint Category,
|
||||
LLUUID LastOwnerID, string ObjectName, string Description)
|
||||
{
|
||||
ObjectPropertiesFamilyPacket objPropFamilyPack = (ObjectPropertiesFamilyPacket)PacketPool.Instance.GetPacket(PacketType.ObjectPropertiesFamily);
|
||||
|
@ -2659,10 +2659,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
RegionInfoPacket.RegionInfoBlock rinfoblk = new RegionInfoPacket.RegionInfoBlock();
|
||||
rinfopack.AgentData.AgentID = this.AgentId;
|
||||
rinfopack.AgentData.SessionID = this.SessionId;
|
||||
rinfoblk.BillableFactor =args.billableFactor;
|
||||
rinfoblk.BillableFactor = args.billableFactor;
|
||||
rinfoblk.EstateID = args.estateID;
|
||||
rinfoblk.MaxAgents = args.maxAgents;
|
||||
rinfoblk.ObjectBonusFactor =args.objectBonusFactor;
|
||||
rinfoblk.ObjectBonusFactor = args.objectBonusFactor;
|
||||
rinfoblk.ParentEstateID = args.parentEstateID;
|
||||
rinfoblk.PricePerMeter = args.pricePerMeter;
|
||||
rinfoblk.RedirectGridX = args.redirectGridX;
|
||||
|
@ -2741,9 +2741,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
this.OutPacket(packet, ThrottleOutPacketType.Task);
|
||||
}
|
||||
|
||||
public void sendLandProperties(IClientAPI remote_client,int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
|
||||
public void sendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
|
||||
{
|
||||
ParcelPropertiesPacket updatePacket = (ParcelPropertiesPacket) PacketPool.Instance.GetPacket(PacketType.ParcelProperties);
|
||||
ParcelPropertiesPacket updatePacket = (ParcelPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.ParcelProperties);
|
||||
// TODO: don't create new blocks if recycling an old packet
|
||||
|
||||
updatePacket.ParcelData.AABBMax = landData.AABBMax;
|
||||
|
@ -2755,13 +2755,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
updatePacket.ParcelData.Bitmap = landData.landBitmapByteArray;
|
||||
|
||||
updatePacket.ParcelData.Desc = Helpers.StringToField(landData.landDesc);
|
||||
updatePacket.ParcelData.Category = (byte) landData.category;
|
||||
updatePacket.ParcelData.Category = (byte)landData.category;
|
||||
updatePacket.ParcelData.ClaimDate = landData.claimDate;
|
||||
updatePacket.ParcelData.ClaimPrice = landData.claimPrice;
|
||||
updatePacket.ParcelData.GroupID = landData.groupID;
|
||||
updatePacket.ParcelData.GroupPrims = landData.groupPrims;
|
||||
updatePacket.ParcelData.IsGroupOwned = landData.isGroupOwned;
|
||||
updatePacket.ParcelData.LandingType = (byte) landData.landingType;
|
||||
updatePacket.ParcelData.LandingType = (byte)landData.landingType;
|
||||
updatePacket.ParcelData.LocalID = landData.localID;
|
||||
if (landData.area > 0)
|
||||
{
|
||||
|
@ -2787,13 +2787,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
updatePacket.ParcelData.PassPrice = landData.passPrice;
|
||||
updatePacket.ParcelData.PublicCount = 0; //unemplemented
|
||||
|
||||
updatePacket.ParcelData.RegionDenyAnonymous = ((regionFlags & (uint) Simulator.RegionFlags.DenyAnonymous) >
|
||||
updatePacket.ParcelData.RegionDenyAnonymous = ((regionFlags & (uint)Simulator.RegionFlags.DenyAnonymous) >
|
||||
0);
|
||||
updatePacket.ParcelData.RegionDenyIdentified = ((regionFlags & (uint) Simulator.RegionFlags.DenyIdentified) >
|
||||
updatePacket.ParcelData.RegionDenyIdentified = ((regionFlags & (uint)Simulator.RegionFlags.DenyIdentified) >
|
||||
0);
|
||||
updatePacket.ParcelData.RegionDenyTransacted = ((regionFlags & (uint) Simulator.RegionFlags.DenyTransacted) >
|
||||
updatePacket.ParcelData.RegionDenyTransacted = ((regionFlags & (uint)Simulator.RegionFlags.DenyTransacted) >
|
||||
0);
|
||||
updatePacket.ParcelData.RegionPushOverride = ((regionFlags & (uint) Simulator.RegionFlags.RestrictPushObject) >
|
||||
updatePacket.ParcelData.RegionPushOverride = ((regionFlags & (uint)Simulator.RegionFlags.RestrictPushObject) >
|
||||
0);
|
||||
|
||||
updatePacket.ParcelData.RentPrice = 0;
|
||||
|
@ -2813,13 +2813,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
updatePacket.ParcelData.SimWideTotalPrims = landData.simwidePrims;
|
||||
updatePacket.ParcelData.SnapSelection = snap_selection;
|
||||
updatePacket.ParcelData.SnapshotID = landData.snapshotID;
|
||||
updatePacket.ParcelData.Status = (byte) landData.landStatus;
|
||||
updatePacket.ParcelData.Status = (byte)landData.landStatus;
|
||||
updatePacket.ParcelData.TotalPrims = landData.ownerPrims + landData.groupPrims + landData.otherPrims +
|
||||
landData.selectedPrims;
|
||||
updatePacket.ParcelData.UserLocation = landData.userLocation;
|
||||
updatePacket.ParcelData.UserLookAt = landData.userLookAt;
|
||||
updatePacket.Header.Zerocoded = true;
|
||||
remote_client.OutPacket((Packet) updatePacket, ThrottleOutPacketType.Task);
|
||||
remote_client.OutPacket((Packet)updatePacket, ThrottleOutPacketType.Task);
|
||||
}
|
||||
|
||||
public void sendLandAccessListData(List<LLUUID> avatars, uint accessFlag, int localLandID)
|
||||
|
@ -3330,14 +3330,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
|
||||
private bool HandleUUIDGroupNameRequest(IClientAPI sender, Packet Pack)
|
||||
{
|
||||
UUIDGroupNameRequestPacket upack = (UUIDGroupNameRequestPacket) Pack;
|
||||
UUIDGroupNameRequestPacket upack = (UUIDGroupNameRequestPacket)Pack;
|
||||
|
||||
for (int i=0;i< upack.UUIDNameBlock.Length; i++)
|
||||
for (int i = 0; i < upack.UUIDNameBlock.Length; i++)
|
||||
{
|
||||
handlerUUIDGroupNameRequest = OnUUIDGroupNameRequest;
|
||||
if (handlerUUIDGroupNameRequest != null)
|
||||
{
|
||||
handlerUUIDGroupNameRequest(upack.UUIDNameBlock[i].ID,this);
|
||||
handlerUUIDGroupNameRequest(upack.UUIDNameBlock[i].ID, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4127,9 +4127,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
uint regionX = 0;
|
||||
uint regionY = 0;
|
||||
try
|
||||
|
||||
{
|
||||
Helpers.LongToUInts(Scene.RegionInfo.RegionHandle,out regionX, out regionY);
|
||||
Helpers.LongToUInts(Scene.RegionInfo.RegionHandle, out regionX, out regionY);
|
||||
locx = Convert.ToSingle(Helpers.FieldToUTF8String(gmParams[0].Parameter)) - (float)regionX;
|
||||
locy = Convert.ToSingle(Helpers.FieldToUTF8String(gmParams[1].Parameter)) - (float)regionY;
|
||||
locz = Convert.ToSingle(Helpers.FieldToUTF8String(gmParams[2].Parameter));
|
||||
|
@ -4207,7 +4206,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
case PacketType.GenericMessage:
|
||||
GenericMessagePacket gmpack = (GenericMessagePacket)Pack;
|
||||
|
||||
DecipherGenericMessage(Helpers.FieldToUTF8String(gmpack.MethodData.Method),gmpack.MethodData.Invoice,gmpack.ParamList);
|
||||
DecipherGenericMessage(Helpers.FieldToUTF8String(gmpack.MethodData.Method), gmpack.MethodData.Invoice, gmpack.ParamList);
|
||||
|
||||
break;
|
||||
case PacketType.AvatarPropertiesRequest:
|
||||
|
@ -4511,7 +4510,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
handlerObjectDetach = OnObjectDetach;
|
||||
if (handlerObjectDetach != null)
|
||||
{
|
||||
handlerObjectDetach(obj,this);
|
||||
handlerObjectDetach(obj, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4842,7 +4841,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
// DEPRECATED: but till libsecondlife removes it, people will use it
|
||||
ObjectPositionPacket position = (ObjectPositionPacket)Pack;
|
||||
|
||||
for (int i=0; i<position.ObjectData.Length; i++)
|
||||
for (int i = 0; i < position.ObjectData.Length; i++)
|
||||
{
|
||||
handlerUpdateVector = OnUpdatePrimGroupPosition;
|
||||
if (handlerUpdateVector != null)
|
||||
|
@ -4854,7 +4853,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
// DEPRECATED: but till libsecondlife removes it, people will use it
|
||||
ObjectScalePacket scale = (ObjectScalePacket)Pack;
|
||||
|
||||
for (int i=0; i<scale.ObjectData.Length; i++)
|
||||
for (int i = 0; i < scale.ObjectData.Length; i++)
|
||||
{
|
||||
handlerUpdatePrimGroupScale = OnUpdatePrimGroupScale;
|
||||
if (handlerUpdatePrimGroupScale != null)
|
||||
|
@ -4866,7 +4865,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
// DEPRECATED: but till libsecondlife removes it, people will use it
|
||||
ObjectRotationPacket rotation = (ObjectRotationPacket)Pack;
|
||||
|
||||
for (int i=0; i<rotation.ObjectData.Length; i++)
|
||||
for (int i = 0; i < rotation.ObjectData.Length; i++)
|
||||
{
|
||||
handlerUpdatePrimRotation = OnUpdatePrimGroupRotation;
|
||||
if (handlerUpdatePrimRotation != null)
|
||||
|
@ -5415,26 +5414,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
handlerUpdateTaskInventory = OnUpdateTaskInventory;
|
||||
if (handlerUpdateTaskInventory != null)
|
||||
{
|
||||
TaskInventoryItem newTaskItem=new TaskInventoryItem();
|
||||
newTaskItem.ItemID=updatetask.InventoryData.ItemID;
|
||||
newTaskItem.ParentID=updatetask.InventoryData.FolderID;
|
||||
newTaskItem.CreatorID=updatetask.InventoryData.CreatorID;
|
||||
newTaskItem.OwnerID=updatetask.InventoryData.OwnerID;
|
||||
newTaskItem.GroupID=updatetask.InventoryData.GroupID;
|
||||
newTaskItem.BaseMask=updatetask.InventoryData.BaseMask;
|
||||
newTaskItem.OwnerMask=updatetask.InventoryData.OwnerMask;
|
||||
newTaskItem.GroupMask=updatetask.InventoryData.GroupMask;
|
||||
newTaskItem.EveryoneMask=updatetask.InventoryData.EveryoneMask;
|
||||
newTaskItem.NextOwnerMask=updatetask.InventoryData.NextOwnerMask;
|
||||
TaskInventoryItem newTaskItem = new TaskInventoryItem();
|
||||
newTaskItem.ItemID = updatetask.InventoryData.ItemID;
|
||||
newTaskItem.ParentID = updatetask.InventoryData.FolderID;
|
||||
newTaskItem.CreatorID = updatetask.InventoryData.CreatorID;
|
||||
newTaskItem.OwnerID = updatetask.InventoryData.OwnerID;
|
||||
newTaskItem.GroupID = updatetask.InventoryData.GroupID;
|
||||
newTaskItem.BaseMask = updatetask.InventoryData.BaseMask;
|
||||
newTaskItem.OwnerMask = updatetask.InventoryData.OwnerMask;
|
||||
newTaskItem.GroupMask = updatetask.InventoryData.GroupMask;
|
||||
newTaskItem.EveryoneMask = updatetask.InventoryData.EveryoneMask;
|
||||
newTaskItem.NextOwnerMask = updatetask.InventoryData.NextOwnerMask;
|
||||
//newTaskItem.GroupOwned=updatetask.InventoryData.GroupOwned;
|
||||
newTaskItem.Type=updatetask.InventoryData.Type;
|
||||
newTaskItem.InvType=updatetask.InventoryData.InvType;
|
||||
newTaskItem.Flags=updatetask.InventoryData.Flags;
|
||||
newTaskItem.Type = updatetask.InventoryData.Type;
|
||||
newTaskItem.InvType = updatetask.InventoryData.InvType;
|
||||
newTaskItem.Flags = updatetask.InventoryData.Flags;
|
||||
//newTaskItem.SaleType=updatetask.InventoryData.SaleType;
|
||||
//newTaskItem.SalePrice=updatetask.InventoryData.SalePrice;;
|
||||
newTaskItem.Name=Util.FieldToString(updatetask.InventoryData.Name);
|
||||
newTaskItem.Description=Util.FieldToString(updatetask.InventoryData.Description);
|
||||
newTaskItem.CreationDate=(uint)updatetask.InventoryData.CreationDate;
|
||||
newTaskItem.Name = Util.FieldToString(updatetask.InventoryData.Name);
|
||||
newTaskItem.Description = Util.FieldToString(updatetask.InventoryData.Description);
|
||||
newTaskItem.CreationDate = (uint)updatetask.InventoryData.CreationDate;
|
||||
handlerUpdateTaskInventory(this, updatetask.InventoryData.TransactionID,
|
||||
newTaskItem, updatetask.UpdateData.LocalID);
|
||||
}
|
||||
|
@ -5478,25 +5477,25 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
RezScriptPacket rezScriptx = (RezScriptPacket)Pack;
|
||||
|
||||
handlerRezScript = OnRezScript;
|
||||
InventoryItemBase item=new InventoryItemBase();
|
||||
item.ID=rezScriptx.InventoryBlock.ItemID;
|
||||
item.Folder=rezScriptx.InventoryBlock.FolderID;
|
||||
item.Creator=rezScriptx.InventoryBlock.CreatorID;
|
||||
item.Owner=rezScriptx.InventoryBlock.OwnerID;
|
||||
item.BasePermissions=rezScriptx.InventoryBlock.BaseMask;
|
||||
item.CurrentPermissions=rezScriptx.InventoryBlock.OwnerMask;
|
||||
item.EveryOnePermissions=rezScriptx.InventoryBlock.EveryoneMask;
|
||||
item.NextPermissions=rezScriptx.InventoryBlock.NextOwnerMask;
|
||||
item.GroupOwned=rezScriptx.InventoryBlock.GroupOwned;
|
||||
item.GroupID=rezScriptx.InventoryBlock.GroupID;
|
||||
item.AssetType=rezScriptx.InventoryBlock.Type;
|
||||
item.InvType=rezScriptx.InventoryBlock.InvType;
|
||||
item.Flags=rezScriptx.InventoryBlock.Flags;
|
||||
item.SaleType=rezScriptx.InventoryBlock.SaleType;
|
||||
item.SalePrice=rezScriptx.InventoryBlock.SalePrice;
|
||||
item.Name=Util.FieldToString(rezScriptx.InventoryBlock.Name);
|
||||
item.Description=Util.FieldToString(rezScriptx.InventoryBlock.Description);
|
||||
item.CreationDate=(int)rezScriptx.InventoryBlock.CreationDate;
|
||||
InventoryItemBase item = new InventoryItemBase();
|
||||
item.ID = rezScriptx.InventoryBlock.ItemID;
|
||||
item.Folder = rezScriptx.InventoryBlock.FolderID;
|
||||
item.Creator = rezScriptx.InventoryBlock.CreatorID;
|
||||
item.Owner = rezScriptx.InventoryBlock.OwnerID;
|
||||
item.BasePermissions = rezScriptx.InventoryBlock.BaseMask;
|
||||
item.CurrentPermissions = rezScriptx.InventoryBlock.OwnerMask;
|
||||
item.EveryOnePermissions = rezScriptx.InventoryBlock.EveryoneMask;
|
||||
item.NextPermissions = rezScriptx.InventoryBlock.NextOwnerMask;
|
||||
item.GroupOwned = rezScriptx.InventoryBlock.GroupOwned;
|
||||
item.GroupID = rezScriptx.InventoryBlock.GroupID;
|
||||
item.AssetType = rezScriptx.InventoryBlock.Type;
|
||||
item.InvType = rezScriptx.InventoryBlock.InvType;
|
||||
item.Flags = rezScriptx.InventoryBlock.Flags;
|
||||
item.SaleType = rezScriptx.InventoryBlock.SaleType;
|
||||
item.SalePrice = rezScriptx.InventoryBlock.SalePrice;
|
||||
item.Name = Util.FieldToString(rezScriptx.InventoryBlock.Name);
|
||||
item.Description = Util.FieldToString(rezScriptx.InventoryBlock.Description);
|
||||
item.CreationDate = (int)rezScriptx.InventoryBlock.CreationDate;
|
||||
|
||||
if (handlerRezScript != null)
|
||||
{
|
||||
|
@ -5564,7 +5563,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
handlerTeleportHomeRequest = OnTeleportHomeRequest;
|
||||
if (handlerTeleportHomeRequest != null)
|
||||
{
|
||||
handlerTeleportHomeRequest(this.AgentId,this);
|
||||
handlerTeleportHomeRequest(this.AgentId, this);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -5781,7 +5780,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
handlerParcelReturnObjectsRequest = OnParcelReturnObjectsRequest;
|
||||
if (handlerParcelReturnObjectsRequest != null)
|
||||
{
|
||||
handlerParcelReturnObjectsRequest(parcelReturnObjects.ParcelData.LocalID,parcelReturnObjects.ParcelData.ReturnType,puserselectedOwnerIDs,puserselectedTaskIDs, this);
|
||||
handlerParcelReturnObjectsRequest(parcelReturnObjects.ParcelData.LocalID, parcelReturnObjects.ParcelData.ReturnType, puserselectedOwnerIDs, puserselectedTaskIDs, this);
|
||||
|
||||
}
|
||||
break;
|
||||
|
@ -5805,12 +5804,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
case "setregioninfo":
|
||||
if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId))
|
||||
{
|
||||
OnSetEstateFlagsRequest(convertParamStringToBool(messagePacket.ParamList[0].Parameter),convertParamStringToBool(messagePacket.ParamList[1].Parameter),
|
||||
OnSetEstateFlagsRequest(convertParamStringToBool(messagePacket.ParamList[0].Parameter), convertParamStringToBool(messagePacket.ParamList[1].Parameter),
|
||||
convertParamStringToBool(messagePacket.ParamList[2].Parameter), !convertParamStringToBool(messagePacket.ParamList[3].Parameter),
|
||||
Convert.ToInt16(Convert.ToDecimal(Helpers.FieldToUTF8String(messagePacket.ParamList[4].Parameter))),
|
||||
(float)Convert.ToDecimal(Helpers.FieldToUTF8String(messagePacket.ParamList[5].Parameter)),
|
||||
Convert.ToInt16(Helpers.FieldToUTF8String(messagePacket.ParamList[6].Parameter)),
|
||||
convertParamStringToBool(messagePacket.ParamList[7].Parameter),convertParamStringToBool(messagePacket.ParamList[8].Parameter));
|
||||
convertParamStringToBool(messagePacket.ParamList[7].Parameter), convertParamStringToBool(messagePacket.ParamList[8].Parameter));
|
||||
|
||||
}
|
||||
|
||||
|
@ -5842,7 +5841,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
Int16 corner = Convert.ToInt16(splitField[0]);
|
||||
LLUUID textureUUID = new LLUUID(splitField[1]);
|
||||
|
||||
OnSetEstateTerrainDetailTexture(this, corner,textureUUID);
|
||||
OnSetEstateTerrainDetailTexture(this, corner, textureUUID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5861,7 +5860,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
float lowValue = (float)Convert.ToDecimal(splitField[1]);
|
||||
float highValue = (float)Convert.ToDecimal(splitField[2]);
|
||||
|
||||
OnSetEstateTerrainTextureHeights(this,corner,lowValue,highValue);
|
||||
OnSetEstateTerrainTextureHeights(this, corner, lowValue, highValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5932,7 +5931,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId))
|
||||
{
|
||||
int estateAccessType = Convert.ToInt16(Helpers.FieldToUTF8String(messagePacket.ParamList[1].Parameter));
|
||||
OnUpdateEstateAccessDeltaRequest(this, messagePacket.MethodData.Invoice,estateAccessType,new LLUUID(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter)));
|
||||
OnUpdateEstateAccessDeltaRequest(this, messagePacket.MethodData.Invoice, estateAccessType, new LLUUID(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter)));
|
||||
|
||||
}
|
||||
break;
|
||||
|
@ -5944,7 +5943,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
string SenderName = Helpers.FieldToUTF8String(messagePacket.ParamList[3].Parameter);
|
||||
string Message = Helpers.FieldToUTF8String(messagePacket.ParamList[4].Parameter);
|
||||
LLUUID sessionID = messagePacket.AgentData.SessionID;
|
||||
OnSimulatorBlueBoxMessageRequest(this,invoice,SenderID, sessionID, SenderName,Message);
|
||||
OnSimulatorBlueBoxMessageRequest(this, invoice, SenderID, sessionID, SenderName, Message);
|
||||
}
|
||||
break;
|
||||
case "instantmessage":
|
||||
|
@ -5955,7 +5954,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
string SenderName = Helpers.FieldToUTF8String(messagePacket.ParamList[3].Parameter);
|
||||
string Message = Helpers.FieldToUTF8String(messagePacket.ParamList[4].Parameter);
|
||||
LLUUID sessionID = messagePacket.AgentData.SessionID;
|
||||
OnEstateBlueBoxMessageRequest(this,invoice,SenderID, sessionID, SenderName,Message);
|
||||
OnEstateBlueBoxMessageRequest(this, invoice, SenderID, sessionID, SenderName, Message);
|
||||
}
|
||||
break;
|
||||
case "setregiondebug":
|
||||
|
@ -5967,7 +5966,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
bool collisionEvents = convertParamStringToBool(messagePacket.ParamList[1].Parameter);
|
||||
bool physics = convertParamStringToBool(messagePacket.ParamList[2].Parameter);
|
||||
|
||||
OnEstateDebugRegionRequest(this, invoice,SenderID,scripted,collisionEvents,physics);
|
||||
OnEstateDebugRegionRequest(this, invoice, SenderID, scripted, collisionEvents, physics);
|
||||
}
|
||||
break;
|
||||
case "teleporthomeuser":
|
||||
|
@ -5979,7 +5978,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
|
||||
Helpers.TryParse(Helpers.FieldToUTF8String(messagePacket.ParamList[1].Parameter), out Prey);
|
||||
|
||||
OnEstateTeleportOneUserHomeRequest(this,invoice,SenderID,Prey);
|
||||
OnEstateTeleportOneUserHomeRequest(this, invoice, SenderID, Prey);
|
||||
}
|
||||
break;
|
||||
case "colliders":
|
||||
|
@ -6018,7 +6017,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
handlerLandStatRequest = OnLandStatRequest;
|
||||
if (handlerLandStatRequest != null)
|
||||
{
|
||||
handlerLandStatRequest(lsrp.RequestData.ParcelLocalID,lsrp.RequestData.ReportType,lsrp.RequestData.RequestFlags,Helpers.FieldToUTF8String(lsrp.RequestData.Filter),this);
|
||||
handlerLandStatRequest(lsrp.RequestData.ParcelLocalID, lsrp.RequestData.ReportType, lsrp.RequestData.RequestFlags, Helpers.FieldToUTF8String(lsrp.RequestData.Filter), this);
|
||||
}
|
||||
//int parcelID, uint reportType, uint requestflags, string filter
|
||||
|
||||
|
@ -6136,6 +6135,37 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
|
||||
#endregion
|
||||
|
||||
#region Script Packets
|
||||
|
||||
case PacketType.GetScriptRunning:
|
||||
GetScriptRunningPacket scriptRunning = (GetScriptRunningPacket)Pack;
|
||||
handlerGetScriptRunning = OnGetScriptRunning;
|
||||
if (handlerGetScriptRunning != null)
|
||||
{
|
||||
handlerGetScriptRunning(this, scriptRunning.Script.ObjectID, scriptRunning.Script.ItemID);
|
||||
}
|
||||
break;
|
||||
|
||||
case PacketType.SetScriptRunning:
|
||||
SetScriptRunningPacket setScriptRunning = (SetScriptRunningPacket)Pack;
|
||||
handlerSetScriptRunning = OnSetScriptRunning;
|
||||
if (handlerSetScriptRunning != null)
|
||||
{
|
||||
handlerSetScriptRunning(this, setScriptRunning.Script.ObjectID, setScriptRunning.Script.ItemID, setScriptRunning.Script.Running);
|
||||
}
|
||||
break;
|
||||
|
||||
case PacketType.ScriptReset:
|
||||
ScriptResetPacket scriptResetPacket = (ScriptResetPacket)Pack;
|
||||
handlerScriptReset = OnScriptReset;
|
||||
if (handlerScriptReset != null)
|
||||
{
|
||||
handlerScriptReset(this, scriptResetPacket.Script.ObjectID, scriptResetPacket.Script.ItemID);
|
||||
}
|
||||
break;
|
||||
|
||||
#endregion
|
||||
|
||||
#region unimplemented handlers
|
||||
|
||||
case PacketType.StartPingCheck:
|
||||
|
@ -6148,14 +6178,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
// TODO: Perhaps this should be processed on the Sim to determine whether or not to drop a dead client
|
||||
//m_log.Warn("[CLIENT]: unhandled CompletePingCheck packet");
|
||||
break;
|
||||
case PacketType.ScriptReset:
|
||||
ScriptResetPacket scriptResetPacket = (ScriptResetPacket)Pack;
|
||||
handlerScriptReset = OnScriptReset;
|
||||
if (handlerScriptReset != null)
|
||||
{
|
||||
handlerScriptReset(this, scriptResetPacket.Script.ObjectID, scriptResetPacket.Script.ItemID);
|
||||
}
|
||||
break;
|
||||
|
||||
case PacketType.ViewerStats:
|
||||
// TODO: handle this packet
|
||||
m_log.Warn("[CLIENT]: unhandled ViewerStats packet");
|
||||
|
@ -6206,22 +6229,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
// TODO: handle this packet
|
||||
m_log.Warn("[CLIENT]: unhandled InventoryDescent packet");
|
||||
break;
|
||||
case PacketType.GetScriptRunning:
|
||||
GetScriptRunningPacket scriptRunning = (GetScriptRunningPacket)Pack;
|
||||
handlerGetScriptRunning = OnGetScriptRunning;
|
||||
if (handlerGetScriptRunning != null)
|
||||
{
|
||||
handlerGetScriptRunning(this, scriptRunning.Script.ObjectID, scriptRunning.Script.ItemID);
|
||||
}
|
||||
break;
|
||||
case PacketType.SetScriptRunning:
|
||||
SetScriptRunningPacket setScriptRunning = (SetScriptRunningPacket)Pack;
|
||||
handlerSetScriptRunning = OnSetScriptRunning;
|
||||
if (handlerSetScriptRunning != null)
|
||||
{
|
||||
handlerSetScriptRunning(this, setScriptRunning.Script.ObjectID, setScriptRunning.Script.ItemID, setScriptRunning.Script.Running);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
m_log.Warn("[CLIENT]: unhandled packet " + Pack.ToString());
|
||||
break;
|
||||
|
@ -6525,7 +6532,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
|
||||
info.pendingAcks = m_pendingAcks;
|
||||
|
||||
info.needAck = new Dictionary<uint,byte[]>();
|
||||
info.needAck = new Dictionary<uint, byte[]>();
|
||||
|
||||
lock (m_needAck)
|
||||
{
|
||||
|
@ -6535,7 +6542,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
}
|
||||
}
|
||||
|
||||
/* pending
|
||||
/* pending
|
||||
QueItem[] queitems = m_packetQueue.GetQueueArray();
|
||||
|
||||
MainLog.Instance.Verbose("CLIENT", "Queue Count : [{0}]", queitems.Length);
|
||||
|
@ -6548,7 +6555,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
MainLog.Instance.Verbose("CLIENT", "Add OutPacket [{0}]", queitems[i].Packet.Type.ToString());
|
||||
}
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
||||
info.sequence = m_sequence;
|
||||
|
||||
|
@ -6561,7 +6568,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
{
|
||||
m_pendingAcks = info.pendingAcks;
|
||||
|
||||
m_needAck = new Dictionary<uint,Packet>();
|
||||
m_needAck = new Dictionary<uint, Packet>();
|
||||
|
||||
Packet packet = null;
|
||||
int packetEnd = 0;
|
||||
|
|
Loading…
Reference in New Issue