Updates for appearance and attachments
parent
f5df61162f
commit
f2013d3c93
|
@ -577,7 +577,6 @@ namespace OpenSim.Client.MXP.ClientStack
|
||||||
public event BakeTerrain OnBakeTerrain;
|
public event BakeTerrain OnBakeTerrain;
|
||||||
public event EstateChangeInfo OnEstateChangeInfo;
|
public event EstateChangeInfo OnEstateChangeInfo;
|
||||||
public event SetAppearance OnSetAppearance;
|
public event SetAppearance OnSetAppearance;
|
||||||
public event SetAppearanceRaw OnSetAppearanceRaw;
|
|
||||||
public event AvatarNowWearing OnAvatarNowWearing;
|
public event AvatarNowWearing OnAvatarNowWearing;
|
||||||
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
||||||
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
||||||
|
|
|
@ -231,7 +231,6 @@ namespace OpenSim.Client.VWoHTTP.ClientStack
|
||||||
public event BakeTerrain OnBakeTerrain = delegate { };
|
public event BakeTerrain OnBakeTerrain = delegate { };
|
||||||
public event EstateChangeInfo OnEstateChangeInfo = delegate { };
|
public event EstateChangeInfo OnEstateChangeInfo = delegate { };
|
||||||
public event SetAppearance OnSetAppearance = delegate { };
|
public event SetAppearance OnSetAppearance = delegate { };
|
||||||
public event SetAppearanceRaw OnSetAppearanceRaw = delegate { };
|
|
||||||
public event AvatarNowWearing OnAvatarNowWearing = delegate { };
|
public event AvatarNowWearing OnAvatarNowWearing = delegate { };
|
||||||
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv = delegate { return new UUID(); };
|
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv = delegate { return new UUID(); };
|
||||||
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv = delegate { };
|
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv = delegate { };
|
||||||
|
|
|
@ -67,7 +67,6 @@ namespace OpenSim.Framework
|
||||||
public delegate void NetworkStats(int inPackets, int outPackets, int unAckedBytes);
|
public delegate void NetworkStats(int inPackets, int outPackets, int unAckedBytes);
|
||||||
|
|
||||||
public delegate void SetAppearance(IClientAPI remoteClient, Primitive.TextureEntry textureEntry, byte[] visualParams);
|
public delegate void SetAppearance(IClientAPI remoteClient, Primitive.TextureEntry textureEntry, byte[] visualParams);
|
||||||
public delegate void SetAppearanceRaw(IClientAPI sender, UUID agentID, byte[] vp, Primitive.TextureEntry te);
|
|
||||||
|
|
||||||
public delegate void StartAnim(IClientAPI remoteClient, UUID animID);
|
public delegate void StartAnim(IClientAPI remoteClient, UUID animID);
|
||||||
|
|
||||||
|
@ -716,7 +715,6 @@ namespace OpenSim.Framework
|
||||||
event EstateChangeInfo OnEstateChangeInfo;
|
event EstateChangeInfo OnEstateChangeInfo;
|
||||||
// [Obsolete("LLClientView Specific.")]
|
// [Obsolete("LLClientView Specific.")]
|
||||||
event SetAppearance OnSetAppearance;
|
event SetAppearance OnSetAppearance;
|
||||||
event SetAppearanceRaw OnSetAppearanceRaw;
|
|
||||||
// [Obsolete("LLClientView Specific - Replace and rename OnAvatarUpdate. Difference from SetAppearance?")]
|
// [Obsolete("LLClientView Specific - Replace and rename OnAvatarUpdate. Difference from SetAppearance?")]
|
||||||
event AvatarNowWearing OnAvatarNowWearing;
|
event AvatarNowWearing OnAvatarNowWearing;
|
||||||
event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
||||||
|
|
|
@ -83,7 +83,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
public event Action<IClientAPI> OnRegionHandShakeReply;
|
public event Action<IClientAPI> OnRegionHandShakeReply;
|
||||||
public event GenericCall1 OnRequestWearables;
|
public event GenericCall1 OnRequestWearables;
|
||||||
public event SetAppearance OnSetAppearance;
|
public event SetAppearance OnSetAppearance;
|
||||||
public event SetAppearanceRaw OnSetAppearanceRaw;
|
|
||||||
public event AvatarNowWearing OnAvatarNowWearing;
|
public event AvatarNowWearing OnAvatarNowWearing;
|
||||||
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
||||||
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
||||||
|
@ -5770,7 +5769,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
SetAppearance handlerSetAppearance = OnSetAppearance;
|
SetAppearance handlerSetAppearance = OnSetAppearance;
|
||||||
SetAppearanceRaw handlerSetAppearanceRaw = OnSetAppearanceRaw;
|
|
||||||
//if (handlerSetAppearance != null)
|
//if (handlerSetAppearance != null)
|
||||||
{
|
{
|
||||||
// Temporarily protect ourselves from the mantis #951 failure.
|
// Temporarily protect ourselves from the mantis #951 failure.
|
||||||
|
|
|
@ -293,10 +293,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
sp.Appearance = appearance;
|
sp.Appearance = appearance;
|
||||||
if (sp.Appearance.AvatarHeight > 0)
|
if (sp.Appearance.AvatarHeight > 0)
|
||||||
sp.SetHeight(sp.Appearance.AvatarHeight);
|
sp.SetHeight(sp.Appearance.AvatarHeight);
|
||||||
// Send the appearance to everyone in the scene
|
QueueAppearanceSend(agentid);
|
||||||
sp.SendAppearanceToAllOtherAgents();
|
|
||||||
// Send animations back to the avatar as well
|
|
||||||
sp.Animator.SendAnimPack();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -331,6 +328,8 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
m_log.WarnFormat("[AVFACTORY]: Agent {0} no longer in the scene", agentid);
|
m_log.WarnFormat("[AVFACTORY]: Agent {0} no longer in the scene", agentid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (sp.IsSyncedAvatar)
|
||||||
|
return;
|
||||||
|
|
||||||
// m_log.WarnFormat("[AVFACTORY] avatar {0} save appearance",agentid);
|
// m_log.WarnFormat("[AVFACTORY] avatar {0} save appearance",agentid);
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,6 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
public event ModifyTerrain OnModifyTerrain;
|
public event ModifyTerrain OnModifyTerrain;
|
||||||
public event BakeTerrain OnBakeTerrain;
|
public event BakeTerrain OnBakeTerrain;
|
||||||
public event SetAppearance OnSetAppearance;
|
public event SetAppearance OnSetAppearance;
|
||||||
public event SetAppearanceRaw OnSetAppearanceRaw;
|
|
||||||
public event AvatarNowWearing OnAvatarNowWearing;
|
public event AvatarNowWearing OnAvatarNowWearing;
|
||||||
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
||||||
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
||||||
|
|
|
@ -177,7 +177,6 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
RemoveLocalClient(kvp.Key, m_scene);
|
RemoveLocalClient(kvp.Key, m_scene);
|
||||||
// Remove the agent update handler from the client
|
// Remove the agent update handler from the client
|
||||||
kvp.Value.OnAgentUpdateRaw -= HandleAgentUpdateRaw;
|
kvp.Value.OnAgentUpdateRaw -= HandleAgentUpdateRaw;
|
||||||
kvp.Value.OnSetAppearanceRaw -= HandleSetAppearanceRaw;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -368,7 +367,7 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_log.DebugFormat("{0} Handle NewAvater for \"{1} {2}\"", LogHeader(), first, last);
|
m_log.DebugFormat("{0} Handle NewAvatar for \"{1} {2}\"", LogHeader(), first, last);
|
||||||
if (m_remoteAvatars.ContainsKey(agentID))
|
if (m_remoteAvatars.ContainsKey(agentID))
|
||||||
{
|
{
|
||||||
RegionSyncMessage.HandleWarning(LogHeader(), msg, String.Format("Attempted to add duplicate avatar \"{0} {1}\" ({2})", first, last, agentID.ToString()));
|
RegionSyncMessage.HandleWarning(LogHeader(), msg, String.Format("Attempted to add duplicate avatar \"{0} {1}\" ({2})", first, last, agentID.ToString()));
|
||||||
|
@ -681,6 +680,10 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we are receiving appearance for a presence connected here, ignore it.
|
||||||
|
// This is just a confirmation of appearance we sent to scene.
|
||||||
|
if (m_localAvatars.ContainsKey(agentID))
|
||||||
|
return;
|
||||||
// Tells the avatar factory to pull an updated appearance from the avatar service
|
// Tells the avatar factory to pull an updated appearance from the avatar service
|
||||||
m_scene.AvatarFactory.RefreshAppearance(agentID);
|
m_scene.AvatarFactory.RefreshAppearance(agentID);
|
||||||
|
|
||||||
|
@ -866,7 +869,6 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
// Register for interesting client events which will be forwarded to auth sim
|
// Register for interesting client events which will be forwarded to auth sim
|
||||||
// These are the raw packet data blocks from the client, intercepted and sent up to the sim
|
// These are the raw packet data blocks from the client, intercepted and sent up to the sim
|
||||||
client.OnAgentUpdateRaw += HandleAgentUpdateRaw;
|
client.OnAgentUpdateRaw += HandleAgentUpdateRaw;
|
||||||
client.OnSetAppearanceRaw += HandleSetAppearanceRaw;
|
|
||||||
client.OnChatFromClientRaw += HandleChatFromClientRaw;
|
client.OnChatFromClientRaw += HandleChatFromClientRaw;
|
||||||
client.OnAgentRequestSit += HandleAgentRequestSit;
|
client.OnAgentRequestSit += HandleAgentRequestSit;
|
||||||
client.OnAgentSit += HandleAgentSit;
|
client.OnAgentSit += HandleAgentSit;
|
||||||
|
@ -949,25 +951,6 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
Send(new RegionSyncMessage(RegionSyncMessage.MsgType.AgentUpdate, agentData));
|
Send(new RegionSyncMessage(RegionSyncMessage.MsgType.AgentUpdate, agentData));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HandleSetAppearanceRaw(object sender, UUID agentID, byte[] vp, Primitive.TextureEntry te)
|
|
||||||
{
|
|
||||||
// Try to find the scene presence we want to set the appearance for
|
|
||||||
ScenePresence sp;
|
|
||||||
string name = "NOT FOUND";
|
|
||||||
if (m_scene.TryGetScenePresence(agentID, out sp))
|
|
||||||
name = sp.Name;
|
|
||||||
m_log.WarnFormat("{0} Received LLClientView.SetAppearance ({1,3},{2,2}) for {3} (\"{4}\")", LogHeader(), vp.Length.ToString(), (te == null) ? "" : "te", agentID.ToString(), sp.Name);
|
|
||||||
if (sp == null)
|
|
||||||
{
|
|
||||||
m_log.WarnFormat("{0} Scene presence could not be found to set appearance.", LogHeader());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the appearance on the presence. This will generate the needed exchange with the client if rebakes need to take place.
|
|
||||||
m_log.WarnFormat("{0} Setting appearance on ScenePresence {1} \"{2}\"", LogHeader(), sp.UUID, sp.Name);
|
|
||||||
m_scene.AvatarFactory.SetAppearance(sp.ControllingClient, te, vp);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void HandleAgentRequestSit(object sender, UUID agentID, UUID targetID, Vector3 offset)
|
public void HandleAgentRequestSit(object sender, UUID agentID, UUID targetID, Vector3 offset)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("{0} HandleAgentRequestSit for {1}", LogHeader(), agentID.ToString());
|
m_log.DebugFormat("{0} HandleAgentRequestSit for {1}", LogHeader(), agentID.ToString());
|
||||||
|
@ -1168,7 +1151,6 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
// Register for interesting client events which will be forwarded to auth sim
|
// Register for interesting client events which will be forwarded to auth sim
|
||||||
// These are the raw packet data blocks from the client, intercepted and sent up to the sim
|
// These are the raw packet data blocks from the client, intercepted and sent up to the sim
|
||||||
client.OnAgentUpdateRaw += HandleAgentUpdateRaw;
|
client.OnAgentUpdateRaw += HandleAgentUpdateRaw;
|
||||||
client.OnSetAppearanceRaw += HandleSetAppearanceRaw;
|
|
||||||
client.OnChatFromClientRaw += HandleChatFromClientRaw;
|
client.OnChatFromClientRaw += HandleChatFromClientRaw;
|
||||||
presence.IsSyncedAvatar = false;
|
presence.IsSyncedAvatar = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,6 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||||
public event ModifyTerrain OnModifyTerrain;
|
public event ModifyTerrain OnModifyTerrain;
|
||||||
public event BakeTerrain OnBakeTerrain;
|
public event BakeTerrain OnBakeTerrain;
|
||||||
public event SetAppearance OnSetAppearance;
|
public event SetAppearance OnSetAppearance;
|
||||||
public event SetAppearanceRaw OnSetAppearanceRaw;
|
|
||||||
public event AvatarNowWearing OnAvatarNowWearing;
|
public event AvatarNowWearing OnAvatarNowWearing;
|
||||||
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
||||||
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
||||||
|
|
|
@ -547,13 +547,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
public void LoadPrimsFromStorageInGivenSpace(string regionName, float minX, float minY, float maxX, float maxY)
|
public void LoadPrimsFromStorageInGivenSpace(string regionName, float minX, float minY, float maxX, float maxY)
|
||||||
{
|
{
|
||||||
m_log.Info("[SCENE]: Loading objects from datastore");
|
m_log.InfoFormat("[SCENE ({0})]: Loading objects from datastore", regionName);
|
||||||
|
|
||||||
GridRegion regionInfo = GridService.GetRegionByName(UUID.Zero, regionName);
|
GridRegion regionInfo = GridService.GetRegionByName(UUID.Zero, regionName);
|
||||||
//TODO: need to load objects from the specified space
|
//TODO: need to load objects from the specified space
|
||||||
List<SceneObjectGroup> PrimsFromDB = m_SimulationDataService.LoadObjectsInGivenSpace(regionInfo.RegionID, minX, minY, maxX, maxY);
|
List<SceneObjectGroup> PrimsFromDB = m_SimulationDataService.LoadObjectsInGivenSpace(regionInfo.RegionID, minX, minY, maxX, maxY);
|
||||||
|
|
||||||
m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count + " objects from the datastore");
|
m_log.InfoFormat("[SCENE ({0})]: Loaded " + PrimsFromDB.Count + " objects from the datastore", regionName);
|
||||||
|
|
||||||
foreach (SceneObjectGroup group in PrimsFromDB)
|
foreach (SceneObjectGroup group in PrimsFromDB)
|
||||||
{
|
{
|
||||||
|
@ -570,7 +570,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
group.CheckSculptAndLoad();
|
group.CheckSculptAndLoad();
|
||||||
//rootPart.DoPhysicsPropertyUpdate(UsePhysics, true);
|
//rootPart.DoPhysicsPropertyUpdate(UsePhysics, true);
|
||||||
}
|
}
|
||||||
m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count.ToString() + " SceneObject(s)");
|
m_log.InfoFormat("[SCENE ({0})]: Loaded " + PrimsFromDB.Count.ToString() + " SceneObject(s)", regionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
//public void ToInformActorsLoadOar()
|
//public void ToInformActorsLoadOar()
|
||||||
|
@ -1277,7 +1277,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// This is the method that shuts down the scene.
|
// This is the method that shuts down the scene.
|
||||||
public override void Close()
|
public override void Close()
|
||||||
{
|
{
|
||||||
m_log.InfoFormat("[SCENE]: Closing down the single simulator: {0}", RegionInfo.RegionName);
|
m_log.InfoFormat("[SCENE]: Closing down the single simulator: {0}", m_regionName);
|
||||||
|
|
||||||
m_restartTimer.Stop();
|
m_restartTimer.Stop();
|
||||||
m_restartTimer.Close();
|
m_restartTimer.Close();
|
||||||
|
@ -1304,7 +1304,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
//m_heartbeatTimer.Close();
|
//m_heartbeatTimer.Close();
|
||||||
shuttingdown = true;
|
shuttingdown = true;
|
||||||
|
|
||||||
m_log.Debug("[SCENE]: Persisting changed objects");
|
m_log.DebugFormat("[SCENE ({0})]: Persisting changed objects", m_regionName);
|
||||||
EntityBase[] entities = GetEntities();
|
EntityBase[] entities = GetEntities();
|
||||||
foreach (EntityBase entity in entities)
|
foreach (EntityBase entity in entities)
|
||||||
{
|
{
|
||||||
|
@ -2034,7 +2034,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <param name="regionID">Unique Identifier of the Region to load parcel data for</param>
|
/// <param name="regionID">Unique Identifier of the Region to load parcel data for</param>
|
||||||
public void loadAllLandObjectsFromStorage(UUID regionID)
|
public void loadAllLandObjectsFromStorage(UUID regionID)
|
||||||
{
|
{
|
||||||
m_log.Info("[SCENE]: Loading land objects from storage");
|
m_log.InfoFormat("[SCENE ({0})]: Loading land objects from storage", m_regionName);
|
||||||
List<LandData> landData = SimulationDataService.LoadLandObjects(regionID);
|
List<LandData> landData = SimulationDataService.LoadLandObjects(regionID);
|
||||||
|
|
||||||
if (LandChannel != null)
|
if (LandChannel != null)
|
||||||
|
@ -2064,11 +2064,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public virtual void LoadPrimsFromStorage(UUID regionID)
|
public virtual void LoadPrimsFromStorage(UUID regionID)
|
||||||
{
|
{
|
||||||
LoadingPrims = true;
|
LoadingPrims = true;
|
||||||
m_log.Info("[SCENE]: Loading objects from datastore");
|
m_log.InfoFormat("[SCENE ({0})]: Loading objects from datastore", m_regionName);
|
||||||
|
|
||||||
List<SceneObjectGroup> PrimsFromDB = SimulationDataService.LoadObjects(regionID);
|
List<SceneObjectGroup> PrimsFromDB = SimulationDataService.LoadObjects(regionID);
|
||||||
|
|
||||||
m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count + " objects from the datastore");
|
m_log.InfoFormat("[SCENE ({0})]: Loaded " + PrimsFromDB.Count + " objects from the datastore", m_regionName);
|
||||||
|
|
||||||
foreach (SceneObjectGroup group in PrimsFromDB)
|
foreach (SceneObjectGroup group in PrimsFromDB)
|
||||||
{
|
{
|
||||||
|
@ -2089,7 +2089,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
//rootPart.DoPhysicsPropertyUpdate(UsePhysics, true);
|
//rootPart.DoPhysicsPropertyUpdate(UsePhysics, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count.ToString() + " SceneObject(s)");
|
m_log.InfoFormat("[SCENE ({0})]: Loaded " + PrimsFromDB.Count.ToString() + " SceneObject(s)", m_regionName);
|
||||||
LoadingPrims = false;
|
LoadingPrims = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2708,7 +2708,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
if (!AddSceneObject(newObject))
|
if (!AddSceneObject(newObject))
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SCENE]: Problem adding scene object {0} in {1} ", sog.UUID, RegionInfo.RegionName);
|
m_log.DebugFormat("[SCENE ({0})]: Problem adding scene object {1} ", RegionInfo.RegionName, sog.UUID);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2878,7 +2878,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
if (m_restorePresences.ContainsKey(client.AgentId))
|
if (m_restorePresences.ContainsKey(client.AgentId))
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SCENE]: Restoring agent {0} {1} in {2}", client.Name, client.AgentId, RegionInfo.RegionName);
|
m_log.DebugFormat("[SCENE ({0})]: Restoring agent {1} ({2})", m_regionName, client.Name, client.AgentId);
|
||||||
|
|
||||||
m_clientManager.Add(client);
|
m_clientManager.Add(client);
|
||||||
SubscribeToClientEvents(client);
|
SubscribeToClientEvents(client);
|
||||||
|
@ -2912,7 +2912,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
if (GetScenePresence(client.AgentId) == null) // ensure there is no SP here
|
if (GetScenePresence(client.AgentId) == null) // ensure there is no SP here
|
||||||
{
|
{
|
||||||
m_log.Debug("[SCENE]: Adding new agent " + client.Name + " to scene " + RegionInfo.RegionName);
|
m_log.DebugFormat("[SCENE ({0})]: Adding new agent {1} ({2}) to scene.", m_regionName, client.Name, client.AgentId);
|
||||||
|
|
||||||
m_clientManager.Add(client);
|
m_clientManager.Add(client);
|
||||||
SubscribeToClientEvents(client);
|
SubscribeToClientEvents(client);
|
||||||
|
@ -2967,8 +2967,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
else if ((aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaLogin) != 0)
|
else if ((aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaLogin) != 0)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SCENE]: Incoming client {0} {1} in region {2} via regular login. Client IP verification not performed.",
|
m_log.DebugFormat("[SCENE ({0})]: Incoming client {1} {2} via regular login. Client IP verification not performed.",
|
||||||
aCircuit.firstname, aCircuit.lastname, RegionInfo.RegionName);
|
m_regionName, aCircuit.firstname, aCircuit.lastname);
|
||||||
vialogin = true;
|
vialogin = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4080,14 +4080,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.ErrorFormat("[SCENE]: Unable to do agent crossing, exception {0}", e);
|
m_log.ErrorFormat("[SCENE ({0})]: Unable to do agent crossing, exception {1}", m_regionName, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_log.ErrorFormat(
|
m_log.ErrorFormat(
|
||||||
"[SCENE]: Could not find presence for agent {0} crossing into scene {1}",
|
"[SCENE ({0})]: Could not find presence for agent {1} crossing into scene {2}",
|
||||||
agentID, RegionInfo.RegionName);
|
m_regionName, agentID, m_regionName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4101,7 +4101,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public virtual bool IncomingChildAgentDataUpdate(AgentData cAgentData)
|
public virtual bool IncomingChildAgentDataUpdate(AgentData cAgentData)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[SCENE]: Incoming child agent update for {0} in {1}", cAgentData.AgentID, RegionInfo.RegionName);
|
"[SCENE ({0})]: Incoming child agent update for {1}", m_regionName, cAgentData.AgentID);
|
||||||
|
|
||||||
// XPTO: if this agent is not allowed here as root, always return false
|
// XPTO: if this agent is not allowed here as root, always return false
|
||||||
|
|
||||||
|
|
|
@ -3146,7 +3146,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
ClearUpdateSchedule();
|
ClearUpdateSchedule();
|
||||||
|
|
||||||
//SYMMETRIC SYNC
|
//SYMMETRIC SYNC
|
||||||
|
if (m_parentGroup.Scene.RegionSyncModule == null)
|
||||||
|
return;
|
||||||
m_parentGroup.Scene.RegionSyncModule.QueueSceneObjectPartForUpdate(this);
|
m_parentGroup.Scene.RegionSyncModule.QueueSceneObjectPartForUpdate(this);
|
||||||
|
|
||||||
//end of SYMMETRIC SYNC
|
//end of SYMMETRIC SYNC
|
||||||
|
@ -4947,6 +4948,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
public void SyncInfoUpdate()
|
public void SyncInfoUpdate()
|
||||||
{
|
{
|
||||||
|
if (m_parentGroup.Scene.ActorSyncModule == null || m_parentGroup.Scene.ActorSyncModule.ActorID == null)
|
||||||
|
return;
|
||||||
//Trick: calling UpdateTimestamp here makes sure that when an object was received and de-serialized, before
|
//Trick: calling UpdateTimestamp here makes sure that when an object was received and de-serialized, before
|
||||||
// its parts are linked together, neither TimeStamp or ActorID will be modified. This is because during de-serialization,
|
// its parts are linked together, neither TimeStamp or ActorID will be modified. This is because during de-serialization,
|
||||||
// ScheduleFullUpdate() is called when m_parentGroup == null
|
// ScheduleFullUpdate() is called when m_parentGroup == null
|
||||||
|
|
|
@ -70,7 +70,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
// ~ScenePresence()
|
// ~ScenePresence()
|
||||||
// {
|
// {
|
||||||
// m_log.Debug("[ScenePresence] Destructor called");
|
// m_log.Debug("[SCENE PRESENCE] Destructor called");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
@ -1183,7 +1183,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_callbackURI = null;
|
m_callbackURI = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
//m_log.DebugFormat("Completed movement");
|
m_log.DebugFormat("[SCENE PRESENCE] Completed movement");
|
||||||
|
|
||||||
m_controllingClient.MoveAgentIntoRegion(m_regionInfo, AbsolutePosition, look);
|
m_controllingClient.MoveAgentIntoRegion(m_regionInfo, AbsolutePosition, look);
|
||||||
SendInitialData();
|
SendInitialData();
|
||||||
|
@ -1598,7 +1598,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
//Avoid system crash, can be slower but...
|
//Avoid system crash, can be slower but...
|
||||||
m_log.DebugFormat("Crash! {0}", e.ToString());
|
m_log.DebugFormat("[SCENE PRESENCE] Crash! {0}", e.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2476,7 +2476,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void SendInitialData()
|
private void SendInitialData()
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SP] SendInitialData: {0} ({1})", Name, UUID);
|
m_log.DebugFormat("[SCENE PRESENCE] SendInitialData: {0} ({1})", Name, UUID);
|
||||||
// Moved this into CompleteMovement to ensure that m_appearance is initialized before
|
// Moved this into CompleteMovement to ensure that m_appearance is initialized before
|
||||||
// the inventory arrives
|
// the inventory arrives
|
||||||
// m_scene.GetAvatarAppearance(m_controllingClient, out m_appearance);
|
// m_scene.GetAvatarAppearance(m_controllingClient, out m_appearance);
|
||||||
|
@ -2527,7 +2527,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void SendAvatarDataToAllAgents()
|
public void SendAvatarDataToAllAgents()
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SP] SendAvatarDataToAllAgents: {0} ({1})", Name, UUID);
|
m_log.DebugFormat("[SCENE PRESENCE] SendAvatarDataToAllAgents: {0} ({1})", Name, UUID);
|
||||||
// REGION SYNC
|
// REGION SYNC
|
||||||
// The server sends appearance to all client managers since there are no local clients
|
// The server sends appearance to all client managers since there are no local clients
|
||||||
if (m_scene.IsSyncedServer())
|
if (m_scene.IsSyncedServer())
|
||||||
|
@ -2593,7 +2593,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <param name="avatar"></param>
|
/// <param name="avatar"></param>
|
||||||
public void SendAvatarDataToAgent(ScenePresence avatar)
|
public void SendAvatarDataToAgent(ScenePresence avatar)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SP] SendAvatarDataToAgent from {0} ({1}) to {2} ({3})", Name, UUID, avatar.Name, avatar.UUID);
|
m_log.DebugFormat("[SCENE PRESENCE] SendAvatarDataToAgent from {0} ({1}) to {2} ({3})", Name, UUID, avatar.Name, avatar.UUID);
|
||||||
|
|
||||||
avatar.ControllingClient.SendAvatarDataImmediate(this);
|
avatar.ControllingClient.SendAvatarDataImmediate(this);
|
||||||
Animator.SendAnimPackToClient(avatar.ControllingClient);
|
Animator.SendAnimPackToClient(avatar.ControllingClient);
|
||||||
|
@ -2605,7 +2605,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void SendAppearanceToAllOtherAgents()
|
public void SendAppearanceToAllOtherAgents()
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SP] SendAppearanceToAllOtherAgents: {0} ({1})", Name, UUID);
|
m_log.DebugFormat("[SCENE PRESENCE] SendAppearanceToAllOtherAgents: {0} ({1})", Name, UUID);
|
||||||
// REGION SYNC
|
// REGION SYNC
|
||||||
// The server should not be doing anything via the ForEachScenePresence method
|
// The server should not be doing anything via the ForEachScenePresence method
|
||||||
if (m_scene.IsSyncedServer())
|
if (m_scene.IsSyncedServer())
|
||||||
|
@ -2642,7 +2642,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void SendOtherAgentsAppearanceToMe()
|
public void SendOtherAgentsAppearanceToMe()
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SP] SendOtherAgentsAppearanceToMe: {0} ({1})", Name, UUID);
|
m_log.DebugFormat("[SCENE PRESENCE] SendOtherAgentsAppearanceToMe: {0} ({1})", Name, UUID);
|
||||||
m_perfMonMS = Util.EnvironmentTickCount();
|
m_perfMonMS = Util.EnvironmentTickCount();
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
@ -2669,7 +2669,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <param name="avatar"></param>
|
/// <param name="avatar"></param>
|
||||||
public void SendAppearanceToAgent(ScenePresence avatar)
|
public void SendAppearanceToAgent(ScenePresence avatar)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[SP] SendAppearanceToAgent from {0} ({1}) to {2} ({3})", Name, UUID, avatar.Name, avatar.UUID);
|
m_log.DebugFormat("[SCENE PRESENCE] SendAppearanceToAgent from {0} ({1}) to {2} ({3})", Name, UUID, avatar.Name, avatar.UUID);
|
||||||
|
|
||||||
avatar.ControllingClient.SendAppearance(
|
avatar.ControllingClient.SendAppearance(
|
||||||
m_appearance.Owner, m_appearance.VisualParams, m_appearance.Texture.GetBytes());
|
m_appearance.Owner, m_appearance.VisualParams, m_appearance.Texture.GetBytes());
|
||||||
|
@ -3824,7 +3824,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_log.WarnFormat("[ATTACHMENT]: Appearance has not been initialized for agent {0}", UUID);
|
m_log.WarnFormat("[ATTACHMENT]: Appearance has not been initialized for agent {0}", UUID);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
m_log.DebugFormat("[ATTACHMENT]: Rezzing attachments for scene presence {0} ({1})", Name, UUID);
|
||||||
List<AvatarAttachment> attachments = m_appearance.GetAttachments();
|
List<AvatarAttachment> attachments = m_appearance.GetAttachments();
|
||||||
foreach (AvatarAttachment attach in attachments)
|
foreach (AvatarAttachment attach in attachments)
|
||||||
{
|
{
|
||||||
|
|
|
@ -662,7 +662,6 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
|
||||||
public event BakeTerrain OnBakeTerrain;
|
public event BakeTerrain OnBakeTerrain;
|
||||||
public event EstateChangeInfo OnEstateChangeInfo;
|
public event EstateChangeInfo OnEstateChangeInfo;
|
||||||
public event SetAppearance OnSetAppearance;
|
public event SetAppearance OnSetAppearance;
|
||||||
public event SetAppearanceRaw OnSetAppearanceRaw;
|
|
||||||
public event AvatarNowWearing OnAvatarNowWearing;
|
public event AvatarNowWearing OnAvatarNowWearing;
|
||||||
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
||||||
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
||||||
|
|
|
@ -170,7 +170,6 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||||
public event RezObject OnRezObject;
|
public event RezObject OnRezObject;
|
||||||
public event ModifyTerrain OnModifyTerrain;
|
public event ModifyTerrain OnModifyTerrain;
|
||||||
public event SetAppearance OnSetAppearance;
|
public event SetAppearance OnSetAppearance;
|
||||||
public event SetAppearanceRaw OnSetAppearanceRaw;
|
|
||||||
public event AvatarNowWearing OnAvatarNowWearing;
|
public event AvatarNowWearing OnAvatarNowWearing;
|
||||||
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
||||||
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
||||||
|
|
|
@ -74,7 +74,6 @@ namespace OpenSim.Tests.Common.Mock
|
||||||
public event ModifyTerrain OnModifyTerrain;
|
public event ModifyTerrain OnModifyTerrain;
|
||||||
public event BakeTerrain OnBakeTerrain;
|
public event BakeTerrain OnBakeTerrain;
|
||||||
public event SetAppearance OnSetAppearance;
|
public event SetAppearance OnSetAppearance;
|
||||||
public event SetAppearanceRaw OnSetAppearanceRaw;
|
|
||||||
public event AvatarNowWearing OnAvatarNowWearing;
|
public event AvatarNowWearing OnAvatarNowWearing;
|
||||||
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
public event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
|
||||||
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
public event RezMultipleAttachmentsFromInv OnRezMultipleAttachmentsFromInv;
|
||||||
|
|
Loading…
Reference in New Issue