diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules')
9 files changed, 102 insertions, 44 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 5cf478a..655f3a5 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -714,6 +714,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
714 | public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; | 714 | public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; |
715 | public event UpdatePrimFlags OnUpdatePrimFlags; | 715 | public event UpdatePrimFlags OnUpdatePrimFlags; |
716 | public event UpdatePrimTexture OnUpdatePrimTexture; | 716 | public event UpdatePrimTexture OnUpdatePrimTexture; |
717 | public event ClientChangeObject onClientChangeObject; | ||
717 | public event UpdateVector OnUpdatePrimGroupPosition; | 718 | public event UpdateVector OnUpdatePrimGroupPosition; |
718 | public event UpdateVector OnUpdatePrimSinglePosition; | 719 | public event UpdateVector OnUpdatePrimSinglePosition; |
719 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; | 720 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; |
@@ -818,6 +819,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
818 | public event ObjectOwner OnObjectOwner; | 819 | public event ObjectOwner OnObjectOwner; |
819 | public event DirPlacesQuery OnDirPlacesQuery; | 820 | public event DirPlacesQuery OnDirPlacesQuery; |
820 | public event DirFindQuery OnDirFindQuery; | 821 | public event DirFindQuery OnDirFindQuery; |
822 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | ||
821 | public event DirLandQuery OnDirLandQuery; | 823 | public event DirLandQuery OnDirLandQuery; |
822 | public event DirPopularQuery OnDirPopularQuery; | 824 | public event DirPopularQuery OnDirPopularQuery; |
823 | public event DirClassifiedQuery OnDirClassifiedQuery; | 825 | public event DirClassifiedQuery OnDirClassifiedQuery; |
@@ -834,7 +836,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
834 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 836 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
835 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 837 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
836 | public event ClassifiedDelete OnClassifiedDelete; | 838 | public event ClassifiedDelete OnClassifiedDelete; |
837 | public event ClassifiedDelete OnClassifiedGodDelete; | 839 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
838 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 840 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
839 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 841 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
840 | public event EventGodDelete OnEventGodDelete; | 842 | public event EventGodDelete OnEventGodDelete; |
@@ -864,6 +866,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
864 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 866 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
865 | public event SimWideDeletesDelegate OnSimWideDeletes; | 867 | public event SimWideDeletesDelegate OnSimWideDeletes; |
866 | public event SendPostcard OnSendPostcard; | 868 | public event SendPostcard OnSendPostcard; |
869 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
867 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 870 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
868 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 871 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
869 | public event GodlikeMessage onGodlikeMessage; | 872 | public event GodlikeMessage onGodlikeMessage; |
@@ -885,6 +888,11 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
885 | 888 | ||
886 | public void Close() | 889 | public void Close() |
887 | { | 890 | { |
891 | Close(true); | ||
892 | } | ||
893 | |||
894 | public void Close(bool sendStop) | ||
895 | { | ||
888 | Disconnect(); | 896 | Disconnect(); |
889 | } | 897 | } |
890 | 898 | ||
@@ -1690,5 +1698,10 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1690 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) | 1698 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) |
1691 | { | 1699 | { |
1692 | } | 1700 | } |
1701 | |||
1702 | public void SendPartPhysicsProprieties(ISceneEntity entity) | ||
1703 | { | ||
1704 | } | ||
1705 | |||
1693 | } | 1706 | } |
1694 | } | 1707 | } |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs index 05678c0..8af3652 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | |||
@@ -563,7 +563,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
563 | 563 | ||
564 | public Hashtable FreeSwitchSLVoiceGetPreloginHTTPHandler(Hashtable request) | 564 | public Hashtable FreeSwitchSLVoiceGetPreloginHTTPHandler(Hashtable request) |
565 | { | 565 | { |
566 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceGetPreloginHTTPHandler called"); | 566 | // m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceGetPreloginHTTPHandler called"); |
567 | 567 | ||
568 | Hashtable response = new Hashtable(); | 568 | Hashtable response = new Hashtable(); |
569 | response["content_type"] = "text/xml"; | 569 | response["content_type"] = "text/xml"; |
@@ -714,7 +714,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
714 | 714 | ||
715 | public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) | 715 | public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) |
716 | { | 716 | { |
717 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceSigninHTTPHandler called"); | 717 | //m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceSigninHTTPHandler called"); |
718 | // string requestbody = (string)request["body"]; | 718 | // string requestbody = (string)request["body"]; |
719 | // string uri = (string)request["uri"]; | 719 | // string uri = (string)request["uri"]; |
720 | // string contenttype = (string)request["content-type"]; | 720 | // string contenttype = (string)request["content-type"]; |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs index 738133c..4dbac1d 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs | |||
@@ -190,7 +190,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
190 | break; | 190 | break; |
191 | } | 191 | } |
192 | 192 | ||
193 | m_vivoxVoiceAccountApi = String.Format("http://{0}/api2", m_vivoxServer); | 193 | m_vivoxVoiceAccountApi = String.Format("https://{0}/api2", m_vivoxServer); |
194 | 194 | ||
195 | // Admin interface required values | 195 | // Admin interface required values |
196 | if (String.IsNullOrEmpty(m_vivoxServer) || | 196 | if (String.IsNullOrEmpty(m_vivoxServer) || |
@@ -732,7 +732,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
732 | return channelUri; | 732 | return channelUri; |
733 | } | 733 | } |
734 | 734 | ||
735 | private static readonly string m_vivoxLoginPath = "http://{0}/api2/viv_signin.php?userid={1}&pwd={2}"; | 735 | |
736 | private static readonly string m_vivoxLoginPath = "https://{0}/api2/viv_signin.php?userid={1}&pwd={2}"; | ||
736 | 737 | ||
737 | /// <summary> | 738 | /// <summary> |
738 | /// Perform administrative login for Vivox. | 739 | /// Perform administrative login for Vivox. |
@@ -744,7 +745,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
744 | return VivoxCall(requrl, false); | 745 | return VivoxCall(requrl, false); |
745 | } | 746 | } |
746 | 747 | ||
747 | private static readonly string m_vivoxLogoutPath = "http://{0}/api2/viv_signout.php?auth_token={1}"; | 748 | private static readonly string m_vivoxLogoutPath = "https://{0}/api2/viv_signout.php?auth_token={1}"; |
748 | 749 | ||
749 | /// <summary> | 750 | /// <summary> |
750 | /// Perform administrative logout for Vivox. | 751 | /// Perform administrative logout for Vivox. |
@@ -755,7 +756,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
755 | return VivoxCall(requrl, false); | 756 | return VivoxCall(requrl, false); |
756 | } | 757 | } |
757 | 758 | ||
758 | private static readonly string m_vivoxGetAccountPath = "http://{0}/api2/viv_get_acct.php?auth_token={1}&user_name={2}"; | 759 | |
760 | private static readonly string m_vivoxGetAccountPath = "https://{0}/api2/viv_get_acct.php?auth_token={1}&user_name={2}"; | ||
759 | 761 | ||
760 | /// <summary> | 762 | /// <summary> |
761 | /// Retrieve account information for the specified user. | 763 | /// Retrieve account information for the specified user. |
@@ -767,7 +769,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
767 | return VivoxCall(requrl, true); | 769 | return VivoxCall(requrl, true); |
768 | } | 770 | } |
769 | 771 | ||
770 | private static readonly string m_vivoxNewAccountPath = "http://{0}/api2/viv_adm_acct_new.php?username={1}&pwd={2}&auth_token={3}"; | 772 | |
773 | private static readonly string m_vivoxNewAccountPath = "https://{0}/api2/viv_adm_acct_new.php?username={1}&pwd={2}&auth_token={3}"; | ||
771 | 774 | ||
772 | /// <summary> | 775 | /// <summary> |
773 | /// Creates a new account. | 776 | /// Creates a new account. |
@@ -781,7 +784,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
781 | return VivoxCall(requrl, true); | 784 | return VivoxCall(requrl, true); |
782 | } | 785 | } |
783 | 786 | ||
784 | private static readonly string m_vivoxPasswordPath = "http://{0}/api2/viv_adm_password.php?user_name={1}&new_pwd={2}&auth_token={3}"; | 787 | |
788 | private static readonly string m_vivoxPasswordPath = "https://{0}/api2/viv_adm_password.php?user_name={1}&new_pwd={2}&auth_token={3}"; | ||
785 | 789 | ||
786 | /// <summary> | 790 | /// <summary> |
787 | /// Change the user's password. | 791 | /// Change the user's password. |
@@ -792,7 +796,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
792 | return VivoxCall(requrl, true); | 796 | return VivoxCall(requrl, true); |
793 | } | 797 | } |
794 | 798 | ||
795 | private static readonly string m_vivoxChannelPath = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_name={2}&auth_token={3}"; | 799 | |
800 | private static readonly string m_vivoxChannelPath = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_name={2}&auth_token={3}"; | ||
796 | 801 | ||
797 | /// <summary> | 802 | /// <summary> |
798 | /// Create a channel. | 803 | /// Create a channel. |
@@ -864,7 +869,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
864 | return false; | 869 | return false; |
865 | } | 870 | } |
866 | 871 | ||
867 | private static readonly string m_vivoxChannelSearchPath = "http://{0}/api2/viv_chan_search.php?cond_channame={1}&auth_token={2}"; | 872 | private static readonly string m_vivoxChannelSearchPath = "https://{0}/api2/viv_chan_search.php?cond_channame={1}&auth_token={2}"; |
868 | 873 | ||
869 | /// <summary> | 874 | /// <summary> |
870 | /// Retrieve a channel. | 875 | /// Retrieve a channel. |
@@ -1007,7 +1012,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1007 | return false; | 1012 | return false; |
1008 | } | 1013 | } |
1009 | 1014 | ||
1010 | // private static readonly string m_vivoxChannelById = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; | 1015 | // private static readonly string m_vivoxChannelById = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; |
1011 | 1016 | ||
1012 | // private XmlElement VivoxGetChannelById(string parent, string channelid) | 1017 | // private XmlElement VivoxGetChannelById(string parent, string channelid) |
1013 | // { | 1018 | // { |
@@ -1019,7 +1024,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1019 | // return VivoxCall(requrl, true); | 1024 | // return VivoxCall(requrl, true); |
1020 | // } | 1025 | // } |
1021 | 1026 | ||
1022 | private static readonly string m_vivoxChannelDel = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; | 1027 | private static readonly string m_vivoxChannelDel = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; |
1023 | 1028 | ||
1024 | /// <summary> | 1029 | /// <summary> |
1025 | /// Delete a channel. | 1030 | /// Delete a channel. |
@@ -1032,6 +1037,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1032 | /// are required in a later phase. | 1037 | /// are required in a later phase. |
1033 | /// In this case the call handles parent and description as optional values. | 1038 | /// In this case the call handles parent and description as optional values. |
1034 | /// </summary> | 1039 | /// </summary> |
1040 | |||
1035 | private XmlElement VivoxDeleteChannel(string parent, string channelid) | 1041 | private XmlElement VivoxDeleteChannel(string parent, string channelid) |
1036 | { | 1042 | { |
1037 | string requrl = String.Format(m_vivoxChannelDel, m_vivoxServer, "delete", channelid, m_authToken); | 1043 | string requrl = String.Format(m_vivoxChannelDel, m_vivoxServer, "delete", channelid, m_authToken); |
@@ -1042,11 +1048,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1042 | return VivoxCall(requrl, true); | 1048 | return VivoxCall(requrl, true); |
1043 | } | 1049 | } |
1044 | 1050 | ||
1045 | private static readonly string m_vivoxChannelSearch = "http://{0}/api2/viv_chan_search.php?&cond_chanparent={1}&auth_token={2}"; | 1051 | private static readonly string m_vivoxChannelSearch = "https://{0}/api2/viv_chan_search.php?&cond_chanparent={1}&auth_token={2}"; |
1046 | 1052 | ||
1047 | /// <summary> | 1053 | /// <summary> |
1048 | /// Return information on channels in the given directory | 1054 | /// Return information on channels in the given directory |
1049 | /// </summary> | 1055 | /// </summary> |
1056 | |||
1050 | private XmlElement VivoxListChildren(string channelid) | 1057 | private XmlElement VivoxListChildren(string channelid) |
1051 | { | 1058 | { |
1052 | string requrl = String.Format(m_vivoxChannelSearch, m_vivoxServer, channelid, m_authToken); | 1059 | string requrl = String.Format(m_vivoxChannelSearch, m_vivoxServer, channelid, m_authToken); |
@@ -1308,4 +1315,4 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1308 | return false; | 1315 | return false; |
1309 | } | 1316 | } |
1310 | } | 1317 | } |
1311 | } \ No newline at end of file | 1318 | } |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs index 2a15e5d..9ff3652 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | |||
@@ -892,7 +892,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
892 | msg.dialog = dialog; | 892 | msg.dialog = dialog; |
893 | // msg.dialog = (byte)OpenMetaverse.InstantMessageDialog.GroupNotice; | 893 | // msg.dialog = (byte)OpenMetaverse.InstantMessageDialog.GroupNotice; |
894 | msg.fromGroup = true; | 894 | msg.fromGroup = true; |
895 | msg.offline = (byte)0; | 895 | msg.offline = (byte)1; // Allow this message to be stored for offline use |
896 | msg.ParentEstateID = 0; | 896 | msg.ParentEstateID = 0; |
897 | msg.Position = Vector3.Zero; | 897 | msg.Position = Vector3.Zero; |
898 | msg.RegionID = UUID.Zero.Guid; | 898 | msg.RegionID = UUID.Zero.Guid; |
diff --git a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs index c1957e2..59ff9b8 100644 --- a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs +++ b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs | |||
@@ -121,12 +121,18 @@ namespace OpenSim.Region.OptionalModules | |||
121 | 121 | ||
122 | private bool CanObjectEnter(UUID objectID, bool enteringRegion, Vector3 newPoint, Scene scene) | 122 | private bool CanObjectEnter(UUID objectID, bool enteringRegion, Vector3 newPoint, Scene scene) |
123 | { | 123 | { |
124 | if ((newPoint.X > 257f || newPoint.X < -1f || newPoint.Y > 257f || newPoint.Y < -1f)) | ||
125 | return true; | ||
126 | |||
124 | SceneObjectPart obj = scene.GetSceneObjectPart(objectID); | 127 | SceneObjectPart obj = scene.GetSceneObjectPart(objectID); |
125 | Vector3 oldPoint = obj.GroupPosition; | 128 | Vector3 oldPoint = obj.GroupPosition; |
126 | int objectCount = obj.ParentGroup.PrimCount; | 129 | int objectCount = obj.ParentGroup.PrimCount; |
127 | ILandObject oldParcel = scene.LandChannel.GetLandObject(oldPoint.X, oldPoint.Y); | 130 | ILandObject oldParcel = scene.LandChannel.GetLandObject(oldPoint.X, oldPoint.Y); |
128 | ILandObject newParcel = scene.LandChannel.GetLandObject(newPoint.X, newPoint.Y); | 131 | ILandObject newParcel = scene.LandChannel.GetLandObject(newPoint.X, newPoint.Y); |
129 | 132 | ||
133 | if (newParcel == null) | ||
134 | return true; | ||
135 | |||
130 | int usedPrims = newParcel.PrimCounts.Total; | 136 | int usedPrims = newParcel.PrimCounts.Total; |
131 | int simulatorCapacity = newParcel.GetSimulatorMaxPrimCount(); | 137 | int simulatorCapacity = newParcel.GetSimulatorMaxPrimCount(); |
132 | 138 | ||
@@ -171,4 +177,4 @@ namespace OpenSim.Region.OptionalModules | |||
171 | return true; | 177 | return true; |
172 | } | 178 | } |
173 | } | 179 | } |
174 | } \ No newline at end of file | 180 | } |
diff --git a/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs b/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs index 32659c8..11c87f8 100644 --- a/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs | |||
@@ -42,17 +42,22 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcRouterModule | |||
42 | public class XmlRpcRouter : IRegionModule, IXmlRpcRouter | 42 | public class XmlRpcRouter : IRegionModule, IXmlRpcRouter |
43 | { | 43 | { |
44 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 44 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 45 | private bool m_enabled = false; | |
46 | public void Initialise(Scene scene, IConfigSource config) | 46 | public void Initialise(Scene scene, IConfigSource config) |
47 | { | 47 | { |
48 | IConfig startupConfig = config.Configs["Startup"]; | 48 | IConfig startupConfig = config.Configs["XMLRPC"]; |
49 | if (startupConfig == null) | 49 | if (startupConfig == null) |
50 | return; | 50 | return; |
51 | 51 | ||
52 | if (startupConfig.GetString("XmlRpcRouterModule", | 52 | if (startupConfig.GetString("XmlRpcRouterModule", |
53 | "XmlRpcRouterModule") == "XmlRpcRouterModule") | 53 | "") == "XmlRpcRouterModule") |
54 | { | 54 | { |
55 | scene.RegisterModuleInterface<IXmlRpcRouter>(this); | 55 | scene.RegisterModuleInterface<IXmlRpcRouter>(this); |
56 | m_enabled = true; | ||
57 | } | ||
58 | else | ||
59 | { | ||
60 | m_enabled = false; | ||
56 | } | 61 | } |
57 | } | 62 | } |
58 | 63 | ||
@@ -76,7 +81,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcRouterModule | |||
76 | 81 | ||
77 | public void RegisterNewReceiver(IScriptModule scriptEngine, UUID channel, UUID objectID, UUID itemID, string uri) | 82 | public void RegisterNewReceiver(IScriptModule scriptEngine, UUID channel, UUID objectID, UUID itemID, string uri) |
78 | { | 83 | { |
79 | scriptEngine.PostScriptEvent(itemID, "xmlrpc_uri", new Object[] {uri}); | 84 | if (m_enabled) |
85 | { | ||
86 | scriptEngine.PostScriptEvent(itemID, "xmlrpc_uri", new Object[] { uri }); | ||
87 | } | ||
80 | } | 88 | } |
81 | 89 | ||
82 | public void ScriptRemoved(UUID itemID) | 90 | public void ScriptRemoved(UUID itemID) |
diff --git a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs index 9c838d0..d206f69 100644 --- a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs +++ b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs | |||
@@ -838,6 +838,10 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
838 | if (module != null) | 838 | if (module != null) |
839 | module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice); | 839 | module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice); |
840 | } | 840 | } |
841 | |||
842 | public void MoveMoney(UUID fromAgentID, UUID toAgentID, int amount, string text) | ||
843 | { | ||
844 | } | ||
841 | } | 845 | } |
842 | 846 | ||
843 | public enum TransactionType : int | 847 | public enum TransactionType : int |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 16ec34f..a2375fe 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -47,7 +47,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
47 | private readonly string m_firstname; | 47 | private readonly string m_firstname; |
48 | private readonly string m_lastname; | 48 | private readonly string m_lastname; |
49 | private readonly Vector3 m_startPos; | 49 | private readonly Vector3 m_startPos; |
50 | private readonly UUID m_uuid = UUID.Random(); | 50 | private UUID m_uuid = UUID.Random(); |
51 | private readonly Scene m_scene; | 51 | private readonly Scene m_scene; |
52 | private readonly UUID m_ownerID; | 52 | private readonly UUID m_ownerID; |
53 | 53 | ||
@@ -169,7 +169,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
169 | #pragma warning disable 67 | 169 | #pragma warning disable 67 |
170 | public event Action<IClientAPI> OnLogout; | 170 | public event Action<IClientAPI> OnLogout; |
171 | public event ObjectPermissions OnObjectPermissions; | 171 | public event ObjectPermissions OnObjectPermissions; |
172 | 172 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | |
173 | public event MoneyTransferRequest OnMoneyTransferRequest; | 173 | public event MoneyTransferRequest OnMoneyTransferRequest; |
174 | public event ParcelBuy OnParcelBuy; | 174 | public event ParcelBuy OnParcelBuy; |
175 | public event Action<IClientAPI> OnConnectionClosed; | 175 | public event Action<IClientAPI> OnConnectionClosed; |
@@ -238,6 +238,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
238 | public event UpdatePrimTexture OnUpdatePrimTexture; | 238 | public event UpdatePrimTexture OnUpdatePrimTexture; |
239 | public event UpdateVector OnUpdatePrimGroupPosition; | 239 | public event UpdateVector OnUpdatePrimGroupPosition; |
240 | public event UpdateVector OnUpdatePrimSinglePosition; | 240 | public event UpdateVector OnUpdatePrimSinglePosition; |
241 | public event ClientChangeObject onClientChangeObject; | ||
241 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; | 242 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; |
242 | public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; | 243 | public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; |
243 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; | 244 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; |
@@ -375,7 +376,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
375 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 376 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
376 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 377 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
377 | public event ClassifiedDelete OnClassifiedDelete; | 378 | public event ClassifiedDelete OnClassifiedDelete; |
378 | public event ClassifiedDelete OnClassifiedGodDelete; | 379 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
379 | 380 | ||
380 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 381 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
381 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 382 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
@@ -414,6 +415,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
414 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 415 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
415 | public event SimWideDeletesDelegate OnSimWideDeletes; | 416 | public event SimWideDeletesDelegate OnSimWideDeletes; |
416 | public event SendPostcard OnSendPostcard; | 417 | public event SendPostcard OnSendPostcard; |
418 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
417 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 419 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
418 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 420 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
419 | public event GodlikeMessage onGodlikeMessage; | 421 | public event GodlikeMessage onGodlikeMessage; |
@@ -441,6 +443,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
441 | public virtual UUID AgentId | 443 | public virtual UUID AgentId |
442 | { | 444 | { |
443 | get { return m_uuid; } | 445 | get { return m_uuid; } |
446 | set { m_uuid = value; } | ||
444 | } | 447 | } |
445 | 448 | ||
446 | public UUID SessionId | 449 | public UUID SessionId |
@@ -849,8 +852,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
849 | 852 | ||
850 | public void Close() | 853 | public void Close() |
851 | { | 854 | { |
852 | // Remove ourselves from the scene | 855 | Close(true); |
853 | m_scene.RemoveClient(AgentId, false); | 856 | } |
857 | |||
858 | public void Close(bool sendStop) | ||
859 | { | ||
854 | } | 860 | } |
855 | 861 | ||
856 | public void Start() | 862 | public void Start() |
@@ -1184,5 +1190,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1184 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) | 1190 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) |
1185 | { | 1191 | { |
1186 | } | 1192 | } |
1193 | |||
1194 | public void SendPartPhysicsProprieties(ISceneEntity entity) | ||
1195 | { | ||
1196 | } | ||
1197 | |||
1187 | } | 1198 | } |
1188 | } | 1199 | } |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs index 2b8379d..68f21c8 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | |||
@@ -144,29 +144,38 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
144 | // acd.AgentID, i, acd.Appearance.Texture.FaceTextures[i]); | 144 | // acd.AgentID, i, acd.Appearance.Texture.FaceTextures[i]); |
145 | // } | 145 | // } |
146 | 146 | ||
147 | lock (m_avatars) | 147 | ManualResetEvent ev = new ManualResetEvent(false); |
148 | { | ||
149 | scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd); | ||
150 | scene.AddNewClient(npcAvatar, PresenceType.Npc); | ||
151 | 148 | ||
152 | ScenePresence sp; | 149 | Util.FireAndForget(delegate(object x) { |
153 | if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) | 150 | lock (m_avatars) |
154 | { | 151 | { |
155 | // m_log.DebugFormat( | 152 | scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd); |
156 | // "[NPC MODULE]: Successfully retrieved scene presence for NPC {0} {1}", sp.Name, sp.UUID); | 153 | scene.AddNewClient(npcAvatar, PresenceType.Npc); |
157 | 154 | ||
158 | sp.CompleteMovement(npcAvatar, false); | 155 | ScenePresence sp; |
159 | m_avatars.Add(npcAvatar.AgentId, npcAvatar); | 156 | if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) |
160 | m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId); | 157 | { |
158 | m_log.DebugFormat( | ||
159 | "[NPC MODULE]: Successfully retrieved scene presence for NPC {0} {1}", sp.Name, sp.UUID); | ||
160 | |||
161 | sp.CompleteMovement(npcAvatar, false); | ||
162 | m_avatars.Add(npcAvatar.AgentId, npcAvatar); | ||
163 | } | ||
164 | else | ||
165 | { | ||
166 | m_log.WarnFormat("[NPC MODULE]: Could not find scene presence for NPC {0} {1}", sp.Name, sp.UUID); | ||
167 | npcAvatar.AgentId = UUID.Zero; | ||
168 | } | ||
161 | 169 | ||
162 | return npcAvatar.AgentId; | ||
163 | } | ||
164 | else | ||
165 | { | ||
166 | m_log.WarnFormat("[NPC MODULE]: Could not find scene presence for NPC {0} {1}", sp.Name, sp.UUID); | ||
167 | return UUID.Zero; | ||
168 | } | 170 | } |
169 | } | 171 | ev.Set(); |
172 | }); | ||
173 | |||
174 | ev.WaitOne(); | ||
175 | |||
176 | // m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId); | ||
177 | |||
178 | return npcAvatar.AgentId; | ||
170 | } | 179 | } |
171 | 180 | ||
172 | public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget) | 181 | public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget) |