diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules')
9 files changed, 104 insertions, 46 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 43548e6..eac8e84 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -669,6 +669,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
669 | public event ObjectDrop OnObjectDrop; | 669 | public event ObjectDrop OnObjectDrop; |
670 | public event StartAnim OnStartAnim; | 670 | public event StartAnim OnStartAnim; |
671 | public event StopAnim OnStopAnim; | 671 | public event StopAnim OnStopAnim; |
672 | public event ChangeAnim OnChangeAnim; | ||
672 | public event LinkObjects OnLinkObjects; | 673 | public event LinkObjects OnLinkObjects; |
673 | public event DelinkObjects OnDelinkObjects; | 674 | public event DelinkObjects OnDelinkObjects; |
674 | public event RequestMapBlocks OnRequestMapBlocks; | 675 | public event RequestMapBlocks OnRequestMapBlocks; |
@@ -714,6 +715,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
714 | public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; | 715 | public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; |
715 | public event UpdatePrimFlags OnUpdatePrimFlags; | 716 | public event UpdatePrimFlags OnUpdatePrimFlags; |
716 | public event UpdatePrimTexture OnUpdatePrimTexture; | 717 | public event UpdatePrimTexture OnUpdatePrimTexture; |
718 | public event ClientChangeObject onClientChangeObject; | ||
717 | public event UpdateVector OnUpdatePrimGroupPosition; | 719 | public event UpdateVector OnUpdatePrimGroupPosition; |
718 | public event UpdateVector OnUpdatePrimSinglePosition; | 720 | public event UpdateVector OnUpdatePrimSinglePosition; |
719 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; | 721 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; |
@@ -818,6 +820,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
818 | public event ObjectOwner OnObjectOwner; | 820 | public event ObjectOwner OnObjectOwner; |
819 | public event DirPlacesQuery OnDirPlacesQuery; | 821 | public event DirPlacesQuery OnDirPlacesQuery; |
820 | public event DirFindQuery OnDirFindQuery; | 822 | public event DirFindQuery OnDirFindQuery; |
823 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | ||
821 | public event DirLandQuery OnDirLandQuery; | 824 | public event DirLandQuery OnDirLandQuery; |
822 | public event DirPopularQuery OnDirPopularQuery; | 825 | public event DirPopularQuery OnDirPopularQuery; |
823 | public event DirClassifiedQuery OnDirClassifiedQuery; | 826 | public event DirClassifiedQuery OnDirClassifiedQuery; |
@@ -834,7 +837,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
834 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 837 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
835 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 838 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
836 | public event ClassifiedDelete OnClassifiedDelete; | 839 | public event ClassifiedDelete OnClassifiedDelete; |
837 | public event ClassifiedDelete OnClassifiedGodDelete; | 840 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
838 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 841 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
839 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 842 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
840 | public event EventGodDelete OnEventGodDelete; | 843 | public event EventGodDelete OnEventGodDelete; |
@@ -864,6 +867,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
864 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 867 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
865 | public event SimWideDeletesDelegate OnSimWideDeletes; | 868 | public event SimWideDeletesDelegate OnSimWideDeletes; |
866 | public event SendPostcard OnSendPostcard; | 869 | public event SendPostcard OnSendPostcard; |
870 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
867 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 871 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
868 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 872 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
869 | public event GodlikeMessage onGodlikeMessage; | 873 | public event GodlikeMessage onGodlikeMessage; |
@@ -885,6 +889,11 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
885 | 889 | ||
886 | public void Close() | 890 | public void Close() |
887 | { | 891 | { |
892 | Close(true); | ||
893 | } | ||
894 | |||
895 | public void Close(bool sendStop) | ||
896 | { | ||
888 | Disconnect(); | 897 | Disconnect(); |
889 | } | 898 | } |
890 | 899 | ||
@@ -1690,5 +1699,10 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1690 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) | 1699 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) |
1691 | { | 1700 | { |
1692 | } | 1701 | } |
1702 | |||
1703 | public void SendPartPhysicsProprieties(ISceneEntity entity) | ||
1704 | { | ||
1705 | } | ||
1706 | |||
1693 | } | 1707 | } |
1694 | } | 1708 | } |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs index be8873d..6c53d95 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | |||
@@ -568,7 +568,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
568 | 568 | ||
569 | public Hashtable FreeSwitchSLVoiceGetPreloginHTTPHandler(Hashtable request) | 569 | public Hashtable FreeSwitchSLVoiceGetPreloginHTTPHandler(Hashtable request) |
570 | { | 570 | { |
571 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceGetPreloginHTTPHandler called"); | 571 | // m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceGetPreloginHTTPHandler called"); |
572 | 572 | ||
573 | Hashtable response = new Hashtable(); | 573 | Hashtable response = new Hashtable(); |
574 | response["content_type"] = "text/xml"; | 574 | response["content_type"] = "text/xml"; |
@@ -719,7 +719,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
719 | 719 | ||
720 | public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) | 720 | public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) |
721 | { | 721 | { |
722 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceSigninHTTPHandler called"); | 722 | //m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceSigninHTTPHandler called"); |
723 | // string requestbody = (string)request["body"]; | 723 | // string requestbody = (string)request["body"]; |
724 | // string uri = (string)request["uri"]; | 724 | // string uri = (string)request["uri"]; |
725 | // string contenttype = (string)request["content-type"]; | 725 | // 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 a36fd74..396d4c5 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) || |
@@ -738,7 +738,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
738 | return channelUri; | 738 | return channelUri; |
739 | } | 739 | } |
740 | 740 | ||
741 | private static readonly string m_vivoxLoginPath = "http://{0}/api2/viv_signin.php?userid={1}&pwd={2}"; | 741 | |
742 | private static readonly string m_vivoxLoginPath = "https://{0}/api2/viv_signin.php?userid={1}&pwd={2}"; | ||
742 | 743 | ||
743 | /// <summary> | 744 | /// <summary> |
744 | /// Perform administrative login for Vivox. | 745 | /// Perform administrative login for Vivox. |
@@ -750,7 +751,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
750 | return VivoxCall(requrl, false); | 751 | return VivoxCall(requrl, false); |
751 | } | 752 | } |
752 | 753 | ||
753 | private static readonly string m_vivoxLogoutPath = "http://{0}/api2/viv_signout.php?auth_token={1}"; | 754 | private static readonly string m_vivoxLogoutPath = "https://{0}/api2/viv_signout.php?auth_token={1}"; |
754 | 755 | ||
755 | /// <summary> | 756 | /// <summary> |
756 | /// Perform administrative logout for Vivox. | 757 | /// Perform administrative logout for Vivox. |
@@ -761,7 +762,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
761 | return VivoxCall(requrl, false); | 762 | return VivoxCall(requrl, false); |
762 | } | 763 | } |
763 | 764 | ||
764 | private static readonly string m_vivoxGetAccountPath = "http://{0}/api2/viv_get_acct.php?auth_token={1}&user_name={2}"; | 765 | |
766 | private static readonly string m_vivoxGetAccountPath = "https://{0}/api2/viv_get_acct.php?auth_token={1}&user_name={2}"; | ||
765 | 767 | ||
766 | /// <summary> | 768 | /// <summary> |
767 | /// Retrieve account information for the specified user. | 769 | /// Retrieve account information for the specified user. |
@@ -773,7 +775,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
773 | return VivoxCall(requrl, true); | 775 | return VivoxCall(requrl, true); |
774 | } | 776 | } |
775 | 777 | ||
776 | private static readonly string m_vivoxNewAccountPath = "http://{0}/api2/viv_adm_acct_new.php?username={1}&pwd={2}&auth_token={3}"; | 778 | |
779 | private static readonly string m_vivoxNewAccountPath = "https://{0}/api2/viv_adm_acct_new.php?username={1}&pwd={2}&auth_token={3}"; | ||
777 | 780 | ||
778 | /// <summary> | 781 | /// <summary> |
779 | /// Creates a new account. | 782 | /// Creates a new account. |
@@ -787,7 +790,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
787 | return VivoxCall(requrl, true); | 790 | return VivoxCall(requrl, true); |
788 | } | 791 | } |
789 | 792 | ||
790 | private static readonly string m_vivoxPasswordPath = "http://{0}/api2/viv_adm_password.php?user_name={1}&new_pwd={2}&auth_token={3}"; | 793 | |
794 | private static readonly string m_vivoxPasswordPath = "https://{0}/api2/viv_adm_password.php?user_name={1}&new_pwd={2}&auth_token={3}"; | ||
791 | 795 | ||
792 | /// <summary> | 796 | /// <summary> |
793 | /// Change the user's password. | 797 | /// Change the user's password. |
@@ -798,7 +802,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
798 | return VivoxCall(requrl, true); | 802 | return VivoxCall(requrl, true); |
799 | } | 803 | } |
800 | 804 | ||
801 | private static readonly string m_vivoxChannelPath = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_name={2}&auth_token={3}"; | 805 | |
806 | private static readonly string m_vivoxChannelPath = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_name={2}&auth_token={3}"; | ||
802 | 807 | ||
803 | /// <summary> | 808 | /// <summary> |
804 | /// Create a channel. | 809 | /// Create a channel. |
@@ -870,7 +875,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
870 | return false; | 875 | return false; |
871 | } | 876 | } |
872 | 877 | ||
873 | private static readonly string m_vivoxChannelSearchPath = "http://{0}/api2/viv_chan_search.php?cond_channame={1}&auth_token={2}"; | 878 | private static readonly string m_vivoxChannelSearchPath = "https://{0}/api2/viv_chan_search.php?cond_channame={1}&auth_token={2}"; |
874 | 879 | ||
875 | /// <summary> | 880 | /// <summary> |
876 | /// Retrieve a channel. | 881 | /// Retrieve a channel. |
@@ -1013,7 +1018,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1013 | return false; | 1018 | return false; |
1014 | } | 1019 | } |
1015 | 1020 | ||
1016 | // private static readonly string m_vivoxChannelById = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; | 1021 | // private static readonly string m_vivoxChannelById = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; |
1017 | 1022 | ||
1018 | // private XmlElement VivoxGetChannelById(string parent, string channelid) | 1023 | // private XmlElement VivoxGetChannelById(string parent, string channelid) |
1019 | // { | 1024 | // { |
@@ -1025,7 +1030,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1025 | // return VivoxCall(requrl, true); | 1030 | // return VivoxCall(requrl, true); |
1026 | // } | 1031 | // } |
1027 | 1032 | ||
1028 | private static readonly string m_vivoxChannelDel = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; | 1033 | private static readonly string m_vivoxChannelDel = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; |
1029 | 1034 | ||
1030 | /// <summary> | 1035 | /// <summary> |
1031 | /// Delete a channel. | 1036 | /// Delete a channel. |
@@ -1038,6 +1043,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1038 | /// are required in a later phase. | 1043 | /// are required in a later phase. |
1039 | /// In this case the call handles parent and description as optional values. | 1044 | /// In this case the call handles parent and description as optional values. |
1040 | /// </summary> | 1045 | /// </summary> |
1046 | |||
1041 | private XmlElement VivoxDeleteChannel(string parent, string channelid) | 1047 | private XmlElement VivoxDeleteChannel(string parent, string channelid) |
1042 | { | 1048 | { |
1043 | string requrl = String.Format(m_vivoxChannelDel, m_vivoxServer, "delete", channelid, m_authToken); | 1049 | string requrl = String.Format(m_vivoxChannelDel, m_vivoxServer, "delete", channelid, m_authToken); |
@@ -1048,11 +1054,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1048 | return VivoxCall(requrl, true); | 1054 | return VivoxCall(requrl, true); |
1049 | } | 1055 | } |
1050 | 1056 | ||
1051 | private static readonly string m_vivoxChannelSearch = "http://{0}/api2/viv_chan_search.php?&cond_chanparent={1}&auth_token={2}"; | 1057 | private static readonly string m_vivoxChannelSearch = "https://{0}/api2/viv_chan_search.php?&cond_chanparent={1}&auth_token={2}"; |
1052 | 1058 | ||
1053 | /// <summary> | 1059 | /// <summary> |
1054 | /// Return information on channels in the given directory | 1060 | /// Return information on channels in the given directory |
1055 | /// </summary> | 1061 | /// </summary> |
1062 | |||
1056 | private XmlElement VivoxListChildren(string channelid) | 1063 | private XmlElement VivoxListChildren(string channelid) |
1057 | { | 1064 | { |
1058 | string requrl = String.Format(m_vivoxChannelSearch, m_vivoxServer, channelid, m_authToken); | 1065 | string requrl = String.Format(m_vivoxChannelSearch, m_vivoxServer, channelid, m_authToken); |
@@ -1314,4 +1321,4 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1314 | return false; | 1321 | return false; |
1315 | } | 1322 | } |
1316 | } | 1323 | } |
1317 | } \ No newline at end of file | 1324 | } |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs index e669f4c..65bd26c 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 e57e5e6..e798382 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 | ||
@@ -174,7 +174,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
174 | #pragma warning disable 67 | 174 | #pragma warning disable 67 |
175 | public event Action<IClientAPI> OnLogout; | 175 | public event Action<IClientAPI> OnLogout; |
176 | public event ObjectPermissions OnObjectPermissions; | 176 | public event ObjectPermissions OnObjectPermissions; |
177 | 177 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | |
178 | public event MoneyTransferRequest OnMoneyTransferRequest; | 178 | public event MoneyTransferRequest OnMoneyTransferRequest; |
179 | public event ParcelBuy OnParcelBuy; | 179 | public event ParcelBuy OnParcelBuy; |
180 | public event Action<IClientAPI> OnConnectionClosed; | 180 | public event Action<IClientAPI> OnConnectionClosed; |
@@ -194,6 +194,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
194 | public event ObjectDrop OnObjectDrop; | 194 | public event ObjectDrop OnObjectDrop; |
195 | public event StartAnim OnStartAnim; | 195 | public event StartAnim OnStartAnim; |
196 | public event StopAnim OnStopAnim; | 196 | public event StopAnim OnStopAnim; |
197 | public event ChangeAnim OnChangeAnim; | ||
197 | public event LinkObjects OnLinkObjects; | 198 | public event LinkObjects OnLinkObjects; |
198 | public event DelinkObjects OnDelinkObjects; | 199 | public event DelinkObjects OnDelinkObjects; |
199 | public event RequestMapBlocks OnRequestMapBlocks; | 200 | public event RequestMapBlocks OnRequestMapBlocks; |
@@ -243,6 +244,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
243 | public event UpdatePrimTexture OnUpdatePrimTexture; | 244 | public event UpdatePrimTexture OnUpdatePrimTexture; |
244 | public event UpdateVector OnUpdatePrimGroupPosition; | 245 | public event UpdateVector OnUpdatePrimGroupPosition; |
245 | public event UpdateVector OnUpdatePrimSinglePosition; | 246 | public event UpdateVector OnUpdatePrimSinglePosition; |
247 | public event ClientChangeObject onClientChangeObject; | ||
246 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; | 248 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; |
247 | public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; | 249 | public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; |
248 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; | 250 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; |
@@ -380,7 +382,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
380 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 382 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
381 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 383 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
382 | public event ClassifiedDelete OnClassifiedDelete; | 384 | public event ClassifiedDelete OnClassifiedDelete; |
383 | public event ClassifiedDelete OnClassifiedGodDelete; | 385 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
384 | 386 | ||
385 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 387 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
386 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 388 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
@@ -419,6 +421,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
419 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 421 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
420 | public event SimWideDeletesDelegate OnSimWideDeletes; | 422 | public event SimWideDeletesDelegate OnSimWideDeletes; |
421 | public event SendPostcard OnSendPostcard; | 423 | public event SendPostcard OnSendPostcard; |
424 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
422 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 425 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
423 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 426 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
424 | public event GodlikeMessage onGodlikeMessage; | 427 | public event GodlikeMessage onGodlikeMessage; |
@@ -446,6 +449,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
446 | public virtual UUID AgentId | 449 | public virtual UUID AgentId |
447 | { | 450 | { |
448 | get { return m_uuid; } | 451 | get { return m_uuid; } |
452 | set { m_uuid = value; } | ||
449 | } | 453 | } |
450 | 454 | ||
451 | public UUID SessionId | 455 | public UUID SessionId |
@@ -854,8 +858,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
854 | 858 | ||
855 | public void Close() | 859 | public void Close() |
856 | { | 860 | { |
857 | // Remove ourselves from the scene | 861 | Close(true); |
858 | m_scene.RemoveClient(AgentId, false); | 862 | } |
863 | |||
864 | public void Close(bool sendStop) | ||
865 | { | ||
859 | } | 866 | } |
860 | 867 | ||
861 | public void Start() | 868 | public void Start() |
@@ -1189,5 +1196,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1189 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) | 1196 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) |
1190 | { | 1197 | { |
1191 | } | 1198 | } |
1199 | |||
1200 | public void SendPartPhysicsProprieties(ISceneEntity entity) | ||
1201 | { | ||
1202 | } | ||
1203 | |||
1192 | } | 1204 | } |
1193 | } | 1205 | } |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs index d3456ab..a32ab2a 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | |||
@@ -144,29 +144,30 @@ 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 {0} {1}", npcAvatar.AgentId, sp.Name); | 157 | { |
161 | 158 | sp.CompleteMovement(npcAvatar, false); | |
162 | return npcAvatar.AgentId; | 159 | m_avatars.Add(npcAvatar.AgentId, npcAvatar); |
163 | } | 160 | m_log.DebugFormat("[NPC MODULE]: Created NPC {0} {1}", npcAvatar.AgentId, sp.Name); |
164 | else | 161 | } |
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 | } | 162 | } |
169 | } | 163 | ev.Set(); |
164 | }); | ||
165 | |||
166 | ev.WaitOne(); | ||
167 | |||
168 | // m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId); | ||
169 | |||
170 | return npcAvatar.AgentId; | ||
170 | } | 171 | } |
171 | 172 | ||
172 | public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget, bool running) | 173 | public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget, bool running) |
@@ -356,9 +357,15 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
356 | { | 357 | { |
357 | NPCAvatar av; | 358 | NPCAvatar av; |
358 | if (m_avatars.TryGetValue(npcID, out av)) | 359 | if (m_avatars.TryGetValue(npcID, out av)) |
360 | { | ||
361 | if (npcID == callerID) | ||
362 | return true; | ||
359 | return CheckPermissions(av, callerID); | 363 | return CheckPermissions(av, callerID); |
364 | } | ||
360 | else | 365 | else |
366 | { | ||
361 | return false; | 367 | return false; |
368 | } | ||
362 | } | 369 | } |
363 | } | 370 | } |
364 | 371 | ||
@@ -370,7 +377,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
370 | /// <returns>true if they do, false if they don't.</returns> | 377 | /// <returns>true if they do, false if they don't.</returns> |
371 | private bool CheckPermissions(NPCAvatar av, UUID callerID) | 378 | private bool CheckPermissions(NPCAvatar av, UUID callerID) |
372 | { | 379 | { |
373 | return callerID == UUID.Zero || av.OwnerID == UUID.Zero || av.OwnerID == callerID; | 380 | return callerID == UUID.Zero || av.OwnerID == UUID.Zero || av.OwnerID == callerID || av.AgentId == callerID; |
374 | } | 381 | } |
375 | } | 382 | } |
376 | } | 383 | } |