Set svn:ignore. Minor formatting cleanup.
parent
65c5efe43b
commit
9040213366
|
@ -74,7 +74,7 @@ namespace OpenSim.Data
|
||||||
}
|
}
|
||||||
public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) {
|
public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) {
|
||||||
aplist[user] = appearance;
|
aplist[user] = appearance;
|
||||||
m_log.Info("[APPEARANCE] Setting appearance for " + user.ToString() + appearance.ToString() );
|
m_log.Info("[APPEARANCE] Setting appearance for " + user.ToString() + appearance.ToString());
|
||||||
}
|
}
|
||||||
public abstract void AddAttachment(LLUUID user, LLUUID item);
|
public abstract void AddAttachment(LLUUID user, LLUUID item);
|
||||||
public abstract void RemoveAttachment(LLUUID user, LLUUID item);
|
public abstract void RemoveAttachment(LLUUID user, LLUUID item);
|
||||||
|
|
|
@ -839,8 +839,8 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
|
||||||
{
|
{
|
||||||
//m_log.Info("[SPLITSCENE] "+String.Format("UpdatePhysics called {0}", regionID));
|
//m_log.Info("[SPLITSCENE] "+String.Format("UpdatePhysics called {0}", regionID));
|
||||||
|
|
||||||
//m_log.Info("[SPLITSCENE] "+"LocalUpdatePhysics [region port:{0}, client:{1}, position:{2}, velocity:{3}, flying:{4}]",
|
//m_log.Info("[SPLITSCENE] "+"LocalUpdatePhysics [region port:{0}, client:{1}, position:{2}, velocity:{3}, flying:{4}]",
|
||||||
// regionPort, scenePresenceID.ToString(), position.ToString(),
|
// regionPort, scenePresenceID.ToString(), position.ToString(),
|
||||||
// velocity.ToString(), flying);
|
// velocity.ToString(), flying);
|
||||||
|
|
||||||
RegionInfo region = SearchRegionFromPortNum(regionPort);
|
RegionInfo region = SearchRegionFromPortNum(regionPort);
|
||||||
|
@ -857,7 +857,7 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// m_log.Info("[SPLITSCENE] "+"LocalUpdatePhysics [region:{0}, client:{1}]",
|
// m_log.Info("[SPLITSCENE] "+"LocalUpdatePhysics [region:{0}, client:{1}]",
|
||||||
// regionID.ToString(), pre.UUID.ToString());
|
// regionID.ToString(), pre.UUID.ToString());
|
||||||
|
|
||||||
pre.AbsolutePosition = position; // will set PhysicsActor.Position
|
pre.AbsolutePosition = position; // will set PhysicsActor.Position
|
||||||
|
@ -882,9 +882,9 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
|
||||||
{
|
{
|
||||||
LLClientView client = (LLClientView) pre.ControllingClient;
|
LLClientView client = (LLClientView) pre.ControllingClient;
|
||||||
|
|
||||||
// Because data changes by the physics simulation when the client doesn't move,
|
// Because data changes by the physics simulation when the client doesn't move,
|
||||||
// if MovementFlag is false, It is necessary to synchronize.
|
// if MovementFlag is false, It is necessary to synchronize.
|
||||||
//if (pre.MovementFlag!=0 && client.PacketProcessingEnabled==true)
|
//if (pre.MovementFlag!=0 && client.PacketProcessingEnabled==true)
|
||||||
if (client.IsActive)
|
if (client.IsActive)
|
||||||
{
|
{
|
||||||
//m_log.Info("[SPLITSCENE] "+String.Format("Client moving in {0} {1}", scene.RegionInfo.RegionID, pre.AbsolutePosition));
|
//m_log.Info("[SPLITSCENE] "+String.Format("Client moving in {0} {1}", scene.RegionInfo.RegionID, pre.AbsolutePosition));
|
||||||
|
@ -898,14 +898,14 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
|
||||||
|
|
||||||
if (isLocalNeighbour[i])
|
if (isLocalNeighbour[i])
|
||||||
{
|
{
|
||||||
//m_log.Info("[SPLITSCENE] "+"Synchronize ScenePresence (Local) [region:{0}=>{1}, client:{2}]",
|
//m_log.Info("[SPLITSCENE] "+"Synchronize ScenePresence (Local) [region:{0}=>{1}, client:{2}]",
|
||||||
// scene.RegionInfo.RegionID, regionPortList[i], pre.UUID.ToString());
|
// scene.RegionInfo.RegionID, regionPortList[i], pre.UUID.ToString());
|
||||||
LocalUpdatePhysics(regionPortList[i], pre.UUID, pre.AbsolutePosition, pre.Velocity, pre.PhysicsActor.Flying);
|
LocalUpdatePhysics(regionPortList[i], pre.UUID, pre.AbsolutePosition, pre.Velocity, pre.PhysicsActor.Flying);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//m_log.Info("[SPLITSCENE] "+"Synchronize ScenePresence (Remote) [region port:{0}, client:{1}, position:{2}, velocity:{3}, flying:{4}]",
|
//m_log.Info("[SPLITSCENE] "+"Synchronize ScenePresence (Remote) [region port:{0}, client:{1}, position:{2}, velocity:{3}, flying:{4}]",
|
||||||
// regionPortList[i], pre.UUID.ToString(), pre.AbsolutePosition.ToString(),
|
// regionPortList[i], pre.UUID.ToString(), pre.AbsolutePosition.ToString(),
|
||||||
// pre.Velocity.ToString(), pre.PhysicsActor.Flying);
|
// pre.Velocity.ToString(), pre.PhysicsActor.Flying);
|
||||||
|
|
||||||
|
|
||||||
|
@ -917,8 +917,8 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
|
||||||
/*
|
/*
|
||||||
byte[] buff = new byte[12+12+1];
|
byte[] buff = new byte[12+12+1];
|
||||||
|
|
||||||
Buffer.BlockCopy(pre.AbsolutePosition.GetBytes(), 0, buff, 0, 12);
|
Buffer.BlockCopy(pre.AbsolutePosition.GetBytes(), 0, buff, 0, 12);
|
||||||
Buffer.BlockCopy(pre.Velocity.GetBytes(), 0, buff, 12, 12);
|
Buffer.BlockCopy(pre.Velocity.GetBytes(), 0, buff, 12, 12);
|
||||||
buff[24] = (byte)((pre.PhysicsActor.Flying)?1:0);
|
buff[24] = (byte)((pre.PhysicsActor.Flying)?1:0);
|
||||||
|
|
||||||
// create header
|
// create header
|
||||||
|
@ -959,13 +959,13 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
|
||||||
|
|
||||||
if (isLocalNeighbour[i])
|
if (isLocalNeighbour[i])
|
||||||
{
|
{
|
||||||
//m_log.Info("[SPLITSCENE] "+"Synchronize Packet (Local) [type:{0}, client:{1}]",
|
//m_log.Info("[SPLITSCENE] "+"Synchronize Packet (Local) [type:{0}, client:{1}]",
|
||||||
// packet.Type.ToString(), agentID.ToString());
|
// packet.Type.ToString(), agentID.ToString());
|
||||||
LocalUpdatePacket(regionPortList[i], agentID, packet, throttlePacketType);
|
LocalUpdatePacket(regionPortList[i], agentID, packet, throttlePacketType);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//m_log.Info("[SPLITSCENE] "+"Synchronize Packet (Remote) [type:{0}, client:{1}]",
|
//m_log.Info("[SPLITSCENE] "+"Synchronize Packet (Remote) [type:{0}, client:{1}]",
|
||||||
// packet.Type.ToString(), agentID.ToString());
|
// packet.Type.ToString(), agentID.ToString());
|
||||||
// to bytes
|
// to bytes
|
||||||
byte[] buff = packet.ToBytes();
|
byte[] buff = packet.ToBytes();
|
||||||
|
@ -995,7 +995,7 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
|
||||||
|
|
||||||
RegionInfo region = SearchRegionFromPortNum(regionPort);
|
RegionInfo region = SearchRegionFromPortNum(regionPort);
|
||||||
|
|
||||||
// m_log.Info("[SPLITSCENE] "+"LocalUpdatePacket [region port:{0}, client:{1}, packet type:{2}]",
|
// m_log.Info("[SPLITSCENE] "+"LocalUpdatePacket [region port:{0}, client:{1}, packet type:{2}]",
|
||||||
// regionPort, agentID.ToString(), packet.GetType().ToString());
|
// regionPort, agentID.ToString(), packet.GetType().ToString());
|
||||||
|
|
||||||
if (sceneManager.TryGetScene(region.RegionID, out scene))
|
if (sceneManager.TryGetScene(region.RegionID, out scene))
|
||||||
|
|
|
@ -144,7 +144,7 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
|
||||||
{
|
{
|
||||||
//MainLog.Instance.Verbose("TCPSERVER", "Processing body");
|
//MainLog.Instance.Verbose("TCPSERVER", "Processing body");
|
||||||
|
|
||||||
// reading body
|
// reading body
|
||||||
byte[] packet = new byte[state.header.numbytes];
|
byte[] packet = new byte[state.header.numbytes];
|
||||||
state.ms_ptr.Position = current_pos + TcpClient.internalPacketHeaderSize;
|
state.ms_ptr.Position = current_pos + TcpClient.internalPacketHeaderSize;
|
||||||
state.ms_ptr.Read(packet, 0, state.header.numbytes);
|
state.ms_ptr.Read(packet, 0, state.header.numbytes);
|
||||||
|
|
Loading…
Reference in New Issue