diff options
author | Melanie | 2011-07-23 18:34:46 +0200 |
---|---|---|
committer | Melanie | 2011-07-23 18:34:46 +0200 |
commit | 2e83b48873ae93776c257d6b829a14473a0a3a0d (patch) | |
tree | c0cfc4fe60fc840ba992cf9b59c9fe8239f72a48 | |
parent | Fix failure to find avatars due to trainling spaces being sent by viewers. (diff) | |
parent | Fix LLTextBox to work with the updated libOMV (diff) | |
download | opensim-SC_OLD-2e83b48873ae93776c257d6b829a14473a0a3a0d.zip opensim-SC_OLD-2e83b48873ae93776c257d6b829a14473a0a3a0d.tar.gz opensim-SC_OLD-2e83b48873ae93776c257d6b829a14473a0a3a0d.tar.bz2 opensim-SC_OLD-2e83b48873ae93776c257d6b829a14473a0a3a0d.tar.xz |
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
9 files changed, 17 insertions, 11 deletions
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 0a4dcac..80171b4 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs | |||
@@ -1401,7 +1401,7 @@ namespace OpenSim.Framework | |||
1401 | void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt); | 1401 | void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt); |
1402 | 1402 | ||
1403 | void SendChangeUserRights(UUID agentID, UUID friendID, int rights); | 1403 | void SendChangeUserRights(UUID agentID, UUID friendID, int rights); |
1404 | void SendTextBoxRequest(string message, int chatChannel, string objectname, string ownerFirstName, string ownerLastName, UUID objectId); | 1404 | void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId); |
1405 | 1405 | ||
1406 | void StopFlying(ISceneEntity presence); | 1406 | void StopFlying(ISceneEntity presence); |
1407 | 1407 | ||
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index 17184d6..b0202fb 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -769,10 +769,10 @@ namespace OpenSim.Framework | |||
769 | "Clamp prims to max size", "false", true); | 769 | "Clamp prims to max size", "false", true); |
770 | 770 | ||
771 | configMember.addConfigurationOption("object_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 771 | configMember.addConfigurationOption("object_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
772 | "Max objects this sim will hold", "0", true); | 772 | "Max objects this sim will hold", "15000", true); |
773 | 773 | ||
774 | configMember.addConfigurationOption("agent_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 774 | configMember.addConfigurationOption("agent_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
775 | "Max agents this sim will hold", "0", true); | 775 | "Max avatars this sim will hold", "100", true); |
776 | 776 | ||
777 | configMember.addConfigurationOption("scope_id", ConfigurationOption.ConfigurationTypes.TYPE_UUID, | 777 | configMember.addConfigurationOption("scope_id", ConfigurationOption.ConfigurationTypes.TYPE_UUID, |
778 | "Scope ID for this region", UUID.Zero.ToString(), true); | 778 | "Scope ID for this region", UUID.Zero.ToString(), true); |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 99552f1..d5419cc 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -12129,7 +12129,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
12129 | OutPacket(packet, ThrottleOutPacketType.Task); | 12129 | OutPacket(packet, ThrottleOutPacketType.Task); |
12130 | } | 12130 | } |
12131 | 12131 | ||
12132 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, string ownerFirstName, string ownerLastName, UUID objectId) | 12132 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId) |
12133 | { | 12133 | { |
12134 | ScriptDialogPacket dialog = (ScriptDialogPacket)PacketPool.Instance.GetPacket(PacketType.ScriptDialog); | 12134 | ScriptDialogPacket dialog = (ScriptDialogPacket)PacketPool.Instance.GetPacket(PacketType.ScriptDialog); |
12135 | dialog.Data.ObjectID = objectId; | 12135 | dialog.Data.ObjectID = objectId; |
@@ -12145,6 +12145,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
12145 | buttons[0] = new ScriptDialogPacket.ButtonsBlock(); | 12145 | buttons[0] = new ScriptDialogPacket.ButtonsBlock(); |
12146 | buttons[0].ButtonLabel = Util.StringToBytes256("!!llTextBox!!"); | 12146 | buttons[0].ButtonLabel = Util.StringToBytes256("!!llTextBox!!"); |
12147 | dialog.Buttons = buttons; | 12147 | dialog.Buttons = buttons; |
12148 | |||
12149 | dialog.OwnerData = new ScriptDialogPacket.OwnerDataBlock[1]; | ||
12150 | dialog.OwnerData[0] = new ScriptDialogPacket.OwnerDataBlock(); | ||
12151 | dialog.OwnerData[0].OwnerID = ownerID; | ||
12152 | |||
12148 | OutPacket(dialog, ThrottleOutPacketType.Task); | 12153 | OutPacket(dialog, ThrottleOutPacketType.Task); |
12149 | } | 12154 | } |
12150 | 12155 | ||
diff --git a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs index 8a16582..f343f80 100644 --- a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs | |||
@@ -141,10 +141,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog | |||
141 | { | 141 | { |
142 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, ownerid); | 142 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, ownerid); |
143 | string ownerFirstName, ownerLastName; | 143 | string ownerFirstName, ownerLastName; |
144 | UUID ownerID = UUID.Zero; | ||
144 | if (account != null) | 145 | if (account != null) |
145 | { | 146 | { |
146 | ownerFirstName = account.FirstName; | 147 | ownerFirstName = account.FirstName; |
147 | ownerLastName = account.LastName; | 148 | ownerLastName = account.LastName; |
149 | ownerID = account.PrincipalID; | ||
148 | } | 150 | } |
149 | else | 151 | else |
150 | { | 152 | { |
@@ -155,7 +157,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog | |||
155 | ScenePresence sp = m_scene.GetScenePresence(avatarid); | 157 | ScenePresence sp = m_scene.GetScenePresence(avatarid); |
156 | 158 | ||
157 | if (sp != null) | 159 | if (sp != null) |
158 | sp.ControllingClient.SendTextBoxRequest(message, chatChannel, name, ownerFirstName, ownerLastName, objectid); | 160 | sp.ControllingClient.SendTextBoxRequest(message, chatChannel, name, ownerID, ownerFirstName, ownerLastName, objectid); |
159 | } | 161 | } |
160 | 162 | ||
161 | public void SendNotificationToUsersInRegion( | 163 | public void SendNotificationToUsersInRegion( |
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index cdce36e..7e4fa71 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | |||
@@ -1157,7 +1157,7 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
1157 | { | 1157 | { |
1158 | } | 1158 | } |
1159 | 1159 | ||
1160 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, string ownerFirstName, string ownerLastName, UUID objectId) | 1160 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId) |
1161 | { | 1161 | { |
1162 | } | 1162 | } |
1163 | 1163 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 2214f2f..037f384 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -4437,7 +4437,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
4437 | { | 4437 | { |
4438 | // It's not phantom anymore. So make sure the physics engine get's knowledge of it | 4438 | // It's not phantom anymore. So make sure the physics engine get's knowledge of it |
4439 | PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape( | 4439 | PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape( |
4440 | LocalId, | ||
4441 | string.Format("{0}/{1}", Name, UUID), | 4440 | string.Format("{0}/{1}", Name, UUID), |
4442 | Shape, | 4441 | Shape, |
4443 | AbsolutePosition, | 4442 | AbsolutePosition, |
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 4045507..26934e8 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -1684,7 +1684,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1684 | { | 1684 | { |
1685 | } | 1685 | } |
1686 | 1686 | ||
1687 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, string ownerFirstName, string ownerLastName, UUID objectId) | 1687 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId) |
1688 | { | 1688 | { |
1689 | } | 1689 | } |
1690 | 1690 | ||
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index f07ad67..69d6261 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -1162,7 +1162,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1162 | { | 1162 | { |
1163 | } | 1163 | } |
1164 | 1164 | ||
1165 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, string ownerFirstName, string ownerLastName, UUID objectId) | 1165 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId) |
1166 | { | 1166 | { |
1167 | } | 1167 | } |
1168 | 1168 | ||
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index bacd773..0f89f84 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs | |||
@@ -1218,7 +1218,7 @@ namespace OpenSim.Tests.Common.Mock | |||
1218 | { | 1218 | { |
1219 | } | 1219 | } |
1220 | 1220 | ||
1221 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, string ownerFirstName, string ownerLastName, UUID objectId) | 1221 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId) |
1222 | { | 1222 | { |
1223 | } | 1223 | } |
1224 | 1224 | ||