diff options
Diffstat (limited to 'OpenSim/Region')
8 files changed, 23 insertions, 22 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index cdd4957..8273c6f 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -4439,7 +4439,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4439 | EstateCovenantReplyPacket einfopack = new EstateCovenantReplyPacket(); | 4439 | EstateCovenantReplyPacket einfopack = new EstateCovenantReplyPacket(); |
4440 | EstateCovenantReplyPacket.DataBlock edata = new EstateCovenantReplyPacket.DataBlock(); | 4440 | EstateCovenantReplyPacket.DataBlock edata = new EstateCovenantReplyPacket.DataBlock(); |
4441 | edata.CovenantID = covenant; | 4441 | edata.CovenantID = covenant; |
4442 | edata.CovenantTimestamp = 0; | 4442 | edata.CovenantTimestamp = (uint) m_scene.RegionInfo.RegionSettings.CovenantChangedDateTime; |
4443 | edata.EstateOwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner; | 4443 | edata.EstateOwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner; |
4444 | edata.EstateName = Utils.StringToBytes(m_scene.RegionInfo.EstateSettings.EstateName); | 4444 | edata.EstateName = Utils.StringToBytes(m_scene.RegionInfo.EstateSettings.EstateName); |
4445 | einfopack.Data = edata; | 4445 | einfopack.Data = edata; |
@@ -4447,8 +4447,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4447 | } | 4447 | } |
4448 | 4448 | ||
4449 | public void SendDetailedEstateData( | 4449 | public void SendDetailedEstateData( |
4450 | UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, | 4450 | UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, |
4451 | UUID covenant, string abuseEmail, UUID estateOwner) | 4451 | UUID covenant, uint covenantChanged, string abuseEmail, UUID estateOwner) |
4452 | { | 4452 | { |
4453 | // m_log.DebugFormat( | 4453 | // m_log.DebugFormat( |
4454 | // "[LLCLIENTVIEW]: Sending detailed estate data to {0} with covenant asset id {1}", Name, covenant); | 4454 | // "[LLCLIENTVIEW]: Sending detailed estate data to {0} with covenant asset id {1}", Name, covenant); |
@@ -4473,7 +4473,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4473 | returnblock[4].Parameter = Utils.StringToBytes(sunPosition.ToString()); | 4473 | returnblock[4].Parameter = Utils.StringToBytes(sunPosition.ToString()); |
4474 | returnblock[5].Parameter = Utils.StringToBytes(parentEstate.ToString()); | 4474 | returnblock[5].Parameter = Utils.StringToBytes(parentEstate.ToString()); |
4475 | returnblock[6].Parameter = Utils.StringToBytes(covenant.ToString()); | 4475 | returnblock[6].Parameter = Utils.StringToBytes(covenant.ToString()); |
4476 | returnblock[7].Parameter = Utils.StringToBytes("1160895077"); // what is this? | 4476 | returnblock[7].Parameter = Utils.StringToBytes(covenantChanged.ToString()); |
4477 | returnblock[8].Parameter = Utils.StringToBytes("1"); // what is this? | 4477 | returnblock[8].Parameter = Utils.StringToBytes("1"); // what is this? |
4478 | returnblock[9].Parameter = Utils.StringToBytes(abuseEmail); | 4478 | returnblock[9].Parameter = Utils.StringToBytes(abuseEmail); |
4479 | 4479 | ||
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index 36ecb3b..5238325 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |||
@@ -415,7 +415,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
415 | { | 415 | { |
416 | int majorVersion, minorVersion; | 416 | int majorVersion, minorVersion; |
417 | 417 | ||
418 | if (options.ContainsKey("profile")) | 418 | if (options.ContainsKey("home")) |
419 | { | 419 | { |
420 | majorVersion = 1; | 420 | majorVersion = 1; |
421 | minorVersion = 2; | 421 | minorVersion = 2; |
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs index 09b4ba6..a81f36c 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs | |||
@@ -122,7 +122,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
122 | 122 | ||
123 | scene.AddCommand( | 123 | scene.AddCommand( |
124 | this, "save iar", | 124 | this, "save iar", |
125 | "save iar [-p|--profile=<url>] [--noassets] <first> <last> <inventory path> <password> [<IAR path>] [-c|--creators] [-v|--verbose]", | 125 | "save iar [-h|--home=<url>] [--noassets] <first> <last> <inventory path> <password> [<IAR path>] [-c|--creators] [-v|--verbose]", |
126 | "Save user inventory archive (IAR).", | 126 | "Save user inventory archive (IAR).", |
127 | "<first> is the user's first name." + Environment.NewLine | 127 | "<first> is the user's first name." + Environment.NewLine |
128 | + "<last> is the user's last name." + Environment.NewLine | 128 | + "<last> is the user's last name." + Environment.NewLine |
@@ -396,7 +396,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
396 | 396 | ||
397 | OptionSet ops = new OptionSet(); | 397 | OptionSet ops = new OptionSet(); |
398 | //ops.Add("v|version=", delegate(string v) { options["version"] = v; }); | 398 | //ops.Add("v|version=", delegate(string v) { options["version"] = v; }); |
399 | ops.Add("p|profile=", delegate(string v) { options["profile"] = v; }); | 399 | ops.Add("h|home=", delegate(string v) { options["home"] = v; }); |
400 | ops.Add("v|verbose", delegate(string v) { options["verbose"] = v; }); | 400 | ops.Add("v|verbose", delegate(string v) { options["verbose"] = v; }); |
401 | ops.Add("c|creators", delegate(string v) { options["creators"] = v; }); | 401 | ops.Add("c|creators", delegate(string v) { options["creators"] = v; }); |
402 | ops.Add("noassets", delegate(string v) { options["noassets"] = v != null; }); | 402 | ops.Add("noassets", delegate(string v) { options["noassets"] = v != null; }); |
@@ -408,13 +408,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
408 | if (mainParams.Count < 6) | 408 | if (mainParams.Count < 6) |
409 | { | 409 | { |
410 | m_log.Error( | 410 | m_log.Error( |
411 | "[INVENTORY ARCHIVER]: usage is save iar [-p|--profile=<url>] [--noassets] <first name> <last name> <inventory path> <user password> [<save file path>] [-c|--creators] [-v|--verbose]"); | 411 | "[INVENTORY ARCHIVER]: usage is save iar [-h|--home=<url>] [--noassets] <first name> <last name> <inventory path> <user password> [<save file path>] [-c|--creators] [-v|--verbose]"); |
412 | return; | 412 | return; |
413 | } | 413 | } |
414 | 414 | ||
415 | m_log.Info("[INVENTORY ARCHIVER]: PLEASE NOTE THAT THIS FACILITY IS EXPERIMENTAL. BUG REPORTS WELCOME."); | 415 | m_log.Info("[INVENTORY ARCHIVER]: PLEASE NOTE THAT THIS FACILITY IS EXPERIMENTAL. BUG REPORTS WELCOME."); |
416 | if (options.ContainsKey("profile")) | 416 | if (options.ContainsKey("home")) |
417 | m_log.WarnFormat("[INVENTORY ARCHIVER]: Please be aware that inventory archives with creator information are not compatible with OpenSim 0.7.0.2 and earlier. Do not use the -profile option if you want to produce a compatible IAR"); | 417 | m_log.WarnFormat("[INVENTORY ARCHIVER]: Please be aware that inventory archives with creator information are not compatible with OpenSim 0.7.0.2 and earlier. Do not use the -home option if you want to produce a compatible IAR"); |
418 | 418 | ||
419 | string firstName = mainParams[2]; | 419 | string firstName = mainParams[2]; |
420 | string lastName = mainParams[3]; | 420 | string lastName = mainParams[3]; |
diff --git a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs index 948aac8..8e29e3c 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs | |||
@@ -310,10 +310,10 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
310 | 310 | ||
311 | protected AssetBase PostProcess(AssetBase asset) | 311 | protected AssetBase PostProcess(AssetBase asset) |
312 | { | 312 | { |
313 | if (asset.Type == (sbyte)AssetType.Object && asset.Data != null && m_options.ContainsKey("profile")) | 313 | if (asset.Type == (sbyte)AssetType.Object && asset.Data != null && m_options.ContainsKey("home")) |
314 | { | 314 | { |
315 | //m_log.DebugFormat("[ARCHIVER]: Rewriting object data for {0}", asset.ID); | 315 | //m_log.DebugFormat("[ARCHIVER]: Rewriting object data for {0}", asset.ID); |
316 | string xml = ExternalRepresentationUtils.RewriteSOP(Utils.BytesToString(asset.Data), m_options["profile"].ToString(), m_userAccountService, m_scopeID); | 316 | string xml = ExternalRepresentationUtils.RewriteSOP(Utils.BytesToString(asset.Data), m_options["home"].ToString(), m_userAccountService, m_scopeID); |
317 | asset.Data = Utils.StringToBytes(xml); | 317 | asset.Data = Utils.StringToBytes(xml); |
318 | } | 318 | } |
319 | return asset; | 319 | return asset; |
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 2e1487f..c303d6d 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -80,6 +80,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
80 | GetEstateFlags(), | 80 | GetEstateFlags(), |
81 | sun, | 81 | sun, |
82 | Scene.RegionInfo.RegionSettings.Covenant, | 82 | Scene.RegionInfo.RegionSettings.Covenant, |
83 | (uint) Scene.RegionInfo.RegionSettings.CovenantChangedDateTime, | ||
83 | Scene.RegionInfo.EstateSettings.AbuseEmail, | 84 | Scene.RegionInfo.EstateSettings.AbuseEmail, |
84 | estateOwner); | 85 | estateOwner); |
85 | 86 | ||
@@ -268,6 +269,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
268 | // remoteClient.Name, estateCovenantID); | 269 | // remoteClient.Name, estateCovenantID); |
269 | 270 | ||
270 | Scene.RegionInfo.RegionSettings.Covenant = estateCovenantID; | 271 | Scene.RegionInfo.RegionSettings.Covenant = estateCovenantID; |
272 | Scene.RegionInfo.RegionSettings.CovenantChangedDateTime = Util.UnixTimeSinceEpoch(); | ||
271 | Scene.RegionInfo.RegionSettings.Save(); | 273 | Scene.RegionInfo.RegionSettings.Save(); |
272 | TriggerRegionInfoChange(); | 274 | TriggerRegionInfoChange(); |
273 | } | 275 | } |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 27bcc09..0e899ca 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2729,10 +2729,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2729 | if (ParentGroup == null) | 2729 | if (ParentGroup == null) |
2730 | return; | 2730 | return; |
2731 | 2731 | ||
2732 | // When running OpenSim tests, Scene (and EventManager can be null). | ||
2733 | // Need to fix tests before we can trigger this here | ||
2734 | // ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | ||
2735 | |||
2736 | ParentGroup.QueueForUpdateCheck(); | 2732 | ParentGroup.QueueForUpdateCheck(); |
2737 | 2733 | ||
2738 | int timeNow = Util.UnixTimeSinceEpoch(); | 2734 | int timeNow = Util.UnixTimeSinceEpoch(); |
@@ -2754,6 +2750,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2754 | // m_log.DebugFormat( | 2750 | // m_log.DebugFormat( |
2755 | // "[SCENE OBJECT PART]: Scheduling full update for {0}, {1} at {2}", | 2751 | // "[SCENE OBJECT PART]: Scheduling full update for {0}, {1} at {2}", |
2756 | // UUID, Name, TimeStampFull); | 2752 | // UUID, Name, TimeStampFull); |
2753 | |||
2754 | if (ParentGroup.Scene != null) | ||
2755 | ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | ||
2757 | } | 2756 | } |
2758 | 2757 | ||
2759 | /// <summary> | 2758 | /// <summary> |
@@ -2765,15 +2764,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
2765 | if (ParentGroup == null) | 2764 | if (ParentGroup == null) |
2766 | return; | 2765 | return; |
2767 | 2766 | ||
2768 | // When running OpenSim tests, Scene (and EventManager can be null). | ||
2769 | // Need to fix tests before we can trigger this here | ||
2770 | // ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | ||
2771 | |||
2772 | // This was pulled from SceneViewer. Attachments always receive full updates. | 2767 | // This was pulled from SceneViewer. Attachments always receive full updates. |
2773 | // I could not verify if this is a requirement but this maintains existing behavior | 2768 | // I could not verify if this is a requirement but this maintains existing behavior |
2774 | if (ParentGroup.IsAttachment) | 2769 | if (ParentGroup.IsAttachment) |
2775 | { | 2770 | { |
2776 | ScheduleFullUpdate(); | 2771 | ScheduleFullUpdate(); |
2772 | return; | ||
2777 | } | 2773 | } |
2778 | 2774 | ||
2779 | if (UpdateFlag == UpdateRequired.NONE) | 2775 | if (UpdateFlag == UpdateRequired.NONE) |
@@ -2788,6 +2784,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2788 | // "[SCENE OBJECT PART]: Scheduling terse update for {0}, {1} at {2}", | 2784 | // "[SCENE OBJECT PART]: Scheduling terse update for {0}, {1} at {2}", |
2789 | // UUID, Name, TimeStampTerse); | 2785 | // UUID, Name, TimeStampTerse); |
2790 | } | 2786 | } |
2787 | |||
2788 | if (ParentGroup.Scene != null) | ||
2789 | ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | ||
2791 | } | 2790 | } |
2792 | 2791 | ||
2793 | public void ScriptSetPhysicsStatus(bool UsePhysics) | 2792 | public void ScriptSetPhysicsStatus(bool UsePhysics) |
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 11f927c..c928af7 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -1243,7 +1243,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1243 | 1243 | ||
1244 | } | 1244 | } |
1245 | 1245 | ||
1246 | public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner) | 1246 | public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, uint covenantChanged, string abuseEmail, UUID estateOwner) |
1247 | { | 1247 | { |
1248 | 1248 | ||
1249 | } | 1249 | } |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 81bf9ed..be0d56e 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -933,7 +933,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
933 | public void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint) | 933 | public void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint) |
934 | { | 934 | { |
935 | } | 935 | } |
936 | public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner) | 936 | public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, uint covenantChanged, string abuseEmail, UUID estateOwner) |
937 | { | 937 | { |
938 | } | 938 | } |
939 | 939 | ||