diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules')
70 files changed, 1067 insertions, 1067 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 8b8ebe0..83b534b 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -589,8 +589,8 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
589 | { | 589 | { |
590 | return new Dictionary<UUID, ulong>(); | 590 | return new Dictionary<UUID, ulong>(); |
591 | } | 591 | } |
592 | 592 | ||
593 | public void SetGroupPowers(Dictionary<UUID, ulong> powers) { } | 593 | public void SetGroupPowers(Dictionary<UUID, ulong> powers) { } |
594 | 594 | ||
595 | public ulong GetGroupPowers(UUID groupID) | 595 | public ulong GetGroupPowers(UUID groupID) |
596 | { | 596 | { |
@@ -898,12 +898,12 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
898 | 898 | ||
899 | public void InPacket(object NewPack) | 899 | public void InPacket(object NewPack) |
900 | { | 900 | { |
901 | 901 | ||
902 | } | 902 | } |
903 | 903 | ||
904 | public void ProcessInPacket(Packet NewPack) | 904 | public void ProcessInPacket(Packet NewPack) |
905 | { | 905 | { |
906 | 906 | ||
907 | } | 907 | } |
908 | 908 | ||
909 | public void Close() | 909 | public void Close() |
@@ -953,32 +953,32 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
953 | 953 | ||
954 | public void SendWearables(AvatarWearable[] wearables, int serial) | 954 | public void SendWearables(AvatarWearable[] wearables, int serial) |
955 | { | 955 | { |
956 | 956 | ||
957 | } | 957 | } |
958 | 958 | ||
959 | public void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry) | 959 | public void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry) |
960 | { | 960 | { |
961 | 961 | ||
962 | } | 962 | } |
963 | 963 | ||
964 | public void SendCachedTextureResponse(ISceneEntity avatar, int serial, List<CachedTextureResponseArg> cachedTextures) | 964 | public void SendCachedTextureResponse(ISceneEntity avatar, int serial, List<CachedTextureResponseArg> cachedTextures) |
965 | { | 965 | { |
966 | 966 | ||
967 | } | 967 | } |
968 | 968 | ||
969 | public void SendStartPingCheck(byte seq) | 969 | public void SendStartPingCheck(byte seq) |
970 | { | 970 | { |
971 | 971 | ||
972 | } | 972 | } |
973 | 973 | ||
974 | public void SendKillObject(List<uint> localID) | 974 | public void SendKillObject(List<uint> localID) |
975 | { | 975 | { |
976 | 976 | ||
977 | } | 977 | } |
978 | 978 | ||
979 | public void SendAnimations(UUID[] animID, int[] seqs, UUID sourceAgentId, UUID[] objectIDs) | 979 | public void SendAnimations(UUID[] animID, int[] seqs, UUID sourceAgentId, UUID[] objectIDs) |
980 | { | 980 | { |
981 | 981 | ||
982 | } | 982 | } |
983 | 983 | ||
984 | public void SendChatMessage( | 984 | public void SendChatMessage( |
@@ -1005,7 +1005,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1005 | 1005 | ||
1006 | public void SendGenericMessage(string method, UUID invoice, List<byte[]> message) | 1006 | public void SendGenericMessage(string method, UUID invoice, List<byte[]> message) |
1007 | { | 1007 | { |
1008 | 1008 | ||
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | public virtual bool CanSendLayerData() | 1011 | public virtual bool CanSendLayerData() |
@@ -1015,32 +1015,32 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1015 | 1015 | ||
1016 | public void SendLayerData(float[] map) | 1016 | public void SendLayerData(float[] map) |
1017 | { | 1017 | { |
1018 | 1018 | ||
1019 | } | 1019 | } |
1020 | 1020 | ||
1021 | public void SendLayerData(int px, int py, float[] map) | 1021 | public void SendLayerData(int px, int py, float[] map) |
1022 | { | 1022 | { |
1023 | 1023 | ||
1024 | } | 1024 | } |
1025 | 1025 | ||
1026 | public void SendWindData(int version, Vector2[] windSpeeds) | 1026 | public void SendWindData(int version, Vector2[] windSpeeds) |
1027 | { | 1027 | { |
1028 | 1028 | ||
1029 | } | 1029 | } |
1030 | 1030 | ||
1031 | public void SendCloudData(int version, float[] cloudCover) | 1031 | public void SendCloudData(int version, float[] cloudCover) |
1032 | { | 1032 | { |
1033 | 1033 | ||
1034 | } | 1034 | } |
1035 | 1035 | ||
1036 | public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) | 1036 | public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) |
1037 | { | 1037 | { |
1038 | 1038 | ||
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | public void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint) | 1041 | public void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint) |
1042 | { | 1042 | { |
1043 | 1043 | ||
1044 | } | 1044 | } |
1045 | 1045 | ||
1046 | public AgentCircuitData RequestClientInfo() | 1046 | public AgentCircuitData RequestClientInfo() |
@@ -1050,32 +1050,32 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1050 | 1050 | ||
1051 | public void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt, IPEndPoint newRegionExternalEndPoint, string capsURL) | 1051 | public void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt, IPEndPoint newRegionExternalEndPoint, string capsURL) |
1052 | { | 1052 | { |
1053 | 1053 | ||
1054 | } | 1054 | } |
1055 | 1055 | ||
1056 | public void SendMapBlock(List<MapBlockData> mapBlocks, uint flag) | 1056 | public void SendMapBlock(List<MapBlockData> mapBlocks, uint flag) |
1057 | { | 1057 | { |
1058 | 1058 | ||
1059 | } | 1059 | } |
1060 | 1060 | ||
1061 | public void SendLocalTeleport(Vector3 position, Vector3 lookAt, uint flags) | 1061 | public void SendLocalTeleport(Vector3 position, Vector3 lookAt, uint flags) |
1062 | { | 1062 | { |
1063 | 1063 | ||
1064 | } | 1064 | } |
1065 | 1065 | ||
1066 | public void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID, uint flags, string capsURL) | 1066 | public void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID, uint flags, string capsURL) |
1067 | { | 1067 | { |
1068 | 1068 | ||
1069 | } | 1069 | } |
1070 | 1070 | ||
1071 | public void SendTeleportFailed(string reason) | 1071 | public void SendTeleportFailed(string reason) |
1072 | { | 1072 | { |
1073 | 1073 | ||
1074 | } | 1074 | } |
1075 | 1075 | ||
1076 | public void SendTeleportStart(uint flags) | 1076 | public void SendTeleportStart(uint flags) |
1077 | { | 1077 | { |
1078 | 1078 | ||
1079 | } | 1079 | } |
1080 | 1080 | ||
1081 | public void SendTeleportProgress(uint flags, string message) | 1081 | public void SendTeleportProgress(uint flags, string message) |
@@ -1084,17 +1084,17 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1084 | 1084 | ||
1085 | public void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance, int transactionType, UUID sourceID, bool sourceIsGroup, UUID destID, bool destIsGroup, int amount, string item) | 1085 | public void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance, int transactionType, UUID sourceID, bool sourceIsGroup, UUID destID, bool destIsGroup, int amount, string item) |
1086 | { | 1086 | { |
1087 | 1087 | ||
1088 | } | 1088 | } |
1089 | 1089 | ||
1090 | public void SendPayPrice(UUID objectID, int[] payPrice) | 1090 | public void SendPayPrice(UUID objectID, int[] payPrice) |
1091 | { | 1091 | { |
1092 | 1092 | ||
1093 | } | 1093 | } |
1094 | 1094 | ||
1095 | public void SendCoarseLocationUpdate(List<UUID> users, List<Vector3> CoarseLocations) | 1095 | public void SendCoarseLocationUpdate(List<UUID> users, List<Vector3> CoarseLocations) |
1096 | { | 1096 | { |
1097 | 1097 | ||
1098 | } | 1098 | } |
1099 | 1099 | ||
1100 | public void SendAvatarDataImmediate(ISceneEntity avatar) | 1100 | public void SendAvatarDataImmediate(ISceneEntity avatar) |
@@ -1119,12 +1119,12 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1119 | 1119 | ||
1120 | public void SendInventoryFolderDetails(UUID ownerID, UUID folderID, List<InventoryItemBase> items, List<InventoryFolderBase> folders, int version, bool fetchFolders, bool fetchItems) | 1120 | public void SendInventoryFolderDetails(UUID ownerID, UUID folderID, List<InventoryItemBase> items, List<InventoryFolderBase> folders, int version, bool fetchFolders, bool fetchItems) |
1121 | { | 1121 | { |
1122 | 1122 | ||
1123 | } | 1123 | } |
1124 | 1124 | ||
1125 | public void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item) | 1125 | public void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item) |
1126 | { | 1126 | { |
1127 | 1127 | ||
1128 | } | 1128 | } |
1129 | 1129 | ||
1130 | public void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId) | 1130 | public void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId) |
@@ -1139,72 +1139,72 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1139 | 1139 | ||
1140 | public void SendRemoveInventoryItem(UUID itemID) | 1140 | public void SendRemoveInventoryItem(UUID itemID) |
1141 | { | 1141 | { |
1142 | 1142 | ||
1143 | } | 1143 | } |
1144 | 1144 | ||
1145 | public void SendTakeControls(int controls, bool passToAgent, bool TakeControls) | 1145 | public void SendTakeControls(int controls, bool passToAgent, bool TakeControls) |
1146 | { | 1146 | { |
1147 | 1147 | ||
1148 | } | 1148 | } |
1149 | 1149 | ||
1150 | public void SendTaskInventory(UUID taskID, short serial, byte[] fileName) | 1150 | public void SendTaskInventory(UUID taskID, short serial, byte[] fileName) |
1151 | { | 1151 | { |
1152 | 1152 | ||
1153 | } | 1153 | } |
1154 | 1154 | ||
1155 | public void SendBulkUpdateInventory(InventoryNodeBase node) | 1155 | public void SendBulkUpdateInventory(InventoryNodeBase node) |
1156 | { | 1156 | { |
1157 | 1157 | ||
1158 | } | 1158 | } |
1159 | 1159 | ||
1160 | public void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory) | 1160 | public void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory) |
1161 | { | 1161 | { |
1162 | 1162 | ||
1163 | } | 1163 | } |
1164 | 1164 | ||
1165 | public void SendAbortXferPacket(ulong xferID) | 1165 | public void SendAbortXferPacket(ulong xferID) |
1166 | { | 1166 | { |
1167 | 1167 | ||
1168 | } | 1168 | } |
1169 | 1169 | ||
1170 | public void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit, int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor, int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay, int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent) | 1170 | public void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit, int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, float PriceObjectScaleFactor, int PriceParcelClaim, float PriceParcelClaimFactor, int PriceParcelRent, int PricePublicObjectDecay, int PricePublicObjectDelete, int PriceRentLight, int PriceUpload, int TeleportMinPrice, float TeleportPriceExponent) |
1171 | { | 1171 | { |
1172 | 1172 | ||
1173 | } | 1173 | } |
1174 | 1174 | ||
1175 | public void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data) | 1175 | public void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data) |
1176 | { | 1176 | { |
1177 | 1177 | ||
1178 | } | 1178 | } |
1179 | 1179 | ||
1180 | public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle) | 1180 | public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle) |
1181 | { | 1181 | { |
1182 | 1182 | ||
1183 | } | 1183 | } |
1184 | 1184 | ||
1185 | public void SendPreLoadSound(UUID objectID, UUID ownerID, UUID soundID) | 1185 | public void SendPreLoadSound(UUID objectID, UUID ownerID, UUID soundID) |
1186 | { | 1186 | { |
1187 | 1187 | ||
1188 | } | 1188 | } |
1189 | 1189 | ||
1190 | public void SendPlayAttachedSound(UUID soundID, UUID objectID, UUID ownerID, float gain, byte flags) | 1190 | public void SendPlayAttachedSound(UUID soundID, UUID objectID, UUID ownerID, float gain, byte flags) |
1191 | { | 1191 | { |
1192 | 1192 | ||
1193 | } | 1193 | } |
1194 | 1194 | ||
1195 | public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain) | 1195 | public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain) |
1196 | { | 1196 | { |
1197 | 1197 | ||
1198 | } | 1198 | } |
1199 | 1199 | ||
1200 | public void SendAttachedSoundGainChange(UUID objectID, float gain) | 1200 | public void SendAttachedSoundGainChange(UUID objectID, float gain) |
1201 | { | 1201 | { |
1202 | 1202 | ||
1203 | } | 1203 | } |
1204 | 1204 | ||
1205 | public void SendNameReply(UUID profileId, string firstname, string lastname) | 1205 | public void SendNameReply(UUID profileId, string firstname, string lastname) |
1206 | { | 1206 | { |
1207 | 1207 | ||
1208 | } | 1208 | } |
1209 | 1209 | ||
1210 | public void SendAlertMessage(string message) | 1210 | public void SendAlertMessage(string message) |
@@ -1214,12 +1214,12 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1214 | 1214 | ||
1215 | public void SendAgentAlertMessage(string message, bool modal) | 1215 | public void SendAgentAlertMessage(string message, bool modal) |
1216 | { | 1216 | { |
1217 | 1217 | ||
1218 | } | 1218 | } |
1219 | 1219 | ||
1220 | public void SendAlertMessage(string message, string info) | 1220 | public void SendAlertMessage(string message, string info) |
1221 | { | 1221 | { |
1222 | 1222 | ||
1223 | } | 1223 | } |
1224 | 1224 | ||
1225 | public void SendLoadURL(string objectname, UUID objectID, UUID ownerID, bool groupOwned, string message, string url) | 1225 | public void SendLoadURL(string objectname, UUID objectID, UUID ownerID, bool groupOwned, string message, string url) |
@@ -1229,77 +1229,77 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1229 | 1229 | ||
1230 | public void SendDialog(string objectname, UUID objectID, UUID ownerID, string ownerFirstName, string ownerLastName, string msg, UUID textureID, int ch, string[] buttonlabels) | 1230 | public void SendDialog(string objectname, UUID objectID, UUID ownerID, string ownerFirstName, string ownerLastName, string msg, UUID textureID, int ch, string[] buttonlabels) |
1231 | { | 1231 | { |
1232 | 1232 | ||
1233 | } | 1233 | } |
1234 | 1234 | ||
1235 | public void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition) | 1235 | public void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition) |
1236 | { | 1236 | { |
1237 | 1237 | ||
1238 | } | 1238 | } |
1239 | 1239 | ||
1240 | public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks) | 1240 | public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks) |
1241 | { | 1241 | { |
1242 | 1242 | ||
1243 | } | 1243 | } |
1244 | 1244 | ||
1245 | public void SendViewerTime(int phase) | 1245 | public void SendViewerTime(int phase) |
1246 | { | 1246 | { |
1247 | 1247 | ||
1248 | } | 1248 | } |
1249 | 1249 | ||
1250 | public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, byte[] membershipType, string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL, UUID partnerID) | 1250 | public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, byte[] membershipType, string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL, UUID partnerID) |
1251 | { | 1251 | { |
1252 | 1252 | ||
1253 | } | 1253 | } |
1254 | 1254 | ||
1255 | public void SendScriptQuestion(UUID taskID, string taskName, string ownerName, UUID itemID, int question) | 1255 | public void SendScriptQuestion(UUID taskID, string taskName, string ownerName, UUID itemID, int question) |
1256 | { | 1256 | { |
1257 | 1257 | ||
1258 | } | 1258 | } |
1259 | 1259 | ||
1260 | public void SendHealth(float health) | 1260 | public void SendHealth(float health) |
1261 | { | 1261 | { |
1262 | 1262 | ||
1263 | } | 1263 | } |
1264 | 1264 | ||
1265 | public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID) | 1265 | public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID) |
1266 | { | 1266 | { |
1267 | 1267 | ||
1268 | } | 1268 | } |
1269 | 1269 | ||
1270 | public void SendBannedUserList(UUID invoice, EstateBan[] banlist, uint estateID) | 1270 | public void SendBannedUserList(UUID invoice, EstateBan[] banlist, uint estateID) |
1271 | { | 1271 | { |
1272 | 1272 | ||
1273 | } | 1273 | } |
1274 | 1274 | ||
1275 | public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args) | 1275 | public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args) |
1276 | { | 1276 | { |
1277 | 1277 | ||
1278 | } | 1278 | } |
1279 | 1279 | ||
1280 | public void SendEstateCovenantInformation(UUID covenant) | 1280 | public void SendEstateCovenantInformation(UUID covenant) |
1281 | { | 1281 | { |
1282 | 1282 | ||
1283 | } | 1283 | } |
1284 | 1284 | ||
1285 | public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, uint covenantChanged, string abuseEmail, UUID estateOwner) | 1285 | public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, uint covenantChanged, string abuseEmail, UUID estateOwner) |
1286 | { | 1286 | { |
1287 | 1287 | ||
1288 | } | 1288 | } |
1289 | 1289 | ||
1290 | public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, ILandObject lo, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags) | 1290 | public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, ILandObject lo, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags) |
1291 | { | 1291 | { |
1292 | 1292 | ||
1293 | } | 1293 | } |
1294 | 1294 | ||
1295 | public void SendLandAccessListData(List<LandAccessEntry> accessList, uint accessFlag, int localLandID) | 1295 | public void SendLandAccessListData(List<LandAccessEntry> accessList, uint accessFlag, int localLandID) |
1296 | { | 1296 | { |
1297 | 1297 | ||
1298 | } | 1298 | } |
1299 | 1299 | ||
1300 | public void SendForceClientSelectObjects(List<uint> objectIDs) | 1300 | public void SendForceClientSelectObjects(List<uint> objectIDs) |
1301 | { | 1301 | { |
1302 | 1302 | ||
1303 | } | 1303 | } |
1304 | 1304 | ||
1305 | public void SendCameraConstraint(Vector4 ConstraintPlane) | 1305 | public void SendCameraConstraint(Vector4 ConstraintPlane) |
@@ -1309,57 +1309,57 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1309 | 1309 | ||
1310 | public void SendLandObjectOwners(LandData land, List<UUID> groups, Dictionary<UUID, int> ownersAndCount) | 1310 | public void SendLandObjectOwners(LandData land, List<UUID> groups, Dictionary<UUID, int> ownersAndCount) |
1311 | { | 1311 | { |
1312 | 1312 | ||
1313 | } | 1313 | } |
1314 | 1314 | ||
1315 | public void SendLandParcelOverlay(byte[] data, int sequence_id) | 1315 | public void SendLandParcelOverlay(byte[] data, int sequence_id) |
1316 | { | 1316 | { |
1317 | 1317 | ||
1318 | } | 1318 | } |
1319 | 1319 | ||
1320 | public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time) | 1320 | public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time) |
1321 | { | 1321 | { |
1322 | 1322 | ||
1323 | } | 1323 | } |
1324 | 1324 | ||
1325 | public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID, byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight, byte mediaLoop) | 1325 | public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID, byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight, byte mediaLoop) |
1326 | { | 1326 | { |
1327 | 1327 | ||
1328 | } | 1328 | } |
1329 | 1329 | ||
1330 | public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID) | 1330 | public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID) |
1331 | { | 1331 | { |
1332 | 1332 | ||
1333 | } | 1333 | } |
1334 | 1334 | ||
1335 | public void SendConfirmXfer(ulong xferID, uint PacketID) | 1335 | public void SendConfirmXfer(ulong xferID, uint PacketID) |
1336 | { | 1336 | { |
1337 | 1337 | ||
1338 | } | 1338 | } |
1339 | 1339 | ||
1340 | public void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName) | 1340 | public void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName) |
1341 | { | 1341 | { |
1342 | 1342 | ||
1343 | } | 1343 | } |
1344 | 1344 | ||
1345 | public void SendInitiateDownload(string simFileName, string clientFileName) | 1345 | public void SendInitiateDownload(string simFileName, string clientFileName) |
1346 | { | 1346 | { |
1347 | 1347 | ||
1348 | } | 1348 | } |
1349 | 1349 | ||
1350 | public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec) | 1350 | public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec) |
1351 | { | 1351 | { |
1352 | 1352 | ||
1353 | } | 1353 | } |
1354 | 1354 | ||
1355 | public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData) | 1355 | public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData) |
1356 | { | 1356 | { |
1357 | 1357 | ||
1358 | } | 1358 | } |
1359 | 1359 | ||
1360 | public void SendImageNotFound(UUID imageid) | 1360 | public void SendImageNotFound(UUID imageid) |
1361 | { | 1361 | { |
1362 | 1362 | ||
1363 | } | 1363 | } |
1364 | 1364 | ||
1365 | public void SendShutdownConnectionNotice() | 1365 | public void SendShutdownConnectionNotice() |
@@ -1369,12 +1369,12 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1369 | 1369 | ||
1370 | public void SendSimStats(SimStats stats) | 1370 | public void SendSimStats(SimStats stats) |
1371 | { | 1371 | { |
1372 | 1372 | ||
1373 | } | 1373 | } |
1374 | 1374 | ||
1375 | public void SendObjectPropertiesFamilyData(ISceneEntity Entity, uint RequestFlags) | 1375 | public void SendObjectPropertiesFamilyData(ISceneEntity Entity, uint RequestFlags) |
1376 | { | 1376 | { |
1377 | 1377 | ||
1378 | } | 1378 | } |
1379 | 1379 | ||
1380 | public void SendObjectPropertiesReply(ISceneEntity entity) | 1380 | public void SendObjectPropertiesReply(ISceneEntity entity) |
@@ -1383,12 +1383,12 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1383 | 1383 | ||
1384 | public void SendAgentOffline(UUID[] agentIDs) | 1384 | public void SendAgentOffline(UUID[] agentIDs) |
1385 | { | 1385 | { |
1386 | 1386 | ||
1387 | } | 1387 | } |
1388 | 1388 | ||
1389 | public void SendAgentOnline(UUID[] agentIDs) | 1389 | public void SendAgentOnline(UUID[] agentIDs) |
1390 | { | 1390 | { |
1391 | 1391 | ||
1392 | } | 1392 | } |
1393 | 1393 | ||
1394 | public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY) | 1394 | public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY) |
@@ -1397,62 +1397,62 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1397 | 1397 | ||
1398 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | 1398 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) |
1399 | { | 1399 | { |
1400 | 1400 | ||
1401 | } | 1401 | } |
1402 | 1402 | ||
1403 | public void SendAdminResponse(UUID Token, uint AdminLevel) | 1403 | public void SendAdminResponse(UUID Token, uint AdminLevel) |
1404 | { | 1404 | { |
1405 | 1405 | ||
1406 | } | 1406 | } |
1407 | 1407 | ||
1408 | public void SendGroupMembership(GroupMembershipData[] GroupMembership) | 1408 | public void SendGroupMembership(GroupMembershipData[] GroupMembership) |
1409 | { | 1409 | { |
1410 | 1410 | ||
1411 | } | 1411 | } |
1412 | 1412 | ||
1413 | public void SendGroupNameReply(UUID groupLLUID, string GroupName) | 1413 | public void SendGroupNameReply(UUID groupLLUID, string GroupName) |
1414 | { | 1414 | { |
1415 | 1415 | ||
1416 | } | 1416 | } |
1417 | 1417 | ||
1418 | public void SendJoinGroupReply(UUID groupID, bool success) | 1418 | public void SendJoinGroupReply(UUID groupID, bool success) |
1419 | { | 1419 | { |
1420 | 1420 | ||
1421 | } | 1421 | } |
1422 | 1422 | ||
1423 | public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool success) | 1423 | public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool success) |
1424 | { | 1424 | { |
1425 | 1425 | ||
1426 | } | 1426 | } |
1427 | 1427 | ||
1428 | public void SendLeaveGroupReply(UUID groupID, bool success) | 1428 | public void SendLeaveGroupReply(UUID groupID, bool success) |
1429 | { | 1429 | { |
1430 | 1430 | ||
1431 | } | 1431 | } |
1432 | 1432 | ||
1433 | public void SendCreateGroupReply(UUID groupID, bool success, string message) | 1433 | public void SendCreateGroupReply(UUID groupID, bool success, string message) |
1434 | { | 1434 | { |
1435 | 1435 | ||
1436 | } | 1436 | } |
1437 | 1437 | ||
1438 | public void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia) | 1438 | public void SendLandStatReply(uint reportType, uint requestFlags, uint resultCount, LandStatReportItem[] lsrpia) |
1439 | { | 1439 | { |
1440 | 1440 | ||
1441 | } | 1441 | } |
1442 | 1442 | ||
1443 | public void SendScriptRunningReply(UUID objectID, UUID itemID, bool running) | 1443 | public void SendScriptRunningReply(UUID objectID, UUID itemID, bool running) |
1444 | { | 1444 | { |
1445 | 1445 | ||
1446 | } | 1446 | } |
1447 | 1447 | ||
1448 | public void SendAsset(AssetRequestToClient req) | 1448 | public void SendAsset(AssetRequestToClient req) |
1449 | { | 1449 | { |
1450 | 1450 | ||
1451 | } | 1451 | } |
1452 | 1452 | ||
1453 | public void SendTexture(AssetBase TextureAsset) | 1453 | public void SendTexture(AssetBase TextureAsset) |
1454 | { | 1454 | { |
1455 | 1455 | ||
1456 | } | 1456 | } |
1457 | 1457 | ||
1458 | public virtual void SetChildAgentThrottle(byte[] throttle) | 1458 | public virtual void SetChildAgentThrottle(byte[] throttle) |
@@ -1467,7 +1467,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1467 | 1467 | ||
1468 | public void SetAgentThrottleSilent(int throttle, int setting) | 1468 | public void SetAgentThrottleSilent(int throttle, int setting) |
1469 | { | 1469 | { |
1470 | 1470 | ||
1471 | 1471 | ||
1472 | } | 1472 | } |
1473 | public byte[] GetThrottlesPacked(float multiplier) | 1473 | public byte[] GetThrottlesPacked(float multiplier) |
@@ -1498,12 +1498,12 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1498 | 1498 | ||
1499 | public void SetClientInfo(ClientInfo info) | 1499 | public void SetClientInfo(ClientInfo info) |
1500 | { | 1500 | { |
1501 | 1501 | ||
1502 | } | 1502 | } |
1503 | 1503 | ||
1504 | public void SetClientOption(string option, string value) | 1504 | public void SetClientOption(string option, string value) |
1505 | { | 1505 | { |
1506 | 1506 | ||
1507 | } | 1507 | } |
1508 | 1508 | ||
1509 | public string GetClientOption(string option) | 1509 | public string GetClientOption(string option) |
@@ -1518,67 +1518,67 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1518 | 1518 | ||
1519 | public void SendSetFollowCamProperties(UUID objectID, SortedDictionary<int, float> parameters) | 1519 | public void SendSetFollowCamProperties(UUID objectID, SortedDictionary<int, float> parameters) |
1520 | { | 1520 | { |
1521 | 1521 | ||
1522 | } | 1522 | } |
1523 | 1523 | ||
1524 | public void SendClearFollowCamProperties(UUID objectID) | 1524 | public void SendClearFollowCamProperties(UUID objectID) |
1525 | { | 1525 | { |
1526 | 1526 | ||
1527 | } | 1527 | } |
1528 | 1528 | ||
1529 | public void SendRegionHandle(UUID regoinID, ulong handle) | 1529 | public void SendRegionHandle(UUID regoinID, ulong handle) |
1530 | { | 1530 | { |
1531 | 1531 | ||
1532 | } | 1532 | } |
1533 | 1533 | ||
1534 | public void SendParcelInfo(RegionInfo info, LandData land, UUID parcelID, uint x, uint y) | 1534 | public void SendParcelInfo(RegionInfo info, LandData land, UUID parcelID, uint x, uint y) |
1535 | { | 1535 | { |
1536 | 1536 | ||
1537 | } | 1537 | } |
1538 | 1538 | ||
1539 | public void SendScriptTeleportRequest(string objName, string simName, Vector3 pos, Vector3 lookAt) | 1539 | public void SendScriptTeleportRequest(string objName, string simName, Vector3 pos, Vector3 lookAt) |
1540 | { | 1540 | { |
1541 | 1541 | ||
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | public void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data) | 1544 | public void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data) |
1545 | { | 1545 | { |
1546 | 1546 | ||
1547 | } | 1547 | } |
1548 | 1548 | ||
1549 | public void SendDirPeopleReply(UUID queryID, DirPeopleReplyData[] data) | 1549 | public void SendDirPeopleReply(UUID queryID, DirPeopleReplyData[] data) |
1550 | { | 1550 | { |
1551 | 1551 | ||
1552 | } | 1552 | } |
1553 | 1553 | ||
1554 | public void SendDirEventsReply(UUID queryID, DirEventsReplyData[] data) | 1554 | public void SendDirEventsReply(UUID queryID, DirEventsReplyData[] data) |
1555 | { | 1555 | { |
1556 | 1556 | ||
1557 | } | 1557 | } |
1558 | 1558 | ||
1559 | public void SendDirGroupsReply(UUID queryID, DirGroupsReplyData[] data) | 1559 | public void SendDirGroupsReply(UUID queryID, DirGroupsReplyData[] data) |
1560 | { | 1560 | { |
1561 | 1561 | ||
1562 | } | 1562 | } |
1563 | 1563 | ||
1564 | public void SendDirClassifiedReply(UUID queryID, DirClassifiedReplyData[] data) | 1564 | public void SendDirClassifiedReply(UUID queryID, DirClassifiedReplyData[] data) |
1565 | { | 1565 | { |
1566 | 1566 | ||
1567 | } | 1567 | } |
1568 | 1568 | ||
1569 | public void SendDirLandReply(UUID queryID, DirLandReplyData[] data) | 1569 | public void SendDirLandReply(UUID queryID, DirLandReplyData[] data) |
1570 | { | 1570 | { |
1571 | 1571 | ||
1572 | } | 1572 | } |
1573 | 1573 | ||
1574 | public void SendDirPopularReply(UUID queryID, DirPopularReplyData[] data) | 1574 | public void SendDirPopularReply(UUID queryID, DirPopularReplyData[] data) |
1575 | { | 1575 | { |
1576 | 1576 | ||
1577 | } | 1577 | } |
1578 | 1578 | ||
1579 | public void SendEventInfoReply(EventData info) | 1579 | public void SendEventInfoReply(EventData info) |
1580 | { | 1580 | { |
1581 | 1581 | ||
1582 | } | 1582 | } |
1583 | 1583 | ||
1584 | public void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint) | 1584 | public void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint) |
@@ -1588,7 +1588,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1588 | 1588 | ||
1589 | public void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags) | 1589 | public void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags) |
1590 | { | 1590 | { |
1591 | 1591 | ||
1592 | } | 1592 | } |
1593 | 1593 | ||
1594 | public void SendAvatarGroupsReply(UUID avatarID, GroupMembershipData[] data) | 1594 | public void SendAvatarGroupsReply(UUID avatarID, GroupMembershipData[] data) |
@@ -1603,78 +1603,78 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1603 | 1603 | ||
1604 | public void SendOfferCallingCard(UUID srcID, UUID transactionID) | 1604 | public void SendOfferCallingCard(UUID srcID, UUID transactionID) |
1605 | { | 1605 | { |
1606 | 1606 | ||
1607 | } | 1607 | } |
1608 | 1608 | ||
1609 | public void SendAcceptCallingCard(UUID transactionID) | 1609 | public void SendAcceptCallingCard(UUID transactionID) |
1610 | { | 1610 | { |
1611 | 1611 | ||
1612 | } | 1612 | } |
1613 | 1613 | ||
1614 | public void SendDeclineCallingCard(UUID transactionID) | 1614 | public void SendDeclineCallingCard(UUID transactionID) |
1615 | { | 1615 | { |
1616 | 1616 | ||
1617 | } | 1617 | } |
1618 | 1618 | ||
1619 | public void SendTerminateFriend(UUID exFriendID) | 1619 | public void SendTerminateFriend(UUID exFriendID) |
1620 | { | 1620 | { |
1621 | 1621 | ||
1622 | } | 1622 | } |
1623 | 1623 | ||
1624 | public void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name) | 1624 | public void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name) |
1625 | { | 1625 | { |
1626 | 1626 | ||
1627 | } | 1627 | } |
1628 | 1628 | ||
1629 | public void SendClassifiedInfoReply(UUID classifiedID, UUID creatorID, uint creationDate, uint expirationDate, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, string simName, Vector3 globalPos, string parcelName, byte classifiedFlags, int price) | 1629 | public void SendClassifiedInfoReply(UUID classifiedID, UUID creatorID, uint creationDate, uint expirationDate, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, string simName, Vector3 globalPos, string parcelName, byte classifiedFlags, int price) |
1630 | { | 1630 | { |
1631 | 1631 | ||
1632 | } | 1632 | } |
1633 | 1633 | ||
1634 | public void SendAgentDropGroup(UUID groupID) | 1634 | public void SendAgentDropGroup(UUID groupID) |
1635 | { | 1635 | { |
1636 | 1636 | ||
1637 | } | 1637 | } |
1638 | 1638 | ||
1639 | public void RefreshGroupMembership() | 1639 | public void RefreshGroupMembership() |
1640 | { | 1640 | { |
1641 | 1641 | ||
1642 | } | 1642 | } |
1643 | 1643 | ||
1644 | public void UpdateGroupMembership(GroupMembershipData[] data) | 1644 | public void UpdateGroupMembership(GroupMembershipData[] data) |
1645 | { | 1645 | { |
1646 | 1646 | ||
1647 | } | 1647 | } |
1648 | 1648 | ||
1649 | public void GroupMembershipRemove(UUID GroupID) | 1649 | public void GroupMembershipRemove(UUID GroupID) |
1650 | { | 1650 | { |
1651 | 1651 | ||
1652 | } | 1652 | } |
1653 | 1653 | ||
1654 | public void GroupMembershipAddReplace(UUID GroupID,ulong GroupPowers) | 1654 | public void GroupMembershipAddReplace(UUID GroupID,ulong GroupPowers) |
1655 | { | 1655 | { |
1656 | 1656 | ||
1657 | } | 1657 | } |
1658 | 1658 | ||
1659 | 1659 | ||
1660 | public void SendAvatarNotesReply(UUID targetID, string text) | 1660 | public void SendAvatarNotesReply(UUID targetID, string text) |
1661 | { | 1661 | { |
1662 | 1662 | ||
1663 | } | 1663 | } |
1664 | 1664 | ||
1665 | public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks) | 1665 | public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks) |
1666 | { | 1666 | { |
1667 | 1667 | ||
1668 | } | 1668 | } |
1669 | 1669 | ||
1670 | public void SendPickInfoReply(UUID pickID, UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled) | 1670 | public void SendPickInfoReply(UUID pickID, UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled) |
1671 | { | 1671 | { |
1672 | 1672 | ||
1673 | } | 1673 | } |
1674 | 1674 | ||
1675 | public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds) | 1675 | public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds) |
1676 | { | 1676 | { |
1677 | 1677 | ||
1678 | } | 1678 | } |
1679 | 1679 | ||
1680 | public void SendAvatarInterestUpdate(IClientAPI client, uint wantmask, string wanttext, uint skillsmask, string skillstext, string languages) | 1680 | public void SendAvatarInterestUpdate(IClientAPI client, uint wantmask, string wanttext, uint skillsmask, string skillstext, string languages) |
@@ -1684,22 +1684,22 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1684 | 1684 | ||
1685 | public void SendParcelDwellReply(int localID, UUID parcelID, float dwell) | 1685 | public void SendParcelDwellReply(int localID, UUID parcelID, float dwell) |
1686 | { | 1686 | { |
1687 | 1687 | ||
1688 | } | 1688 | } |
1689 | 1689 | ||
1690 | public void SendUserInfoReply(bool imViaEmail, bool visible, string email) | 1690 | public void SendUserInfoReply(bool imViaEmail, bool visible, string email) |
1691 | { | 1691 | { |
1692 | 1692 | ||
1693 | } | 1693 | } |
1694 | 1694 | ||
1695 | public void SendUseCachedMuteList() | 1695 | public void SendUseCachedMuteList() |
1696 | { | 1696 | { |
1697 | 1697 | ||
1698 | } | 1698 | } |
1699 | 1699 | ||
1700 | public void SendMuteListUpdate(string filename) | 1700 | public void SendMuteListUpdate(string filename) |
1701 | { | 1701 | { |
1702 | 1702 | ||
1703 | } | 1703 | } |
1704 | 1704 | ||
1705 | public bool AddGenericPacketHandler(string MethodName, GenericMessage handler) | 1705 | public bool AddGenericPacketHandler(string MethodName, GenericMessage handler) |
@@ -1716,15 +1716,15 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1716 | public void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages) | 1716 | public void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages) |
1717 | { | 1717 | { |
1718 | } | 1718 | } |
1719 | 1719 | ||
1720 | public void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt) | 1720 | public void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt) |
1721 | { | 1721 | { |
1722 | } | 1722 | } |
1723 | 1723 | ||
1724 | public void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier) | 1724 | public void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier) |
1725 | { | 1725 | { |
1726 | } | 1726 | } |
1727 | 1727 | ||
1728 | public void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt) | 1728 | public void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt) |
1729 | { | 1729 | { |
1730 | } | 1730 | } |
@@ -1748,7 +1748,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1748 | public void SendAgentTerseUpdate(ISceneEntity presence) | 1748 | public void SendAgentTerseUpdate(ISceneEntity presence) |
1749 | { | 1749 | { |
1750 | } | 1750 | } |
1751 | 1751 | ||
1752 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) | 1752 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) |
1753 | { | 1753 | { |
1754 | } | 1754 | } |
diff --git a/OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs b/OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs index c897aa5..e93fcdc 100644 --- a/OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs +++ b/OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs | |||
@@ -54,36 +54,36 @@ namespace OpenSim.Region.OptionalModules.Agent.TextureSender | |||
54 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 54 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
55 | 55 | ||
56 | private Scene m_scene; | 56 | private Scene m_scene; |
57 | 57 | ||
58 | public string Name { get { return "Asset Information Module"; } } | 58 | public string Name { get { return "Asset Information Module"; } } |
59 | 59 | ||
60 | public Type ReplaceableInterface { get { return null; } } | 60 | public Type ReplaceableInterface { get { return null; } } |
61 | 61 | ||
62 | public void Initialise(IConfigSource source) | 62 | public void Initialise(IConfigSource source) |
63 | { | 63 | { |
64 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: INITIALIZED MODULE"); | 64 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: INITIALIZED MODULE"); |
65 | } | 65 | } |
66 | 66 | ||
67 | public void PostInitialise() | 67 | public void PostInitialise() |
68 | { | 68 | { |
69 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: POST INITIALIZED MODULE"); | 69 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: POST INITIALIZED MODULE"); |
70 | } | 70 | } |
71 | 71 | ||
72 | public void Close() | 72 | public void Close() |
73 | { | 73 | { |
74 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: CLOSED MODULE"); | 74 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: CLOSED MODULE"); |
75 | } | 75 | } |
76 | 76 | ||
77 | public void AddRegion(Scene scene) | 77 | public void AddRegion(Scene scene) |
78 | { | 78 | { |
79 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 79 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
80 | } | 80 | } |
81 | 81 | ||
82 | public void RemoveRegion(Scene scene) | 82 | public void RemoveRegion(Scene scene) |
83 | { | 83 | { |
84 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 84 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
85 | } | 85 | } |
86 | 86 | ||
87 | public void RegionLoaded(Scene scene) | 87 | public void RegionLoaded(Scene scene) |
88 | { | 88 | { |
89 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 89 | // m_log.DebugFormat("[J2K DECODER COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
@@ -117,10 +117,10 @@ namespace OpenSim.Region.OptionalModules.Agent.TextureSender | |||
117 | MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid ID format", rawAssetId); | 117 | MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid ID format", rawAssetId); |
118 | return; | 118 | return; |
119 | } | 119 | } |
120 | 120 | ||
121 | AssetBase asset = m_scene.AssetService.Get(assetId.ToString()); | 121 | AssetBase asset = m_scene.AssetService.Get(assetId.ToString()); |
122 | if (asset == null) | 122 | if (asset == null) |
123 | { | 123 | { |
124 | MainConsole.Instance.OutputFormat("ERROR: No asset found with ID {0}", assetId); | 124 | MainConsole.Instance.OutputFormat("ERROR: No asset found with ID {0}", assetId); |
125 | return; | 125 | return; |
126 | } | 126 | } |
diff --git a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs index 071530b..3be5a07 100644 --- a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs +++ b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs | |||
@@ -52,48 +52,48 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
52 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "LindenUDPInfoModule")] | 52 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "LindenUDPInfoModule")] |
53 | public class LindenUDPInfoModule : ISharedRegionModule | 53 | public class LindenUDPInfoModule : ISharedRegionModule |
54 | { | 54 | { |
55 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 55 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
56 | 56 | ||
57 | protected Dictionary<UUID, Scene> m_scenes = new Dictionary<UUID, Scene>(); | 57 | protected Dictionary<UUID, Scene> m_scenes = new Dictionary<UUID, Scene>(); |
58 | 58 | ||
59 | public string Name { get { return "Linden UDP Module"; } } | 59 | public string Name { get { return "Linden UDP Module"; } } |
60 | 60 | ||
61 | public Type ReplaceableInterface { get { return null; } } | 61 | public Type ReplaceableInterface { get { return null; } } |
62 | 62 | ||
63 | public void Initialise(IConfigSource source) | 63 | public void Initialise(IConfigSource source) |
64 | { | 64 | { |
65 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: INITIALIZED MODULE"); | 65 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: INITIALIZED MODULE"); |
66 | } | 66 | } |
67 | 67 | ||
68 | public void PostInitialise() | 68 | public void PostInitialise() |
69 | { | 69 | { |
70 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: POST INITIALIZED MODULE"); | 70 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: POST INITIALIZED MODULE"); |
71 | } | 71 | } |
72 | 72 | ||
73 | public void Close() | 73 | public void Close() |
74 | { | 74 | { |
75 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: CLOSED MODULE"); | 75 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: CLOSED MODULE"); |
76 | } | 76 | } |
77 | 77 | ||
78 | public void AddRegion(Scene scene) | 78 | public void AddRegion(Scene scene) |
79 | { | 79 | { |
80 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 80 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
81 | 81 | ||
82 | lock (m_scenes) | 82 | lock (m_scenes) |
83 | m_scenes[scene.RegionInfo.RegionID] = scene; | 83 | m_scenes[scene.RegionInfo.RegionID] = scene; |
84 | 84 | ||
85 | scene.AddCommand( | 85 | scene.AddCommand( |
86 | "Comms", this, "show pqueues", | 86 | "Comms", this, "show pqueues", |
87 | "show pqueues [full]", | 87 | "show pqueues [full]", |
88 | "Show priority queue data for each client", | 88 | "Show priority queue data for each client", |
89 | "Without the 'full' option, only root agents are shown." | 89 | "Without the 'full' option, only root agents are shown." |
90 | + " With the 'full' option child agents are also shown.", | 90 | + " With the 'full' option child agents are also shown.", |
91 | (mod, cmd) => MainConsole.Instance.Output(GetPQueuesReport(cmd))); | 91 | (mod, cmd) => MainConsole.Instance.Output(GetPQueuesReport(cmd))); |
92 | 92 | ||
93 | scene.AddCommand( | 93 | scene.AddCommand( |
94 | "Comms", this, "show queues", | 94 | "Comms", this, "show queues", |
95 | "show queues [full]", | 95 | "show queues [full]", |
96 | "Show queue data for each client", | 96 | "Show queue data for each client", |
97 | "Without the 'full' option, only root agents are shown.\n" | 97 | "Without the 'full' option, only root agents are shown.\n" |
98 | + "With the 'full' option child agents are also shown.\n\n" | 98 | + "With the 'full' option child agents are also shown.\n\n" |
99 | + "Type - Rt is a root (avatar) client whilst cd is a child (neighbour interacting) client.\n" | 99 | + "Type - Rt is a root (avatar) client whilst cd is a child (neighbour interacting) client.\n" |
@@ -116,13 +116,13 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
116 | "clear image queues <first-name> <last-name>", | 116 | "clear image queues <first-name> <last-name>", |
117 | "Clear the image queues (textures downloaded via UDP) for a particular client.", | 117 | "Clear the image queues (textures downloaded via UDP) for a particular client.", |
118 | (mod, cmd) => MainConsole.Instance.Output(HandleImageQueuesClear(cmd))); | 118 | (mod, cmd) => MainConsole.Instance.Output(HandleImageQueuesClear(cmd))); |
119 | 119 | ||
120 | scene.AddCommand( | 120 | scene.AddCommand( |
121 | "Comms", this, "show throttles", | 121 | "Comms", this, "show throttles", |
122 | "show throttles [full]", | 122 | "show throttles [full]", |
123 | "Show throttle settings for each client and for the server overall", | 123 | "Show throttle settings for each client and for the server overall", |
124 | "Without the 'full' option, only root agents are shown." | 124 | "Without the 'full' option, only root agents are shown." |
125 | + " With the 'full' option child agents are also shown.", | 125 | + " With the 'full' option child agents are also shown.", |
126 | (mod, cmd) => MainConsole.Instance.Output(GetThrottlesReport(cmd))); | 126 | (mod, cmd) => MainConsole.Instance.Output(GetThrottlesReport(cmd))); |
127 | 127 | ||
128 | scene.AddCommand( | 128 | scene.AddCommand( |
@@ -134,15 +134,15 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
134 | (mod, cmd) => MainConsole.Instance.Output(HandleClientStatsReport(cmd))); | 134 | (mod, cmd) => MainConsole.Instance.Output(HandleClientStatsReport(cmd))); |
135 | 135 | ||
136 | } | 136 | } |
137 | 137 | ||
138 | public void RemoveRegion(Scene scene) | 138 | public void RemoveRegion(Scene scene) |
139 | { | 139 | { |
140 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 140 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
141 | 141 | ||
142 | lock (m_scenes) | 142 | lock (m_scenes) |
143 | m_scenes.Remove(scene.RegionInfo.RegionID); | 143 | m_scenes.Remove(scene.RegionInfo.RegionID); |
144 | } | 144 | } |
145 | 145 | ||
146 | public void RegionLoaded(Scene scene) | 146 | public void RegionLoaded(Scene scene) |
147 | { | 147 | { |
148 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 148 | // m_log.DebugFormat("[LINDEN UDP INFO MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
@@ -176,7 +176,7 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
176 | foreach (ScenePresence agent in foundAgents) | 176 | foreach (ScenePresence agent in foundAgents) |
177 | { | 177 | { |
178 | LLClientView client = agent.ControllingClient as LLClientView; | 178 | LLClientView client = agent.ControllingClient as LLClientView; |
179 | 179 | ||
180 | if (client == null) | 180 | if (client == null) |
181 | return "This command is only supported for LLClientView"; | 181 | return "This command is only supported for LLClientView"; |
182 | 182 | ||
@@ -191,10 +191,10 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
191 | } | 191 | } |
192 | 192 | ||
193 | protected string GetColumnEntry(string entry, int maxLength, int columnPadding) | 193 | protected string GetColumnEntry(string entry, int maxLength, int columnPadding) |
194 | { | 194 | { |
195 | return string.Format( | 195 | return string.Format( |
196 | "{0,-" + maxLength + "}{1,-" + columnPadding + "}", | 196 | "{0,-" + maxLength + "}{1,-" + columnPadding + "}", |
197 | entry.Length > maxLength ? entry.Substring(0, maxLength) : entry, | 197 | entry.Length > maxLength ? entry.Substring(0, maxLength) : entry, |
198 | ""); | 198 | ""); |
199 | } | 199 | } |
200 | 200 | ||
@@ -207,29 +207,29 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
207 | { | 207 | { |
208 | bool showChildren = false; | 208 | bool showChildren = false; |
209 | string pname = ""; | 209 | string pname = ""; |
210 | 210 | ||
211 | if (showParams.Length > 2 && showParams[2] == "full") | 211 | if (showParams.Length > 2 && showParams[2] == "full") |
212 | showChildren = true; | 212 | showChildren = true; |
213 | else if (showParams.Length > 3) | 213 | else if (showParams.Length > 3) |
214 | pname = showParams[2] + " " + showParams[3]; | 214 | pname = showParams[2] + " " + showParams[3]; |
215 | 215 | ||
216 | StringBuilder report = new StringBuilder(); | 216 | StringBuilder report = new StringBuilder(); |
217 | 217 | ||
218 | int columnPadding = 2; | 218 | int columnPadding = 2; |
219 | int maxNameLength = 18; | 219 | int maxNameLength = 18; |
220 | int maxRegionNameLength = 14; | 220 | int maxRegionNameLength = 14; |
221 | int maxTypeLength = 4; | 221 | int maxTypeLength = 4; |
222 | // int totalInfoFieldsLength = maxNameLength + columnPadding + maxRegionNameLength + columnPadding + maxTypeLength + columnPadding; | 222 | // int totalInfoFieldsLength = maxNameLength + columnPadding + maxRegionNameLength + columnPadding + maxTypeLength + columnPadding; |
223 | 223 | ||
224 | report.Append(GetColumnEntry("User", maxNameLength, columnPadding)); | 224 | report.Append(GetColumnEntry("User", maxNameLength, columnPadding)); |
225 | report.Append(GetColumnEntry("Region", maxRegionNameLength, columnPadding)); | 225 | report.Append(GetColumnEntry("Region", maxRegionNameLength, columnPadding)); |
226 | report.Append(GetColumnEntry("Type", maxTypeLength, columnPadding)); | 226 | report.Append(GetColumnEntry("Type", maxTypeLength, columnPadding)); |
227 | 227 | ||
228 | report.AppendFormat( | 228 | report.AppendFormat( |
229 | "{0,7} {1,7} {2,7} {3,7} {4,7} {5,7} {6,7} {7,7} {8,7} {9,7} {10,7} {11,7}\n", | 229 | "{0,7} {1,7} {2,7} {3,7} {4,7} {5,7} {6,7} {7,7} {8,7} {9,7} {10,7} {11,7}\n", |
230 | "Pri 0", | 230 | "Pri 0", |
231 | "Pri 1", | 231 | "Pri 1", |
232 | "Pri 2", | 232 | "Pri 2", |
233 | "Pri 3", | 233 | "Pri 3", |
234 | "Pri 4", | 234 | "Pri 4", |
235 | "Pri 5", | 235 | "Pri 5", |
@@ -252,16 +252,16 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
252 | bool isChild = client.SceneAgent.IsChildAgent; | 252 | bool isChild = client.SceneAgent.IsChildAgent; |
253 | if (isChild && !showChildren) | 253 | if (isChild && !showChildren) |
254 | return; | 254 | return; |
255 | 255 | ||
256 | string name = client.Name; | 256 | string name = client.Name; |
257 | if (pname != "" && name != pname) | 257 | if (pname != "" && name != pname) |
258 | return; | 258 | return; |
259 | 259 | ||
260 | string regionName = scene.RegionInfo.RegionName; | 260 | string regionName = scene.RegionInfo.RegionName; |
261 | 261 | ||
262 | report.Append(GetColumnEntry(name, maxNameLength, columnPadding)); | 262 | report.Append(GetColumnEntry(name, maxNameLength, columnPadding)); |
263 | report.Append(GetColumnEntry(regionName, maxRegionNameLength, columnPadding)); | 263 | report.Append(GetColumnEntry(regionName, maxRegionNameLength, columnPadding)); |
264 | report.Append(GetColumnEntry(isChild ? "Cd" : "Rt", maxTypeLength, columnPadding)); | 264 | report.Append(GetColumnEntry(isChild ? "Cd" : "Rt", maxTypeLength, columnPadding)); |
265 | report.AppendLine(((LLClientView)client).EntityUpdateQueue.ToString()); | 265 | report.AppendLine(((LLClientView)client).EntityUpdateQueue.ToString()); |
266 | } | 266 | } |
267 | }); | 267 | }); |
@@ -306,17 +306,17 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
306 | foreach (ScenePresence agent in foundAgents) | 306 | foreach (ScenePresence agent in foundAgents) |
307 | { | 307 | { |
308 | LLClientView client = agent.ControllingClient as LLClientView; | 308 | LLClientView client = agent.ControllingClient as LLClientView; |
309 | 309 | ||
310 | if (client == null) | 310 | if (client == null) |
311 | return "This command is only supported for LLClientView"; | 311 | return "This command is only supported for LLClientView"; |
312 | 312 | ||
313 | J2KImage[] images = client.ImageManager.GetImages(); | 313 | J2KImage[] images = client.ImageManager.GetImages(); |
314 | 314 | ||
315 | report.AppendFormat( | 315 | report.AppendFormat( |
316 | "In region {0} ({1} agent)\n", | 316 | "In region {0} ({1} agent)\n", |
317 | agent.Scene.RegionInfo.RegionName, agent.IsChildAgent ? "child" : "root"); | 317 | agent.Scene.RegionInfo.RegionName, agent.IsChildAgent ? "child" : "root"); |
318 | report.AppendFormat("Images in queue: {0}\n", images.Length); | 318 | report.AppendFormat("Images in queue: {0}\n", images.Length); |
319 | 319 | ||
320 | if (images.Length > 0) | 320 | if (images.Length > 0) |
321 | { | 321 | { |
322 | report.AppendFormat( | 322 | report.AppendFormat( |
@@ -327,7 +327,7 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
327 | "Start Pkt", | 327 | "Start Pkt", |
328 | "Has Asset", | 328 | "Has Asset", |
329 | "Decoded"); | 329 | "Decoded"); |
330 | 330 | ||
331 | foreach (J2KImage image in images) | 331 | foreach (J2KImage image in images) |
332 | report.AppendFormat( | 332 | report.AppendFormat( |
333 | "{0,36} {1,8} {2,10} {3,10} {4,9} {5,7}\n", | 333 | "{0,36} {1,8} {2,10} {3,10} {4,9} {5,7}\n", |
@@ -337,7 +337,7 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
337 | 337 | ||
338 | return report.ToString(); | 338 | return report.ToString(); |
339 | } | 339 | } |
340 | 340 | ||
341 | /// <summary> | 341 | /// <summary> |
342 | /// Generate UDP Queue data report for each client | 342 | /// Generate UDP Queue data report for each client |
343 | /// </summary> | 343 | /// </summary> |
@@ -347,16 +347,16 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
347 | { | 347 | { |
348 | bool showChildren = false; | 348 | bool showChildren = false; |
349 | string pname = ""; | 349 | string pname = ""; |
350 | 350 | ||
351 | if (showParams.Length > 2 && showParams[2] == "full") | 351 | if (showParams.Length > 2 && showParams[2] == "full") |
352 | showChildren = true; | 352 | showChildren = true; |
353 | else if (showParams.Length > 3) | 353 | else if (showParams.Length > 3) |
354 | pname = showParams[2] + " " + showParams[3]; | 354 | pname = showParams[2] + " " + showParams[3]; |
355 | 355 | ||
356 | StringBuilder report = new StringBuilder(); | 356 | StringBuilder report = new StringBuilder(); |
357 | 357 | ||
358 | int columnPadding = 2; | 358 | int columnPadding = 2; |
359 | int maxNameLength = 18; | 359 | int maxNameLength = 18; |
360 | int maxRegionNameLength = 14; | 360 | int maxRegionNameLength = 14; |
361 | int maxTypeLength = 4; | 361 | int maxTypeLength = 4; |
362 | 362 | ||
@@ -364,11 +364,11 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
364 | = maxNameLength + columnPadding | 364 | = maxNameLength + columnPadding |
365 | + maxRegionNameLength + columnPadding | 365 | + maxRegionNameLength + columnPadding |
366 | + maxTypeLength + columnPadding; | 366 | + maxTypeLength + columnPadding; |
367 | 367 | ||
368 | report.Append(GetColumnEntry("User", maxNameLength, columnPadding)); | 368 | report.Append(GetColumnEntry("User", maxNameLength, columnPadding)); |
369 | report.Append(GetColumnEntry("Region", maxRegionNameLength, columnPadding)); | 369 | report.Append(GetColumnEntry("Region", maxRegionNameLength, columnPadding)); |
370 | report.Append(GetColumnEntry("Type", maxTypeLength, columnPadding)); | 370 | report.Append(GetColumnEntry("Type", maxTypeLength, columnPadding)); |
371 | 371 | ||
372 | report.AppendFormat( | 372 | report.AppendFormat( |
373 | "{0,7} {1,7} {2,7} {3,7} {4,9} {5,7} {6,7} {7,7} {8,7} {9,7} {10,8} {11,7}\n", | 373 | "{0,7} {1,7} {2,7} {3,7} {4,9} {5,7} {6,7} {7,7} {8,7} {9,7} {10,8} {11,7}\n", |
374 | "Since", | 374 | "Since", |
@@ -383,7 +383,7 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
383 | "Q Pkts", | 383 | "Q Pkts", |
384 | "Q Pkts", | 384 | "Q Pkts", |
385 | "Q Pkts"); | 385 | "Q Pkts"); |
386 | 386 | ||
387 | report.AppendFormat("{0,-" + totalInfoFieldsLength + "}", ""); | 387 | report.AppendFormat("{0,-" + totalInfoFieldsLength + "}", ""); |
388 | report.AppendFormat( | 388 | report.AppendFormat( |
389 | "{0,7} {1,7} {2,7} {3,7} {4,9} {5,7} {6,7} {7,7} {8,7} {9,7} {10,8} {11,7}\n", | 389 | "{0,7} {1,7} {2,7} {3,7} {4,9} {5,7} {6,7} {7,7} {8,7} {9,7} {10,8} {11,7}\n", |
@@ -398,8 +398,8 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
398 | "Cloud", | 398 | "Cloud", |
399 | "Task", | 399 | "Task", |
400 | "Texture", | 400 | "Texture", |
401 | "Asset"); | 401 | "Asset"); |
402 | 402 | ||
403 | lock (m_scenes) | 403 | lock (m_scenes) |
404 | { | 404 | { |
405 | foreach (Scene scene in m_scenes.Values) | 405 | foreach (Scene scene in m_scenes.Values) |
@@ -413,7 +413,7 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
413 | bool isChild = client.SceneAgent.IsChildAgent; | 413 | bool isChild = client.SceneAgent.IsChildAgent; |
414 | if (isChild && !showChildren) | 414 | if (isChild && !showChildren) |
415 | return; | 415 | return; |
416 | 416 | ||
417 | string name = client.Name; | 417 | string name = client.Name; |
418 | if (pname != "" && name != pname) | 418 | if (pname != "" && name != pname) |
419 | return; | 419 | return; |
@@ -424,7 +424,7 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
424 | report.Append(GetColumnEntry(regionName, maxRegionNameLength, columnPadding)); | 424 | report.Append(GetColumnEntry(regionName, maxRegionNameLength, columnPadding)); |
425 | report.Append(GetColumnEntry(isChild ? "Cd" : "Rt", maxTypeLength, columnPadding)); | 425 | report.Append(GetColumnEntry(isChild ? "Cd" : "Rt", maxTypeLength, columnPadding)); |
426 | 426 | ||
427 | IStatsCollector stats = (IStatsCollector)client; | 427 | IStatsCollector stats = (IStatsCollector)client; |
428 | report.AppendLine(stats.Report()); | 428 | report.AppendLine(stats.Report()); |
429 | } | 429 | } |
430 | }); | 430 | }); |
@@ -432,8 +432,8 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
432 | } | 432 | } |
433 | 433 | ||
434 | return report.ToString(); | 434 | return report.ToString(); |
435 | } | 435 | } |
436 | 436 | ||
437 | /// <summary> | 437 | /// <summary> |
438 | /// Show throttle data | 438 | /// Show throttle data |
439 | /// </summary> | 439 | /// </summary> |
@@ -443,28 +443,28 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
443 | { | 443 | { |
444 | bool showChildren = false; | 444 | bool showChildren = false; |
445 | string pname = ""; | 445 | string pname = ""; |
446 | 446 | ||
447 | if (showParams.Length > 2 && showParams[2] == "full") | 447 | if (showParams.Length > 2 && showParams[2] == "full") |
448 | showChildren = true; | 448 | showChildren = true; |
449 | else if (showParams.Length > 3) | 449 | else if (showParams.Length > 3) |
450 | pname = showParams[2] + " " + showParams[3]; | 450 | pname = showParams[2] + " " + showParams[3]; |
451 | 451 | ||
452 | StringBuilder report = new StringBuilder(); | 452 | StringBuilder report = new StringBuilder(); |
453 | 453 | ||
454 | int columnPadding = 2; | 454 | int columnPadding = 2; |
455 | int maxNameLength = 18; | 455 | int maxNameLength = 18; |
456 | int maxRegionNameLength = 14; | 456 | int maxRegionNameLength = 14; |
457 | int maxTypeLength = 4; | 457 | int maxTypeLength = 4; |
458 | int totalInfoFieldsLength = maxNameLength + columnPadding + maxRegionNameLength + columnPadding + maxTypeLength + columnPadding; | 458 | int totalInfoFieldsLength = maxNameLength + columnPadding + maxRegionNameLength + columnPadding + maxTypeLength + columnPadding; |
459 | 459 | ||
460 | report.Append(GetColumnEntry("User", maxNameLength, columnPadding)); | 460 | report.Append(GetColumnEntry("User", maxNameLength, columnPadding)); |
461 | report.Append(GetColumnEntry("Region", maxRegionNameLength, columnPadding)); | 461 | report.Append(GetColumnEntry("Region", maxRegionNameLength, columnPadding)); |
462 | report.Append(GetColumnEntry("Type", maxTypeLength, columnPadding)); | 462 | report.Append(GetColumnEntry("Type", maxTypeLength, columnPadding)); |
463 | 463 | ||
464 | report.AppendFormat( | 464 | report.AppendFormat( |
465 | "{0,8} {1,8} {2,7} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7}\n", | 465 | "{0,8} {1,8} {2,7} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7}\n", |
466 | "Max", | 466 | "Max", |
467 | "Target", | 467 | "Target", |
468 | "Actual", | 468 | "Actual", |
469 | "Resend", | 469 | "Resend", |
470 | "Land", | 470 | "Land", |
@@ -472,8 +472,8 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
472 | "Cloud", | 472 | "Cloud", |
473 | "Task", | 473 | "Task", |
474 | "Texture", | 474 | "Texture", |
475 | "Asset"); | 475 | "Asset"); |
476 | 476 | ||
477 | report.AppendFormat("{0,-" + totalInfoFieldsLength + "}", ""); | 477 | report.AppendFormat("{0,-" + totalInfoFieldsLength + "}", ""); |
478 | report.AppendFormat( | 478 | report.AppendFormat( |
479 | "{0,8} {1,8} {2,7} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7}\n", | 479 | "{0,8} {1,8} {2,7} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7}\n", |
@@ -486,10 +486,10 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
486 | "kb/s", | 486 | "kb/s", |
487 | "kb/s", | 487 | "kb/s", |
488 | "kb/s", | 488 | "kb/s", |
489 | "kb/s"); | 489 | "kb/s"); |
490 | 490 | ||
491 | report.AppendLine(); | 491 | report.AppendLine(); |
492 | 492 | ||
493 | lock (m_scenes) | 493 | lock (m_scenes) |
494 | { | 494 | { |
495 | foreach (Scene scene in m_scenes.Values) | 495 | foreach (Scene scene in m_scenes.Values) |
@@ -504,25 +504,25 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
504 | bool isChild = client.SceneAgent.IsChildAgent; | 504 | bool isChild = client.SceneAgent.IsChildAgent; |
505 | if (isChild && !showChildren) | 505 | if (isChild && !showChildren) |
506 | return; | 506 | return; |
507 | 507 | ||
508 | string name = client.Name; | 508 | string name = client.Name; |
509 | if (pname != "" && name != pname) | 509 | if (pname != "" && name != pname) |
510 | return; | 510 | return; |
511 | 511 | ||
512 | string regionName = scene.RegionInfo.RegionName; | 512 | string regionName = scene.RegionInfo.RegionName; |
513 | 513 | ||
514 | LLUDPClient llUdpClient = llClient.UDPClient; | 514 | LLUDPClient llUdpClient = llClient.UDPClient; |
515 | ClientInfo ci = llUdpClient.GetClientInfo(); | 515 | ClientInfo ci = llUdpClient.GetClientInfo(); |
516 | 516 | ||
517 | report.Append(GetColumnEntry(name, maxNameLength, columnPadding)); | 517 | report.Append(GetColumnEntry(name, maxNameLength, columnPadding)); |
518 | report.Append(GetColumnEntry(regionName, maxRegionNameLength, columnPadding)); | 518 | report.Append(GetColumnEntry(regionName, maxRegionNameLength, columnPadding)); |
519 | report.Append(GetColumnEntry(isChild ? "Cd" : "Rt", maxTypeLength, columnPadding)); | 519 | report.Append(GetColumnEntry(isChild ? "Cd" : "Rt", maxTypeLength, columnPadding)); |
520 | 520 | ||
521 | report.AppendFormat( | 521 | report.AppendFormat( |
522 | "{0,8} {1,8} {2,7} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7}\n", | 522 | "{0,8} {1,8} {2,7} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7}\n", |
523 | ci.maxThrottle > 0 ? ((ci.maxThrottle * 8) / 1000).ToString() : "-", | 523 | ci.maxThrottle > 0 ? ((ci.maxThrottle * 8) / 1000).ToString() : "-", |
524 | llUdpClient.FlowThrottle.AdaptiveEnabled | 524 | llUdpClient.FlowThrottle.AdaptiveEnabled |
525 | ? ((ci.targetThrottle * 8) / 1000).ToString() | 525 | ? ((ci.targetThrottle * 8) / 1000).ToString() |
526 | : (llUdpClient.FlowThrottle.TotalDripRequest * 8 / 1000).ToString(), | 526 | : (llUdpClient.FlowThrottle.TotalDripRequest * 8 / 1000).ToString(), |
527 | (ci.totalThrottle * 8) / 1000, | 527 | (ci.totalThrottle * 8) / 1000, |
528 | (ci.resendThrottle * 8) / 1000, | 528 | (ci.resendThrottle * 8) / 1000, |
@@ -538,7 +538,7 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
538 | } | 538 | } |
539 | 539 | ||
540 | return report.ToString(); | 540 | return report.ToString(); |
541 | } | 541 | } |
542 | 542 | ||
543 | /// <summary> | 543 | /// <summary> |
544 | /// Show client stats data | 544 | /// Show client stats data |
@@ -568,20 +568,20 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden | |||
568 | string childAgentStatus; | 568 | string childAgentStatus; |
569 | 569 | ||
570 | if (llClient.SceneAgent != null) | 570 | if (llClient.SceneAgent != null) |
571 | childAgentStatus = llClient.SceneAgent.IsChildAgent ? "N" : "Y"; | 571 | childAgentStatus = llClient.SceneAgent.IsChildAgent ? "N" : "Y"; |
572 | else | 572 | else |
573 | childAgentStatus = "Off!"; | 573 | childAgentStatus = "Off!"; |
574 | 574 | ||
575 | m_log.InfoFormat("[INFO]: {0,-12} {1,-20} {2,-6} {3,-11} {4,-11} {5,-16}", | 575 | m_log.InfoFormat("[INFO]: {0,-12} {1,-20} {2,-6} {3,-11} {4,-11} {5,-16}", |
576 | scene.RegionInfo.RegionName, llClient.Name, | 576 | scene.RegionInfo.RegionName, llClient.Name, |
577 | childAgentStatus, | 577 | childAgentStatus, |
578 | (DateTime.Now - cinfo.StartedTime).Minutes, | 578 | (DateTime.Now - cinfo.StartedTime).Minutes, |
579 | avg_reqs, | 579 | avg_reqs, |
580 | string.Format( | 580 | string.Format( |
581 | "{0} ({1:0.00}%)", | 581 | "{0} ({1:0.00}%)", |
582 | llClient.TotalAgentUpdates, | 582 | llClient.TotalAgentUpdates, |
583 | cinfo.SyncRequests.ContainsKey("AgentUpdate") | 583 | cinfo.SyncRequests.ContainsKey("AgentUpdate") |
584 | ? (float)cinfo.SyncRequests["AgentUpdate"] / llClient.TotalAgentUpdates * 100 | 584 | ? (float)cinfo.SyncRequests["AgentUpdate"] / llClient.TotalAgentUpdates * 100 |
585 | : 0)); | 585 | : 0)); |
586 | } | 586 | } |
587 | }); | 587 | }); |
diff --git a/OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs b/OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs index 7639c6c..906e1ee 100644 --- a/OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs +++ b/OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs | |||
@@ -50,36 +50,36 @@ namespace OpenSim.Region.OptionalModules.Asset | |||
50 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 50 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
51 | 51 | ||
52 | private Scene m_scene; | 52 | private Scene m_scene; |
53 | 53 | ||
54 | public string Name { get { return "Asset Information Module"; } } | 54 | public string Name { get { return "Asset Information Module"; } } |
55 | 55 | ||
56 | public Type ReplaceableInterface { get { return null; } } | 56 | public Type ReplaceableInterface { get { return null; } } |
57 | 57 | ||
58 | public void Initialise(IConfigSource source) | 58 | public void Initialise(IConfigSource source) |
59 | { | 59 | { |
60 | // m_log.DebugFormat("[ASSET INFO MODULE]: INITIALIZED MODULE"); | 60 | // m_log.DebugFormat("[ASSET INFO MODULE]: INITIALIZED MODULE"); |
61 | } | 61 | } |
62 | 62 | ||
63 | public void PostInitialise() | 63 | public void PostInitialise() |
64 | { | 64 | { |
65 | // m_log.DebugFormat("[ASSET INFO MODULE]: POST INITIALIZED MODULE"); | 65 | // m_log.DebugFormat("[ASSET INFO MODULE]: POST INITIALIZED MODULE"); |
66 | } | 66 | } |
67 | 67 | ||
68 | public void Close() | 68 | public void Close() |
69 | { | 69 | { |
70 | // m_log.DebugFormat("[ASSET INFO MODULE]: CLOSED MODULE"); | 70 | // m_log.DebugFormat("[ASSET INFO MODULE]: CLOSED MODULE"); |
71 | } | 71 | } |
72 | 72 | ||
73 | public void AddRegion(Scene scene) | 73 | public void AddRegion(Scene scene) |
74 | { | 74 | { |
75 | // m_log.DebugFormat("[ASSET INFO MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 75 | // m_log.DebugFormat("[ASSET INFO MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
76 | } | 76 | } |
77 | 77 | ||
78 | public void RemoveRegion(Scene scene) | 78 | public void RemoveRegion(Scene scene) |
79 | { | 79 | { |
80 | // m_log.DebugFormat("[ASSET INFO MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 80 | // m_log.DebugFormat("[ASSET INFO MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
81 | } | 81 | } |
82 | 82 | ||
83 | public void RegionLoaded(Scene scene) | 83 | public void RegionLoaded(Scene scene) |
84 | { | 84 | { |
85 | // m_log.DebugFormat("[ASSET INFO MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 85 | // m_log.DebugFormat("[ASSET INFO MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
@@ -118,27 +118,27 @@ namespace OpenSim.Region.OptionalModules.Asset | |||
118 | MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid ID format", rawAssetId); | 118 | MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid ID format", rawAssetId); |
119 | return; | 119 | return; |
120 | } | 120 | } |
121 | 121 | ||
122 | AssetBase asset = m_scene.AssetService.Get(assetId.ToString()); | 122 | AssetBase asset = m_scene.AssetService.Get(assetId.ToString()); |
123 | if (asset == null) | 123 | if (asset == null) |
124 | { | 124 | { |
125 | MainConsole.Instance.OutputFormat("ERROR: No asset found with ID {0}", assetId); | 125 | MainConsole.Instance.OutputFormat("ERROR: No asset found with ID {0}", assetId); |
126 | return; | 126 | return; |
127 | } | 127 | } |
128 | 128 | ||
129 | string fileName = rawAssetId; | 129 | string fileName = rawAssetId; |
130 | 130 | ||
131 | if (!ConsoleUtil.CheckFileDoesNotExist(MainConsole.Instance, fileName)) | 131 | if (!ConsoleUtil.CheckFileDoesNotExist(MainConsole.Instance, fileName)) |
132 | return; | 132 | return; |
133 | 133 | ||
134 | using (FileStream fs = new FileStream(fileName, FileMode.CreateNew)) | 134 | using (FileStream fs = new FileStream(fileName, FileMode.CreateNew)) |
135 | { | 135 | { |
136 | using (BinaryWriter bw = new BinaryWriter(fs)) | 136 | using (BinaryWriter bw = new BinaryWriter(fs)) |
137 | { | 137 | { |
138 | bw.Write(asset.Data); | 138 | bw.Write(asset.Data); |
139 | } | 139 | } |
140 | } | 140 | } |
141 | 141 | ||
142 | MainConsole.Instance.OutputFormat("Asset dumped to file {0}", fileName); | 142 | MainConsole.Instance.OutputFormat("Asset dumped to file {0}", fileName); |
143 | } | 143 | } |
144 | 144 | ||
diff --git a/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs b/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs index 5c45e4d..0698cec 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs | |||
@@ -57,41 +57,41 @@ namespace OpenSim.Region.OptionalModules.Avatar.Animations | |||
57 | private List<Scene> m_scenes = new List<Scene>(); | 57 | private List<Scene> m_scenes = new List<Scene>(); |
58 | 58 | ||
59 | public string Name { get { return "Animations Command Module"; } } | 59 | public string Name { get { return "Animations Command Module"; } } |
60 | 60 | ||
61 | public Type ReplaceableInterface { get { return null; } } | 61 | public Type ReplaceableInterface { get { return null; } } |
62 | 62 | ||
63 | public void Initialise(IConfigSource source) | 63 | public void Initialise(IConfigSource source) |
64 | { | 64 | { |
65 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: INITIALIZED MODULE"); | 65 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: INITIALIZED MODULE"); |
66 | } | 66 | } |
67 | 67 | ||
68 | public void PostInitialise() | 68 | public void PostInitialise() |
69 | { | 69 | { |
70 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: POST INITIALIZED MODULE"); | 70 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: POST INITIALIZED MODULE"); |
71 | } | 71 | } |
72 | 72 | ||
73 | public void Close() | 73 | public void Close() |
74 | { | 74 | { |
75 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: CLOSED MODULE"); | 75 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: CLOSED MODULE"); |
76 | } | 76 | } |
77 | 77 | ||
78 | public void AddRegion(Scene scene) | 78 | public void AddRegion(Scene scene) |
79 | { | 79 | { |
80 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 80 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
81 | } | 81 | } |
82 | 82 | ||
83 | public void RemoveRegion(Scene scene) | 83 | public void RemoveRegion(Scene scene) |
84 | { | 84 | { |
85 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 85 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
86 | 86 | ||
87 | lock (m_scenes) | 87 | lock (m_scenes) |
88 | m_scenes.Remove(scene); | 88 | m_scenes.Remove(scene); |
89 | } | 89 | } |
90 | 90 | ||
91 | public void RegionLoaded(Scene scene) | 91 | public void RegionLoaded(Scene scene) |
92 | { | 92 | { |
93 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 93 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
94 | 94 | ||
95 | lock (m_scenes) | 95 | lock (m_scenes) |
96 | m_scenes.Add(scene); | 96 | m_scenes.Add(scene); |
97 | 97 | ||
@@ -156,18 +156,18 @@ namespace OpenSim.Region.OptionalModules.Avatar.Animations | |||
156 | 156 | ||
157 | string cma = spa.CurrentMovementAnimation; | 157 | string cma = spa.CurrentMovementAnimation; |
158 | cdl.AddRow( | 158 | cdl.AddRow( |
159 | "Current movement anim", | 159 | "Current movement anim", |
160 | string.Format("{0}, {1}", DefaultAvatarAnimations.GetDefaultAnimation(cma), cma)); | 160 | string.Format("{0}, {1}", DefaultAvatarAnimations.GetDefaultAnimation(cma), cma)); |
161 | 161 | ||
162 | UUID defaultAnimId = anims.DefaultAnimation.AnimID; | 162 | UUID defaultAnimId = anims.DefaultAnimation.AnimID; |
163 | cdl.AddRow( | 163 | cdl.AddRow( |
164 | "Default anim", | 164 | "Default anim", |
165 | string.Format("{0}, {1}", defaultAnimId, sp.Animator.GetAnimName(defaultAnimId))); | 165 | string.Format("{0}, {1}", defaultAnimId, sp.Animator.GetAnimName(defaultAnimId))); |
166 | 166 | ||
167 | UUID implicitDefaultAnimId = anims.ImplicitDefaultAnimation.AnimID; | 167 | UUID implicitDefaultAnimId = anims.ImplicitDefaultAnimation.AnimID; |
168 | cdl.AddRow( | 168 | cdl.AddRow( |
169 | "Implicit default anim", | 169 | "Implicit default anim", |
170 | string.Format("{0}, {1}", | 170 | string.Format("{0}, {1}", |
171 | implicitDefaultAnimId, sp.Animator.GetAnimName(implicitDefaultAnimId))); | 171 | implicitDefaultAnimId, sp.Animator.GetAnimName(implicitDefaultAnimId))); |
172 | 172 | ||
173 | cdl.AddToStringBuilder(sb); | 173 | cdl.AddToStringBuilder(sb); |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs index 2f9bb1e..60ae0cb 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs | |||
@@ -54,43 +54,43 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
54 | private List<Scene> m_scenes = new List<Scene>(); | 54 | private List<Scene> m_scenes = new List<Scene>(); |
55 | 55 | ||
56 | // private IAvatarFactoryModule m_avatarFactory; | 56 | // private IAvatarFactoryModule m_avatarFactory; |
57 | 57 | ||
58 | public string Name { get { return "Appearance Information Module"; } } | 58 | public string Name { get { return "Appearance Information Module"; } } |
59 | 59 | ||
60 | public Type ReplaceableInterface { get { return null; } } | 60 | public Type ReplaceableInterface { get { return null; } } |
61 | 61 | ||
62 | public void Initialise(IConfigSource source) | 62 | public void Initialise(IConfigSource source) |
63 | { | 63 | { |
64 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: INITIALIZED MODULE"); | 64 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: INITIALIZED MODULE"); |
65 | } | 65 | } |
66 | 66 | ||
67 | public void PostInitialise() | 67 | public void PostInitialise() |
68 | { | 68 | { |
69 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: POST INITIALIZED MODULE"); | 69 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: POST INITIALIZED MODULE"); |
70 | } | 70 | } |
71 | 71 | ||
72 | public void Close() | 72 | public void Close() |
73 | { | 73 | { |
74 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: CLOSED MODULE"); | 74 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: CLOSED MODULE"); |
75 | } | 75 | } |
76 | 76 | ||
77 | public void AddRegion(Scene scene) | 77 | public void AddRegion(Scene scene) |
78 | { | 78 | { |
79 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 79 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
80 | } | 80 | } |
81 | 81 | ||
82 | public void RemoveRegion(Scene scene) | 82 | public void RemoveRegion(Scene scene) |
83 | { | 83 | { |
84 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 84 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
85 | 85 | ||
86 | lock (m_scenes) | 86 | lock (m_scenes) |
87 | m_scenes.Remove(scene); | 87 | m_scenes.Remove(scene); |
88 | } | 88 | } |
89 | 89 | ||
90 | public void RegionLoaded(Scene scene) | 90 | public void RegionLoaded(Scene scene) |
91 | { | 91 | { |
92 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 92 | // m_log.DebugFormat("[APPEARANCE INFO MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
93 | 93 | ||
94 | lock (m_scenes) | 94 | lock (m_scenes) |
95 | m_scenes.Add(scene); | 95 | m_scenes.Add(scene); |
96 | 96 | ||
@@ -99,7 +99,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
99 | "show appearance [<first-name> <last-name>]", | 99 | "show appearance [<first-name> <last-name>]", |
100 | "Synonym for 'appearance show'", | 100 | "Synonym for 'appearance show'", |
101 | HandleShowAppearanceCommand); | 101 | HandleShowAppearanceCommand); |
102 | 102 | ||
103 | scene.AddCommand( | 103 | scene.AddCommand( |
104 | "Users", this, "appearance show", | 104 | "Users", this, "appearance show", |
105 | "appearance show [<first-name> <last-name>]", | 105 | "appearance show [<first-name> <last-name>]", |
@@ -222,7 +222,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
222 | } | 222 | } |
223 | 223 | ||
224 | lock (m_scenes) | 224 | lock (m_scenes) |
225 | { | 225 | { |
226 | foreach (Scene scene in m_scenes) | 226 | foreach (Scene scene in m_scenes) |
227 | { | 227 | { |
228 | if (targetNameSupplied) | 228 | if (targetNameSupplied) |
@@ -344,7 +344,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
344 | 344 | ||
345 | if (targetNameSupplied) | 345 | if (targetNameSupplied) |
346 | { | 346 | { |
347 | lock (m_scenes) | 347 | lock (m_scenes) |
348 | { | 348 | { |
349 | foreach (Scene scene in m_scenes) | 349 | foreach (Scene scene in m_scenes) |
350 | { | 350 | { |
@@ -360,12 +360,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
360 | cdt.AddColumn("Name", ConsoleDisplayUtil.UserNameSize); | 360 | cdt.AddColumn("Name", ConsoleDisplayUtil.UserNameSize); |
361 | cdt.AddColumn("Wearables", 2); | 361 | cdt.AddColumn("Wearables", 2); |
362 | 362 | ||
363 | lock (m_scenes) | 363 | lock (m_scenes) |
364 | { | 364 | { |
365 | foreach (Scene scene in m_scenes) | 365 | foreach (Scene scene in m_scenes) |
366 | { | 366 | { |
367 | scene.ForEachRootScenePresence( | 367 | scene.ForEachRootScenePresence( |
368 | sp => | 368 | sp => |
369 | { | 369 | { |
370 | int count = 0; | 370 | int count = 0; |
371 | 371 | ||
@@ -428,7 +428,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
428 | 428 | ||
429 | uuidGatherer.AddForInspection(wi.AssetID); | 429 | uuidGatherer.AddForInspection(wi.AssetID); |
430 | uuidGatherer.GatherAll(); | 430 | uuidGatherer.GatherAll(); |
431 | string[] assetStrings | 431 | string[] assetStrings |
432 | = Array.ConvertAll<UUID, string>(uuidGatherer.GatheredUuids.Keys.ToArray(), u => u.ToString()); | 432 | = Array.ConvertAll<UUID, string>(uuidGatherer.GatheredUuids.Keys.ToArray(), u => u.ToString()); |
433 | 433 | ||
434 | bool[] existChecks = scene.AssetService.AssetsExist(assetStrings); | 434 | bool[] existChecks = scene.AssetService.AssetsExist(assetStrings); |
@@ -438,10 +438,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
438 | cdt.AddColumn("Type", 10); | 438 | cdt.AddColumn("Type", 10); |
439 | cdt.AddColumn("UUID", ConsoleDisplayUtil.UuidSize); | 439 | cdt.AddColumn("UUID", ConsoleDisplayUtil.UuidSize); |
440 | cdt.AddColumn("Found", 5); | 440 | cdt.AddColumn("Found", 5); |
441 | 441 | ||
442 | for (int k = 0; k < existChecks.Length; k++) | 442 | for (int k = 0; k < existChecks.Length; k++) |
443 | cdt.AddRow( | 443 | cdt.AddRow( |
444 | (AssetType)uuidGatherer.GatheredUuids[new UUID(assetStrings[k])], | 444 | (AssetType)uuidGatherer.GatheredUuids[new UUID(assetStrings[k])], |
445 | assetStrings[k], existChecks[k] ? "yes" : "no"); | 445 | assetStrings[k], existChecks[k] ? "yes" : "no"); |
446 | 446 | ||
447 | sb.Append(cdt.ToString()); | 447 | sb.Append(cdt.ToString()); |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Attachments/AttachmentsCommandModule.cs b/OpenSim/Region/OptionalModules/Avatar/Attachments/AttachmentsCommandModule.cs index a147e9b..3685041 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Attachments/AttachmentsCommandModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Attachments/AttachmentsCommandModule.cs | |||
@@ -55,41 +55,41 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
55 | // private IAvatarFactoryModule m_avatarFactory; | 55 | // private IAvatarFactoryModule m_avatarFactory; |
56 | 56 | ||
57 | public string Name { get { return "Attachments Command Module"; } } | 57 | public string Name { get { return "Attachments Command Module"; } } |
58 | 58 | ||
59 | public Type ReplaceableInterface { get { return null; } } | 59 | public Type ReplaceableInterface { get { return null; } } |
60 | 60 | ||
61 | public void Initialise(IConfigSource source) | 61 | public void Initialise(IConfigSource source) |
62 | { | 62 | { |
63 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: INITIALIZED MODULE"); | 63 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: INITIALIZED MODULE"); |
64 | } | 64 | } |
65 | 65 | ||
66 | public void PostInitialise() | 66 | public void PostInitialise() |
67 | { | 67 | { |
68 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: POST INITIALIZED MODULE"); | 68 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: POST INITIALIZED MODULE"); |
69 | } | 69 | } |
70 | 70 | ||
71 | public void Close() | 71 | public void Close() |
72 | { | 72 | { |
73 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: CLOSED MODULE"); | 73 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: CLOSED MODULE"); |
74 | } | 74 | } |
75 | 75 | ||
76 | public void AddRegion(Scene scene) | 76 | public void AddRegion(Scene scene) |
77 | { | 77 | { |
78 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 78 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
79 | } | 79 | } |
80 | 80 | ||
81 | public void RemoveRegion(Scene scene) | 81 | public void RemoveRegion(Scene scene) |
82 | { | 82 | { |
83 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 83 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
84 | 84 | ||
85 | lock (m_scenes) | 85 | lock (m_scenes) |
86 | m_scenes.Remove(scene); | 86 | m_scenes.Remove(scene); |
87 | } | 87 | } |
88 | 88 | ||
89 | public void RegionLoaded(Scene scene) | 89 | public void RegionLoaded(Scene scene) |
90 | { | 90 | { |
91 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 91 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
92 | 92 | ||
93 | lock (m_scenes) | 93 | lock (m_scenes) |
94 | m_scenes.Add(scene); | 94 | m_scenes.Add(scene); |
95 | 95 | ||
diff --git a/OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs b/OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs index 535bf67..ed27385 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs | |||
@@ -125,7 +125,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
125 | SendConsoleOutput(agentID, "Command parameter error"); | 125 | SendConsoleOutput(agentID, "Command parameter error"); |
126 | return; | 126 | return; |
127 | } | 127 | } |
128 | 128 | ||
129 | m_scene.StoreExtraSetting("auto_grant_attach_perms", val); | 129 | m_scene.StoreExtraSetting("auto_grant_attach_perms", val); |
130 | 130 | ||
131 | SendConsoleOutput(agentID, String.Format("auto_grant_attach_perms set to {0}", val)); | 131 | SendConsoleOutput(agentID, String.Format("auto_grant_attach_perms set to {0}", val)); |
@@ -155,7 +155,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
155 | ScenePresence target; | 155 | ScenePresence target; |
156 | if (!m_scene.TryGetScenePresence(item.PermsGranter, out target)) | 156 | if (!m_scene.TryGetScenePresence(item.PermsGranter, out target)) |
157 | return 0; | 157 | return 0; |
158 | 158 | ||
159 | if (target.UUID != hostPart.ParentGroup.OwnerID) | 159 | if (target.UUID != hostPart.ParentGroup.OwnerID) |
160 | { | 160 | { |
161 | uint effectivePerms = hostPart.ParentGroup.GetEffectivePermissions(); | 161 | uint effectivePerms = hostPart.ParentGroup.GetEffectivePermissions(); |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Chat/ChannelState.cs b/OpenSim/Region/OptionalModules/Avatar/Chat/ChannelState.cs index 73215cb..27ab32f 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Chat/ChannelState.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Chat/ChannelState.cs | |||
@@ -38,7 +38,7 @@ using OpenSim.Region.Framework.Scenes; | |||
38 | namespace OpenSim.Region.OptionalModules.Avatar.Chat | 38 | namespace OpenSim.Region.OptionalModules.Avatar.Chat |
39 | { | 39 | { |
40 | 40 | ||
41 | // An instance of this class exists for each unique combination of | 41 | // An instance of this class exists for each unique combination of |
42 | // IRC chat interface characteristics, as determined by the supplied | 42 | // IRC chat interface characteristics, as determined by the supplied |
43 | // configuration file. | 43 | // configuration file. |
44 | 44 | ||
@@ -266,11 +266,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
266 | ChannelState cs = p_cs; | 266 | ChannelState cs = p_cs; |
267 | 267 | ||
268 | // Check to see if we have an existing server/channel setup that can be used | 268 | // Check to see if we have an existing server/channel setup that can be used |
269 | // In the absence of variable substitution this will always resolve to the | 269 | // In the absence of variable substitution this will always resolve to the |
270 | // same ChannelState instance, and the table will only contains a single | 270 | // same ChannelState instance, and the table will only contains a single |
271 | // entry, so the performance considerations for the existing behavior are | 271 | // entry, so the performance considerations for the existing behavior are |
272 | // zero. Only the IRC connector is shared, the ChannelState still contains | 272 | // zero. Only the IRC connector is shared, the ChannelState still contains |
273 | // values that, while independent of the IRC connetion, do still distinguish | 273 | // values that, while independent of the IRC connetion, do still distinguish |
274 | // this region's behavior. | 274 | // this region's behavior. |
275 | 275 | ||
276 | lock (IRCBridgeModule.m_channels) | 276 | lock (IRCBridgeModule.m_channels) |
@@ -335,7 +335,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
335 | 335 | ||
336 | } | 336 | } |
337 | 337 | ||
338 | // These routines allow differentiating changes to | 338 | // These routines allow differentiating changes to |
339 | // the underlying channel state. If necessary, a | 339 | // the underlying channel state. If necessary, a |
340 | // new channel state will be created. | 340 | // new channel state will be created. |
341 | 341 | ||
@@ -426,7 +426,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
426 | } | 426 | } |
427 | 427 | ||
428 | // This level of obsessive matching allows us to produce | 428 | // This level of obsessive matching allows us to produce |
429 | // a minimal overhead int he case of a server which does | 429 | // a minimal overhead int he case of a server which does |
430 | // need to differentiate IRC at a region level. | 430 | // need to differentiate IRC at a region level. |
431 | 431 | ||
432 | private bool IsAPerfectMatchFor(ChannelState cs) | 432 | private bool IsAPerfectMatchFor(ChannelState cs) |
@@ -447,8 +447,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
447 | ); | 447 | ); |
448 | } | 448 | } |
449 | 449 | ||
450 | // This function implements the variable substitution mechanism | 450 | // This function implements the variable substitution mechanism |
451 | // for the configuration values. Each string read from the | 451 | // for the configuration values. Each string read from the |
452 | // configuration file is scanned for '[...]' enclosures. Each | 452 | // configuration file is scanned for '[...]' enclosures. Each |
453 | // one that is found is replaced by either a runtime variable | 453 | // one that is found is replaced by either a runtime variable |
454 | // (%xxx) or an existing configuration key. When no further | 454 | // (%xxx) or an existing configuration key. When no further |
@@ -585,7 +585,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
585 | 585 | ||
586 | } | 586 | } |
587 | 587 | ||
588 | // This function is lifted from the IRCConnector because it | 588 | // This function is lifted from the IRCConnector because it |
589 | // contains information that is not differentiating from an | 589 | // contains information that is not differentiating from an |
590 | // IRC point-of-view. | 590 | // IRC point-of-view. |
591 | 591 | ||
@@ -598,7 +598,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
598 | { | 598 | { |
599 | 599 | ||
600 | // Scan through the set of unique channel configuration for those | 600 | // Scan through the set of unique channel configuration for those |
601 | // that belong to this connector. And then forward the message to | 601 | // that belong to this connector. And then forward the message to |
602 | // all regions known to those channels. | 602 | // all regions known to those channels. |
603 | // Note that this code is responsible for completing some of the | 603 | // Note that this code is responsible for completing some of the |
604 | // settings for the inbound OSChatMessage | 604 | // settings for the inbound OSChatMessage |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Chat/IRCConnector.cs b/OpenSim/Region/OptionalModules/Avatar/Chat/IRCConnector.cs index 941379f..ffbebe7 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Chat/IRCConnector.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Chat/IRCConnector.cs | |||
@@ -97,14 +97,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
97 | 97 | ||
98 | // How many regions depend upon this connection | 98 | // How many regions depend upon this connection |
99 | // This count is updated by the ChannelState object and reflects the sum | 99 | // This count is updated by the ChannelState object and reflects the sum |
100 | // of the region clients associated with the set of associated channel | 100 | // of the region clients associated with the set of associated channel |
101 | // state instances. That's why it cannot be managed here. | 101 | // state instances. That's why it cannot be managed here. |
102 | 102 | ||
103 | internal int depends = 0; | 103 | internal int depends = 0; |
104 | 104 | ||
105 | // This variable counts the number of resets that have been performed | 105 | // This variable counts the number of resets that have been performed |
106 | // on the connector. When a listener thread terminates, it checks to | 106 | // on the connector. When a listener thread terminates, it checks to |
107 | // see of the reset count has changed before it schedules another | 107 | // see of the reset count has changed before it schedules another |
108 | // reset. | 108 | // reset. |
109 | 109 | ||
110 | internal int m_resetk = 0; | 110 | internal int m_resetk = 0; |
@@ -428,7 +428,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
428 | public void PrivMsg(string pattern, string from, string region, string msg) | 428 | public void PrivMsg(string pattern, string from, string region, string msg) |
429 | { | 429 | { |
430 | 430 | ||
431 | // m_log.DebugFormat("[IRC-Connector-{0}] PrivMsg to IRC from {1}: <{2}>", idn, from, | 431 | // m_log.DebugFormat("[IRC-Connector-{0}] PrivMsg to IRC from {1}: <{2}>", idn, from, |
432 | // String.Format(pattern, m_ircChannel, from, region, msg)); | 432 | // String.Format(pattern, m_ircChannel, from, region, msg)); |
433 | 433 | ||
434 | // One message to the IRC server | 434 | // One message to the IRC server |
@@ -510,7 +510,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
510 | c.Sender = null; | 510 | c.Sender = null; |
511 | c.SenderUUID = UUID.Zero; | 511 | c.SenderUUID = UUID.Zero; |
512 | 512 | ||
513 | // Is message "\001ACTION foo bar\001"? | 513 | // Is message "\001ACTION foo bar\001"? |
514 | // Then change to: "/me foo bar" | 514 | // Then change to: "/me foo bar" |
515 | 515 | ||
516 | if ((1 == c.Message[0]) && c.Message.Substring(1).StartsWith("ACTION")) | 516 | if ((1 == c.Message[0]) && c.Message.Substring(1).StartsWith("ACTION")) |
@@ -608,8 +608,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
608 | string parms = String.Empty; | 608 | string parms = String.Empty; |
609 | 609 | ||
610 | // ":" indicates that a prefix is present | 610 | // ":" indicates that a prefix is present |
611 | // There are NEVER more than 17 real | 611 | // There are NEVER more than 17 real |
612 | // fields. A parameter that starts with | 612 | // fields. A parameter that starts with |
613 | // ":" indicates that the remainder of the | 613 | // ":" indicates that the remainder of the |
614 | // line is a single parameter value. | 614 | // line is a single parameter value. |
615 | 615 | ||
@@ -873,7 +873,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
873 | } | 873 | } |
874 | 874 | ||
875 | // Being marked connected is not enough to ping. Socket establishment can sometimes take a long | 875 | // Being marked connected is not enough to ping. Socket establishment can sometimes take a long |
876 | // time, in which case the watch dog might try to ping the server before the socket has been | 876 | // time, in which case the watch dog might try to ping the server before the socket has been |
877 | // set up, with nasty side-effects. | 877 | // set up, with nasty side-effects. |
878 | 878 | ||
879 | else if (_pdk_ == 0) | 879 | else if (_pdk_ == 0) |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Chat/RegionState.cs b/OpenSim/Region/OptionalModules/Avatar/Chat/RegionState.cs index 5505001..a3ef83b 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Chat/RegionState.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Chat/RegionState.cs | |||
@@ -414,7 +414,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
414 | } | 414 | } |
415 | } | 415 | } |
416 | 416 | ||
417 | // This method gives the region an opportunity to interfere with | 417 | // This method gives the region an opportunity to interfere with |
418 | // message delivery. For now we just enforce the enable/disable | 418 | // message delivery. For now we just enforce the enable/disable |
419 | // flag. | 419 | // flag. |
420 | 420 | ||
@@ -428,7 +428,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
428 | } | 428 | } |
429 | } | 429 | } |
430 | 430 | ||
431 | // This supports any local message traffic that might be needed in | 431 | // This supports any local message traffic that might be needed in |
432 | // support of command processing. At present there is none. | 432 | // support of command processing. At present there is none. |
433 | 433 | ||
434 | internal void LocalChat(string msg) | 434 | internal void LocalChat(string msg) |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs b/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs index 6c147f4..c0de3d9 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs | |||
@@ -98,7 +98,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
98 | // replace it. | 98 | // replace it. |
99 | m_replacingChatModule = false; | 99 | m_replacingChatModule = false; |
100 | } | 100 | } |
101 | else | 101 | else |
102 | { | 102 | { |
103 | m_replacingChatModule = !configSource.Configs["Chat"].GetBoolean("enabled", true); | 103 | m_replacingChatModule = !configSource.Configs["Chat"].GetBoolean("enabled", true); |
104 | } | 104 | } |
@@ -107,7 +107,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
107 | { | 107 | { |
108 | m_replacingChatModule = false; | 108 | m_replacingChatModule = false; |
109 | } | 109 | } |
110 | 110 | ||
111 | m_log.InfoFormat("[Concierge] {0} ChatModule", m_replacingChatModule ? "replacing" : "not replacing"); | 111 | m_log.InfoFormat("[Concierge] {0} ChatModule", m_replacingChatModule ? "replacing" : "not replacing"); |
112 | 112 | ||
113 | // take note of concierge channel and of identity | 113 | // take note of concierge channel and of identity |
@@ -119,7 +119,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
119 | m_xmlRpcPassword = config.GetString("password", m_xmlRpcPassword); | 119 | m_xmlRpcPassword = config.GetString("password", m_xmlRpcPassword); |
120 | m_brokerURI = config.GetString("broker", m_brokerURI); | 120 | m_brokerURI = config.GetString("broker", m_brokerURI); |
121 | m_brokerUpdateTimeout = config.GetInt("broker_timeout", m_brokerUpdateTimeout); | 121 | m_brokerUpdateTimeout = config.GetInt("broker_timeout", m_brokerUpdateTimeout); |
122 | 122 | ||
123 | m_log.InfoFormat("[Concierge] reporting as \"{0}\" to our users", m_whoami); | 123 | m_log.InfoFormat("[Concierge] reporting as \"{0}\" to our users", m_whoami); |
124 | 124 | ||
125 | // calculate regions Regex | 125 | // calculate regions Regex |
@@ -207,7 +207,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
207 | { | 207 | { |
208 | } | 208 | } |
209 | 209 | ||
210 | new public Type ReplaceableInterface | 210 | new public Type ReplaceableInterface |
211 | { | 211 | { |
212 | get { return null; } | 212 | get { return null; } |
213 | } | 213 | } |
@@ -278,7 +278,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
278 | // range of chat to cover the whole | 278 | // range of chat to cover the whole |
279 | // region. however, we don't do this for whisper | 279 | // region. however, we don't do this for whisper |
280 | // (got to have some privacy) | 280 | // (got to have some privacy) |
281 | if (c.Type != ChatTypeEnum.Whisper) | 281 | if (c.Type != ChatTypeEnum.Whisper) |
282 | { | 282 | { |
283 | base.OnChatBroadcast(sender, c); | 283 | base.OnChatBroadcast(sender, c); |
284 | return; | 284 | return; |
@@ -296,17 +296,17 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
296 | { | 296 | { |
297 | client.OnLogout += OnClientLoggedOut; | 297 | client.OnLogout += OnClientLoggedOut; |
298 | 298 | ||
299 | if (m_replacingChatModule) | 299 | if (m_replacingChatModule) |
300 | client.OnChatFromClient += OnChatFromClient; | 300 | client.OnChatFromClient += OnChatFromClient; |
301 | } | 301 | } |
302 | 302 | ||
303 | 303 | ||
304 | 304 | ||
305 | public void OnClientLoggedOut(IClientAPI client) | 305 | public void OnClientLoggedOut(IClientAPI client) |
306 | { | 306 | { |
307 | client.OnLogout -= OnClientLoggedOut; | 307 | client.OnLogout -= OnClientLoggedOut; |
308 | client.OnConnectionClosed -= OnClientLoggedOut; | 308 | client.OnConnectionClosed -= OnClientLoggedOut; |
309 | 309 | ||
310 | if (m_conciergedScenes.Contains(client.Scene)) | 310 | if (m_conciergedScenes.Contains(client.Scene)) |
311 | { | 311 | { |
312 | Scene scene = client.Scene as Scene; | 312 | Scene scene = client.Scene as Scene; |
@@ -324,7 +324,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
324 | Scene scene = agent.Scene; | 324 | Scene scene = agent.Scene; |
325 | m_log.DebugFormat("[Concierge]: {0} enters {1}", agent.Name, scene.RegionInfo.RegionName); | 325 | m_log.DebugFormat("[Concierge]: {0} enters {1}", agent.Name, scene.RegionInfo.RegionName); |
326 | WelcomeAvatar(agent, scene); | 326 | WelcomeAvatar(agent, scene); |
327 | AnnounceToAgentsRegion(scene, String.Format(m_announceEntering, agent.Name, | 327 | AnnounceToAgentsRegion(scene, String.Format(m_announceEntering, agent.Name, |
328 | scene.RegionInfo.RegionName, scene.GetRootAgentCount())); | 328 | scene.RegionInfo.RegionName, scene.GetRootAgentCount())); |
329 | UpdateBroker(scene); | 329 | UpdateBroker(scene); |
330 | } | 330 | } |
@@ -337,7 +337,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
337 | { | 337 | { |
338 | Scene scene = agent.Scene; | 338 | Scene scene = agent.Scene; |
339 | m_log.DebugFormat("[Concierge]: {0} leaves {1}", agent.Name, scene.RegionInfo.RegionName); | 339 | m_log.DebugFormat("[Concierge]: {0} leaves {1}", agent.Name, scene.RegionInfo.RegionName); |
340 | AnnounceToAgentsRegion(scene, String.Format(m_announceLeaving, agent.Name, | 340 | AnnounceToAgentsRegion(scene, String.Format(m_announceLeaving, agent.Name, |
341 | scene.RegionInfo.RegionName, scene.GetRootAgentCount())); | 341 | scene.RegionInfo.RegionName, scene.GetRootAgentCount())); |
342 | UpdateBroker(scene); | 342 | UpdateBroker(scene); |
343 | } | 343 | } |
@@ -374,7 +374,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
374 | 374 | ||
375 | scene.ForEachRootScenePresence(delegate(ScenePresence sp) | 375 | scene.ForEachRootScenePresence(delegate(ScenePresence sp) |
376 | { | 376 | { |
377 | list.Append(String.Format(" <avatar name=\"{0}\" uuid=\"{1}\" />\n", sp.Name, sp.UUID)); | 377 | list.Append(String.Format(" <avatar name=\"{0}\" uuid=\"{1}\" />\n", sp.Name, sp.UUID)); |
378 | }); | 378 | }); |
379 | 379 | ||
380 | list.Append("</avatars>"); | 380 | list.Append("</avatars>"); |
@@ -437,7 +437,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
437 | private void UpdateBrokerDone(IAsyncResult result) | 437 | private void UpdateBrokerDone(IAsyncResult result) |
438 | { | 438 | { |
439 | BrokerState bs = null; | 439 | BrokerState bs = null; |
440 | try | 440 | try |
441 | { | 441 | { |
442 | bs = result.AsyncState as BrokerState; | 442 | bs = result.AsyncState as BrokerState; |
443 | HttpWebRequest updatePost = bs.Poster; | 443 | HttpWebRequest updatePost = bs.Poster; |
@@ -450,15 +450,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
450 | catch (WebException we) | 450 | catch (WebException we) |
451 | { | 451 | { |
452 | m_log.ErrorFormat("[Concierge] broker update to {0} failed with status {1}", bs.Uri, we.Status); | 452 | m_log.ErrorFormat("[Concierge] broker update to {0} failed with status {1}", bs.Uri, we.Status); |
453 | if (null != we.Response) | 453 | if (null != we.Response) |
454 | { | 454 | { |
455 | using (HttpWebResponse resp = we.Response as HttpWebResponse) | 455 | using (HttpWebResponse resp = we.Response as HttpWebResponse) |
456 | { | 456 | { |
457 | m_log.ErrorFormat("[Concierge] response from {0} status code: {1}", bs.Uri, resp.StatusCode); | 457 | m_log.ErrorFormat("[Concierge] response from {0} status code: {1}", bs.Uri, resp.StatusCode); |
458 | m_log.ErrorFormat("[Concierge] response from {0} status desc: {1}", bs.Uri, resp.StatusDescription); | 458 | m_log.ErrorFormat("[Concierge] response from {0} status desc: {1}", bs.Uri, resp.StatusDescription); |
459 | m_log.ErrorFormat("[Concierge] response from {0} server: {1}", bs.Uri, resp.Server); | 459 | m_log.ErrorFormat("[Concierge] response from {0} server: {1}", bs.Uri, resp.Server); |
460 | 460 | ||
461 | if (resp.ContentLength > 0) | 461 | if (resp.ContentLength > 0) |
462 | { | 462 | { |
463 | StreamReader content = new StreamReader(resp.GetResponseStream()); | 463 | StreamReader content = new StreamReader(resp.GetResponseStream()); |
464 | m_log.ErrorFormat("[Concierge] response from {0} content: {1}", bs.Uri, content.ReadToEnd()); | 464 | m_log.ErrorFormat("[Concierge] response from {0} content: {1}", bs.Uri, content.ReadToEnd()); |
@@ -476,12 +476,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
476 | // welcome file there: if yes, send it to the agent | 476 | // welcome file there: if yes, send it to the agent |
477 | if (!String.IsNullOrEmpty(m_welcomes)) | 477 | if (!String.IsNullOrEmpty(m_welcomes)) |
478 | { | 478 | { |
479 | string[] welcomes = new string[] { | 479 | string[] welcomes = new string[] { |
480 | Path.Combine(m_welcomes, agent.Scene.RegionInfo.RegionName), | 480 | Path.Combine(m_welcomes, agent.Scene.RegionInfo.RegionName), |
481 | Path.Combine(m_welcomes, "DEFAULT")}; | 481 | Path.Combine(m_welcomes, "DEFAULT")}; |
482 | foreach (string welcome in welcomes) | 482 | foreach (string welcome in welcomes) |
483 | { | 483 | { |
484 | if (File.Exists(welcome)) | 484 | if (File.Exists(welcome)) |
485 | { | 485 | { |
486 | try | 486 | try |
487 | { | 487 | { |
@@ -500,7 +500,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
500 | { | 500 | { |
501 | m_log.ErrorFormat("[Concierge]: welcome file {0} is malformed: {1}", welcome, fe); | 501 | m_log.ErrorFormat("[Concierge]: welcome file {0} is malformed: {1}", welcome, fe); |
502 | } | 502 | } |
503 | } | 503 | } |
504 | return; | 504 | return; |
505 | } | 505 | } |
506 | m_log.DebugFormat("[Concierge]: no welcome message for region {0}", scene.RegionInfo.RegionName); | 506 | m_log.DebugFormat("[Concierge]: no welcome message for region {0}", scene.RegionInfo.RegionName); |
@@ -512,7 +512,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
512 | // protected void AnnounceToAgentsRegion(Scene scene, string msg) | 512 | // protected void AnnounceToAgentsRegion(Scene scene, string msg) |
513 | // { | 513 | // { |
514 | // ScenePresence agent = null; | 514 | // ScenePresence agent = null; |
515 | // if ((client.Scene is Scene) && (client.Scene as Scene).TryGetScenePresence(client.AgentId, out agent)) | 515 | // if ((client.Scene is Scene) && (client.Scene as Scene).TryGetScenePresence(client.AgentId, out agent)) |
516 | // AnnounceToAgentsRegion(agent, msg); | 516 | // AnnounceToAgentsRegion(agent, msg); |
517 | // else | 517 | // else |
518 | // m_log.DebugFormat("[Concierge]: could not find an agent for client {0}", client.Name); | 518 | // m_log.DebugFormat("[Concierge]: could not find an agent for client {0}", client.Name); |
@@ -587,7 +587,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge | |||
587 | 587 | ||
588 | string regionName = (string)requestData["region"]; | 588 | string regionName = (string)requestData["region"]; |
589 | IScene scene = m_scenes.Find(delegate(IScene s) { return s.RegionInfo.RegionName == regionName; }); | 589 | IScene scene = m_scenes.Find(delegate(IScene s) { return s.RegionInfo.RegionName == regionName; }); |
590 | if (scene == null) | 590 | if (scene == null) |
591 | throw new Exception(String.Format("unknown region \"{0}\"", regionName)); | 591 | throw new Exception(String.Format("unknown region \"{0}\"", regionName)); |
592 | 592 | ||
593 | if (!m_conciergedScenes.Contains(scene)) | 593 | if (!m_conciergedScenes.Contains(scene)) |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs b/OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs index 026ceca..31fc56a 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs | |||
@@ -61,31 +61,31 @@ namespace OpenSim.Region.OptionalModules.Avatar.Friends | |||
61 | private IPresenceService m_presenceService; | 61 | private IPresenceService m_presenceService; |
62 | 62 | ||
63 | // private IAvatarFactoryModule m_avatarFactory; | 63 | // private IAvatarFactoryModule m_avatarFactory; |
64 | 64 | ||
65 | public string Name { get { return "Appearance Information Module"; } } | 65 | public string Name { get { return "Appearance Information Module"; } } |
66 | 66 | ||
67 | public Type ReplaceableInterface { get { return null; } } | 67 | public Type ReplaceableInterface { get { return null; } } |
68 | 68 | ||
69 | public void Initialise(IConfigSource source) | 69 | public void Initialise(IConfigSource source) |
70 | { | 70 | { |
71 | // m_log.DebugFormat("[FRIENDS COMMAND MODULE]: INITIALIZED MODULE"); | 71 | // m_log.DebugFormat("[FRIENDS COMMAND MODULE]: INITIALIZED MODULE"); |
72 | } | 72 | } |
73 | 73 | ||
74 | public void PostInitialise() | 74 | public void PostInitialise() |
75 | { | 75 | { |
76 | // m_log.DebugFormat("[FRIENDS COMMAND MODULE]: POST INITIALIZED MODULE"); | 76 | // m_log.DebugFormat("[FRIENDS COMMAND MODULE]: POST INITIALIZED MODULE"); |
77 | } | 77 | } |
78 | 78 | ||
79 | public void Close() | 79 | public void Close() |
80 | { | 80 | { |
81 | // m_log.DebugFormat("[FRIENDS COMMAND MODULE]: CLOSED MODULE"); | 81 | // m_log.DebugFormat("[FRIENDS COMMAND MODULE]: CLOSED MODULE"); |
82 | } | 82 | } |
83 | 83 | ||
84 | public void AddRegion(Scene scene) | 84 | public void AddRegion(Scene scene) |
85 | { | 85 | { |
86 | // m_log.DebugFormat("[FRIENDS COMMANDO MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 86 | // m_log.DebugFormat("[FRIENDS COMMANDO MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
87 | } | 87 | } |
88 | 88 | ||
89 | public void RemoveRegion(Scene scene) | 89 | public void RemoveRegion(Scene scene) |
90 | { | 90 | { |
91 | // m_log.DebugFormat("[FRIENDS COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 91 | // m_log.DebugFormat("[FRIENDS COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
diff --git a/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs b/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs index 5a6b284..1b5ee04 100644 --- a/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs | |||
@@ -54,34 +54,34 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand | |||
54 | private Scene m_scene; | 54 | private Scene m_scene; |
55 | 55 | ||
56 | public string Name { get { return "SitStand Command Module"; } } | 56 | public string Name { get { return "SitStand Command Module"; } } |
57 | 57 | ||
58 | public Type ReplaceableInterface { get { return null; } } | 58 | public Type ReplaceableInterface { get { return null; } } |
59 | 59 | ||
60 | public void Initialise(IConfigSource source) | 60 | public void Initialise(IConfigSource source) |
61 | { | 61 | { |
62 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: INITIALIZED MODULE"); | 62 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: INITIALIZED MODULE"); |
63 | } | 63 | } |
64 | 64 | ||
65 | public void PostInitialise() | 65 | public void PostInitialise() |
66 | { | 66 | { |
67 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: POST INITIALIZED MODULE"); | 67 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: POST INITIALIZED MODULE"); |
68 | } | 68 | } |
69 | 69 | ||
70 | public void Close() | 70 | public void Close() |
71 | { | 71 | { |
72 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: CLOSED MODULE"); | 72 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: CLOSED MODULE"); |
73 | } | 73 | } |
74 | 74 | ||
75 | public void AddRegion(Scene scene) | 75 | public void AddRegion(Scene scene) |
76 | { | 76 | { |
77 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 77 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
78 | } | 78 | } |
79 | 79 | ||
80 | public void RemoveRegion(Scene scene) | 80 | public void RemoveRegion(Scene scene) |
81 | { | 81 | { |
82 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 82 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
83 | } | 83 | } |
84 | 84 | ||
85 | public void RegionLoaded(Scene scene) | 85 | public void RegionLoaded(Scene scene) |
86 | { | 86 | { |
87 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 87 | // m_log.DebugFormat("[ANIMATIONS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
@@ -143,7 +143,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand | |||
143 | if (sitPart != null) | 143 | if (sitPart != null) |
144 | { | 144 | { |
145 | MainConsole.Instance.OutputFormat( | 145 | MainConsole.Instance.OutputFormat( |
146 | "Sitting {0} on {1} {2} in {3}", | 146 | "Sitting {0} on {1} {2} in {3}", |
147 | sp.Name, sitPart.ParentGroup.Name, sitPart.ParentGroup.UUID, m_scene.Name); | 147 | sp.Name, sitPart.ParentGroup.Name, sitPart.ParentGroup.UUID, m_scene.Name); |
148 | 148 | ||
149 | sp.HandleAgentRequestSit(sp.ControllingClient, sp.UUID, sitPart.UUID, Vector3.Zero); | 149 | sp.HandleAgentRequestSit(sp.ControllingClient, sp.UUID, sitPart.UUID, Vector3.Zero); |
@@ -202,14 +202,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand | |||
202 | 202 | ||
203 | foreach (ScenePresence sp in scenePresences) | 203 | foreach (ScenePresence sp in scenePresences) |
204 | { | 204 | { |
205 | if (!sp.IsChildAgent && nameRegex.IsMatch(sp.Name)) | 205 | if (!sp.IsChildAgent && nameRegex.IsMatch(sp.Name)) |
206 | scenePresencesMatched.Add(sp); | 206 | scenePresencesMatched.Add(sp); |
207 | } | 207 | } |
208 | } | 208 | } |
209 | else | 209 | else |
210 | { | 210 | { |
211 | ScenePresence sp = m_scene.GetScenePresence(firstName, lastName); | 211 | ScenePresence sp = m_scene.GetScenePresence(firstName, lastName); |
212 | 212 | ||
213 | if (sp != null && !sp.IsChildAgent) | 213 | if (sp != null && !sp.IsChildAgent) |
214 | scenePresencesMatched.Add(sp); | 214 | scenePresencesMatched.Add(sp); |
215 | } | 215 | } |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs index 3db0781..c6d7fe6 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | |||
@@ -143,7 +143,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
143 | if (String.IsNullOrEmpty(m_freeSwitchRealm) || | 143 | if (String.IsNullOrEmpty(m_freeSwitchRealm) || |
144 | String.IsNullOrEmpty(m_freeSwitchAPIPrefix)) | 144 | String.IsNullOrEmpty(m_freeSwitchAPIPrefix)) |
145 | { | 145 | { |
146 | m_log.Error("[FreeSwitchVoice]: Freeswitch service mis-configured. Not starting."); | 146 | m_log.Error("[FreeSwitchVoice]: Freeswitch service mis-configured. Not starting."); |
147 | return; | 147 | return; |
148 | } | 148 | } |
149 | 149 | ||
@@ -168,9 +168,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
168 | 168 | ||
169 | MainServer.Instance.AddHTTPHandler(String.Format("{0}/viv_buddy.php", m_freeSwitchAPIPrefix), | 169 | MainServer.Instance.AddHTTPHandler(String.Format("{0}/viv_buddy.php", m_freeSwitchAPIPrefix), |
170 | FreeSwitchSLVoiceBuddyHTTPHandler); | 170 | FreeSwitchSLVoiceBuddyHTTPHandler); |
171 | 171 | ||
172 | MainServer.Instance.AddHTTPHandler(String.Format("{0}/viv_watcher.php", m_freeSwitchAPIPrefix), | 172 | MainServer.Instance.AddHTTPHandler(String.Format("{0}/viv_watcher.php", m_freeSwitchAPIPrefix), |
173 | FreeSwitchSLVoiceWatcherHTTPHandler); | 173 | FreeSwitchSLVoiceWatcherHTTPHandler); |
174 | 174 | ||
175 | m_log.InfoFormat("[FreeSwitchVoice]: using FreeSwitch server {0}", m_freeSwitchRealm); | 175 | m_log.InfoFormat("[FreeSwitchVoice]: using FreeSwitch server {0}", m_freeSwitchRealm); |
176 | 176 | ||
@@ -302,7 +302,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
302 | public void OnRegisterCaps(Scene scene, UUID agentID, Caps caps) | 302 | public void OnRegisterCaps(Scene scene, UUID agentID, Caps caps) |
303 | { | 303 | { |
304 | m_log.DebugFormat( | 304 | m_log.DebugFormat( |
305 | "[FreeSwitchVoice]: OnRegisterCaps() called with agentID {0} caps {1} in scene {2}", | 305 | "[FreeSwitchVoice]: OnRegisterCaps() called with agentID {0} caps {1} in scene {2}", |
306 | agentID, caps, scene.RegionInfo.RegionName); | 306 | agentID, caps, scene.RegionInfo.RegionName); |
307 | 307 | ||
308 | string capsBase = "/CAPS/" + caps.CapsObjectPath; | 308 | string capsBase = "/CAPS/" + caps.CapsObjectPath; |
@@ -352,7 +352,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
352 | { | 352 | { |
353 | m_log.DebugFormat( | 353 | m_log.DebugFormat( |
354 | "[FreeSwitchVoice][PROVISIONVOICE]: ProvisionVoiceAccountRequest() request: {0}, path: {1}, param: {2}", request, path, param); | 354 | "[FreeSwitchVoice][PROVISIONVOICE]: ProvisionVoiceAccountRequest() request: {0}, path: {1}, param: {2}", request, path, param); |
355 | 355 | ||
356 | ScenePresence avatar = scene.GetScenePresence(agentID); | 356 | ScenePresence avatar = scene.GetScenePresence(agentID); |
357 | if (avatar == null) | 357 | if (avatar == null) |
358 | { | 358 | { |
@@ -423,9 +423,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
423 | UUID agentID, Caps caps) | 423 | UUID agentID, Caps caps) |
424 | { | 424 | { |
425 | m_log.DebugFormat( | 425 | m_log.DebugFormat( |
426 | "[FreeSwitchVoice][PARCELVOICE]: ParcelVoiceInfoRequest() on {0} for {1}", | 426 | "[FreeSwitchVoice][PARCELVOICE]: ParcelVoiceInfoRequest() on {0} for {1}", |
427 | scene.RegionInfo.RegionName, agentID); | 427 | scene.RegionInfo.RegionName, agentID); |
428 | 428 | ||
429 | ScenePresence avatar = scene.GetScenePresence(agentID); | 429 | ScenePresence avatar = scene.GetScenePresence(agentID); |
430 | string avatarName = avatar.Name; | 430 | string avatarName = avatar.Name; |
431 | 431 | ||
@@ -512,7 +512,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
512 | 512 | ||
513 | m_log.DebugFormat("[FreeSwitchVoice][CHATSESSION]: avatar \"{0}\": request: {1}, path: {2}, param: {3}", | 513 | m_log.DebugFormat("[FreeSwitchVoice][CHATSESSION]: avatar \"{0}\": request: {1}, path: {2}, param: {3}", |
514 | avatarName, request, path, param); | 514 | avatarName, request, path, param); |
515 | 515 | ||
516 | return "<llsd>true</llsd>"; | 516 | return "<llsd>true</llsd>"; |
517 | } | 517 | } |
518 | 518 | ||
@@ -610,7 +610,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
610 | public Hashtable FreeSwitchSLVoiceBuddyHTTPHandler(Hashtable request) | 610 | public Hashtable FreeSwitchSLVoiceBuddyHTTPHandler(Hashtable request) |
611 | { | 611 | { |
612 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceBuddyHTTPHandler called"); | 612 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceBuddyHTTPHandler called"); |
613 | 613 | ||
614 | Hashtable response = new Hashtable(); | 614 | Hashtable response = new Hashtable(); |
615 | response["int_response_code"] = 200; | 615 | response["int_response_code"] = 200; |
616 | response["str_response_string"] = string.Empty; | 616 | response["str_response_string"] = string.Empty; |
@@ -678,16 +678,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
678 | // Regex normalizeEndLines = new Regex(@"(\r\n|\n)", RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline); | 678 | // Regex normalizeEndLines = new Regex(@"(\r\n|\n)", RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline); |
679 | // | 679 | // |
680 | // m_log.DebugFormat( | 680 | // m_log.DebugFormat( |
681 | // "[FREESWITCH]: FreeSwitchSLVoiceBuddyHTTPHandler() response {0}", | 681 | // "[FREESWITCH]: FreeSwitchSLVoiceBuddyHTTPHandler() response {0}", |
682 | // normalizeEndLines.Replace((string)response["str_response_string"],"")); | 682 | // normalizeEndLines.Replace((string)response["str_response_string"],"")); |
683 | 683 | ||
684 | return response; | 684 | return response; |
685 | } | 685 | } |
686 | 686 | ||
687 | public Hashtable FreeSwitchSLVoiceWatcherHTTPHandler(Hashtable request) | 687 | public Hashtable FreeSwitchSLVoiceWatcherHTTPHandler(Hashtable request) |
688 | { | 688 | { |
689 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceWatcherHTTPHandler called"); | 689 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceWatcherHTTPHandler called"); |
690 | 690 | ||
691 | Hashtable response = new Hashtable(); | 691 | Hashtable response = new Hashtable(); |
692 | response["int_response_code"] = 200; | 692 | response["int_response_code"] = 200; |
693 | response["content-type"] = "text/xml"; | 693 | response["content-type"] = "text/xml"; |
@@ -700,8 +700,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
700 | 700 | ||
701 | StringBuilder resp = new StringBuilder(); | 701 | StringBuilder resp = new StringBuilder(); |
702 | resp.Append("<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?><response xmlns=\"http://www.vivox.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation= \"/xsd/buddy_list.xsd\">"); | 702 | resp.Append("<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?><response xmlns=\"http://www.vivox.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation= \"/xsd/buddy_list.xsd\">"); |
703 | 703 | ||
704 | // FIXME: This is enough of a response to stop viewer 2 complaining about a login failure and get voice to work. If we don't | 704 | // FIXME: This is enough of a response to stop viewer 2 complaining about a login failure and get voice to work. If we don't |
705 | // give an OK response, then viewer 2 engages in an continuous viv_signin.php, viv_buddy.php, viv_watcher.php loop | 705 | // give an OK response, then viewer 2 engages in an continuous viv_signin.php, viv_buddy.php, viv_watcher.php loop |
706 | // Viewer 1 appeared happy to ignore the lack of reply and still works with this reply. | 706 | // Viewer 1 appeared happy to ignore the lack of reply and still works with this reply. |
707 | // | 707 | // |
@@ -711,19 +711,19 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
711 | <cookie_name>lib_session</cookie_name> | 711 | <cookie_name>lib_session</cookie_name> |
712 | <cookie>{0}</cookie> | 712 | <cookie>{0}</cookie> |
713 | <auth_token>{0}</auth_token> | 713 | <auth_token>{0}</auth_token> |
714 | <body/></level0></response>", auth_token)); | 714 | <body/></level0></response>", auth_token)); |
715 | 715 | ||
716 | response["str_response_string"] = resp.ToString(); | 716 | response["str_response_string"] = resp.ToString(); |
717 | 717 | ||
718 | // Regex normalizeEndLines = new Regex(@"(\r\n|\n)", RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline); | 718 | // Regex normalizeEndLines = new Regex(@"(\r\n|\n)", RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline); |
719 | // | 719 | // |
720 | // m_log.DebugFormat( | 720 | // m_log.DebugFormat( |
721 | // "[FREESWITCH]: FreeSwitchSLVoiceWatcherHTTPHandler() response {0}", | 721 | // "[FREESWITCH]: FreeSwitchSLVoiceWatcherHTTPHandler() response {0}", |
722 | // normalizeEndLines.Replace((string)response["str_response_string"],"")); | 722 | // normalizeEndLines.Replace((string)response["str_response_string"],"")); |
723 | 723 | ||
724 | return response; | 724 | return response; |
725 | } | 725 | } |
726 | 726 | ||
727 | public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) | 727 | public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) |
728 | { | 728 | { |
729 | //m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceSigninHTTPHandler called"); | 729 | //m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceSigninHTTPHandler called"); |
@@ -771,10 +771,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
771 | </level0> | 771 | </level0> |
772 | </response>", userid, pos, avatarName); | 772 | </response>", userid, pos, avatarName); |
773 | 773 | ||
774 | response["int_response_code"] = 200; | 774 | response["int_response_code"] = 200; |
775 | 775 | ||
776 | // m_log.DebugFormat("[FreeSwitchVoice]: Sending FreeSwitchSLVoiceSigninHTTPHandler response"); | 776 | // m_log.DebugFormat("[FreeSwitchVoice]: Sending FreeSwitchSLVoiceSigninHTTPHandler response"); |
777 | 777 | ||
778 | return response; | 778 | return response; |
779 | } | 779 | } |
780 | 780 | ||
@@ -859,23 +859,23 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
859 | response["keepalive"] = false; | 859 | response["keepalive"] = false; |
860 | response["int_response_code"] = 500; | 860 | response["int_response_code"] = 500; |
861 | 861 | ||
862 | Hashtable requestBody = ParseRequestBody((string)request["body"]); | 862 | Hashtable requestBody = ParseRequestBody((string)request["body"]); |
863 | 863 | ||
864 | string section = (string) requestBody["section"]; | 864 | string section = (string) requestBody["section"]; |
865 | 865 | ||
866 | if (section == "directory") | 866 | if (section == "directory") |
867 | { | 867 | { |
868 | string eventCallingFunction = (string)requestBody["Event-Calling-Function"]; | 868 | string eventCallingFunction = (string)requestBody["Event-Calling-Function"]; |
869 | m_log.DebugFormat( | 869 | m_log.DebugFormat( |
870 | "[FreeSwitchVoice]: Received request for config section directory, event calling function '{0}'", | 870 | "[FreeSwitchVoice]: Received request for config section directory, event calling function '{0}'", |
871 | eventCallingFunction); | 871 | eventCallingFunction); |
872 | 872 | ||
873 | response = m_FreeswitchService.HandleDirectoryRequest(requestBody); | 873 | response = m_FreeswitchService.HandleDirectoryRequest(requestBody); |
874 | } | 874 | } |
875 | else if (section == "dialplan") | 875 | else if (section == "dialplan") |
876 | { | 876 | { |
877 | m_log.DebugFormat("[FreeSwitchVoice]: Received request for config section dialplan"); | 877 | m_log.DebugFormat("[FreeSwitchVoice]: Received request for config section dialplan"); |
878 | 878 | ||
879 | response = m_FreeswitchService.HandleDialplanRequest(requestBody); | 879 | response = m_FreeswitchService.HandleDialplanRequest(requestBody); |
880 | } | 880 | } |
881 | else | 881 | else |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs index 5ea4a31..57930d7 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs | |||
@@ -114,7 +114,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
114 | 114 | ||
115 | private static Dictionary<string,string> m_parents = new Dictionary<string,string>(); | 115 | private static Dictionary<string,string> m_parents = new Dictionary<string,string>(); |
116 | private static bool m_dumpXml; | 116 | private static bool m_dumpXml; |
117 | 117 | ||
118 | private IConfig m_config; | 118 | private IConfig m_config; |
119 | 119 | ||
120 | private object m_Lock; | 120 | private object m_Lock; |
@@ -153,22 +153,22 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
153 | // Validate against constraints and default if necessary | 153 | // Validate against constraints and default if necessary |
154 | if (m_vivoxChannelRollOff < CHAN_ROLL_OFF_MIN || m_vivoxChannelRollOff > CHAN_ROLL_OFF_MAX) | 154 | if (m_vivoxChannelRollOff < CHAN_ROLL_OFF_MIN || m_vivoxChannelRollOff > CHAN_ROLL_OFF_MAX) |
155 | { | 155 | { |
156 | m_log.WarnFormat("[VivoxVoice] Invalid value for roll off ({0}), reset to {1}.", | 156 | m_log.WarnFormat("[VivoxVoice] Invalid value for roll off ({0}), reset to {1}.", |
157 | m_vivoxChannelRollOff, CHAN_ROLL_OFF_DEFAULT); | 157 | m_vivoxChannelRollOff, CHAN_ROLL_OFF_DEFAULT); |
158 | m_vivoxChannelRollOff = CHAN_ROLL_OFF_DEFAULT; | 158 | m_vivoxChannelRollOff = CHAN_ROLL_OFF_DEFAULT; |
159 | } | 159 | } |
160 | 160 | ||
161 | if (m_vivoxChannelMaximumRange < CHAN_MAX_RANGE_MIN || m_vivoxChannelMaximumRange > CHAN_MAX_RANGE_MAX) | 161 | if (m_vivoxChannelMaximumRange < CHAN_MAX_RANGE_MIN || m_vivoxChannelMaximumRange > CHAN_MAX_RANGE_MAX) |
162 | { | 162 | { |
163 | m_log.WarnFormat("[VivoxVoice] Invalid value for maximum range ({0}), reset to {1}.", | 163 | m_log.WarnFormat("[VivoxVoice] Invalid value for maximum range ({0}), reset to {1}.", |
164 | m_vivoxChannelMaximumRange, CHAN_MAX_RANGE_DEFAULT); | 164 | m_vivoxChannelMaximumRange, CHAN_MAX_RANGE_DEFAULT); |
165 | m_vivoxChannelMaximumRange = CHAN_MAX_RANGE_DEFAULT; | 165 | m_vivoxChannelMaximumRange = CHAN_MAX_RANGE_DEFAULT; |
166 | } | 166 | } |
167 | 167 | ||
168 | if (m_vivoxChannelClampingDistance < CHAN_CLAMPING_DISTANCE_MIN || | 168 | if (m_vivoxChannelClampingDistance < CHAN_CLAMPING_DISTANCE_MIN || |
169 | m_vivoxChannelClampingDistance > CHAN_CLAMPING_DISTANCE_MAX) | 169 | m_vivoxChannelClampingDistance > CHAN_CLAMPING_DISTANCE_MAX) |
170 | { | 170 | { |
171 | m_log.WarnFormat("[VivoxVoice] Invalid value for clamping distance ({0}), reset to {1}.", | 171 | m_log.WarnFormat("[VivoxVoice] Invalid value for clamping distance ({0}), reset to {1}.", |
172 | m_vivoxChannelClampingDistance, CHAN_CLAMPING_DISTANCE_DEFAULT); | 172 | m_vivoxChannelClampingDistance, CHAN_CLAMPING_DISTANCE_DEFAULT); |
173 | m_vivoxChannelClampingDistance = CHAN_CLAMPING_DISTANCE_DEFAULT; | 173 | m_vivoxChannelClampingDistance = CHAN_CLAMPING_DISTANCE_DEFAULT; |
174 | } | 174 | } |
@@ -180,7 +180,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
180 | case "presentation" : break; | 180 | case "presentation" : break; |
181 | case "auditorium" : break; | 181 | case "auditorium" : break; |
182 | default : | 182 | default : |
183 | m_log.WarnFormat("[VivoxVoice] Invalid value for channel mode ({0}), reset to {1}.", | 183 | m_log.WarnFormat("[VivoxVoice] Invalid value for channel mode ({0}), reset to {1}.", |
184 | m_vivoxChannelMode, CHAN_MODE_DEFAULT); | 184 | m_vivoxChannelMode, CHAN_MODE_DEFAULT); |
185 | m_vivoxChannelMode = CHAN_MODE_DEFAULT; | 185 | m_vivoxChannelMode = CHAN_MODE_DEFAULT; |
186 | break; | 186 | break; |
@@ -191,7 +191,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
191 | case "positional" : break; | 191 | case "positional" : break; |
192 | case "channel" : break; | 192 | case "channel" : break; |
193 | default : | 193 | default : |
194 | m_log.WarnFormat("[VivoxVoice] Invalid value for channel type ({0}), reset to {1}.", | 194 | m_log.WarnFormat("[VivoxVoice] Invalid value for channel type ({0}), reset to {1}.", |
195 | m_vivoxChannelType, CHAN_TYPE_DEFAULT); | 195 | m_vivoxChannelType, CHAN_TYPE_DEFAULT); |
196 | m_vivoxChannelType = CHAN_TYPE_DEFAULT; | 196 | m_vivoxChannelType = CHAN_TYPE_DEFAULT; |
197 | break; | 197 | break; |
@@ -230,7 +230,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
230 | 230 | ||
231 | public void AddRegion(Scene scene) | 231 | public void AddRegion(Scene scene) |
232 | { | 232 | { |
233 | if (m_pluginEnabled) | 233 | if (m_pluginEnabled) |
234 | { | 234 | { |
235 | lock (vlock) | 235 | lock (vlock) |
236 | { | 236 | { |
@@ -238,13 +238,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
238 | 238 | ||
239 | string sceneUUID = scene.RegionInfo.RegionID.ToString(); | 239 | string sceneUUID = scene.RegionInfo.RegionID.ToString(); |
240 | string sceneName = scene.RegionInfo.RegionName; | 240 | string sceneName = scene.RegionInfo.RegionName; |
241 | 241 | ||
242 | // Make sure that all local channels are deleted. | 242 | // Make sure that all local channels are deleted. |
243 | // So we have to search for the children, and then do an | 243 | // So we have to search for the children, and then do an |
244 | // iteration over the set of chidren identified. | 244 | // iteration over the set of chidren identified. |
245 | // This assumes that there is just one directory per | 245 | // This assumes that there is just one directory per |
246 | // region. | 246 | // region. |
247 | 247 | ||
248 | if (VivoxTryGetDirectory(sceneUUID + "D", out channelId)) | 248 | if (VivoxTryGetDirectory(sceneUUID + "D", out channelId)) |
249 | { | 249 | { |
250 | m_log.DebugFormat("[VivoxVoice]: region {0}: uuid {1}: located directory id {2}", | 250 | m_log.DebugFormat("[VivoxVoice]: region {0}: uuid {1}: located directory id {2}", |
@@ -263,7 +263,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
263 | { | 263 | { |
264 | if (!IsOK(VivoxDeleteChannel(channelId, id))) | 264 | if (!IsOK(VivoxDeleteChannel(channelId, id))) |
265 | m_log.WarnFormat("[VivoxVoice] Channel delete failed {0}:{1}:{2}", i, channelId, id); | 265 | m_log.WarnFormat("[VivoxVoice] Channel delete failed {0}:{1}:{2}", i, channelId, id); |
266 | } | 266 | } |
267 | } | 267 | } |
268 | } | 268 | } |
269 | } | 269 | } |
@@ -311,7 +311,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
311 | 311 | ||
312 | public void RemoveRegion(Scene scene) | 312 | public void RemoveRegion(Scene scene) |
313 | { | 313 | { |
314 | if (m_pluginEnabled) | 314 | if (m_pluginEnabled) |
315 | { | 315 | { |
316 | lock (vlock) | 316 | lock (vlock) |
317 | { | 317 | { |
@@ -319,7 +319,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
319 | 319 | ||
320 | string sceneUUID = scene.RegionInfo.RegionID.ToString(); | 320 | string sceneUUID = scene.RegionInfo.RegionID.ToString(); |
321 | string sceneName = scene.RegionInfo.RegionName; | 321 | string sceneName = scene.RegionInfo.RegionName; |
322 | 322 | ||
323 | // Make sure that all local channels are deleted. | 323 | // Make sure that all local channels are deleted. |
324 | // So we have to search for the children, and then do an | 324 | // So we have to search for the children, and then do an |
325 | // iteration over the set of chidren identified. | 325 | // iteration over the set of chidren identified. |
@@ -343,7 +343,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
343 | { | 343 | { |
344 | if (!IsOK(VivoxDeleteChannel(channelId, id))) | 344 | if (!IsOK(VivoxDeleteChannel(channelId, id))) |
345 | m_log.WarnFormat("[VivoxVoice] Channel delete failed {0}:{1}:{2}", i, channelId, id); | 345 | m_log.WarnFormat("[VivoxVoice] Channel delete failed {0}:{1}:{2}", i, channelId, id); |
346 | } | 346 | } |
347 | } | 347 | } |
348 | } | 348 | } |
349 | } | 349 | } |
@@ -353,7 +353,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
353 | 353 | ||
354 | // Remove the channel umbrella entry | 354 | // Remove the channel umbrella entry |
355 | 355 | ||
356 | lock (m_parents) | 356 | lock (m_parents) |
357 | { | 357 | { |
358 | if (m_parents.ContainsKey(sceneUUID)) | 358 | if (m_parents.ContainsKey(sceneUUID)) |
359 | { | 359 | { |
@@ -375,7 +375,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
375 | VivoxLogout(); | 375 | VivoxLogout(); |
376 | } | 376 | } |
377 | 377 | ||
378 | public Type ReplaceableInterface | 378 | public Type ReplaceableInterface |
379 | { | 379 | { |
380 | get { return null; } | 380 | get { return null; } |
381 | } | 381 | } |
@@ -396,11 +396,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
396 | // (login, region crossing). We contribute two capabilities to | 396 | // (login, region crossing). We contribute two capabilities to |
397 | // the set of capabilities handed back to the client: | 397 | // the set of capabilities handed back to the client: |
398 | // ProvisionVoiceAccountRequest and ParcelVoiceInfoRequest. | 398 | // ProvisionVoiceAccountRequest and ParcelVoiceInfoRequest. |
399 | // | 399 | // |
400 | // ProvisionVoiceAccountRequest allows the client to obtain | 400 | // ProvisionVoiceAccountRequest allows the client to obtain |
401 | // the voice account credentials for the avatar it is | 401 | // the voice account credentials for the avatar it is |
402 | // controlling (e.g., user name, password, etc). | 402 | // controlling (e.g., user name, password, etc). |
403 | // | 403 | // |
404 | // ParcelVoiceInfoRequest is invoked whenever the client | 404 | // ParcelVoiceInfoRequest is invoked whenever the client |
405 | // changes from one region or parcel to another. | 405 | // changes from one region or parcel to another. |
406 | // | 406 | // |
@@ -493,9 +493,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
493 | 493 | ||
494 | if (XmlFind(resp, "response.level0.status", out code)) | 494 | if (XmlFind(resp, "response.level0.status", out code)) |
495 | { | 495 | { |
496 | if (code != "OK") | 496 | if (code != "OK") |
497 | { | 497 | { |
498 | if (XmlFind(resp, "response.level0.body.code", out code)) | 498 | if (XmlFind(resp, "response.level0.body.code", out code)) |
499 | { | 499 | { |
500 | // If the request was recognized, then this should be set to something | 500 | // If the request was recognized, then this should be set to something |
501 | switch (code) | 501 | switch (code) |
@@ -530,27 +530,27 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
530 | switch (code) | 530 | switch (code) |
531 | { | 531 | { |
532 | case "201" : // Account expired | 532 | case "201" : // Account expired |
533 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : expired credentials", | 533 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : expired credentials", |
534 | avatarName); | 534 | avatarName); |
535 | m_adminConnected = false; | 535 | m_adminConnected = false; |
536 | retry = DoAdminLogin(); | 536 | retry = DoAdminLogin(); |
537 | break; | 537 | break; |
538 | 538 | ||
539 | case "202" : // Missing credentials | 539 | case "202" : // Missing credentials |
540 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : missing credentials", | 540 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : missing credentials", |
541 | avatarName); | 541 | avatarName); |
542 | break; | 542 | break; |
543 | 543 | ||
544 | case "212" : // Not authorized | 544 | case "212" : // Not authorized |
545 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : not authorized", | 545 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : not authorized", |
546 | avatarName); | 546 | avatarName); |
547 | break; | 547 | break; |
548 | 548 | ||
549 | case "300" : // Required parameter missing | 549 | case "300" : // Required parameter missing |
550 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : parameter missing", | 550 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : parameter missing", |
551 | avatarName); | 551 | avatarName); |
552 | break; | 552 | break; |
553 | 553 | ||
554 | case "400" : // Create failed | 554 | case "400" : // Create failed |
555 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : create failed", | 555 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Create account information failed : create failed", |
556 | avatarName); | 556 | avatarName); |
@@ -558,7 +558,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
558 | } | 558 | } |
559 | } | 559 | } |
560 | break; | 560 | break; |
561 | 561 | ||
562 | case "404" : // Failed to retrieve account | 562 | case "404" : // Failed to retrieve account |
563 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Get account information failed : retrieve failed"); | 563 | m_log.ErrorFormat("[VivoxVoice]: avatar \"{0}\": Get account information failed : retrieve failed"); |
564 | // [AMW] Sleep and retry for a fixed period? Or just abandon? | 564 | // [AMW] Sleep and retry for a fixed period? Or just abandon? |
@@ -575,7 +575,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
575 | m_log.DebugFormat("[VivoxVoice][PROVISIONVOICE]: Get Account Request failed for \"{0}\"", avatarName); | 575 | m_log.DebugFormat("[VivoxVoice][PROVISIONVOICE]: Get Account Request failed for \"{0}\"", avatarName); |
576 | throw new Exception("Unable to execute request"); | 576 | throw new Exception("Unable to execute request"); |
577 | } | 577 | } |
578 | 578 | ||
579 | // Unconditionally change the password on each request | 579 | // Unconditionally change the password on each request |
580 | VivoxPassword(agentname, password); | 580 | VivoxPassword(agentname, password); |
581 | 581 | ||
@@ -613,7 +613,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
613 | string avatarName = avatar.Name; | 613 | string avatarName = avatar.Name; |
614 | 614 | ||
615 | // - check whether we have a region channel in our cache | 615 | // - check whether we have a region channel in our cache |
616 | // - if not: | 616 | // - if not: |
617 | // create it and cache it | 617 | // create it and cache it |
618 | // - send it to the client | 618 | // - send it to the client |
619 | // - send channel_uri: as "sip:regionID@m_sipDomain" | 619 | // - send channel_uri: as "sip:regionID@m_sipDomain" |
@@ -622,7 +622,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
622 | LLSDParcelVoiceInfoResponse parcelVoiceInfo; | 622 | LLSDParcelVoiceInfoResponse parcelVoiceInfo; |
623 | string channel_uri; | 623 | string channel_uri; |
624 | 624 | ||
625 | if (null == scene.LandChannel) | 625 | if (null == scene.LandChannel) |
626 | throw new Exception(String.Format("region \"{0}\": avatar \"{1}\": land data not yet available", | 626 | throw new Exception(String.Format("region \"{0}\": avatar \"{1}\": land data not yet available", |
627 | scene.RegionInfo.RegionName, avatarName)); | 627 | scene.RegionInfo.RegionName, avatarName)); |
628 | 628 | ||
@@ -667,15 +667,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
667 | parcelVoiceInfo = new LLSDParcelVoiceInfoResponse(scene.RegionInfo.RegionName, land.LocalID, creds); | 667 | parcelVoiceInfo = new LLSDParcelVoiceInfoResponse(scene.RegionInfo.RegionName, land.LocalID, creds); |
668 | string r = LLSDHelpers.SerialiseLLSDReply(parcelVoiceInfo); | 668 | string r = LLSDHelpers.SerialiseLLSDReply(parcelVoiceInfo); |
669 | 669 | ||
670 | // m_log.DebugFormat("[VivoxVoice][PARCELVOICE]: region \"{0}\": Parcel \"{1}\" ({2}): avatar \"{3}\": {4}", | 670 | // m_log.DebugFormat("[VivoxVoice][PARCELVOICE]: region \"{0}\": Parcel \"{1}\" ({2}): avatar \"{3}\": {4}", |
671 | // scene.RegionInfo.RegionName, land.Name, land.LocalID, avatarName, r); | 671 | // scene.RegionInfo.RegionName, land.Name, land.LocalID, avatarName, r); |
672 | return r; | 672 | return r; |
673 | } | 673 | } |
674 | catch (Exception e) | 674 | catch (Exception e) |
675 | { | 675 | { |
676 | m_log.ErrorFormat("[VivoxVoice][PARCELVOICE]: region \"{0}\": avatar \"{1}\": {2}, retry later", | 676 | m_log.ErrorFormat("[VivoxVoice][PARCELVOICE]: region \"{0}\": avatar \"{1}\": {2}, retry later", |
677 | scene.RegionInfo.RegionName, avatarName, e.Message); | 677 | scene.RegionInfo.RegionName, avatarName, e.Message); |
678 | m_log.DebugFormat("[VivoxVoice][PARCELVOICE]: region \"{0}\": avatar \"{1}\": {2} failed", | 678 | m_log.DebugFormat("[VivoxVoice][PARCELVOICE]: region \"{0}\": avatar \"{1}\": {2} failed", |
679 | scene.RegionInfo.RegionName, avatarName, e.ToString()); | 679 | scene.RegionInfo.RegionName, avatarName, e.ToString()); |
680 | 680 | ||
681 | return "<llsd><undef /></llsd>"; | 681 | return "<llsd><undef /></llsd>"; |
@@ -721,17 +721,17 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
721 | { | 721 | { |
722 | landName = String.Format("{0}:{1}", scene.RegionInfo.RegionName, land.Name); | 722 | landName = String.Format("{0}:{1}", scene.RegionInfo.RegionName, land.Name); |
723 | landUUID = land.GlobalID.ToString(); | 723 | landUUID = land.GlobalID.ToString(); |
724 | m_log.DebugFormat("[VivoxVoice]: Region:Parcel \"{0}\": parcel id {1}: using channel name {2}", | 724 | m_log.DebugFormat("[VivoxVoice]: Region:Parcel \"{0}\": parcel id {1}: using channel name {2}", |
725 | landName, land.LocalID, landUUID); | 725 | landName, land.LocalID, landUUID); |
726 | } | 726 | } |
727 | else | 727 | else |
728 | { | 728 | { |
729 | landName = String.Format("{0}:{1}", scene.RegionInfo.RegionName, scene.RegionInfo.RegionName); | 729 | landName = String.Format("{0}:{1}", scene.RegionInfo.RegionName, scene.RegionInfo.RegionName); |
730 | landUUID = scene.RegionInfo.RegionID.ToString(); | 730 | landUUID = scene.RegionInfo.RegionID.ToString(); |
731 | m_log.DebugFormat("[VivoxVoice]: Region:Parcel \"{0}\": parcel id {1}: using channel name {2}", | 731 | m_log.DebugFormat("[VivoxVoice]: Region:Parcel \"{0}\": parcel id {1}: using channel name {2}", |
732 | landName, land.LocalID, landUUID); | 732 | landName, land.LocalID, landUUID); |
733 | } | 733 | } |
734 | 734 | ||
735 | lock (vlock) | 735 | lock (vlock) |
736 | { | 736 | { |
737 | // Added by Adam to help debug channel not availible errors. | 737 | // Added by Adam to help debug channel not availible errors. |
@@ -742,7 +742,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
742 | else | 742 | else |
743 | throw new Exception("vivox channel uri not available"); | 743 | throw new Exception("vivox channel uri not available"); |
744 | 744 | ||
745 | m_log.DebugFormat("[VivoxVoice]: Region:Parcel \"{0}\": parent channel id {1}: retrieved parcel channel_uri {2} ", | 745 | m_log.DebugFormat("[VivoxVoice]: Region:Parcel \"{0}\": parent channel id {1}: retrieved parcel channel_uri {2} ", |
746 | landName, parentId, channelUri); | 746 | landName, parentId, channelUri); |
747 | } | 747 | } |
748 | 748 | ||
@@ -817,14 +817,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
817 | 817 | ||
818 | /// <summary> | 818 | /// <summary> |
819 | /// Create a channel. | 819 | /// Create a channel. |
820 | /// Once again, there a multitude of options possible. In the simplest case | 820 | /// Once again, there a multitude of options possible. In the simplest case |
821 | /// we specify only the name and get a non-persistent cannel in return. Non | 821 | /// we specify only the name and get a non-persistent cannel in return. Non |
822 | /// persistent means that the channel gets deleted if no-one uses it for | 822 | /// persistent means that the channel gets deleted if no-one uses it for |
823 | /// 5 hours. To accomodate future requirements, it may be a good idea to | 823 | /// 5 hours. To accomodate future requirements, it may be a good idea to |
824 | /// initially create channels under the umbrella of a parent ID based upon | 824 | /// initially create channels under the umbrella of a parent ID based upon |
825 | /// the region name. That way we have a context for side channels, if those | 825 | /// the region name. That way we have a context for side channels, if those |
826 | /// are required in a later phase. | 826 | /// are required in a later phase. |
827 | /// | 827 | /// |
828 | /// In this case the call handles parent and description as optional values. | 828 | /// In this case the call handles parent and description as optional values. |
829 | /// </summary> | 829 | /// </summary> |
830 | private bool VivoxTryCreateChannel(string parent, string channelId, string description, out string channelUri) | 830 | private bool VivoxTryCreateChannel(string parent, string channelId, string description, out string channelUri) |
@@ -846,7 +846,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
846 | requrl = String.Format("{0}&chan_dist_model={1}", requrl, m_vivoxChannelDistanceModel); | 846 | requrl = String.Format("{0}&chan_dist_model={1}", requrl, m_vivoxChannelDistanceModel); |
847 | requrl = String.Format("{0}&chan_max_range={1}", requrl, m_vivoxChannelMaximumRange); | 847 | requrl = String.Format("{0}&chan_max_range={1}", requrl, m_vivoxChannelMaximumRange); |
848 | requrl = String.Format("{0}&chan_clamping_distance={1}", requrl, m_vivoxChannelClampingDistance); | 848 | requrl = String.Format("{0}&chan_clamping_distance={1}", requrl, m_vivoxChannelClampingDistance); |
849 | 849 | ||
850 | XmlElement resp = VivoxCall(requrl, true); | 850 | XmlElement resp = VivoxCall(requrl, true); |
851 | if (XmlFind(resp, "response.level0.body.chan_uri", out channelUri)) | 851 | if (XmlFind(resp, "response.level0.body.chan_uri", out channelUri)) |
852 | return true; | 852 | return true; |
@@ -889,7 +889,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
889 | 889 | ||
890 | /// <summary> | 890 | /// <summary> |
891 | /// Retrieve a channel. | 891 | /// Retrieve a channel. |
892 | /// Once again, there a multitude of options possible. In the simplest case | 892 | /// Once again, there a multitude of options possible. In the simplest case |
893 | /// we specify only the name and get a non-persistent cannel in return. Non | 893 | /// we specify only the name and get a non-persistent cannel in return. Non |
894 | /// persistent means that the channel gets deleted if no-one uses it for | 894 | /// persistent means that the channel gets deleted if no-one uses it for |
895 | /// 5 hours. To accomodate future requirements, it may be a good idea to | 895 | /// 5 hours. To accomodate future requirements, it may be a good idea to |
@@ -898,7 +898,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
898 | /// are required in a later phase. | 898 | /// are required in a later phase. |
899 | /// In this case the call handles parent and description as optional values. | 899 | /// In this case the call handles parent and description as optional values. |
900 | /// </summary> | 900 | /// </summary> |
901 | private bool VivoxTryGetChannel(string channelParent, string channelName, | 901 | private bool VivoxTryGetChannel(string channelParent, string channelName, |
902 | out string channelId, out string channelUri) | 902 | out string channelId, out string channelUri) |
903 | { | 903 | { |
904 | string count; | 904 | string count; |
@@ -1006,7 +1006,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1006 | string type; | 1006 | string type; |
1007 | 1007 | ||
1008 | // skip if not a directory | 1008 | // skip if not a directory |
1009 | if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.type", i, out type) || | 1009 | if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.type", i, out type) || |
1010 | type != "dir") | 1010 | type != "dir") |
1011 | continue; | 1011 | continue; |
1012 | 1012 | ||
@@ -1044,7 +1044,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1044 | 1044 | ||
1045 | /// <summary> | 1045 | /// <summary> |
1046 | /// Delete a channel. | 1046 | /// Delete a channel. |
1047 | /// Once again, there a multitude of options possible. In the simplest case | 1047 | /// Once again, there a multitude of options possible. In the simplest case |
1048 | /// we specify only the name and get a non-persistent cannel in return. Non | 1048 | /// we specify only the name and get a non-persistent cannel in return. Non |
1049 | /// persistent means that the channel gets deleted if no-one uses it for | 1049 | /// persistent means that the channel gets deleted if no-one uses it for |
1050 | /// 5 hours. To accomodate future requirements, it may be a good idea to | 1050 | /// 5 hours. To accomodate future requirements, it may be a good idea to |
@@ -1098,7 +1098,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1098 | // return VivoxGetChannelById(null, id); | 1098 | // return VivoxGetChannelById(null, id); |
1099 | // } | 1099 | // } |
1100 | // } | 1100 | // } |
1101 | // } | 1101 | // } |
1102 | // } | 1102 | // } |
1103 | // } | 1103 | // } |
1104 | 1104 | ||
@@ -1106,12 +1106,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1106 | // return VivoxGetChannel(null, Guid.NewGuid().ToString()); | 1106 | // return VivoxGetChannel(null, Guid.NewGuid().ToString()); |
1107 | 1107 | ||
1108 | // } | 1108 | // } |
1109 | 1109 | ||
1110 | /// <summary> | 1110 | /// <summary> |
1111 | /// This method handles the WEB side of making a request over the | 1111 | /// This method handles the WEB side of making a request over the |
1112 | /// Vivox interface. The returned values are tansferred to a has | 1112 | /// Vivox interface. The returned values are tansferred to a has |
1113 | /// table which is returned as the result. | 1113 | /// table which is returned as the result. |
1114 | /// The outcome of the call can be determined by examining the | 1114 | /// The outcome of the call can be determined by examining the |
1115 | /// status value in the hash table. | 1115 | /// status value in the hash table. |
1116 | /// </summary> | 1116 | /// </summary> |
1117 | private XmlElement VivoxCall(string requrl, bool admin) | 1117 | private XmlElement VivoxCall(string requrl, bool admin) |
@@ -1127,7 +1127,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1127 | doc = new XmlDocument(); | 1127 | doc = new XmlDocument(); |
1128 | 1128 | ||
1129 | // Let's serialize all calls to Vivox. Most of these are driven by | 1129 | // Let's serialize all calls to Vivox. Most of these are driven by |
1130 | // the clients (CAPs), when the user arrives at the region. We don't | 1130 | // the clients (CAPs), when the user arrives at the region. We don't |
1131 | // want to issue many simultaneous http requests to Vivox, because mono | 1131 | // want to issue many simultaneous http requests to Vivox, because mono |
1132 | // doesn't like that | 1132 | // doesn't like that |
1133 | lock (m_Lock) | 1133 | lock (m_Lock) |
@@ -1173,7 +1173,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1173 | 1173 | ||
1174 | /// <summary> | 1174 | /// <summary> |
1175 | /// Login has been factored in this way because it gets called | 1175 | /// Login has been factored in this way because it gets called |
1176 | /// from several places in the module, and we want it to work | 1176 | /// from several places in the module, and we want it to work |
1177 | /// the same way each time. | 1177 | /// the same way each time. |
1178 | /// </summary> | 1178 | /// </summary> |
1179 | private bool DoAdminLogin() | 1179 | private bool DoAdminLogin() |
@@ -1188,15 +1188,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1188 | XmlElement resp = null; | 1188 | XmlElement resp = null; |
1189 | 1189 | ||
1190 | resp = VivoxLogin(m_vivoxAdminUser, m_vivoxAdminPassword); | 1190 | resp = VivoxLogin(m_vivoxAdminUser, m_vivoxAdminPassword); |
1191 | 1191 | ||
1192 | if (XmlFind(resp, "response.level0.body.status", out status)) | 1192 | if (XmlFind(resp, "response.level0.body.status", out status)) |
1193 | { | 1193 | { |
1194 | if (status == "Ok") | 1194 | if (status == "Ok") |
1195 | { | 1195 | { |
1196 | m_log.Info("[VivoxVoice] Admin connection established"); | 1196 | m_log.Info("[VivoxVoice] Admin connection established"); |
1197 | if (XmlFind(resp, "response.level0.body.auth_token", out m_authToken)) | 1197 | if (XmlFind(resp, "response.level0.body.auth_token", out m_authToken)) |
1198 | { | 1198 | { |
1199 | if (m_dumpXml) m_log.DebugFormat("[VivoxVoice] Auth Token <{0}>", | 1199 | if (m_dumpXml) m_log.DebugFormat("[VivoxVoice] Auth Token <{0}>", |
1200 | m_authToken); | 1200 | m_authToken); |
1201 | m_adminConnected = true; | 1201 | m_adminConnected = true; |
1202 | } | 1202 | } |
@@ -1215,9 +1215,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1215 | 1215 | ||
1216 | /// <summary> | 1216 | /// <summary> |
1217 | /// The XmlScan routine is provided to aid in the | 1217 | /// The XmlScan routine is provided to aid in the |
1218 | /// reverse engineering of incompletely | 1218 | /// reverse engineering of incompletely |
1219 | /// documented packets returned by the Vivox | 1219 | /// documented packets returned by the Vivox |
1220 | /// voice server. It is only called if the | 1220 | /// voice server. It is only called if the |
1221 | /// m_dumpXml switch is set. | 1221 | /// m_dumpXml switch is set. |
1222 | /// </summary> | 1222 | /// </summary> |
1223 | private void XmlScanl(XmlElement e, int index) | 1223 | private void XmlScanl(XmlElement e, int index) |
@@ -1262,7 +1262,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1262 | private bool XmlFind(XmlElement root, string tag, int nth, out string result) | 1262 | private bool XmlFind(XmlElement root, string tag, int nth, out string result) |
1263 | { | 1263 | { |
1264 | if (root == null || tag == null || tag == String.Empty) | 1264 | if (root == null || tag == null || tag == String.Empty) |
1265 | { | 1265 | { |
1266 | result = String.Empty; | 1266 | result = String.Empty; |
1267 | return false; | 1267 | return false; |
1268 | } | 1268 | } |
@@ -1273,7 +1273,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1273 | { | 1273 | { |
1274 | int nth = 0; | 1274 | int nth = 0; |
1275 | if (root == null || tag == null || tag == String.Empty) | 1275 | if (root == null || tag == null || tag == String.Empty) |
1276 | { | 1276 | { |
1277 | result = String.Empty; | 1277 | result = String.Empty; |
1278 | return false; | 1278 | return false; |
1279 | } | 1279 | } |
@@ -1284,7 +1284,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1284 | /// XmlSearch is initially called by XmlFind, and then | 1284 | /// XmlSearch is initially called by XmlFind, and then |
1285 | /// recursively called by itself until the document | 1285 | /// recursively called by itself until the document |
1286 | /// supplied to XmlFind is either exhausted or the name hierarchy | 1286 | /// supplied to XmlFind is either exhausted or the name hierarchy |
1287 | /// is matched. | 1287 | /// is matched. |
1288 | /// | 1288 | /// |
1289 | /// If the hierarchy is matched, the value is returned in | 1289 | /// If the hierarchy is matched, the value is returned in |
1290 | /// result, and true returned as the function's | 1290 | /// result, and true returned as the function's |
@@ -1298,7 +1298,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1298 | result = String.Empty; | 1298 | result = String.Empty; |
1299 | return false; | 1299 | return false; |
1300 | } | 1300 | } |
1301 | 1301 | ||
1302 | if (tags.Length-index == 1) | 1302 | if (tags.Length-index == 1) |
1303 | { | 1303 | { |
1304 | if (nth == 0) | 1304 | if (nth == 0) |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs index 0aaf95c..8791235 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs | |||
@@ -125,7 +125,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
125 | { | 125 | { |
126 | if (!m_groupMessagingEnabled) | 126 | if (!m_groupMessagingEnabled) |
127 | return; | 127 | return; |
128 | 128 | ||
129 | scene.RegisterModuleInterface<IGroupsMessagingModule>(this); | 129 | scene.RegisterModuleInterface<IGroupsMessagingModule>(this); |
130 | 130 | ||
131 | scene.AddCommand( | 131 | scene.AddCommand( |
@@ -136,7 +136,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
136 | "This setting turns on very verbose groups messaging debugging", | 136 | "This setting turns on very verbose groups messaging debugging", |
137 | HandleDebugGroupsMessagingVerbose); | 137 | HandleDebugGroupsMessagingVerbose); |
138 | } | 138 | } |
139 | 139 | ||
140 | public void RegionLoaded(Scene scene) | 140 | public void RegionLoaded(Scene scene) |
141 | { | 141 | { |
142 | if (!m_groupMessagingEnabled) | 142 | if (!m_groupMessagingEnabled) |
@@ -205,7 +205,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
205 | m_msgTransferModule = null; | 205 | m_msgTransferModule = null; |
206 | } | 206 | } |
207 | 207 | ||
208 | public Type ReplaceableInterface | 208 | public Type ReplaceableInterface |
209 | { | 209 | { |
210 | get { return null; } | 210 | get { return null; } |
211 | } | 211 | } |
@@ -253,7 +253,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
253 | { | 253 | { |
254 | if (m_debugEnabled) | 254 | if (m_debugEnabled) |
255 | m_log.DebugFormat("[GROUPS-MESSAGING]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 255 | m_log.DebugFormat("[GROUPS-MESSAGING]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
256 | 256 | ||
257 | GroupRecord groupInfo = m_groupData.GetGroupRecord(agentID, groupID, null); | 257 | GroupRecord groupInfo = m_groupData.GetGroupRecord(agentID, groupID, null); |
258 | 258 | ||
259 | if (groupInfo != null) | 259 | if (groupInfo != null) |
@@ -270,7 +270,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
270 | { | 270 | { |
271 | SendMessageToGroup(im, groupID, new UUID(im.fromAgentID), null); | 271 | SendMessageToGroup(im, groupID, new UUID(im.fromAgentID), null); |
272 | } | 272 | } |
273 | 273 | ||
274 | public void SendMessageToGroup( | 274 | public void SendMessageToGroup( |
275 | GridInstantMessage im, UUID groupID, UUID sendingAgentForGroupCalls, Func<GroupMembersData, bool> sendCondition) | 275 | GridInstantMessage im, UUID groupID, UUID sendingAgentForGroupCalls, Func<GroupMembersData, bool> sendCondition) |
276 | { | 276 | { |
@@ -294,19 +294,19 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
294 | m_usersOnlineCache.Add(groupID, onlineAgents, m_usersOnlineCacheExpirySeconds); | 294 | m_usersOnlineCache.Add(groupID, onlineAgents, m_usersOnlineCacheExpirySeconds); |
295 | } | 295 | } |
296 | 296 | ||
297 | attemptDeliveryUuidSet | 297 | attemptDeliveryUuidSet |
298 | = new HashSet<string>(Array.ConvertAll<PresenceInfo, string>(onlineAgents, pi => pi.UserID)); | 298 | = new HashSet<string>(Array.ConvertAll<PresenceInfo, string>(onlineAgents, pi => pi.UserID)); |
299 | } | 299 | } |
300 | else | 300 | else |
301 | { | 301 | { |
302 | attemptDeliveryUuidSet | 302 | attemptDeliveryUuidSet |
303 | = new HashSet<string>(groupMembers.ConvertAll<string>(gmd => gmd.AgentID.ToString())); | 303 | = new HashSet<string>(groupMembers.ConvertAll<string>(gmd => gmd.AgentID.ToString())); |
304 | 304 | ||
305 | if (m_debugEnabled) | 305 | if (m_debugEnabled) |
306 | m_log.DebugFormat( | 306 | m_log.DebugFormat( |
307 | "[GROUPS-MESSAGING]: SendMessageToGroup called for group {0} with {1} visible members", | 307 | "[GROUPS-MESSAGING]: SendMessageToGroup called for group {0} with {1} visible members", |
308 | groupID, groupMembers.Count); | 308 | groupID, groupMembers.Count); |
309 | } | 309 | } |
310 | 310 | ||
311 | foreach (GroupMembersData member in groupMembers) | 311 | foreach (GroupMembersData member in groupMembers) |
312 | { | 312 | { |
@@ -314,9 +314,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
314 | { | 314 | { |
315 | if (!sendCondition(member)) | 315 | if (!sendCondition(member)) |
316 | { | 316 | { |
317 | if (m_debugEnabled) | 317 | if (m_debugEnabled) |
318 | m_log.DebugFormat( | 318 | m_log.DebugFormat( |
319 | "[GROUPS-MESSAGING]: Not sending to {0} as they do not fulfill send condition", | 319 | "[GROUPS-MESSAGING]: Not sending to {0} as they do not fulfill send condition", |
320 | member.AgentID); | 320 | member.AgentID); |
321 | 321 | ||
322 | continue; | 322 | continue; |
@@ -325,7 +325,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
325 | else if (m_groupData.hasAgentDroppedGroupChatSession(member.AgentID, groupID)) | 325 | else if (m_groupData.hasAgentDroppedGroupChatSession(member.AgentID, groupID)) |
326 | { | 326 | { |
327 | // Don't deliver messages to people who have dropped this session | 327 | // Don't deliver messages to people who have dropped this session |
328 | if (m_debugEnabled) | 328 | if (m_debugEnabled) |
329 | m_log.DebugFormat( | 329 | m_log.DebugFormat( |
330 | "[GROUPS-MESSAGING]: {0} has dropped session, not delivering to them", member.AgentID); | 330 | "[GROUPS-MESSAGING]: {0} has dropped session, not delivering to them", member.AgentID); |
331 | 331 | ||
@@ -360,9 +360,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
360 | // If they're not local, forward across the grid | 360 | // If they're not local, forward across the grid |
361 | m_msgTransferModule.SendInstantMessage(msg, delegate(bool success) { }); | 361 | m_msgTransferModule.SendInstantMessage(msg, delegate(bool success) { }); |
362 | 362 | ||
363 | if (m_debugEnabled) | 363 | if (m_debugEnabled) |
364 | m_log.DebugFormat( | 364 | m_log.DebugFormat( |
365 | "[GROUPS-MESSAGING]: Delivering to {0} via grid took {1} ms", | 365 | "[GROUPS-MESSAGING]: Delivering to {0} via grid took {1} ms", |
366 | member.AgentID, Environment.TickCount - startTick); | 366 | member.AgentID, Environment.TickCount - startTick); |
367 | } | 367 | } |
368 | else | 368 | else |
@@ -372,9 +372,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
372 | ProcessMessageFromGroupSession(msg, client); | 372 | ProcessMessageFromGroupSession(msg, client); |
373 | 373 | ||
374 | // Deliver locally, directly | 374 | // Deliver locally, directly |
375 | if (m_debugEnabled) | 375 | if (m_debugEnabled) |
376 | m_log.DebugFormat( | 376 | m_log.DebugFormat( |
377 | "[GROUPS-MESSAGING]: Delivering to {0} locally took {1} ms", | 377 | "[GROUPS-MESSAGING]: Delivering to {0} locally took {1} ms", |
378 | member.AgentID, Environment.TickCount - startTick); | 378 | member.AgentID, Environment.TickCount - startTick); |
379 | } | 379 | } |
380 | } | 380 | } |
@@ -385,9 +385,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
385 | 385 | ||
386 | m_msgTransferModule.HandleUndeliverableMessage(msg, delegate(bool success) { }); | 386 | m_msgTransferModule.HandleUndeliverableMessage(msg, delegate(bool success) { }); |
387 | 387 | ||
388 | if (m_debugEnabled) | 388 | if (m_debugEnabled) |
389 | m_log.DebugFormat( | 389 | m_log.DebugFormat( |
390 | "[GROUPS-MESSAGING]: Handling undeliverable message for {0} took {1} ms", | 390 | "[GROUPS-MESSAGING]: Handling undeliverable message for {0} took {1} ms", |
391 | member.AgentID, Environment.TickCount - startTick); | 391 | member.AgentID, Environment.TickCount - startTick); |
392 | } | 392 | } |
393 | } | 393 | } |
@@ -397,7 +397,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
397 | "[GROUPS-MESSAGING]: Total SendMessageToGroup for group {0} with {1} members, {2} candidates for delivery took {3} ms", | 397 | "[GROUPS-MESSAGING]: Total SendMessageToGroup for group {0} with {1} members, {2} candidates for delivery took {3} ms", |
398 | groupID, groupMembersCount, attemptDeliveryUuidSet.Count(), Environment.TickCount - requestStartTick); | 398 | groupID, groupMembersCount, attemptDeliveryUuidSet.Count(), Environment.TickCount - requestStartTick); |
399 | } | 399 | } |
400 | 400 | ||
401 | #region SimGridEventHandlers | 401 | #region SimGridEventHandlers |
402 | 402 | ||
403 | void OnClientLogin(IClientAPI client) | 403 | void OnClientLogin(IClientAPI client) |
@@ -417,7 +417,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
417 | // The instant message module will only deliver messages of dialog types: | 417 | // The instant message module will only deliver messages of dialog types: |
418 | // MessageFromAgent, StartTyping, StopTyping, MessageFromObject | 418 | // MessageFromAgent, StartTyping, StopTyping, MessageFromObject |
419 | // | 419 | // |
420 | // Any other message type will not be delivered to a client by the | 420 | // Any other message type will not be delivered to a client by the |
421 | // Instant Message Module | 421 | // Instant Message Module |
422 | 422 | ||
423 | if (m_debugEnabled) | 423 | if (m_debugEnabled) |
@@ -428,7 +428,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
428 | } | 428 | } |
429 | 429 | ||
430 | // Incoming message from a group | 430 | // Incoming message from a group |
431 | if ((msg.fromGroup == true) && | 431 | if ((msg.fromGroup == true) && |
432 | ((msg.dialog == (byte)InstantMessageDialog.SessionSend) | 432 | ((msg.dialog == (byte)InstantMessageDialog.SessionSend) |
433 | || (msg.dialog == (byte)InstantMessageDialog.SessionAdd) | 433 | || (msg.dialog == (byte)InstantMessageDialog.SessionAdd) |
434 | || (msg.dialog == (byte)InstantMessageDialog.SessionDrop))) | 434 | || (msg.dialog == (byte)InstantMessageDialog.SessionDrop))) |
@@ -450,7 +450,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
450 | 450 | ||
451 | private void ProcessMessageFromGroupSession(GridInstantMessage msg, IClientAPI client) | 451 | private void ProcessMessageFromGroupSession(GridInstantMessage msg, IClientAPI client) |
452 | { | 452 | { |
453 | if (m_debugEnabled) | 453 | if (m_debugEnabled) |
454 | m_log.DebugFormat( | 454 | m_log.DebugFormat( |
455 | "[GROUPS-MESSAGING]: Session message from {0} going to agent {1}, sessionID {2}, type {3}", | 455 | "[GROUPS-MESSAGING]: Session message from {0} going to agent {1}, sessionID {2}, type {3}", |
456 | msg.fromAgentName, msg.toAgentID, msg.imSessionID, (InstantMessageDialog)msg.dialog); | 456 | msg.fromAgentName, msg.toAgentID, msg.imSessionID, (InstantMessageDialog)msg.dialog); |
@@ -522,7 +522,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
522 | } | 522 | } |
523 | } | 523 | } |
524 | } | 524 | } |
525 | else | 525 | else |
526 | { | 526 | { |
527 | client.SendInstantMessage(msg); | 527 | client.SendInstantMessage(msg); |
528 | } | 528 | } |
@@ -570,7 +570,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
570 | if (m_debugEnabled) m_log.InfoFormat("[GROUPS-MESSAGING]: imSessionID({0}) toAgentID({1})", im.imSessionID, im.toAgentID); | 570 | if (m_debugEnabled) m_log.InfoFormat("[GROUPS-MESSAGING]: imSessionID({0}) toAgentID({1})", im.imSessionID, im.toAgentID); |
571 | 571 | ||
572 | GroupRecord groupInfo = m_groupData.GetGroupRecord(UUID.Zero, GroupID, null); | 572 | GroupRecord groupInfo = m_groupData.GetGroupRecord(UUID.Zero, GroupID, null); |
573 | 573 | ||
574 | if (groupInfo != null) | 574 | if (groupInfo != null) |
575 | { | 575 | { |
576 | m_groupData.AgentInvitedToGroupChatSession(AgentID, GroupID); | 576 | m_groupData.AgentInvitedToGroupChatSession(AgentID, GroupID); |
@@ -586,7 +586,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
586 | // Send a message from locally connected client to a group | 586 | // Send a message from locally connected client to a group |
587 | if ((im.dialog == (byte)InstantMessageDialog.SessionSend)) | 587 | if ((im.dialog == (byte)InstantMessageDialog.SessionSend)) |
588 | { | 588 | { |
589 | if (m_debugEnabled) | 589 | if (m_debugEnabled) |
590 | m_log.DebugFormat("[GROUPS-MESSAGING]: Send message to session for group {0} with session ID {1}", GroupID, im.imSessionID.ToString()); | 590 | m_log.DebugFormat("[GROUPS-MESSAGING]: Send message to session for group {0} with session ID {1}", GroupID, im.imSessionID.ToString()); |
591 | 591 | ||
592 | //If this agent is sending a message, then they want to be in the session | 592 | //If this agent is sending a message, then they want to be in the session |
@@ -597,7 +597,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
597 | 597 | ||
598 | if ((im.dialog == (byte)InstantMessageDialog.SessionDrop)) | 598 | if ((im.dialog == (byte)InstantMessageDialog.SessionDrop)) |
599 | { | 599 | { |
600 | if (m_debugEnabled) | 600 | if (m_debugEnabled) |
601 | m_log.DebugFormat("[GROUPS-MESSAGING]: Send message to session for group {0} with session ID {1}", GroupID, im.imSessionID.ToString()); | 601 | m_log.DebugFormat("[GROUPS-MESSAGING]: Send message to session for group {0} with session ID {1}", GroupID, im.imSessionID.ToString()); |
602 | 602 | ||
603 | m_groupData.AgentDroppedFromGroupChatSession(AgentID, GroupID); | 603 | m_groupData.AgentDroppedFromGroupChatSession(AgentID, GroupID); |
@@ -659,7 +659,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
659 | /// </summary> | 659 | /// </summary> |
660 | private IClientAPI GetActiveClient(UUID agentID) | 660 | private IClientAPI GetActiveClient(UUID agentID) |
661 | { | 661 | { |
662 | if (m_debugEnabled) | 662 | if (m_debugEnabled) |
663 | m_log.DebugFormat("[GROUPS-MESSAGING]: Looking for local client {0}", agentID); | 663 | m_log.DebugFormat("[GROUPS-MESSAGING]: Looking for local client {0}", agentID); |
664 | 664 | ||
665 | IClientAPI child = null; | 665 | IClientAPI child = null; |
@@ -672,14 +672,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
672 | { | 672 | { |
673 | if (!sp.IsChildAgent) | 673 | if (!sp.IsChildAgent) |
674 | { | 674 | { |
675 | if (m_debugEnabled) | 675 | if (m_debugEnabled) |
676 | m_log.DebugFormat("[GROUPS-MESSAGING]: Found root agent for client : {0}", sp.ControllingClient.Name); | 676 | m_log.DebugFormat("[GROUPS-MESSAGING]: Found root agent for client : {0}", sp.ControllingClient.Name); |
677 | 677 | ||
678 | return sp.ControllingClient; | 678 | return sp.ControllingClient; |
679 | } | 679 | } |
680 | else | 680 | else |
681 | { | 681 | { |
682 | if (m_debugEnabled) | 682 | if (m_debugEnabled) |
683 | m_log.DebugFormat("[GROUPS-MESSAGING]: Found child agent for client : {0}", sp.ControllingClient.Name); | 683 | m_log.DebugFormat("[GROUPS-MESSAGING]: Found child agent for client : {0}", sp.ControllingClient.Name); |
684 | 684 | ||
685 | child = sp.ControllingClient; | 685 | child = sp.ControllingClient; |
@@ -690,12 +690,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
690 | // If we didn't find a root, then just return whichever child we found, or null if none | 690 | // If we didn't find a root, then just return whichever child we found, or null if none |
691 | if (child == null) | 691 | if (child == null) |
692 | { | 692 | { |
693 | if (m_debugEnabled) | 693 | if (m_debugEnabled) |
694 | m_log.DebugFormat("[GROUPS-MESSAGING]: Could not find local client for agent : {0}", agentID); | 694 | m_log.DebugFormat("[GROUPS-MESSAGING]: Could not find local client for agent : {0}", agentID); |
695 | } | 695 | } |
696 | else | 696 | else |
697 | { | 697 | { |
698 | if (m_debugEnabled) | 698 | if (m_debugEnabled) |
699 | m_log.DebugFormat("[GROUPS-MESSAGING]: Returning child agent for client : {0}", child.Name); | 699 | m_log.DebugFormat("[GROUPS-MESSAGING]: Returning child agent for client : {0}", child.Name); |
700 | } | 700 | } |
701 | 701 | ||
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs index 81add13..f0de7d4 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | |||
@@ -50,19 +50,19 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
50 | /// ; To use this module, you must specify the following in your OpenSim.ini | 50 | /// ; To use this module, you must specify the following in your OpenSim.ini |
51 | /// [GROUPS] | 51 | /// [GROUPS] |
52 | /// Enabled = true | 52 | /// Enabled = true |
53 | /// | 53 | /// |
54 | /// Module = GroupsModule | 54 | /// Module = GroupsModule |
55 | /// NoticesEnabled = true | 55 | /// NoticesEnabled = true |
56 | /// DebugEnabled = true | 56 | /// DebugEnabled = true |
57 | /// | 57 | /// |
58 | /// GroupsServicesConnectorModule = XmlRpcGroupsServicesConnector | 58 | /// GroupsServicesConnectorModule = XmlRpcGroupsServicesConnector |
59 | /// XmlRpcServiceURL = http://osflotsam.org/xmlrpc.php | 59 | /// XmlRpcServiceURL = http://osflotsam.org/xmlrpc.php |
60 | /// XmlRpcServiceReadKey = 1234 | 60 | /// XmlRpcServiceReadKey = 1234 |
61 | /// XmlRpcServiceWriteKey = 1234 | 61 | /// XmlRpcServiceWriteKey = 1234 |
62 | /// | 62 | /// |
63 | /// MessagingModule = GroupsMessagingModule | 63 | /// MessagingModule = GroupsMessagingModule |
64 | /// MessagingEnabled = true | 64 | /// MessagingEnabled = true |
65 | /// | 65 | /// |
66 | /// ; Disables HTTP Keep-Alive for Groups Module HTTP Requests, work around for | 66 | /// ; Disables HTTP Keep-Alive for Groups Module HTTP Requests, work around for |
67 | /// ; a problem discovered on some Windows based region servers. Only disable | 67 | /// ; a problem discovered on some Windows based region servers. Only disable |
68 | /// ; if you see a large number (dozens) of the following Exceptions: | 68 | /// ; if you see a large number (dozens) of the following Exceptions: |
@@ -332,7 +332,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
332 | remoteClient.SendAvatarGroupsReply(avatarID, avatarGroups); | 332 | remoteClient.SendAvatarGroupsReply(avatarID, avatarGroups); |
333 | } | 333 | } |
334 | 334 | ||
335 | 335 | ||
336 | private void OnClientClosed(UUID AgentId, Scene scene) | 336 | private void OnClientClosed(UUID AgentId, Scene scene) |
337 | { | 337 | { |
338 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 338 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
@@ -387,7 +387,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
387 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 387 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
388 | 388 | ||
389 | string GroupName; | 389 | string GroupName; |
390 | 390 | ||
391 | GroupRecord group = m_groupData.GetGroupRecord(GetRequestingAgentID(remoteClient), GroupID, null); | 391 | GroupRecord group = m_groupData.GetGroupRecord(GetRequestingAgentID(remoteClient), GroupID, null); |
392 | if (group != null) | 392 | if (group != null) |
393 | { | 393 | { |
@@ -403,9 +403,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
403 | 403 | ||
404 | private void OnInstantMessage(IClientAPI remoteClient, GridInstantMessage im) | 404 | private void OnInstantMessage(IClientAPI remoteClient, GridInstantMessage im) |
405 | { | 405 | { |
406 | if (m_debugEnabled) | 406 | if (m_debugEnabled) |
407 | m_log.DebugFormat( | 407 | m_log.DebugFormat( |
408 | "[GROUPS]: {0} called for {1}, message type {2}", | 408 | "[GROUPS]: {0} called for {1}, message type {2}", |
409 | System.Reflection.MethodBase.GetCurrentMethod().Name, remoteClient.Name, (InstantMessageDialog)im.dialog); | 409 | System.Reflection.MethodBase.GetCurrentMethod().Name, remoteClient.Name, (InstantMessageDialog)im.dialog); |
410 | 410 | ||
411 | // Group invitations | 411 | // Group invitations |
@@ -569,20 +569,20 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
569 | if (targetUser != null) | 569 | if (targetUser != null) |
570 | { | 570 | { |
571 | m_log.DebugFormat( | 571 | m_log.DebugFormat( |
572 | "[GROUPS]: Prepping group notice {0} for agent: {1} who Accepts Notices ({2})", | 572 | "[GROUPS]: Prepping group notice {0} for agent: {1} who Accepts Notices ({2})", |
573 | NoticeID, targetUser.FirstName + " " + targetUser.LastName, member.AcceptNotices); | 573 | NoticeID, targetUser.FirstName + " " + targetUser.LastName, member.AcceptNotices); |
574 | } | 574 | } |
575 | else | 575 | else |
576 | { | 576 | { |
577 | m_log.DebugFormat( | 577 | m_log.DebugFormat( |
578 | "[GROUPS]: Prepping group notice {0} for agent: {1} who Accepts Notices ({2})", | 578 | "[GROUPS]: Prepping group notice {0} for agent: {1} who Accepts Notices ({2})", |
579 | NoticeID, member.AgentID, member.AcceptNotices); | 579 | NoticeID, member.AgentID, member.AcceptNotices); |
580 | } | 580 | } |
581 | } | 581 | } |
582 | } | 582 | } |
583 | } | 583 | } |
584 | 584 | ||
585 | GridInstantMessage msg | 585 | GridInstantMessage msg |
586 | = CreateGroupNoticeIM(UUID.Zero, NoticeID, (byte)OpenMetaverse.InstantMessageDialog.GroupNotice); | 586 | = CreateGroupNoticeIM(UUID.Zero, NoticeID, (byte)OpenMetaverse.InstantMessageDialog.GroupNotice); |
587 | 587 | ||
588 | if (m_groupsMessagingModule != null) | 588 | if (m_groupsMessagingModule != null) |
@@ -599,7 +599,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
599 | 599 | ||
600 | UUID noticeID = new UUID(im.imSessionID); | 600 | UUID noticeID = new UUID(im.imSessionID); |
601 | 601 | ||
602 | if (m_debugEnabled) | 602 | if (m_debugEnabled) |
603 | m_log.DebugFormat("[GROUPS]: Requesting notice {0} for {1}", noticeID, remoteClient.AgentId); | 603 | m_log.DebugFormat("[GROUPS]: Requesting notice {0} for {1}", noticeID, remoteClient.AgentId); |
604 | 604 | ||
605 | GroupNoticeInfo notice = m_groupData.GetGroupNotice(GetRequestingAgentID(remoteClient), noticeID); | 605 | GroupNoticeInfo notice = m_groupData.GetGroupNotice(GetRequestingAgentID(remoteClient), noticeID); |
@@ -625,10 +625,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
625 | } | 625 | } |
626 | else | 626 | else |
627 | { | 627 | { |
628 | if (m_debugEnabled) | 628 | if (m_debugEnabled) |
629 | m_log.DebugFormat( | 629 | m_log.DebugFormat( |
630 | "[GROUPS]: Could not find notice {0} for {1} on GroupNoticeInventoryAccepted.", | 630 | "[GROUPS]: Could not find notice {0} for {1} on GroupNoticeInventoryAccepted.", |
631 | noticeID, remoteClient.AgentId); | 631 | noticeID, remoteClient.AgentId); |
632 | } | 632 | } |
633 | } | 633 | } |
634 | 634 | ||
@@ -698,7 +698,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
698 | { | 698 | { |
699 | return m_groupData.GetGroupRecord(UUID.Zero, UUID.Zero, name); | 699 | return m_groupData.GetGroupRecord(UUID.Zero, UUID.Zero, name); |
700 | } | 700 | } |
701 | 701 | ||
702 | public void ActivateGroup(IClientAPI remoteClient, UUID groupID) | 702 | public void ActivateGroup(IClientAPI remoteClient, UUID groupID) |
703 | { | 703 | { |
704 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 704 | if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
@@ -739,10 +739,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
739 | 739 | ||
740 | public List<GroupMembersData> GroupMembersRequest(IClientAPI remoteClient, UUID groupID) | 740 | public List<GroupMembersData> GroupMembersRequest(IClientAPI remoteClient, UUID groupID) |
741 | { | 741 | { |
742 | if (m_debugEnabled) | 742 | if (m_debugEnabled) |
743 | m_log.DebugFormat( | 743 | m_log.DebugFormat( |
744 | "[GROUPS]: GroupMembersRequest called for {0} from client {1}", groupID, remoteClient.Name); | 744 | "[GROUPS]: GroupMembersRequest called for {0} from client {1}", groupID, remoteClient.Name); |
745 | 745 | ||
746 | List<GroupMembersData> data = m_groupData.GetGroupMembers(GetRequestingAgentID(remoteClient), groupID); | 746 | List<GroupMembersData> data = m_groupData.GetGroupMembers(GetRequestingAgentID(remoteClient), groupID); |
747 | 747 | ||
748 | if (m_debugEnabled) | 748 | if (m_debugEnabled) |
@@ -829,7 +829,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
829 | 829 | ||
830 | public GroupMembershipData GetMembershipData(UUID groupID, UUID agentID) | 830 | public GroupMembershipData GetMembershipData(UUID groupID, UUID agentID) |
831 | { | 831 | { |
832 | if (m_debugEnabled) | 832 | if (m_debugEnabled) |
833 | m_log.DebugFormat( | 833 | m_log.DebugFormat( |
834 | "[GROUPS]: {0} called with groupID={1}, agentID={2}", | 834 | "[GROUPS]: {0} called with groupID={1}, agentID={2}", |
835 | System.Reflection.MethodBase.GetCurrentMethod().Name, groupID, agentID); | 835 | System.Reflection.MethodBase.GetCurrentMethod().Name, groupID, agentID); |
@@ -926,7 +926,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
926 | if (membership != null) | 926 | if (membership != null) |
927 | { | 927 | { |
928 | return membership.GroupTitle; | 928 | return membership.GroupTitle; |
929 | } | 929 | } |
930 | return string.Empty; | 930 | return string.Empty; |
931 | } | 931 | } |
932 | 932 | ||
@@ -999,7 +999,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
999 | case 1: | 999 | case 1: |
1000 | // Remove | 1000 | // Remove |
1001 | m_groupData.RemoveAgentFromGroupRole(GetRequestingAgentID(remoteClient), memberID, groupID, roleID); | 1001 | m_groupData.RemoveAgentFromGroupRole(GetRequestingAgentID(remoteClient), memberID, groupID, roleID); |
1002 | 1002 | ||
1003 | break; | 1003 | break; |
1004 | default: | 1004 | default: |
1005 | m_log.ErrorFormat("[GROUPS]: {0} does not understand changes == {1}", System.Reflection.MethodBase.GetCurrentMethod().Name, changes); | 1005 | m_log.ErrorFormat("[GROUPS]: {0} does not understand changes == {1}", System.Reflection.MethodBase.GetCurrentMethod().Name, changes); |
@@ -1185,7 +1185,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1185 | 1185 | ||
1186 | // Send Message to Ejectee | 1186 | // Send Message to Ejectee |
1187 | GridInstantMessage msg = new GridInstantMessage(); | 1187 | GridInstantMessage msg = new GridInstantMessage(); |
1188 | 1188 | ||
1189 | string ejecteeName = "Unknown member"; | 1189 | string ejecteeName = "Unknown member"; |
1190 | // if local send a normal message | 1190 | // if local send a normal message |
1191 | if(ejecteeClient != null) | 1191 | if(ejecteeClient != null) |
@@ -1219,7 +1219,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1219 | msg.timestamp = 0; | 1219 | msg.timestamp = 0; |
1220 | msg.fromAgentName = agentName; | 1220 | msg.fromAgentName = agentName; |
1221 | msg.message = string.Format("You have been ejected from '{1}' by {0}.", agentName, groupInfo.GroupName); | 1221 | msg.message = string.Format("You have been ejected from '{1}' by {0}.", agentName, groupInfo.GroupName); |
1222 | // | 1222 | // |
1223 | msg.fromGroup = false; | 1223 | msg.fromGroup = false; |
1224 | msg.offline = (byte)0; | 1224 | msg.offline = (byte)0; |
1225 | msg.ParentEstateID = 0; | 1225 | msg.ParentEstateID = 0; |
@@ -1470,7 +1470,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1470 | membershipArray = membershipData.ToArray(); | 1470 | membershipArray = membershipData.ToArray(); |
1471 | } | 1471 | } |
1472 | } | 1472 | } |
1473 | 1473 | ||
1474 | if (m_debugEnabled) | 1474 | if (m_debugEnabled) |
1475 | { | 1475 | { |
1476 | m_log.InfoFormat("[GROUPS]: Get group membership information for {0} requested by {1}", dataForAgentID, requestingClient.AgentId); | 1476 | m_log.InfoFormat("[GROUPS]: Get group membership information for {0} requested by {1}", dataForAgentID, requestingClient.AgentId); |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/IGroupsServicesConnector.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/IGroupsServicesConnector.cs index cff3212..08c7096 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/IGroupsServicesConnector.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/IGroupsServicesConnector.cs | |||
@@ -43,7 +43,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
43 | /// <returns></returns> | 43 | /// <returns></returns> |
44 | /// <param name='RequestingAgentID'>The UUID of the user making the request.</param> | 44 | /// <param name='RequestingAgentID'>The UUID of the user making the request.</param> |
45 | /// <param name='GroupID'> | 45 | /// <param name='GroupID'> |
46 | /// The ID of the record to retrieve. | 46 | /// The ID of the record to retrieve. |
47 | /// GroupName may be specified instead, in which case this parameter will be UUID.Zero | 47 | /// GroupName may be specified instead, in which case this parameter will be UUID.Zero |
48 | /// </param> | 48 | /// </param> |
49 | /// <param name='GroupName'> | 49 | /// <param name='GroupName'> |
@@ -89,7 +89,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
89 | /// If the user is a member of the group then the data structure is returned. If not, then null is returned. | 89 | /// If the user is a member of the group then the data structure is returned. If not, then null is returned. |
90 | /// </returns> | 90 | /// </returns> |
91 | GroupMembershipData GetAgentGroupMembership(UUID RequestingAgentID, UUID AgentID, UUID GroupID); | 91 | GroupMembershipData GetAgentGroupMembership(UUID RequestingAgentID, UUID AgentID, UUID GroupID); |
92 | 92 | ||
93 | /// <summary> | 93 | /// <summary> |
94 | /// Get information about the groups to which a user belongs. | 94 | /// Get information about the groups to which a user belongs. |
95 | /// </summary> | 95 | /// </summary> |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs index 2c45712..98c7ed4 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs | |||
@@ -48,16 +48,16 @@ using OpenSim.Services.Interfaces; | |||
48 | /*************************************************************************** | 48 | /*************************************************************************** |
49 | * Simian Data Map | 49 | * Simian Data Map |
50 | * =============== | 50 | * =============== |
51 | * | 51 | * |
52 | * OwnerID -> Type -> Key | 52 | * OwnerID -> Type -> Key |
53 | * ----------------------- | 53 | * ----------------------- |
54 | * | 54 | * |
55 | * UserID -> Group -> ActiveGroup | 55 | * UserID -> Group -> ActiveGroup |
56 | * + GroupID | 56 | * + GroupID |
57 | * | 57 | * |
58 | * UserID -> GroupSessionDropped -> GroupID | 58 | * UserID -> GroupSessionDropped -> GroupID |
59 | * UserID -> GroupSessionInvited -> GroupID | 59 | * UserID -> GroupSessionInvited -> GroupID |
60 | * | 60 | * |
61 | * UserID -> GroupMember -> GroupID | 61 | * UserID -> GroupMember -> GroupID |
62 | * + SelectedRoleID [UUID] | 62 | * + SelectedRoleID [UUID] |
63 | * + AcceptNotices [bool] | 63 | * + AcceptNotices [bool] |
@@ -65,9 +65,9 @@ using OpenSim.Services.Interfaces; | |||
65 | * + Contribution [int] | 65 | * + Contribution [int] |
66 | * | 66 | * |
67 | * UserID -> GroupRole[GroupID] -> RoleID | 67 | * UserID -> GroupRole[GroupID] -> RoleID |
68 | * | 68 | * |
69 | * | 69 | * |
70 | * GroupID -> Group -> GroupName | 70 | * GroupID -> Group -> GroupName |
71 | * + Charter | 71 | * + Charter |
72 | * + ShowInList | 72 | * + ShowInList |
73 | * + InsigniaID | 73 | * + InsigniaID |
@@ -79,17 +79,17 @@ using OpenSim.Services.Interfaces; | |||
79 | * + EveryonePowers | 79 | * + EveryonePowers |
80 | * + OwnerRoleID | 80 | * + OwnerRoleID |
81 | * + OwnersPowers | 81 | * + OwnersPowers |
82 | * | 82 | * |
83 | * GroupID -> GroupRole -> RoleID | 83 | * GroupID -> GroupRole -> RoleID |
84 | * + Name | 84 | * + Name |
85 | * + Description | 85 | * + Description |
86 | * + Title | 86 | * + Title |
87 | * + Powers | 87 | * + Powers |
88 | * | 88 | * |
89 | * GroupID -> GroupMemberInvite -> InviteID | 89 | * GroupID -> GroupMemberInvite -> InviteID |
90 | * + AgentID | 90 | * + AgentID |
91 | * + RoleID | 91 | * + RoleID |
92 | * | 92 | * |
93 | * GroupID -> GroupNotice -> NoticeID | 93 | * GroupID -> GroupNotice -> NoticeID |
94 | * + TimeStamp [uint] | 94 | * + TimeStamp [uint] |
95 | * + FromName [string] | 95 | * + FromName [string] |
@@ -106,12 +106,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
106 | { | 106 | { |
107 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 107 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
108 | 108 | ||
109 | public const GroupPowers m_DefaultEveryonePowers = GroupPowers.AllowSetHome | | 109 | public const GroupPowers m_DefaultEveryonePowers = GroupPowers.AllowSetHome | |
110 | GroupPowers.Accountable | | 110 | GroupPowers.Accountable | |
111 | GroupPowers.JoinChat | | 111 | GroupPowers.JoinChat | |
112 | GroupPowers.AllowVoiceChat | | 112 | GroupPowers.AllowVoiceChat | |
113 | GroupPowers.ReceiveNotices | | 113 | GroupPowers.ReceiveNotices | |
114 | GroupPowers.StartProposal | | 114 | GroupPowers.StartProposal | |
115 | GroupPowers.VoteOnProposal; | 115 | GroupPowers.VoteOnProposal; |
116 | 116 | ||
117 | // Would this be cleaner as (GroupPowers)ulong.MaxValue; | 117 | // Would this be cleaner as (GroupPowers)ulong.MaxValue; |
@@ -168,12 +168,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
168 | private bool m_debugEnabled = false; | 168 | private bool m_debugEnabled = false; |
169 | 169 | ||
170 | private Dictionary<string, bool> m_pendingRequests = new Dictionary<string,bool>(); | 170 | private Dictionary<string, bool> m_pendingRequests = new Dictionary<string,bool>(); |
171 | 171 | ||
172 | private ExpiringCache<string, OSDMap> m_memoryCache; | 172 | private ExpiringCache<string, OSDMap> m_memoryCache; |
173 | private int m_cacheTimeout = 30; | 173 | private int m_cacheTimeout = 30; |
174 | 174 | ||
175 | // private IUserAccountService m_accountService = null; | 175 | // private IUserAccountService m_accountService = null; |
176 | 176 | ||
177 | 177 | ||
178 | #region Region Module interfaceBase Members | 178 | #region Region Module interfaceBase Members |
179 | 179 | ||
@@ -229,10 +229,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
229 | m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Groups Cache Timeout set to {0}.", m_cacheTimeout); | 229 | m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Groups Cache Timeout set to {0}.", m_cacheTimeout); |
230 | } | 230 | } |
231 | 231 | ||
232 | 232 | ||
233 | 233 | ||
234 | m_memoryCache = new ExpiringCache<string,OSDMap>(); | 234 | m_memoryCache = new ExpiringCache<string,OSDMap>(); |
235 | 235 | ||
236 | 236 | ||
237 | // If we got all the config options we need, lets start'er'up | 237 | // If we got all the config options we need, lets start'er'up |
238 | m_connectorEnabled = true; | 238 | m_connectorEnabled = true; |
@@ -287,8 +287,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
287 | /// <summary> | 287 | /// <summary> |
288 | /// Create a Group, including Everyone and Owners Role, place FounderID in both groups, select Owner as selected role, and newly created group as agent's active role. | 288 | /// Create a Group, including Everyone and Owners Role, place FounderID in both groups, select Owner as selected role, and newly created group as agent's active role. |
289 | /// </summary> | 289 | /// </summary> |
290 | public UUID CreateGroup(UUID requestingAgentID, string name, string charter, bool showInList, UUID insigniaID, | 290 | public UUID CreateGroup(UUID requestingAgentID, string name, string charter, bool showInList, UUID insigniaID, |
291 | int membershipFee, bool openEnrollment, bool allowPublish, | 291 | int membershipFee, bool openEnrollment, bool allowPublish, |
292 | bool maturePublish, UUID founderID) | 292 | bool maturePublish, UUID founderID) |
293 | { | 293 | { |
294 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 294 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
@@ -313,7 +313,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
313 | { | 313 | { |
314 | AddGroupRole(requestingAgentID, GroupID, UUID.Zero, "Everyone", "Members of " + name, "Member of " + name, (ulong)m_DefaultEveryonePowers); | 314 | AddGroupRole(requestingAgentID, GroupID, UUID.Zero, "Everyone", "Members of " + name, "Member of " + name, (ulong)m_DefaultEveryonePowers); |
315 | AddGroupRole(requestingAgentID, GroupID, OwnerRoleID, "Owners", "Owners of " + name, "Owner of " + name, (ulong)m_DefaultOwnerPowers); | 315 | AddGroupRole(requestingAgentID, GroupID, OwnerRoleID, "Owners", "Owners of " + name, "Owner of " + name, (ulong)m_DefaultOwnerPowers); |
316 | 316 | ||
317 | AddAgentToGroup(requestingAgentID, requestingAgentID, GroupID, OwnerRoleID); | 317 | AddAgentToGroup(requestingAgentID, requestingAgentID, GroupID, OwnerRoleID); |
318 | 318 | ||
319 | return GroupID; | 319 | return GroupID; |
@@ -325,8 +325,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
325 | } | 325 | } |
326 | 326 | ||
327 | 327 | ||
328 | public void UpdateGroup(UUID requestingAgentID, UUID groupID, string charter, bool showInList, | 328 | public void UpdateGroup(UUID requestingAgentID, UUID groupID, string charter, bool showInList, |
329 | UUID insigniaID, int membershipFee, bool openEnrollment, | 329 | UUID insigniaID, int membershipFee, bool openEnrollment, |
330 | bool allowPublish, bool maturePublish) | 330 | bool allowPublish, bool maturePublish) |
331 | { | 331 | { |
332 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 332 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
@@ -350,7 +350,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
350 | } | 350 | } |
351 | 351 | ||
352 | 352 | ||
353 | public void AddGroupRole(UUID requestingAgentID, UUID groupID, UUID roleID, string name, string description, | 353 | public void AddGroupRole(UUID requestingAgentID, UUID groupID, UUID roleID, string name, string description, |
354 | string title, ulong powers) | 354 | string title, ulong powers) |
355 | { | 355 | { |
356 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 356 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
@@ -393,7 +393,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
393 | } | 393 | } |
394 | 394 | ||
395 | 395 | ||
396 | public void UpdateGroupRole(UUID requestingAgentID, UUID groupID, UUID roleID, string name, string description, | 396 | public void UpdateGroupRole(UUID requestingAgentID, UUID groupID, UUID roleID, string name, string description, |
397 | string title, ulong powers) | 397 | string title, ulong powers) |
398 | { | 398 | { |
399 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 399 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
@@ -434,7 +434,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
434 | { | 434 | { |
435 | return null; | 435 | return null; |
436 | } | 436 | } |
437 | } | 437 | } |
438 | else if (!string.IsNullOrEmpty(groupName)) | 438 | else if (!string.IsNullOrEmpty(groupName)) |
439 | { | 439 | { |
440 | if (!SimianGetFirstGenericEntry("Group", groupName, out groupID, out GroupInfoMap)) | 440 | if (!SimianGetFirstGenericEntry("Group", groupName, out groupID, out GroupInfoMap)) |
@@ -481,7 +481,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
481 | { | 481 | { |
482 | MemberGroupProfile.Charter = groupProfile["Charter"].AsString(); | 482 | MemberGroupProfile.Charter = groupProfile["Charter"].AsString(); |
483 | } | 483 | } |
484 | 484 | ||
485 | MemberGroupProfile.ShowInList = groupProfile["ShowInList"].AsString() == "1"; | 485 | MemberGroupProfile.ShowInList = groupProfile["ShowInList"].AsString() == "1"; |
486 | MemberGroupProfile.InsigniaID = groupProfile["InsigniaID"].AsUUID(); | 486 | MemberGroupProfile.InsigniaID = groupProfile["InsigniaID"].AsUUID(); |
487 | MemberGroupProfile.MembershipFee = groupProfile["MembershipFee"].AsInteger(); | 487 | MemberGroupProfile.MembershipFee = groupProfile["MembershipFee"].AsInteger(); |
@@ -489,7 +489,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
489 | MemberGroupProfile.AllowPublish = groupProfile["AllowPublish"].AsBoolean(); | 489 | MemberGroupProfile.AllowPublish = groupProfile["AllowPublish"].AsBoolean(); |
490 | MemberGroupProfile.MaturePublish = groupProfile["MaturePublish"].AsBoolean(); | 490 | MemberGroupProfile.MaturePublish = groupProfile["MaturePublish"].AsBoolean(); |
491 | MemberGroupProfile.FounderID = groupProfile["FounderID"].AsUUID();; | 491 | MemberGroupProfile.FounderID = groupProfile["FounderID"].AsUUID();; |
492 | MemberGroupProfile.OwnerRole = groupProfile["OwnerRoleID"].AsUUID(); | 492 | MemberGroupProfile.OwnerRole = groupProfile["OwnerRoleID"].AsUUID(); |
493 | 493 | ||
494 | Dictionary<UUID, OSDMap> Members; | 494 | Dictionary<UUID, OSDMap> Members; |
495 | if (SimianGetGenericEntries("GroupMember",groupID.ToString(), out Members)) | 495 | if (SimianGetGenericEntries("GroupMember",groupID.ToString(), out Members)) |
@@ -546,7 +546,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
546 | { | 546 | { |
547 | GroupMemberInfo = new OSDMap(); | 547 | GroupMemberInfo = new OSDMap(); |
548 | } | 548 | } |
549 | 549 | ||
550 | GroupMemberInfo["AcceptNotices"] = OSD.FromBoolean(acceptNotices); | 550 | GroupMemberInfo["AcceptNotices"] = OSD.FromBoolean(acceptNotices); |
551 | GroupMemberInfo["ListInProfile"] = OSD.FromBoolean(listInProfile); | 551 | GroupMemberInfo["ListInProfile"] = OSD.FromBoolean(listInProfile); |
552 | GroupMemberInfo["Contribution"] = OSD.FromInteger(0); | 552 | GroupMemberInfo["Contribution"] = OSD.FromInteger(0); |
@@ -624,7 +624,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
624 | // Remove Group Member information for this group | 624 | // Remove Group Member information for this group |
625 | SimianRemoveGenericEntry(agentID, "GroupMember", groupID.ToString()); | 625 | SimianRemoveGenericEntry(agentID, "GroupMember", groupID.ToString()); |
626 | 626 | ||
627 | // By using a Simian Generics Type consisting of a prefix and a groupID, | 627 | // By using a Simian Generics Type consisting of a prefix and a groupID, |
628 | // combined with RoleID as key allows us to get a list of roles a particular member | 628 | // combined with RoleID as key allows us to get a list of roles a particular member |
629 | // of a group is assigned to. | 629 | // of a group is assigned to. |
630 | string GroupRoleMemberType = "GroupRole" + groupID.ToString(); | 630 | string GroupRoleMemberType = "GroupRole" + groupID.ToString(); |
@@ -696,7 +696,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
696 | { | 696 | { |
697 | data.members = 0; | 697 | data.members = 0; |
698 | } | 698 | } |
699 | 699 | ||
700 | // TODO: sort results? | 700 | // TODO: sort results? |
701 | // data.searchOrder = order; | 701 | // data.searchOrder = order; |
702 | 702 | ||
@@ -721,8 +721,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
721 | data.AcceptNotices = UserGroupMemberInfo["AcceptNotices"].AsBoolean(); | 721 | data.AcceptNotices = UserGroupMemberInfo["AcceptNotices"].AsBoolean(); |
722 | data.Contribution = UserGroupMemberInfo["Contribution"].AsInteger(); | 722 | data.Contribution = UserGroupMemberInfo["Contribution"].AsInteger(); |
723 | data.ListInProfile = UserGroupMemberInfo["ListInProfile"].AsBoolean(); | 723 | data.ListInProfile = UserGroupMemberInfo["ListInProfile"].AsBoolean(); |
724 | data.ActiveRole = UserGroupMemberInfo["SelectedRoleID"].AsUUID(); | 724 | data.ActiveRole = UserGroupMemberInfo["SelectedRoleID"].AsUUID(); |
725 | 725 | ||
726 | /////////////////////////////// | 726 | /////////////////////////////// |
727 | // Agent Specific Information: | 727 | // Agent Specific Information: |
728 | // | 728 | // |
@@ -730,7 +730,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
730 | if (SimianGetGenericEntry(agentID, "Group", "ActiveGroup", out UserActiveGroup)) | 730 | if (SimianGetGenericEntry(agentID, "Group", "ActiveGroup", out UserActiveGroup)) |
731 | { | 731 | { |
732 | data.Active = UserActiveGroup["GroupID"].AsUUID().Equals(groupID); | 732 | data.Active = UserActiveGroup["GroupID"].AsUUID().Equals(groupID); |
733 | } | 733 | } |
734 | 734 | ||
735 | /////////////////////////////// | 735 | /////////////////////////////// |
736 | // Role Specific Information: | 736 | // Role Specific Information: |
@@ -740,8 +740,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
740 | { | 740 | { |
741 | data.GroupTitle = GroupRoleInfo["Title"].AsString(); | 741 | data.GroupTitle = GroupRoleInfo["Title"].AsString(); |
742 | data.GroupPowers = GroupRoleInfo["Powers"].AsULong(); | 742 | data.GroupPowers = GroupRoleInfo["Powers"].AsULong(); |
743 | } | 743 | } |
744 | 744 | ||
745 | /////////////////////////////// | 745 | /////////////////////////////// |
746 | // Group Specific Information: | 746 | // Group Specific Information: |
747 | // | 747 | // |
@@ -759,7 +759,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
759 | data.MembershipFee = GroupInfo["MembershipFee"].AsInteger(); | 759 | data.MembershipFee = GroupInfo["MembershipFee"].AsInteger(); |
760 | data.OpenEnrollment = GroupInfo["OpenEnrollment"].AsBoolean(); | 760 | data.OpenEnrollment = GroupInfo["OpenEnrollment"].AsBoolean(); |
761 | data.ShowInList = GroupInfo["ShowInList"].AsBoolean(); | 761 | data.ShowInList = GroupInfo["ShowInList"].AsBoolean(); |
762 | } | 762 | } |
763 | } | 763 | } |
764 | 764 | ||
765 | return data; | 765 | return data; |
@@ -794,7 +794,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
794 | memberships.Add(GetAgentGroupMembership(requestingAgentID, agentID, UUID.Parse(key))); | 794 | memberships.Add(GetAgentGroupMembership(requestingAgentID, agentID, UUID.Parse(key))); |
795 | } | 795 | } |
796 | } | 796 | } |
797 | 797 | ||
798 | return memberships; | 798 | return memberships; |
799 | } | 799 | } |
800 | 800 | ||
@@ -1017,7 +1017,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1017 | Notice["BinaryBucket"] = OSD.FromBinary(binaryBucket); | 1017 | Notice["BinaryBucket"] = OSD.FromBinary(binaryBucket); |
1018 | 1018 | ||
1019 | SimianAddGeneric(groupID, "GroupNotice", noticeID.ToString(), Notice); | 1019 | SimianAddGeneric(groupID, "GroupNotice", noticeID.ToString(), Notice); |
1020 | 1020 | ||
1021 | } | 1021 | } |
1022 | #endregion | 1022 | #endregion |
1023 | 1023 | ||
@@ -1250,7 +1250,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1250 | { "OwnerID", ownerID.ToString() }, | 1250 | { "OwnerID", ownerID.ToString() }, |
1251 | { "Type", type } | 1251 | { "Type", type } |
1252 | }; | 1252 | }; |
1253 | 1253 | ||
1254 | 1254 | ||
1255 | 1255 | ||
1256 | OSDMap response = CachedPostRequest(requestArgs); | 1256 | OSDMap response = CachedPostRequest(requestArgs); |
@@ -1357,7 +1357,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1357 | || requestArgs["RequestMethod"] == "AddGeneric") | 1357 | || requestArgs["RequestMethod"] == "AddGeneric") |
1358 | { | 1358 | { |
1359 | m_log.WarnFormat("[SIMIAN GROUPS CONNECTOR]: clearing generics cache"); | 1359 | m_log.WarnFormat("[SIMIAN GROUPS CONNECTOR]: clearing generics cache"); |
1360 | 1360 | ||
1361 | // Any and all updates cause the cache to clear | 1361 | // Any and all updates cause the cache to clear |
1362 | m_memoryCache.Clear(); | 1362 | m_memoryCache.Clear(); |
1363 | 1363 | ||
@@ -1383,14 +1383,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1383 | { | 1383 | { |
1384 | if (m_memoryCache.TryGetValue(CacheKey, out response)) | 1384 | if (m_memoryCache.TryGetValue(CacheKey, out response)) |
1385 | return response; | 1385 | return response; |
1386 | 1386 | ||
1387 | if (! m_pendingRequests.ContainsKey(CacheKey)) | 1387 | if (! m_pendingRequests.ContainsKey(CacheKey)) |
1388 | { | 1388 | { |
1389 | m_pendingRequests.Add(CacheKey,true); | 1389 | m_pendingRequests.Add(CacheKey,true); |
1390 | firstRequest = true; | 1390 | firstRequest = true; |
1391 | } | 1391 | } |
1392 | } | 1392 | } |
1393 | 1393 | ||
1394 | if (firstRequest) | 1394 | if (firstRequest) |
1395 | { | 1395 | { |
1396 | // if it wasn't in the cache, pass the request to the Simian Grid Services | 1396 | // if it wasn't in the cache, pass the request to the Simian Grid Services |
@@ -1402,7 +1402,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1402 | { | 1402 | { |
1403 | m_log.ErrorFormat("[SIMIAN GROUPS CONNECTOR]: request failed {0}", CacheKey); | 1403 | m_log.ErrorFormat("[SIMIAN GROUPS CONNECTOR]: request failed {0}", CacheKey); |
1404 | } | 1404 | } |
1405 | 1405 | ||
1406 | // and cache the response | 1406 | // and cache the response |
1407 | lock (m_memoryCache) | 1407 | lock (m_memoryCache) |
1408 | { | 1408 | { |
@@ -1420,7 +1420,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1420 | // { | 1420 | // { |
1421 | // m_log.WarnFormat("[SIMIAN GROUPS CONNECTOR]: query not in the cache"); | 1421 | // m_log.WarnFormat("[SIMIAN GROUPS CONNECTOR]: query not in the cache"); |
1422 | // Util.PrintCallStack(); | 1422 | // Util.PrintCallStack(); |
1423 | 1423 | ||
1424 | // // if it wasn't in the cache, pass the request to the Simian Grid Services | 1424 | // // if it wasn't in the cache, pass the request to the Simian Grid Services |
1425 | // response = WebUtil.PostToService(m_groupsServerURI, requestArgs); | 1425 | // response = WebUtil.PostToService(m_groupsServerURI, requestArgs); |
1426 | 1426 | ||
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs index a942516..ccfcd8b 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs | |||
@@ -77,12 +77,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups.Tests | |||
77 | /* AgentGroupDataUpdate is udp | 77 | /* AgentGroupDataUpdate is udp |
78 | TestHelpers.InMethod(); | 78 | TestHelpers.InMethod(); |
79 | // TestHelpers.EnableLogging(); | 79 | // TestHelpers.EnableLogging(); |
80 | 80 | ||
81 | TestScene scene = new SceneHelpers().SetupScene(); | 81 | TestScene scene = new SceneHelpers().SetupScene(); |
82 | IConfigSource configSource = new IniConfigSource(); | 82 | IConfigSource configSource = new IniConfigSource(); |
83 | IConfig config = configSource.AddConfig("Groups"); | 83 | IConfig config = configSource.AddConfig("Groups"); |
84 | config.Set("Enabled", true); | 84 | config.Set("Enabled", true); |
85 | config.Set("Module", "GroupsModule"); | 85 | config.Set("Module", "GroupsModule"); |
86 | config.Set("DebugEnabled", true); | 86 | config.Set("DebugEnabled", true); |
87 | 87 | ||
88 | GroupsModule gm = new GroupsModule(); | 88 | GroupsModule gm = new GroupsModule(); |
@@ -124,8 +124,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups.Tests | |||
124 | 124 | ||
125 | Assert.That(foundUpdate, Is.True, "Did not find AgentGroupDataUpdate in response"); | 125 | Assert.That(foundUpdate, Is.True, "Did not find AgentGroupDataUpdate in response"); |
126 | 126 | ||
127 | // TODO: More checking of more actual event data. | 127 | // TODO: More checking of more actual event data. |
128 | */ | 128 | */ |
129 | } | 129 | } |
130 | 130 | ||
131 | [Test] | 131 | [Test] |
@@ -133,7 +133,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups.Tests | |||
133 | { | 133 | { |
134 | TestHelpers.InMethod(); | 134 | TestHelpers.InMethod(); |
135 | // TestHelpers.EnableLogging(); | 135 | // TestHelpers.EnableLogging(); |
136 | 136 | ||
137 | TestScene scene = new SceneHelpers().SetupScene(); | 137 | TestScene scene = new SceneHelpers().SetupScene(); |
138 | 138 | ||
139 | MessageTransferModule mtm = new MessageTransferModule(); | 139 | MessageTransferModule mtm = new MessageTransferModule(); |
@@ -144,12 +144,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups.Tests | |||
144 | IConfigSource configSource = new IniConfigSource(); | 144 | IConfigSource configSource = new IniConfigSource(); |
145 | 145 | ||
146 | { | 146 | { |
147 | IConfig config = configSource.AddConfig("Messaging"); | 147 | IConfig config = configSource.AddConfig("Messaging"); |
148 | config.Set("MessageTransferModule", mtm.Name); | 148 | config.Set("MessageTransferModule", mtm.Name); |
149 | } | 149 | } |
150 | 150 | ||
151 | { | 151 | { |
152 | IConfig config = configSource.AddConfig("Groups"); | 152 | IConfig config = configSource.AddConfig("Groups"); |
153 | config.Set("Enabled", true); | 153 | config.Set("Enabled", true); |
154 | config.Set("Module", gm.Name); | 154 | config.Set("Module", gm.Name); |
155 | config.Set("DebugEnabled", true); | 155 | config.Set("DebugEnabled", true); |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs index eb64f71..50d3f94 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs | |||
@@ -53,17 +53,17 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
53 | 53 | ||
54 | private bool m_debugEnabled = false; | 54 | private bool m_debugEnabled = false; |
55 | 55 | ||
56 | public const GroupPowers DefaultEveryonePowers | 56 | public const GroupPowers DefaultEveryonePowers |
57 | = GroupPowers.AllowSetHome | 57 | = GroupPowers.AllowSetHome |
58 | | GroupPowers.Accountable | 58 | | GroupPowers.Accountable |
59 | | GroupPowers.JoinChat | 59 | | GroupPowers.JoinChat |
60 | | GroupPowers.AllowVoiceChat | 60 | | GroupPowers.AllowVoiceChat |
61 | | GroupPowers.ReceiveNotices | 61 | | GroupPowers.ReceiveNotices |
62 | | GroupPowers.StartProposal | 62 | | GroupPowers.StartProposal |
63 | | GroupPowers.VoteOnProposal; | 63 | | GroupPowers.VoteOnProposal; |
64 | 64 | ||
65 | // Would this be cleaner as (GroupPowers)ulong.MaxValue? | 65 | // Would this be cleaner as (GroupPowers)ulong.MaxValue? |
66 | public const GroupPowers DefaultOwnerPowers | 66 | public const GroupPowers DefaultOwnerPowers |
67 | = GroupPowers.Accountable | 67 | = GroupPowers.Accountable |
68 | | GroupPowers.AllowEditLand | 68 | | GroupPowers.AllowEditLand |
69 | | GroupPowers.AllowFly | 69 | | GroupPowers.AllowFly |
@@ -823,7 +823,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
823 | 823 | ||
824 | if (!m_groupsAgentsInvitedToChatSession[groupID].Contains(agentID)) | 824 | if (!m_groupsAgentsInvitedToChatSession[groupID].Contains(agentID)) |
825 | m_groupsAgentsInvitedToChatSession[groupID].Add(agentID); | 825 | m_groupsAgentsInvitedToChatSession[groupID].Add(agentID); |
826 | } | 826 | } |
827 | 827 | ||
828 | private void CreateGroupChatSessionTracking(UUID groupID) | 828 | private void CreateGroupChatSessionTracking(UUID groupID) |
829 | { | 829 | { |
@@ -1051,7 +1051,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1051 | private void LogRespDataToConsoleError(UUID requestingAgentID, string function, Hashtable param, Hashtable respData) | 1051 | private void LogRespDataToConsoleError(UUID requestingAgentID, string function, Hashtable param, Hashtable respData) |
1052 | { | 1052 | { |
1053 | m_log.ErrorFormat( | 1053 | m_log.ErrorFormat( |
1054 | "[XMLRPC-GROUPS-CONNECTOR]: Error when calling {0} for {1} with params {2}. Response params are {3}", | 1054 | "[XMLRPC-GROUPS-CONNECTOR]: Error when calling {0} for {1} with params {2}. Response params are {3}", |
1055 | function, requestingAgentID, Util.PrettyFormatToSingleLine(param), Util.PrettyFormatToSingleLine(respData)); | 1055 | function, requestingAgentID, Util.PrettyFormatToSingleLine(param), Util.PrettyFormatToSingleLine(respData)); |
1056 | } | 1056 | } |
1057 | 1057 | ||
@@ -1151,7 +1151,7 @@ namespace Nwc.XmlRpc | |||
1151 | { | 1151 | { |
1152 | _serializer.Serialize(xml, this); | 1152 | _serializer.Serialize(xml, this); |
1153 | xml.Flush(); | 1153 | xml.Flush(); |
1154 | } | 1154 | } |
1155 | } | 1155 | } |
1156 | 1156 | ||
1157 | XmlRpcResponse resp; | 1157 | XmlRpcResponse resp; |
diff --git a/OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs index 4e766eb..0436f96 100644 --- a/OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs +++ b/OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs | |||
@@ -101,7 +101,7 @@ namespace OpenSim.Region.DataSnapshot | |||
101 | 101 | ||
102 | public void Initialise(IConfigSource config) | 102 | public void Initialise(IConfigSource config) |
103 | { | 103 | { |
104 | if (!m_configLoaded) | 104 | if (!m_configLoaded) |
105 | { | 105 | { |
106 | m_configLoaded = true; | 106 | m_configLoaded = true; |
107 | //m_log.Debug("[DATASNAPSHOT]: Loading configuration"); | 107 | //m_log.Debug("[DATASNAPSHOT]: Loading configuration"); |
@@ -248,7 +248,7 @@ namespace OpenSim.Region.DataSnapshot | |||
248 | m_snapStore.ForceSceneStale(scene); | 248 | m_snapStore.ForceSceneStale(scene); |
249 | } | 249 | } |
250 | 250 | ||
251 | public void Close() | 251 | public void Close() |
252 | { | 252 | { |
253 | if (!m_enabled) | 253 | if (!m_enabled) |
254 | return; | 254 | return; |
diff --git a/OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs b/OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs index eb2867d..8e6a30e 100644 --- a/OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs +++ b/OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs | |||
@@ -143,7 +143,7 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
143 | 143 | ||
144 | LandData parcel = land.LandData; | 144 | LandData parcel = land.LandData; |
145 | if (m_parent.ExposureLevel.Equals("all") || | 145 | if (m_parent.ExposureLevel.Equals("all") || |
146 | (m_parent.ExposureLevel.Equals("minimum") && | 146 | (m_parent.ExposureLevel.Equals("minimum") && |
147 | (parcel.Flags & (uint)ParcelFlags.ShowDirectory) == (uint)ParcelFlags.ShowDirectory)) | 147 | (parcel.Flags & (uint)ParcelFlags.ShowDirectory) == (uint)ParcelFlags.ShowDirectory)) |
148 | { | 148 | { |
149 | 149 | ||
diff --git a/OpenSim/Region/OptionalModules/Example/BareBonesNonShared/BareBonesNonSharedModule.cs b/OpenSim/Region/OptionalModules/Example/BareBonesNonShared/BareBonesNonSharedModule.cs index bbf7168..95a2dd6 100644 --- a/OpenSim/Region/OptionalModules/Example/BareBonesNonShared/BareBonesNonSharedModule.cs +++ b/OpenSim/Region/OptionalModules/Example/BareBonesNonShared/BareBonesNonSharedModule.cs | |||
@@ -46,12 +46,12 @@ namespace OpenSim.Region.OptionalModules.Example.BareBonesNonShared | |||
46 | /// </summary> | 46 | /// </summary> |
47 | /// <remarks> | 47 | /// <remarks> |
48 | /// This module is the simplest possible example of a non-shared region module (a module where each scene/region | 48 | /// This module is the simplest possible example of a non-shared region module (a module where each scene/region |
49 | /// in the simulator has its own copy). If anybody wants to create a more complex example in the future then | 49 | /// in the simulator has its own copy). If anybody wants to create a more complex example in the future then |
50 | /// please create a separate class. | 50 | /// please create a separate class. |
51 | /// | 51 | /// |
52 | /// This module is not active by default. If you want to see it in action, | 52 | /// This module is not active by default. If you want to see it in action, |
53 | /// then just uncomment the line below starting with [Extension(Path... | 53 | /// then just uncomment the line below starting with [Extension(Path... |
54 | /// | 54 | /// |
55 | /// When the module is enabled it will print messages when it receives certain events to the screen and the log | 55 | /// When the module is enabled it will print messages when it receives certain events to the screen and the log |
56 | /// file. | 56 | /// file. |
57 | /// </remarks> | 57 | /// </remarks> |
@@ -59,34 +59,34 @@ namespace OpenSim.Region.OptionalModules.Example.BareBonesNonShared | |||
59 | public class BareBonesNonSharedModule : INonSharedRegionModule | 59 | public class BareBonesNonSharedModule : INonSharedRegionModule |
60 | { | 60 | { |
61 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 61 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
62 | 62 | ||
63 | public string Name { get { return "Bare Bones Non Shared Module"; } } | 63 | public string Name { get { return "Bare Bones Non Shared Module"; } } |
64 | 64 | ||
65 | public Type ReplaceableInterface { get { return null; } } | 65 | public Type ReplaceableInterface { get { return null; } } |
66 | 66 | ||
67 | public void Initialise(IConfigSource source) | 67 | public void Initialise(IConfigSource source) |
68 | { | 68 | { |
69 | m_log.DebugFormat("[BARE BONES NON SHARED]: INITIALIZED MODULE"); | 69 | m_log.DebugFormat("[BARE BONES NON SHARED]: INITIALIZED MODULE"); |
70 | } | 70 | } |
71 | 71 | ||
72 | public void Close() | 72 | public void Close() |
73 | { | 73 | { |
74 | m_log.DebugFormat("[BARE BONES NON SHARED]: CLOSED MODULE"); | 74 | m_log.DebugFormat("[BARE BONES NON SHARED]: CLOSED MODULE"); |
75 | } | 75 | } |
76 | 76 | ||
77 | public void AddRegion(Scene scene) | 77 | public void AddRegion(Scene scene) |
78 | { | 78 | { |
79 | m_log.DebugFormat("[BARE BONES NON SHARED]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 79 | m_log.DebugFormat("[BARE BONES NON SHARED]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
80 | } | 80 | } |
81 | 81 | ||
82 | public void RemoveRegion(Scene scene) | 82 | public void RemoveRegion(Scene scene) |
83 | { | 83 | { |
84 | m_log.DebugFormat("[BARE BONES NON SHARED]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 84 | m_log.DebugFormat("[BARE BONES NON SHARED]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
85 | } | 85 | } |
86 | 86 | ||
87 | public void RegionLoaded(Scene scene) | 87 | public void RegionLoaded(Scene scene) |
88 | { | 88 | { |
89 | m_log.DebugFormat("[BARE BONES NON SHARED]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 89 | m_log.DebugFormat("[BARE BONES NON SHARED]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
90 | } | 90 | } |
91 | } | 91 | } |
92 | } \ No newline at end of file | 92 | } \ No newline at end of file |
diff --git a/OpenSim/Region/OptionalModules/Example/BareBonesShared/BareBonesSharedModule.cs b/OpenSim/Region/OptionalModules/Example/BareBonesShared/BareBonesSharedModule.cs index 46fea3e..1271e3f 100644 --- a/OpenSim/Region/OptionalModules/Example/BareBonesShared/BareBonesSharedModule.cs +++ b/OpenSim/Region/OptionalModules/Example/BareBonesShared/BareBonesSharedModule.cs | |||
@@ -46,52 +46,52 @@ namespace OpenSim.Region.OptionalModules.Example.BareBonesShared | |||
46 | /// </summary> | 46 | /// </summary> |
47 | /// <remarks> | 47 | /// <remarks> |
48 | /// This module is the simplest possible example of a shared region module (a module which is shared by every | 48 | /// This module is the simplest possible example of a shared region module (a module which is shared by every |
49 | /// scene/region running on the simulator). If anybody wants to create a more complex example in the future then | 49 | /// scene/region running on the simulator). If anybody wants to create a more complex example in the future then |
50 | /// please create a separate class. | 50 | /// please create a separate class. |
51 | /// | 51 | /// |
52 | /// This module is not active by default. If you want to see it in action, | 52 | /// This module is not active by default. If you want to see it in action, |
53 | /// then just uncomment the line below starting with [Extension(Path... | 53 | /// then just uncomment the line below starting with [Extension(Path... |
54 | /// | 54 | /// |
55 | /// When the module is enabled it will print messages when it receives certain events to the screen and the log | 55 | /// When the module is enabled it will print messages when it receives certain events to the screen and the log |
56 | /// file. | 56 | /// file. |
57 | /// </remarks> | 57 | /// </remarks> |
58 | //[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "BareBonesSharedModule")] | 58 | //[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "BareBonesSharedModule")] |
59 | public class BareBonesSharedModule : ISharedRegionModule | 59 | public class BareBonesSharedModule : ISharedRegionModule |
60 | { | 60 | { |
61 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 61 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
62 | 62 | ||
63 | public string Name { get { return "Bare Bones Shared Module"; } } | 63 | public string Name { get { return "Bare Bones Shared Module"; } } |
64 | 64 | ||
65 | public Type ReplaceableInterface { get { return null; } } | 65 | public Type ReplaceableInterface { get { return null; } } |
66 | 66 | ||
67 | public void Initialise(IConfigSource source) | 67 | public void Initialise(IConfigSource source) |
68 | { | 68 | { |
69 | m_log.DebugFormat("[BARE BONES SHARED]: INITIALIZED MODULE"); | 69 | m_log.DebugFormat("[BARE BONES SHARED]: INITIALIZED MODULE"); |
70 | } | 70 | } |
71 | 71 | ||
72 | public void PostInitialise() | 72 | public void PostInitialise() |
73 | { | 73 | { |
74 | m_log.DebugFormat("[BARE BONES SHARED]: POST INITIALIZED MODULE"); | 74 | m_log.DebugFormat("[BARE BONES SHARED]: POST INITIALIZED MODULE"); |
75 | } | 75 | } |
76 | 76 | ||
77 | public void Close() | 77 | public void Close() |
78 | { | 78 | { |
79 | m_log.DebugFormat("[BARE BONES SHARED]: CLOSED MODULE"); | 79 | m_log.DebugFormat("[BARE BONES SHARED]: CLOSED MODULE"); |
80 | } | 80 | } |
81 | 81 | ||
82 | public void AddRegion(Scene scene) | 82 | public void AddRegion(Scene scene) |
83 | { | 83 | { |
84 | m_log.DebugFormat("[BARE BONES SHARED]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 84 | m_log.DebugFormat("[BARE BONES SHARED]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
85 | } | 85 | } |
86 | 86 | ||
87 | public void RemoveRegion(Scene scene) | 87 | public void RemoveRegion(Scene scene) |
88 | { | 88 | { |
89 | m_log.DebugFormat("[BARE BONES SHARED]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 89 | m_log.DebugFormat("[BARE BONES SHARED]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
90 | } | 90 | } |
91 | 91 | ||
92 | public void RegionLoaded(Scene scene) | 92 | public void RegionLoaded(Scene scene) |
93 | { | 93 | { |
94 | m_log.DebugFormat("[BARE BONES SHARED]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 94 | m_log.DebugFormat("[BARE BONES SHARED]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
95 | } | 95 | } |
96 | } | 96 | } |
97 | } \ No newline at end of file | 97 | } \ No newline at end of file |
diff --git a/OpenSim/Region/OptionalModules/Example/WebSocketEchoTest/WebSocketEchoModule.cs b/OpenSim/Region/OptionalModules/Example/WebSocketEchoTest/WebSocketEchoModule.cs index 5bf0ed4..0747cc0 100644 --- a/OpenSim/Region/OptionalModules/Example/WebSocketEchoTest/WebSocketEchoModule.cs +++ b/OpenSim/Region/OptionalModules/Example/WebSocketEchoTest/WebSocketEchoModule.cs | |||
@@ -40,7 +40,7 @@ using OpenSim.Framework.Servers.HttpServer; | |||
40 | 40 | ||
41 | namespace OpenSim.Region.OptionalModules.WebSocketEchoModule | 41 | namespace OpenSim.Region.OptionalModules.WebSocketEchoModule |
42 | { | 42 | { |
43 | 43 | ||
44 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "WebSocketEchoModule")] | 44 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "WebSocketEchoModule")] |
45 | public class WebSocketEchoModule : ISharedRegionModule | 45 | public class WebSocketEchoModule : ISharedRegionModule |
46 | { | 46 | { |
@@ -111,7 +111,7 @@ namespace OpenSim.Region.OptionalModules.WebSocketEchoModule | |||
111 | obj.SendPingCheck(); | 111 | obj.SendPingCheck(); |
112 | } | 112 | } |
113 | 113 | ||
114 | 114 | ||
115 | private void HandlerOnOnUpgradeCompleted(object sender, UpgradeCompletedEventArgs completeddata) | 115 | private void HandlerOnOnUpgradeCompleted(object sender, UpgradeCompletedEventArgs completeddata) |
116 | { | 116 | { |
117 | WebSocketHttpServerHandler obj = sender as WebSocketHttpServerHandler; | 117 | WebSocketHttpServerHandler obj = sender as WebSocketHttpServerHandler; |
@@ -136,14 +136,14 @@ namespace OpenSim.Region.OptionalModules.WebSocketEchoModule | |||
136 | obj.Dispose(); | 136 | obj.Dispose(); |
137 | } | 137 | } |
138 | 138 | ||
139 | // Shutting down.. so shut down all sockets. | 139 | // Shutting down.. so shut down all sockets. |
140 | // Note.. this should be done outside of an ienumerable if you're also hook to the close event. | 140 | // Note.. this should be done outside of an ienumerable if you're also hook to the close event. |
141 | public void Close() | 141 | public void Close() |
142 | { | 142 | { |
143 | if (!enabled) | 143 | if (!enabled) |
144 | return; | 144 | return; |
145 | 145 | ||
146 | // We convert this to a for loop so we're not in in an IEnumerable when the close | 146 | // We convert this to a for loop so we're not in in an IEnumerable when the close |
147 | //call triggers an event which then removes item from _activeHandlers that we're enumerating | 147 | //call triggers an event which then removes item from _activeHandlers that we're enumerating |
148 | WebSocketHttpServerHandler[] items = new WebSocketHttpServerHandler[_activeHandlers.Count]; | 148 | WebSocketHttpServerHandler[] items = new WebSocketHttpServerHandler[_activeHandlers.Count]; |
149 | _activeHandlers.CopyTo(items); | 149 | _activeHandlers.CopyTo(items); |
diff --git a/OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs b/OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs index a25e034..95bb13e 100644 --- a/OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs +++ b/OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs | |||
@@ -48,11 +48,11 @@ namespace OpenSim.Region.OptionalModules.Framework.Monitoring | |||
48 | protected Scene m_scene; | 48 | protected Scene m_scene; |
49 | 49 | ||
50 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 50 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
51 | 51 | ||
52 | public string Name { get { return "Services Health Monitoring Module"; } } | 52 | public string Name { get { return "Services Health Monitoring Module"; } } |
53 | 53 | ||
54 | public Type ReplaceableInterface { get { return null; } } | 54 | public Type ReplaceableInterface { get { return null; } } |
55 | 55 | ||
56 | public void Initialise(IConfigSource source) | 56 | public void Initialise(IConfigSource source) |
57 | { | 57 | { |
58 | } | 58 | } |
@@ -64,7 +64,7 @@ namespace OpenSim.Region.OptionalModules.Framework.Monitoring | |||
64 | public void Close() | 64 | public void Close() |
65 | { | 65 | { |
66 | } | 66 | } |
67 | 67 | ||
68 | public void AddRegion(Scene scene) | 68 | public void AddRegion(Scene scene) |
69 | { | 69 | { |
70 | if (m_scene == null) | 70 | if (m_scene == null) |
diff --git a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs index b259f52..52fa908 100644 --- a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs +++ b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs | |||
@@ -59,8 +59,8 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
59 | { | 59 | { |
60 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 60 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
61 | 61 | ||
62 | public string Name { get { return "MaterialsModule"; } } | 62 | public string Name { get { return "MaterialsModule"; } } |
63 | 63 | ||
64 | public Type ReplaceableInterface { get { return null; } } | 64 | public Type ReplaceableInterface { get { return null; } } |
65 | 65 | ||
66 | IAssetCache m_cache; | 66 | IAssetCache m_cache; |
@@ -88,13 +88,13 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
88 | if (m_enabled) | 88 | if (m_enabled) |
89 | m_log.DebugFormat("[Materials]: Initialized"); | 89 | m_log.DebugFormat("[Materials]: Initialized"); |
90 | } | 90 | } |
91 | 91 | ||
92 | public void Close() | 92 | public void Close() |
93 | { | 93 | { |
94 | if (!m_enabled) | 94 | if (!m_enabled) |
95 | return; | 95 | return; |
96 | } | 96 | } |
97 | 97 | ||
98 | public void AddRegion(Scene scene) | 98 | public void AddRegion(Scene scene) |
99 | { | 99 | { |
100 | if (!m_enabled) | 100 | if (!m_enabled) |
@@ -152,7 +152,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
152 | m_scene.AssetService.Store(a); | 152 | m_scene.AssetService.Store(a); |
153 | } | 153 | } |
154 | }); | 154 | }); |
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||
158 | private void EventManager_OnObjectAddedToScene(SceneObjectGroup obj) | 158 | private void EventManager_OnObjectAddedToScene(SceneObjectGroup obj) |
@@ -166,7 +166,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
166 | { | 166 | { |
167 | string capsBase = "/CAPS/" + caps.CapsObjectPath; | 167 | string capsBase = "/CAPS/" + caps.CapsObjectPath; |
168 | 168 | ||
169 | IRequestHandler renderMaterialsPostHandler | 169 | IRequestHandler renderMaterialsPostHandler |
170 | = new RestStreamHandler("POST", capsBase + "/", | 170 | = new RestStreamHandler("POST", capsBase + "/", |
171 | (request, path, param, httpRequest, httpResponse) | 171 | (request, path, param, httpRequest, httpResponse) |
172 | => RenderMaterialsPostCap(request, agentID), | 172 | => RenderMaterialsPostCap(request, agentID), |
@@ -177,7 +177,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
177 | // and POST handlers, (at least at the time this was originally written), so we first set up a POST | 177 | // and POST handlers, (at least at the time this was originally written), so we first set up a POST |
178 | // handler normally and then add a GET handler via MainServer | 178 | // handler normally and then add a GET handler via MainServer |
179 | 179 | ||
180 | IRequestHandler renderMaterialsGetHandler | 180 | IRequestHandler renderMaterialsGetHandler |
181 | = new RestStreamHandler("GET", capsBase + "/", | 181 | = new RestStreamHandler("GET", capsBase + "/", |
182 | (request, path, param, httpRequest, httpResponse) | 182 | (request, path, param, httpRequest, httpResponse) |
183 | => RenderMaterialsGetCap(request), | 183 | => RenderMaterialsGetCap(request), |
@@ -185,14 +185,14 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
185 | MainServer.Instance.AddStreamHandler(renderMaterialsGetHandler); | 185 | MainServer.Instance.AddStreamHandler(renderMaterialsGetHandler); |
186 | 186 | ||
187 | // materials viewer seems to use either POST or PUT, so assign POST handler for PUT as well | 187 | // materials viewer seems to use either POST or PUT, so assign POST handler for PUT as well |
188 | IRequestHandler renderMaterialsPutHandler | 188 | IRequestHandler renderMaterialsPutHandler |
189 | = new RestStreamHandler("PUT", capsBase + "/", | 189 | = new RestStreamHandler("PUT", capsBase + "/", |
190 | (request, path, param, httpRequest, httpResponse) | 190 | (request, path, param, httpRequest, httpResponse) |
191 | => RenderMaterialsPutCap(request, agentID), | 191 | => RenderMaterialsPutCap(request, agentID), |
192 | "RenderMaterials", null); | 192 | "RenderMaterials", null); |
193 | MainServer.Instance.AddStreamHandler(renderMaterialsPutHandler); | 193 | MainServer.Instance.AddStreamHandler(renderMaterialsPutHandler); |
194 | } | 194 | } |
195 | 195 | ||
196 | public void RemoveRegion(Scene scene) | 196 | public void RemoveRegion(Scene scene) |
197 | { | 197 | { |
198 | if (!m_enabled) | 198 | if (!m_enabled) |
@@ -201,8 +201,8 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
201 | m_scene.EventManager.OnRegisterCaps -= OnRegisterCaps; | 201 | m_scene.EventManager.OnRegisterCaps -= OnRegisterCaps; |
202 | m_scene.EventManager.OnObjectAddedToScene -= EventManager_OnObjectAddedToScene; | 202 | m_scene.EventManager.OnObjectAddedToScene -= EventManager_OnObjectAddedToScene; |
203 | m_scene.EventManager.OnBackup -= EventManager_OnBackup; | 203 | m_scene.EventManager.OnBackup -= EventManager_OnBackup; |
204 | } | 204 | } |
205 | 205 | ||
206 | public void RegionLoaded(Scene scene) | 206 | public void RegionLoaded(Scene scene) |
207 | { | 207 | { |
208 | if (!m_enabled) return; | 208 | if (!m_enabled) return; |
@@ -285,7 +285,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
285 | /// Find the materials used in the SOP, and add them to 'm_regionMaterials'. | 285 | /// Find the materials used in the SOP, and add them to 'm_regionMaterials'. |
286 | /// </summary> | 286 | /// </summary> |
287 | private void GetStoredMaterialsInPart(SceneObjectPart part) | 287 | private void GetStoredMaterialsInPart(SceneObjectPart part) |
288 | { | 288 | { |
289 | if (part.Shape == null) | 289 | if (part.Shape == null) |
290 | return; | 290 | return; |
291 | 291 | ||
@@ -299,7 +299,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
299 | GetStoredMaterialInFace(part, te.DefaultTexture); | 299 | GetStoredMaterialInFace(part, te.DefaultTexture); |
300 | else | 300 | else |
301 | m_log.WarnFormat( | 301 | m_log.WarnFormat( |
302 | "[Materials]: Default texture for part {0} (part of object {1}) in {2} unexpectedly null. Ignoring.", | 302 | "[Materials]: Default texture for part {0} (part of object {1}) in {2} unexpectedly null. Ignoring.", |
303 | part.Name, part.ParentGroup.Name, m_scene.Name); | 303 | part.Name, part.ParentGroup.Name, m_scene.Name); |
304 | 304 | ||
305 | foreach (Primitive.TextureEntryFace face in te.FaceTextures) | 305 | foreach (Primitive.TextureEntryFace face in te.FaceTextures) |
@@ -363,7 +363,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
363 | 363 | ||
364 | byte[] inBytes = req["Zipped"].AsBinary(); | 364 | byte[] inBytes = req["Zipped"].AsBinary(); |
365 | 365 | ||
366 | try | 366 | try |
367 | { | 367 | { |
368 | osd = ZDecompressBytesToOsd(inBytes); | 368 | osd = ZDecompressBytesToOsd(inBytes); |
369 | 369 | ||
@@ -409,7 +409,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
409 | //return ""; | 409 | //return ""; |
410 | } | 410 | } |
411 | } | 411 | } |
412 | 412 | ||
413 | resp["Zipped"] = ZCompressOSD(respArr, false); | 413 | resp["Zipped"] = ZCompressOSD(respArr, false); |
414 | string response = OSDParser.SerializeLLSDXmlString(resp); | 414 | string response = OSDParser.SerializeLLSDXmlString(resp); |
415 | 415 | ||
@@ -435,7 +435,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
435 | 435 | ||
436 | byte[] inBytes = req["Zipped"].AsBinary(); | 436 | byte[] inBytes = req["Zipped"].AsBinary(); |
437 | 437 | ||
438 | try | 438 | try |
439 | { | 439 | { |
440 | osd = ZDecompressBytesToOsd(inBytes); | 440 | osd = ZDecompressBytesToOsd(inBytes); |
441 | 441 | ||
@@ -493,7 +493,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
493 | m_log.WarnFormat("[Materials]: Error in TextureEntry for SOP {0} {1}", sop.Name, sop.UUID); | 493 | m_log.WarnFormat("[Materials]: Error in TextureEntry for SOP {0} {1}", sop.Name, sop.UUID); |
494 | continue; | 494 | continue; |
495 | } | 495 | } |
496 | 496 | ||
497 | UUID id; | 497 | UUID id; |
498 | if (mat == null) | 498 | if (mat == null) |
499 | { | 499 | { |
@@ -588,7 +588,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
588 | //return ""; | 588 | //return ""; |
589 | } | 589 | } |
590 | } | 590 | } |
591 | 591 | ||
592 | resp["Zipped"] = ZCompressOSD(respArr, false); | 592 | resp["Zipped"] = ZCompressOSD(respArr, false); |
593 | string response = OSDParser.SerializeLLSDXmlString(resp); | 593 | string response = OSDParser.SerializeLLSDXmlString(resp); |
594 | 594 | ||
@@ -684,7 +684,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
684 | 684 | ||
685 | if (sop.Name != "Primitive") | 685 | if (sop.Name != "Primitive") |
686 | return sop.Name; | 686 | return sop.Name; |
687 | 687 | ||
688 | if ((sop.ParentGroup != null) && (sop.ParentGroup.Name != "Primitive")) | 688 | if ((sop.ParentGroup != null) && (sop.ParentGroup.Name != "Primitive")) |
689 | return sop.ParentGroup.Name; | 689 | return sop.ParentGroup.Name; |
690 | 690 | ||
@@ -748,7 +748,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
748 | 748 | ||
749 | using (MemoryStream msSinkCompressed = new MemoryStream()) | 749 | using (MemoryStream msSinkCompressed = new MemoryStream()) |
750 | { | 750 | { |
751 | using (Ionic.Zlib.ZlibStream zOut = new Ionic.Zlib.ZlibStream(msSinkCompressed, | 751 | using (Ionic.Zlib.ZlibStream zOut = new Ionic.Zlib.ZlibStream(msSinkCompressed, |
752 | Ionic.Zlib.CompressionMode.Compress, CompressionLevel.BestCompression, true)) | 752 | Ionic.Zlib.CompressionMode.Compress, CompressionLevel.BestCompression, true)) |
753 | { | 753 | { |
754 | zOut.Write(data, 0, data.Length); | 754 | zOut.Write(data, 0, data.Length); |
diff --git a/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs b/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs index 1d9179c..bcfb34d 100755 --- a/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs +++ b/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs | |||
@@ -54,10 +54,10 @@ namespace OpenSim.Region.OptionalModules.PhysicsParameters | |||
54 | private static bool m_commandsLoaded = false; | 54 | private static bool m_commandsLoaded = false; |
55 | 55 | ||
56 | #region ISharedRegionModule | 56 | #region ISharedRegionModule |
57 | public string Name { get { return "Runtime Physics Parameter Module"; } } | 57 | public string Name { get { return "Runtime Physics Parameter Module"; } } |
58 | 58 | ||
59 | public Type ReplaceableInterface { get { return null; } } | 59 | public Type ReplaceableInterface { get { return null; } } |
60 | 60 | ||
61 | public void Initialise(IConfigSource source) | 61 | public void Initialise(IConfigSource source) |
62 | { | 62 | { |
63 | // m_log.DebugFormat("{0}: INITIALIZED MODULE", LogHeader); | 63 | // m_log.DebugFormat("{0}: INITIALIZED MODULE", LogHeader); |
@@ -68,29 +68,29 @@ namespace OpenSim.Region.OptionalModules.PhysicsParameters | |||
68 | // m_log.DebugFormat("[{0}: POST INITIALIZED MODULE", LogHeader); | 68 | // m_log.DebugFormat("[{0}: POST INITIALIZED MODULE", LogHeader); |
69 | InstallInterfaces(); | 69 | InstallInterfaces(); |
70 | } | 70 | } |
71 | 71 | ||
72 | public void Close() | 72 | public void Close() |
73 | { | 73 | { |
74 | // m_log.DebugFormat("{0}: CLOSED MODULE", LogHeader); | 74 | // m_log.DebugFormat("{0}: CLOSED MODULE", LogHeader); |
75 | } | 75 | } |
76 | 76 | ||
77 | public void AddRegion(Scene scene) | 77 | public void AddRegion(Scene scene) |
78 | { | 78 | { |
79 | // m_log.DebugFormat("{0}: REGION {1} ADDED", LogHeader, scene.RegionInfo.RegionName); | 79 | // m_log.DebugFormat("{0}: REGION {1} ADDED", LogHeader, scene.RegionInfo.RegionName); |
80 | m_scenes.Add(scene); | 80 | m_scenes.Add(scene); |
81 | } | 81 | } |
82 | 82 | ||
83 | public void RemoveRegion(Scene scene) | 83 | public void RemoveRegion(Scene scene) |
84 | { | 84 | { |
85 | // m_log.DebugFormat("{0}: REGION {1} REMOVED", LogHeader, scene.RegionInfo.RegionName); | 85 | // m_log.DebugFormat("{0}: REGION {1} REMOVED", LogHeader, scene.RegionInfo.RegionName); |
86 | if (m_scenes.Contains(scene)) | 86 | if (m_scenes.Contains(scene)) |
87 | m_scenes.Remove(scene); | 87 | m_scenes.Remove(scene); |
88 | } | 88 | } |
89 | 89 | ||
90 | public void RegionLoaded(Scene scene) | 90 | public void RegionLoaded(Scene scene) |
91 | { | 91 | { |
92 | // m_log.DebugFormat("{0}: REGION {1} LOADED", LogHeader, scene.RegionInfo.RegionName); | 92 | // m_log.DebugFormat("{0}: REGION {1} LOADED", LogHeader, scene.RegionInfo.RegionName); |
93 | } | 93 | } |
94 | #endregion INonSharedRegionModule | 94 | #endregion INonSharedRegionModule |
95 | 95 | ||
96 | private const string getInvocation = "physics get [<param>|ALL]"; | 96 | private const string getInvocation = "physics get [<param>|ALL]"; |
diff --git a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs index 4ffb03b..9c0fa75 100644 --- a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs +++ b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs | |||
@@ -52,14 +52,14 @@ namespace OpenSim.Region.OptionalModules | |||
52 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 52 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
53 | private bool m_enabled; | 53 | private bool m_enabled; |
54 | 54 | ||
55 | public string Name { get { return "PrimLimitsModule"; } } | 55 | public string Name { get { return "PrimLimitsModule"; } } |
56 | 56 | ||
57 | public Type ReplaceableInterface { get { return null; } } | 57 | public Type ReplaceableInterface { get { return null; } } |
58 | 58 | ||
59 | public void Initialise(IConfigSource config) | 59 | public void Initialise(IConfigSource config) |
60 | { | 60 | { |
61 | string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules", | 61 | string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules", |
62 | new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule"); | 62 | new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule"); |
63 | 63 | ||
64 | List<string> modules = new List<string>(permissionModules.Split(',').Select(m => m.Trim())); | 64 | List<string> modules = new List<string>(permissionModules.Split(',').Select(m => m.Trim())); |
65 | 65 | ||
@@ -69,11 +69,11 @@ namespace OpenSim.Region.OptionalModules | |||
69 | m_log.DebugFormat("[PRIM LIMITS]: Initialized module"); | 69 | m_log.DebugFormat("[PRIM LIMITS]: Initialized module"); |
70 | m_enabled = true; | 70 | m_enabled = true; |
71 | } | 71 | } |
72 | 72 | ||
73 | public void Close() | 73 | public void Close() |
74 | { | 74 | { |
75 | } | 75 | } |
76 | 76 | ||
77 | public void AddRegion(Scene scene) | 77 | public void AddRegion(Scene scene) |
78 | { | 78 | { |
79 | if (!m_enabled) | 79 | if (!m_enabled) |
@@ -86,7 +86,7 @@ namespace OpenSim.Region.OptionalModules | |||
86 | 86 | ||
87 | m_log.DebugFormat("[PRIM LIMITS]: Region {0} added", scene.RegionInfo.RegionName); | 87 | m_log.DebugFormat("[PRIM LIMITS]: Region {0} added", scene.RegionInfo.RegionName); |
88 | } | 88 | } |
89 | 89 | ||
90 | public void RemoveRegion(Scene scene) | 90 | public void RemoveRegion(Scene scene) |
91 | { | 91 | { |
92 | if (m_enabled) | 92 | if (m_enabled) |
@@ -97,8 +97,8 @@ namespace OpenSim.Region.OptionalModules | |||
97 | scene.Permissions.OnRezObject -= CanRezObject; | 97 | scene.Permissions.OnRezObject -= CanRezObject; |
98 | scene.Permissions.OnObjectEntry -= CanObjectEnter; | 98 | scene.Permissions.OnObjectEntry -= CanObjectEnter; |
99 | scene.Permissions.OnDuplicateObject -= CanDuplicateObject; | 99 | scene.Permissions.OnDuplicateObject -= CanDuplicateObject; |
100 | } | 100 | } |
101 | 101 | ||
102 | public void RegionLoaded(Scene scene) | 102 | public void RegionLoaded(Scene scene) |
103 | { | 103 | { |
104 | m_dialogModule = scene.RequestModuleInterface<IDialogModule>(); | 104 | m_dialogModule = scene.RequestModuleInterface<IDialogModule>(); |
@@ -158,7 +158,7 @@ namespace OpenSim.Region.OptionalModules | |||
158 | 158 | ||
159 | Vector3 oldPoint = obj.GroupPosition; | 159 | Vector3 oldPoint = obj.GroupPosition; |
160 | ILandObject oldParcel = scene.LandChannel.GetLandObject(oldPoint.X, oldPoint.Y); | 160 | ILandObject oldParcel = scene.LandChannel.GetLandObject(oldPoint.X, oldPoint.Y); |
161 | 161 | ||
162 | // The prim hasn't crossed a region boundry so we don't need to worry | 162 | // The prim hasn't crossed a region boundry so we don't need to worry |
163 | // about prim counts here | 163 | // about prim counts here |
164 | if(oldParcel != null && oldParcel.Equals(newParcel)) | 164 | if(oldParcel != null && oldParcel.Equals(newParcel)) |
diff --git a/OpenSim/Region/OptionalModules/Properties/AssemblyInfo.cs b/OpenSim/Region/OptionalModules/Properties/AssemblyInfo.cs index 78a9c58..cbfd2d2 100644 --- a/OpenSim/Region/OptionalModules/Properties/AssemblyInfo.cs +++ b/OpenSim/Region/OptionalModules/Properties/AssemblyInfo.cs | |||
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; | |||
3 | using System.Runtime.InteropServices; | 3 | using System.Runtime.InteropServices; |
4 | using Mono.Addins; | 4 | using Mono.Addins; |
5 | 5 | ||
6 | // General Information about an assembly is controlled through the following | 6 | // General Information about an assembly is controlled through the following |
7 | // set of attributes. Change these attribute values to modify the information | 7 | // set of attributes. Change these attribute values to modify the information |
8 | // associated with an assembly. | 8 | // associated with an assembly. |
9 | [assembly: AssemblyTitle("OpenSim.Region.OptionalModules")] | 9 | [assembly: AssemblyTitle("OpenSim.Region.OptionalModules")] |
@@ -15,8 +15,8 @@ using Mono.Addins; | |||
15 | [assembly: AssemblyTrademark("")] | 15 | [assembly: AssemblyTrademark("")] |
16 | [assembly: AssemblyCulture("")] | 16 | [assembly: AssemblyCulture("")] |
17 | 17 | ||
18 | // Setting ComVisible to false makes the types in this assembly not visible | 18 | // Setting ComVisible to false makes the types in this assembly not visible |
19 | // to COM components. If you need to access a type in this assembly from | 19 | // to COM components. If you need to access a type in this assembly from |
20 | // COM, set the ComVisible attribute to true on that type. | 20 | // COM, set the ComVisible attribute to true on that type. |
21 | [assembly: ComVisible(false)] | 21 | [assembly: ComVisible(false)] |
22 | 22 | ||
@@ -26,7 +26,7 @@ using Mono.Addins; | |||
26 | // Version information for an assembly consists of the following four values: | 26 | // Version information for an assembly consists of the following four values: |
27 | // | 27 | // |
28 | // Major Version | 28 | // Major Version |
29 | // Minor Version | 29 | // Minor Version |
30 | // Build Number | 30 | // Build Number |
31 | // Revision | 31 | // Revision |
32 | // | 32 | // |
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStore.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStore.cs index c38bb3e..9343aab 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStore.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStore.cs | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors | 2 | * Copyright (c) Contributors |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
@@ -67,7 +67,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
67 | 67 | ||
68 | protected List<TakeValueCallbackClass> m_TakeStore; | 68 | protected List<TakeValueCallbackClass> m_TakeStore; |
69 | protected List<TakeValueCallbackClass> m_ReadStore; | 69 | protected List<TakeValueCallbackClass> m_ReadStore; |
70 | 70 | ||
71 | // add separators for quoted paths and array references | 71 | // add separators for quoted paths and array references |
72 | protected static Regex m_ParsePassOne = new Regex("({[^}]+}|\\[[0-9]+\\]|\\[\\+\\])"); | 72 | protected static Regex m_ParsePassOne = new Regex("({[^}]+}|\\[[0-9]+\\]|\\[\\+\\])"); |
73 | 73 | ||
@@ -98,10 +98,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
98 | /// </summary> | 98 | /// </summary> |
99 | // ----------------------------------------------------------------- | 99 | // ----------------------------------------------------------------- |
100 | public int StringSpace { get; set; } | 100 | public int StringSpace { get; set; } |
101 | 101 | ||
102 | // ----------------------------------------------------------------- | 102 | // ----------------------------------------------------------------- |
103 | /// <summary> | 103 | /// <summary> |
104 | /// | 104 | /// |
105 | /// </summary> | 105 | /// </summary> |
106 | // ----------------------------------------------------------------- | 106 | // ----------------------------------------------------------------- |
107 | public static bool CanonicalPathExpression(string ipath, out string opath) | 107 | public static bool CanonicalPathExpression(string ipath, out string opath) |
@@ -116,13 +116,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
116 | opath = PathExpressionToKey(path); | 116 | opath = PathExpressionToKey(path); |
117 | return true; | 117 | return true; |
118 | } | 118 | } |
119 | 119 | ||
120 | // ----------------------------------------------------------------- | 120 | // ----------------------------------------------------------------- |
121 | /// <summary> | 121 | /// <summary> |
122 | /// | 122 | /// |
123 | /// </summary> | 123 | /// </summary> |
124 | // ----------------------------------------------------------------- | 124 | // ----------------------------------------------------------------- |
125 | public JsonStore() | 125 | public JsonStore() |
126 | { | 126 | { |
127 | StringSpace = 0; | 127 | StringSpace = 0; |
128 | m_TakeStore = new List<TakeValueCallbackClass>(); | 128 | m_TakeStore = new List<TakeValueCallbackClass>(); |
@@ -132,17 +132,17 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
132 | public JsonStore(string value) : this() | 132 | public JsonStore(string value) : this() |
133 | { | 133 | { |
134 | // This is going to throw an exception if the value is not | 134 | // This is going to throw an exception if the value is not |
135 | // a valid JSON chunk. Calling routines should catch the | 135 | // a valid JSON chunk. Calling routines should catch the |
136 | // exception and handle it appropriately | 136 | // exception and handle it appropriately |
137 | if (String.IsNullOrEmpty(value)) | 137 | if (String.IsNullOrEmpty(value)) |
138 | ValueStore = new OSDMap(); | 138 | ValueStore = new OSDMap(); |
139 | else | 139 | else |
140 | ValueStore = OSDParser.DeserializeJson(value); | 140 | ValueStore = OSDParser.DeserializeJson(value); |
141 | } | 141 | } |
142 | 142 | ||
143 | // ----------------------------------------------------------------- | 143 | // ----------------------------------------------------------------- |
144 | /// <summary> | 144 | /// <summary> |
145 | /// | 145 | /// |
146 | /// </summary> | 146 | /// </summary> |
147 | // ----------------------------------------------------------------- | 147 | // ----------------------------------------------------------------- |
148 | public JsonStoreNodeType GetNodeType(string expr) | 148 | public JsonStoreNodeType GetNodeType(string expr) |
@@ -150,27 +150,27 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
150 | Stack<string> path; | 150 | Stack<string> path; |
151 | if (! ParsePathExpression(expr,out path)) | 151 | if (! ParsePathExpression(expr,out path)) |
152 | return JsonStoreNodeType.Undefined; | 152 | return JsonStoreNodeType.Undefined; |
153 | 153 | ||
154 | OSD result = ProcessPathExpression(ValueStore,path); | 154 | OSD result = ProcessPathExpression(ValueStore,path); |
155 | 155 | ||
156 | if (result == null) | 156 | if (result == null) |
157 | return JsonStoreNodeType.Undefined; | 157 | return JsonStoreNodeType.Undefined; |
158 | 158 | ||
159 | if (result is OSDMap) | 159 | if (result is OSDMap) |
160 | return JsonStoreNodeType.Object; | 160 | return JsonStoreNodeType.Object; |
161 | 161 | ||
162 | if (result is OSDArray) | 162 | if (result is OSDArray) |
163 | return JsonStoreNodeType.Array; | 163 | return JsonStoreNodeType.Array; |
164 | 164 | ||
165 | if (OSDBaseType(result.Type)) | 165 | if (OSDBaseType(result.Type)) |
166 | return JsonStoreNodeType.Value; | 166 | return JsonStoreNodeType.Value; |
167 | 167 | ||
168 | return JsonStoreNodeType.Undefined; | 168 | return JsonStoreNodeType.Undefined; |
169 | } | 169 | } |
170 | 170 | ||
171 | // ----------------------------------------------------------------- | 171 | // ----------------------------------------------------------------- |
172 | /// <summary> | 172 | /// <summary> |
173 | /// | 173 | /// |
174 | /// </summary> | 174 | /// </summary> |
175 | // ----------------------------------------------------------------- | 175 | // ----------------------------------------------------------------- |
176 | public JsonStoreValueType GetValueType(string expr) | 176 | public JsonStoreValueType GetValueType(string expr) |
@@ -178,18 +178,18 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
178 | Stack<string> path; | 178 | Stack<string> path; |
179 | if (! ParsePathExpression(expr,out path)) | 179 | if (! ParsePathExpression(expr,out path)) |
180 | return JsonStoreValueType.Undefined; | 180 | return JsonStoreValueType.Undefined; |
181 | 181 | ||
182 | OSD result = ProcessPathExpression(ValueStore,path); | 182 | OSD result = ProcessPathExpression(ValueStore,path); |
183 | 183 | ||
184 | if (result == null) | 184 | if (result == null) |
185 | return JsonStoreValueType.Undefined; | 185 | return JsonStoreValueType.Undefined; |
186 | 186 | ||
187 | if (result is OSDMap) | 187 | if (result is OSDMap) |
188 | return JsonStoreValueType.Undefined; | 188 | return JsonStoreValueType.Undefined; |
189 | 189 | ||
190 | if (result is OSDArray) | 190 | if (result is OSDArray) |
191 | return JsonStoreValueType.Undefined; | 191 | return JsonStoreValueType.Undefined; |
192 | 192 | ||
193 | if (result is OSDBoolean) | 193 | if (result is OSDBoolean) |
194 | return JsonStoreValueType.Boolean; | 194 | return JsonStoreValueType.Boolean; |
195 | 195 | ||
@@ -204,10 +204,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
204 | 204 | ||
205 | return JsonStoreValueType.Undefined; | 205 | return JsonStoreValueType.Undefined; |
206 | } | 206 | } |
207 | 207 | ||
208 | // ----------------------------------------------------------------- | 208 | // ----------------------------------------------------------------- |
209 | /// <summary> | 209 | /// <summary> |
210 | /// | 210 | /// |
211 | /// </summary> | 211 | /// </summary> |
212 | // ----------------------------------------------------------------- | 212 | // ----------------------------------------------------------------- |
213 | public int ArrayLength(string expr) | 213 | public int ArrayLength(string expr) |
@@ -228,7 +228,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
228 | 228 | ||
229 | // ----------------------------------------------------------------- | 229 | // ----------------------------------------------------------------- |
230 | /// <summary> | 230 | /// <summary> |
231 | /// | 231 | /// |
232 | /// </summary> | 232 | /// </summary> |
233 | // ----------------------------------------------------------------- | 233 | // ----------------------------------------------------------------- |
234 | public bool GetValue(string expr, out string value, bool useJson) | 234 | public bool GetValue(string expr, out string value, bool useJson) |
@@ -241,23 +241,23 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
241 | } | 241 | } |
242 | 242 | ||
243 | OSD result = ProcessPathExpression(ValueStore,path); | 243 | OSD result = ProcessPathExpression(ValueStore,path); |
244 | return ConvertOutputValue(result,out value,useJson); | 244 | return ConvertOutputValue(result,out value,useJson); |
245 | } | 245 | } |
246 | 246 | ||
247 | 247 | ||
248 | // ----------------------------------------------------------------- | 248 | // ----------------------------------------------------------------- |
249 | /// <summary> | 249 | /// <summary> |
250 | /// | 250 | /// |
251 | /// </summary> | 251 | /// </summary> |
252 | // ----------------------------------------------------------------- | 252 | // ----------------------------------------------------------------- |
253 | public bool RemoveValue(string expr) | 253 | public bool RemoveValue(string expr) |
254 | { | 254 | { |
255 | return SetValueFromExpression(expr,null); | 255 | return SetValueFromExpression(expr,null); |
256 | } | 256 | } |
257 | 257 | ||
258 | // ----------------------------------------------------------------- | 258 | // ----------------------------------------------------------------- |
259 | /// <summary> | 259 | /// <summary> |
260 | /// | 260 | /// |
261 | /// </summary> | 261 | /// </summary> |
262 | // ----------------------------------------------------------------- | 262 | // ----------------------------------------------------------------- |
263 | public bool SetValue(string expr, string value, bool useJson) | 263 | public bool SetValue(string expr, string value, bool useJson) |
@@ -272,7 +272,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
272 | { | 272 | { |
273 | // There doesn't appear to be a good way to determine if the | 273 | // There doesn't appear to be a good way to determine if the |
274 | // value is valid Json other than to let the parser crash | 274 | // value is valid Json other than to let the parser crash |
275 | try | 275 | try |
276 | { | 276 | { |
277 | ovalue = OSDParser.DeserializeJson(value); | 277 | ovalue = OSDParser.DeserializeJson(value); |
278 | } | 278 | } |
@@ -292,13 +292,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
292 | { | 292 | { |
293 | ovalue = new OSDString(value); | 293 | ovalue = new OSDString(value); |
294 | } | 294 | } |
295 | 295 | ||
296 | return SetValueFromExpression(expr,ovalue); | 296 | return SetValueFromExpression(expr,ovalue); |
297 | } | 297 | } |
298 | 298 | ||
299 | // ----------------------------------------------------------------- | 299 | // ----------------------------------------------------------------- |
300 | /// <summary> | 300 | /// <summary> |
301 | /// | 301 | /// |
302 | /// </summary> | 302 | /// </summary> |
303 | // ----------------------------------------------------------------- | 303 | // ----------------------------------------------------------------- |
304 | public bool TakeValue(string expr, bool useJson, TakeValueCallback cback) | 304 | public bool TakeValue(string expr, bool useJson, TakeValueCallback cback) |
@@ -315,7 +315,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
315 | m_TakeStore.Add(new TakeValueCallbackClass(pexpr,useJson,cback)); | 315 | m_TakeStore.Add(new TakeValueCallbackClass(pexpr,useJson,cback)); |
316 | return false; | 316 | return false; |
317 | } | 317 | } |
318 | 318 | ||
319 | string value = String.Empty; | 319 | string value = String.Empty; |
320 | if (! ConvertOutputValue(result,out value,useJson)) | 320 | if (! ConvertOutputValue(result,out value,useJson)) |
321 | { | 321 | { |
@@ -332,7 +332,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
332 | 332 | ||
333 | // ----------------------------------------------------------------- | 333 | // ----------------------------------------------------------------- |
334 | /// <summary> | 334 | /// <summary> |
335 | /// | 335 | /// |
336 | /// </summary> | 336 | /// </summary> |
337 | // ----------------------------------------------------------------- | 337 | // ----------------------------------------------------------------- |
338 | public bool ReadValue(string expr, bool useJson, TakeValueCallback cback) | 338 | public bool ReadValue(string expr, bool useJson, TakeValueCallback cback) |
@@ -349,7 +349,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
349 | m_ReadStore.Add(new TakeValueCallbackClass(pexpr,useJson,cback)); | 349 | m_ReadStore.Add(new TakeValueCallbackClass(pexpr,useJson,cback)); |
350 | return false; | 350 | return false; |
351 | } | 351 | } |
352 | 352 | ||
353 | string value = String.Empty; | 353 | string value = String.Empty; |
354 | if (! ConvertOutputValue(result,out value,useJson)) | 354 | if (! ConvertOutputValue(result,out value,useJson)) |
355 | { | 355 | { |
@@ -362,10 +362,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
362 | 362 | ||
363 | return true; | 363 | return true; |
364 | } | 364 | } |
365 | 365 | ||
366 | // ----------------------------------------------------------------- | 366 | // ----------------------------------------------------------------- |
367 | /// <summary> | 367 | /// <summary> |
368 | /// | 368 | /// |
369 | /// </summary> | 369 | /// </summary> |
370 | // ----------------------------------------------------------------- | 370 | // ----------------------------------------------------------------- |
371 | protected bool SetValueFromExpression(string expr, OSD ovalue) | 371 | protected bool SetValueFromExpression(string expr, OSD ovalue) |
@@ -447,7 +447,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
447 | Match match = hmatches[0]; | 447 | Match match = hmatches[0]; |
448 | GroupCollection groups = match.Groups; | 448 | GroupCollection groups = match.Groups; |
449 | string hkey = groups[1].Value; | 449 | string hkey = groups[1].Value; |
450 | 450 | ||
451 | if (result is OSDMap) | 451 | if (result is OSDMap) |
452 | { | 452 | { |
453 | // this is the assignment case | 453 | // this is the assignment case |
@@ -456,7 +456,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
456 | { | 456 | { |
457 | StringSpace -= ComputeSizeOf(hmap[hkey]); | 457 | StringSpace -= ComputeSizeOf(hmap[hkey]); |
458 | StringSpace += ComputeSizeOf(ovalue); | 458 | StringSpace += ComputeSizeOf(ovalue); |
459 | 459 | ||
460 | hmap[hkey] = ovalue; | 460 | hmap[hkey] = ovalue; |
461 | InvokeNextCallback(pexpr + pkey); | 461 | InvokeNextCallback(pexpr + pkey); |
462 | return true; | 462 | return true; |
@@ -483,13 +483,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
483 | 483 | ||
484 | // ----------------------------------------------------------------- | 484 | // ----------------------------------------------------------------- |
485 | /// <summary> | 485 | /// <summary> |
486 | /// | 486 | /// |
487 | /// </summary> | 487 | /// </summary> |
488 | // ----------------------------------------------------------------- | 488 | // ----------------------------------------------------------------- |
489 | protected bool InvokeNextCallback(string pexpr) | 489 | protected bool InvokeNextCallback(string pexpr) |
490 | { | 490 | { |
491 | // Process all of the reads that match the expression first | 491 | // Process all of the reads that match the expression first |
492 | List<TakeValueCallbackClass> reads = | 492 | List<TakeValueCallbackClass> reads = |
493 | m_ReadStore.FindAll(delegate(TakeValueCallbackClass tb) { return pexpr.StartsWith(tb.Path); }); | 493 | m_ReadStore.FindAll(delegate(TakeValueCallbackClass tb) { return pexpr.StartsWith(tb.Path); }); |
494 | 494 | ||
495 | foreach (TakeValueCallbackClass readcb in reads) | 495 | foreach (TakeValueCallbackClass readcb in reads) |
@@ -501,7 +501,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
501 | // Process one take next | 501 | // Process one take next |
502 | TakeValueCallbackClass takecb = | 502 | TakeValueCallbackClass takecb = |
503 | m_TakeStore.Find(delegate(TakeValueCallbackClass tb) { return pexpr.StartsWith(tb.Path); }); | 503 | m_TakeStore.Find(delegate(TakeValueCallbackClass tb) { return pexpr.StartsWith(tb.Path); }); |
504 | 504 | ||
505 | if (takecb != null) | 505 | if (takecb != null) |
506 | { | 506 | { |
507 | m_TakeStore.Remove(takecb); | 507 | m_TakeStore.Remove(takecb); |
@@ -525,13 +525,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
525 | 525 | ||
526 | // add front and rear separators | 526 | // add front and rear separators |
527 | expr = "." + expr + "."; | 527 | expr = "." + expr + "."; |
528 | 528 | ||
529 | // add separators for quoted exprs and array references | 529 | // add separators for quoted exprs and array references |
530 | expr = m_ParsePassOne.Replace(expr,".$1.",-1,0); | 530 | expr = m_ParsePassOne.Replace(expr,".$1.",-1,0); |
531 | 531 | ||
532 | // add quotes to bare identifier | 532 | // add quotes to bare identifier |
533 | expr = m_ParsePassThree.Replace(expr,".{$1}",-1,0); | 533 | expr = m_ParsePassThree.Replace(expr,".{$1}",-1,0); |
534 | 534 | ||
535 | // remove extra separators | 535 | // remove extra separators |
536 | expr = m_ParsePassFour.Replace(expr,".",-1,0); | 536 | expr = m_ParsePassFour.Replace(expr,".",-1,0); |
537 | 537 | ||
@@ -550,7 +550,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
550 | 550 | ||
551 | // ----------------------------------------------------------------- | 551 | // ----------------------------------------------------------------- |
552 | /// <summary> | 552 | /// <summary> |
553 | /// | 553 | /// |
554 | /// </summary> | 554 | /// </summary> |
555 | /// <param>path is a stack where the top level of the path is at the bottom of the stack</param> | 555 | /// <param>path is a stack where the top level of the path is at the bottom of the stack</param> |
556 | // ----------------------------------------------------------------- | 556 | // ----------------------------------------------------------------- |
@@ -558,13 +558,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
558 | { | 558 | { |
559 | if (path.Count == 0) | 559 | if (path.Count == 0) |
560 | return map; | 560 | return map; |
561 | 561 | ||
562 | string pkey = path.Pop(); | 562 | string pkey = path.Pop(); |
563 | 563 | ||
564 | OSD rmap = ProcessPathExpression(map,path); | 564 | OSD rmap = ProcessPathExpression(map,path); |
565 | if (rmap == null) | 565 | if (rmap == null) |
566 | return null; | 566 | return null; |
567 | 567 | ||
568 | // ---------- Check for an array index ---------- | 568 | // ---------- Check for an array index ---------- |
569 | MatchCollection amatches = m_SimpleArrayPattern.Matches(pkey,0); | 569 | MatchCollection amatches = m_SimpleArrayPattern.Matches(pkey,0); |
570 | 570 | ||
@@ -582,7 +582,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
582 | GroupCollection groups = match.Groups; | 582 | GroupCollection groups = match.Groups; |
583 | string akey = groups[1].Value; | 583 | string akey = groups[1].Value; |
584 | int aval = Convert.ToInt32(akey); | 584 | int aval = Convert.ToInt32(akey); |
585 | 585 | ||
586 | if (aval < amap.Count) | 586 | if (aval < amap.Count) |
587 | return (OSD) amap[aval]; | 587 | return (OSD) amap[aval]; |
588 | 588 | ||
@@ -599,13 +599,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
599 | m_log.WarnFormat("[JsonStore] wrong type for key {2}, expecting {0}, got {1}",OSDType.Map,rmap.Type,pkey); | 599 | m_log.WarnFormat("[JsonStore] wrong type for key {2}, expecting {0}, got {1}",OSDType.Map,rmap.Type,pkey); |
600 | return null; | 600 | return null; |
601 | } | 601 | } |
602 | 602 | ||
603 | OSDMap hmap = rmap as OSDMap; | 603 | OSDMap hmap = rmap as OSDMap; |
604 | 604 | ||
605 | Match match = hmatches[0]; | 605 | Match match = hmatches[0]; |
606 | GroupCollection groups = match.Groups; | 606 | GroupCollection groups = match.Groups; |
607 | string hkey = groups[1].Value; | 607 | string hkey = groups[1].Value; |
608 | 608 | ||
609 | if (hmap.ContainsKey(hkey)) | 609 | if (hmap.ContainsKey(hkey)) |
610 | return (OSD) hmap[hkey]; | 610 | return (OSD) hmap[hkey]; |
611 | 611 | ||
@@ -619,13 +619,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
619 | 619 | ||
620 | // ----------------------------------------------------------------- | 620 | // ----------------------------------------------------------------- |
621 | /// <summary> | 621 | /// <summary> |
622 | /// | 622 | /// |
623 | /// </summary> | 623 | /// </summary> |
624 | // ----------------------------------------------------------------- | 624 | // ----------------------------------------------------------------- |
625 | protected static bool ConvertOutputValue(OSD result, out string value, bool useJson) | 625 | protected static bool ConvertOutputValue(OSD result, out string value, bool useJson) |
626 | { | 626 | { |
627 | value = String.Empty; | 627 | value = String.Empty; |
628 | 628 | ||
629 | // If we couldn't process the path | 629 | // If we couldn't process the path |
630 | if (result == null) | 630 | if (result == null) |
631 | return false; | 631 | return false; |
@@ -646,13 +646,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
646 | return true; | 646 | return true; |
647 | } | 647 | } |
648 | 648 | ||
649 | value = "'" + result.AsString() + "'"; | 649 | value = "'" + result.AsString() + "'"; |
650 | return true; | 650 | return true; |
651 | } | 651 | } |
652 | 652 | ||
653 | if (OSDBaseType(result.Type)) | 653 | if (OSDBaseType(result.Type)) |
654 | { | 654 | { |
655 | value = result.AsString(); | 655 | value = result.AsString(); |
656 | return true; | 656 | return true; |
657 | } | 657 | } |
658 | 658 | ||
@@ -661,24 +661,24 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
661 | 661 | ||
662 | // ----------------------------------------------------------------- | 662 | // ----------------------------------------------------------------- |
663 | /// <summary> | 663 | /// <summary> |
664 | /// | 664 | /// |
665 | /// </summary> | 665 | /// </summary> |
666 | // ----------------------------------------------------------------- | 666 | // ----------------------------------------------------------------- |
667 | protected static string PathExpressionToKey(Stack<string> path) | 667 | protected static string PathExpressionToKey(Stack<string> path) |
668 | { | 668 | { |
669 | if (path.Count == 0) | 669 | if (path.Count == 0) |
670 | return ""; | 670 | return ""; |
671 | 671 | ||
672 | string pkey = ""; | 672 | string pkey = ""; |
673 | foreach (string k in path) | 673 | foreach (string k in path) |
674 | pkey = (pkey == "") ? k : (k + "." + pkey); | 674 | pkey = (pkey == "") ? k : (k + "." + pkey); |
675 | 675 | ||
676 | return pkey; | 676 | return pkey; |
677 | } | 677 | } |
678 | 678 | ||
679 | // ----------------------------------------------------------------- | 679 | // ----------------------------------------------------------------- |
680 | /// <summary> | 680 | /// <summary> |
681 | /// | 681 | /// |
682 | /// </summary> | 682 | /// </summary> |
683 | // ----------------------------------------------------------------- | 683 | // ----------------------------------------------------------------- |
684 | protected static bool OSDBaseType(OSDType type) | 684 | protected static bool OSDBaseType(OSDType type) |
@@ -705,7 +705,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
705 | 705 | ||
706 | // ----------------------------------------------------------------- | 706 | // ----------------------------------------------------------------- |
707 | /// <summary> | 707 | /// <summary> |
708 | /// | 708 | /// |
709 | /// </summary> | 709 | /// </summary> |
710 | // ----------------------------------------------------------------- | 710 | // ----------------------------------------------------------------- |
711 | protected static int ComputeSizeOf(OSD value) | 711 | protected static int ComputeSizeOf(OSD value) |
@@ -731,7 +731,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
731 | private Scene m_scene; | 731 | private Scene m_scene; |
732 | private UUID m_objectID; | 732 | private UUID m_objectID; |
733 | 733 | ||
734 | protected override OSD ValueStore | 734 | protected override OSD ValueStore |
735 | { | 735 | { |
736 | get | 736 | get |
737 | { | 737 | { |
@@ -741,7 +741,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
741 | // This is bad | 741 | // This is bad |
742 | return null; | 742 | return null; |
743 | } | 743 | } |
744 | 744 | ||
745 | return sop.DynAttrs.TopLevelMap; | 745 | return sop.DynAttrs.TopLevelMap; |
746 | } | 746 | } |
747 | 747 | ||
@@ -761,5 +761,5 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
761 | StringSpace = ComputeSizeOf(ValueStore); | 761 | StringSpace = ComputeSizeOf(ValueStore); |
762 | } | 762 | } |
763 | } | 763 | } |
764 | 764 | ||
765 | } | 765 | } |
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs index d4b19dd..9bf9cb0 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors | 2 | * Copyright (c) Contributors |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
@@ -79,7 +79,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
79 | // ----------------------------------------------------------------- | 79 | // ----------------------------------------------------------------- |
80 | public void Initialise(IConfigSource config) | 80 | public void Initialise(IConfigSource config) |
81 | { | 81 | { |
82 | try | 82 | try |
83 | { | 83 | { |
84 | if ((m_config = config.Configs["JsonStore"]) == null) | 84 | if ((m_config = config.Configs["JsonStore"]) == null) |
85 | { | 85 | { |
@@ -127,7 +127,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
127 | if (m_enabled) | 127 | if (m_enabled) |
128 | { | 128 | { |
129 | m_scene = scene; | 129 | m_scene = scene; |
130 | 130 | ||
131 | } | 131 | } |
132 | } | 132 | } |
133 | 133 | ||
@@ -143,7 +143,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
143 | 143 | ||
144 | // ----------------------------------------------------------------- | 144 | // ----------------------------------------------------------------- |
145 | /// <summary> | 145 | /// <summary> |
146 | /// Called when all modules have been added for a region. This is | 146 | /// Called when all modules have been added for a region. This is |
147 | /// where we hook up events | 147 | /// where we hook up events |
148 | /// </summary> | 148 | /// </summary> |
149 | // ----------------------------------------------------------------- | 149 | // ----------------------------------------------------------------- |
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreModule.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreModule.cs index 26044f0..ae8341f 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreModule.cs | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors | 2 | * Copyright (c) Contributors |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
@@ -83,7 +83,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
83 | // ----------------------------------------------------------------- | 83 | // ----------------------------------------------------------------- |
84 | public void Initialise(IConfigSource config) | 84 | public void Initialise(IConfigSource config) |
85 | { | 85 | { |
86 | try | 86 | try |
87 | { | 87 | { |
88 | if ((m_config = config.Configs["JsonStore"]) == null) | 88 | if ((m_config = config.Configs["JsonStore"]) == null) |
89 | { | 89 | { |
@@ -159,7 +159,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
159 | 159 | ||
160 | // ----------------------------------------------------------------- | 160 | // ----------------------------------------------------------------- |
161 | /// <summary> | 161 | /// <summary> |
162 | /// Called when all modules have been added for a region. This is | 162 | /// Called when all modules have been added for a region. This is |
163 | /// where we hook up events | 163 | /// where we hook up events |
164 | /// </summary> | 164 | /// </summary> |
165 | // ----------------------------------------------------------------- | 165 | // ----------------------------------------------------------------- |
@@ -184,7 +184,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
184 | #region SceneEvents | 184 | #region SceneEvents |
185 | // ----------------------------------------------------------------- | 185 | // ----------------------------------------------------------------- |
186 | /// <summary> | 186 | /// <summary> |
187 | /// | 187 | /// |
188 | /// </summary> | 188 | /// </summary> |
189 | // ----------------------------------------------------------------- | 189 | // ----------------------------------------------------------------- |
190 | public void EventManagerOnObjectBeingRemovedFromScene(SceneObjectGroup obj) | 190 | public void EventManagerOnObjectBeingRemovedFromScene(SceneObjectGroup obj) |
@@ -196,10 +196,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
196 | 196 | ||
197 | #region ScriptInvocationInteface | 197 | #region ScriptInvocationInteface |
198 | 198 | ||
199 | 199 | ||
200 | // ----------------------------------------------------------------- | 200 | // ----------------------------------------------------------------- |
201 | /// <summary> | 201 | /// <summary> |
202 | /// | 202 | /// |
203 | /// </summary> | 203 | /// </summary> |
204 | // ----------------------------------------------------------------- | 204 | // ----------------------------------------------------------------- |
205 | public JsonStoreStats GetStoreStats() | 205 | public JsonStoreStats GetStoreStats() |
@@ -210,13 +210,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
210 | { | 210 | { |
211 | stats.StoreCount = m_JsonValueStore.Count; | 211 | stats.StoreCount = m_JsonValueStore.Count; |
212 | } | 212 | } |
213 | 213 | ||
214 | return stats; | 214 | return stats; |
215 | } | 215 | } |
216 | 216 | ||
217 | // ----------------------------------------------------------------- | 217 | // ----------------------------------------------------------------- |
218 | /// <summary> | 218 | /// <summary> |
219 | /// | 219 | /// |
220 | /// </summary> | 220 | /// </summary> |
221 | // ----------------------------------------------------------------- | 221 | // ----------------------------------------------------------------- |
222 | public bool AttachObjectStore(UUID objectID) | 222 | public bool AttachObjectStore(UUID objectID) |
@@ -235,17 +235,17 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
235 | { | 235 | { |
236 | if (m_JsonValueStore.ContainsKey(objectID)) | 236 | if (m_JsonValueStore.ContainsKey(objectID)) |
237 | return true; | 237 | return true; |
238 | 238 | ||
239 | JsonStore map = new JsonObjectStore(m_scene,objectID); | 239 | JsonStore map = new JsonObjectStore(m_scene,objectID); |
240 | m_JsonValueStore.Add(objectID,map); | 240 | m_JsonValueStore.Add(objectID,map); |
241 | } | 241 | } |
242 | 242 | ||
243 | return true; | 243 | return true; |
244 | } | 244 | } |
245 | 245 | ||
246 | // ----------------------------------------------------------------- | 246 | // ----------------------------------------------------------------- |
247 | /// <summary> | 247 | /// <summary> |
248 | /// | 248 | /// |
249 | /// </summary> | 249 | /// </summary> |
250 | // ----------------------------------------------------------------- | 250 | // ----------------------------------------------------------------- |
251 | public bool CreateStore(string value, ref UUID result) | 251 | public bool CreateStore(string value, ref UUID result) |
@@ -254,12 +254,12 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
254 | result = UUID.Random(); | 254 | result = UUID.Random(); |
255 | 255 | ||
256 | JsonStore map = null; | 256 | JsonStore map = null; |
257 | 257 | ||
258 | if (! m_enabled) return false; | 258 | if (! m_enabled) return false; |
259 | 259 | ||
260 | 260 | ||
261 | try | 261 | try |
262 | { | 262 | { |
263 | map = new JsonStore(value); | 263 | map = new JsonStore(value); |
264 | } | 264 | } |
265 | catch (Exception) | 265 | catch (Exception) |
@@ -270,13 +270,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
270 | 270 | ||
271 | lock (m_JsonValueStore) | 271 | lock (m_JsonValueStore) |
272 | m_JsonValueStore.Add(result,map); | 272 | m_JsonValueStore.Add(result,map); |
273 | 273 | ||
274 | return true; | 274 | return true; |
275 | } | 275 | } |
276 | 276 | ||
277 | // ----------------------------------------------------------------- | 277 | // ----------------------------------------------------------------- |
278 | /// <summary> | 278 | /// <summary> |
279 | /// | 279 | /// |
280 | /// </summary> | 280 | /// </summary> |
281 | // ----------------------------------------------------------------- | 281 | // ----------------------------------------------------------------- |
282 | public bool DestroyStore(UUID storeID) | 282 | public bool DestroyStore(UUID storeID) |
@@ -289,7 +289,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
289 | 289 | ||
290 | // ----------------------------------------------------------------- | 290 | // ----------------------------------------------------------------- |
291 | /// <summary> | 291 | /// <summary> |
292 | /// | 292 | /// |
293 | /// </summary> | 293 | /// </summary> |
294 | // ----------------------------------------------------------------- | 294 | // ----------------------------------------------------------------- |
295 | public bool TestStore(UUID storeID) | 295 | public bool TestStore(UUID storeID) |
@@ -302,7 +302,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
302 | 302 | ||
303 | // ----------------------------------------------------------------- | 303 | // ----------------------------------------------------------------- |
304 | /// <summary> | 304 | /// <summary> |
305 | /// | 305 | /// |
306 | /// </summary> | 306 | /// </summary> |
307 | // ----------------------------------------------------------------- | 307 | // ----------------------------------------------------------------- |
308 | public JsonStoreNodeType GetNodeType(UUID storeID, string path) | 308 | public JsonStoreNodeType GetNodeType(UUID storeID, string path) |
@@ -318,7 +318,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
318 | return JsonStoreNodeType.Undefined; | 318 | return JsonStoreNodeType.Undefined; |
319 | } | 319 | } |
320 | } | 320 | } |
321 | 321 | ||
322 | try | 322 | try |
323 | { | 323 | { |
324 | lock (map) | 324 | lock (map) |
@@ -334,7 +334,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
334 | 334 | ||
335 | // ----------------------------------------------------------------- | 335 | // ----------------------------------------------------------------- |
336 | /// <summary> | 336 | /// <summary> |
337 | /// | 337 | /// |
338 | /// </summary> | 338 | /// </summary> |
339 | // ----------------------------------------------------------------- | 339 | // ----------------------------------------------------------------- |
340 | public JsonStoreValueType GetValueType(UUID storeID, string path) | 340 | public JsonStoreValueType GetValueType(UUID storeID, string path) |
@@ -350,7 +350,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
350 | return JsonStoreValueType.Undefined; | 350 | return JsonStoreValueType.Undefined; |
351 | } | 351 | } |
352 | } | 352 | } |
353 | 353 | ||
354 | try | 354 | try |
355 | { | 355 | { |
356 | lock (map) | 356 | lock (map) |
@@ -366,7 +366,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
366 | 366 | ||
367 | // ----------------------------------------------------------------- | 367 | // ----------------------------------------------------------------- |
368 | /// <summary> | 368 | /// <summary> |
369 | /// | 369 | /// |
370 | /// </summary> | 370 | /// </summary> |
371 | // ----------------------------------------------------------------- | 371 | // ----------------------------------------------------------------- |
372 | public bool SetValue(UUID storeID, string path, string value, bool useJson) | 372 | public bool SetValue(UUID storeID, string path, string value, bool useJson) |
@@ -382,7 +382,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
382 | return false; | 382 | return false; |
383 | } | 383 | } |
384 | } | 384 | } |
385 | 385 | ||
386 | try | 386 | try |
387 | { | 387 | { |
388 | lock (map) | 388 | lock (map) |
@@ -393,7 +393,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
393 | storeID,map.StringSpace,m_maxStringSpace); | 393 | storeID,map.StringSpace,m_maxStringSpace); |
394 | return false; | 394 | return false; |
395 | } | 395 | } |
396 | 396 | ||
397 | return map.SetValue(path,value,useJson); | 397 | return map.SetValue(path,value,useJson); |
398 | } | 398 | } |
399 | } | 399 | } |
@@ -404,10 +404,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
404 | 404 | ||
405 | return false; | 405 | return false; |
406 | } | 406 | } |
407 | 407 | ||
408 | // ----------------------------------------------------------------- | 408 | // ----------------------------------------------------------------- |
409 | /// <summary> | 409 | /// <summary> |
410 | /// | 410 | /// |
411 | /// </summary> | 411 | /// </summary> |
412 | // ----------------------------------------------------------------- | 412 | // ----------------------------------------------------------------- |
413 | public bool RemoveValue(UUID storeID, string path) | 413 | public bool RemoveValue(UUID storeID, string path) |
@@ -423,7 +423,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
423 | return false; | 423 | return false; |
424 | } | 424 | } |
425 | } | 425 | } |
426 | 426 | ||
427 | try | 427 | try |
428 | { | 428 | { |
429 | lock (map) | 429 | lock (map) |
@@ -436,10 +436,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
436 | 436 | ||
437 | return false; | 437 | return false; |
438 | } | 438 | } |
439 | 439 | ||
440 | // ----------------------------------------------------------------- | 440 | // ----------------------------------------------------------------- |
441 | /// <summary> | 441 | /// <summary> |
442 | /// | 442 | /// |
443 | /// </summary> | 443 | /// </summary> |
444 | // ----------------------------------------------------------------- | 444 | // ----------------------------------------------------------------- |
445 | public int GetArrayLength(UUID storeID, string path) | 445 | public int GetArrayLength(UUID storeID, string path) |
@@ -464,19 +464,19 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
464 | { | 464 | { |
465 | m_log.Error("[JsonStore]: unable to retrieve value", e); | 465 | m_log.Error("[JsonStore]: unable to retrieve value", e); |
466 | } | 466 | } |
467 | 467 | ||
468 | return -1; | 468 | return -1; |
469 | } | 469 | } |
470 | 470 | ||
471 | // ----------------------------------------------------------------- | 471 | // ----------------------------------------------------------------- |
472 | /// <summary> | 472 | /// <summary> |
473 | /// | 473 | /// |
474 | /// </summary> | 474 | /// </summary> |
475 | // ----------------------------------------------------------------- | 475 | // ----------------------------------------------------------------- |
476 | public bool GetValue(UUID storeID, string path, bool useJson, out string value) | 476 | public bool GetValue(UUID storeID, string path, bool useJson, out string value) |
477 | { | 477 | { |
478 | value = String.Empty; | 478 | value = String.Empty; |
479 | 479 | ||
480 | if (! m_enabled) return false; | 480 | if (! m_enabled) return false; |
481 | 481 | ||
482 | JsonStore map = null; | 482 | JsonStore map = null; |
@@ -497,13 +497,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
497 | { | 497 | { |
498 | m_log.Error("[JsonStore]: unable to retrieve value", e); | 498 | m_log.Error("[JsonStore]: unable to retrieve value", e); |
499 | } | 499 | } |
500 | 500 | ||
501 | return false; | 501 | return false; |
502 | } | 502 | } |
503 | 503 | ||
504 | // ----------------------------------------------------------------- | 504 | // ----------------------------------------------------------------- |
505 | /// <summary> | 505 | /// <summary> |
506 | /// | 506 | /// |
507 | /// </summary> | 507 | /// </summary> |
508 | // ----------------------------------------------------------------- | 508 | // ----------------------------------------------------------------- |
509 | public void TakeValue(UUID storeID, string path, bool useJson, TakeValueCallback cback) | 509 | public void TakeValue(UUID storeID, string path, bool useJson, TakeValueCallback cback) |
@@ -536,13 +536,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
536 | { | 536 | { |
537 | m_log.Error("[JsonStore] unable to retrieve value", e); | 537 | m_log.Error("[JsonStore] unable to retrieve value", e); |
538 | } | 538 | } |
539 | 539 | ||
540 | cback(String.Empty); | 540 | cback(String.Empty); |
541 | } | 541 | } |
542 | 542 | ||
543 | // ----------------------------------------------------------------- | 543 | // ----------------------------------------------------------------- |
544 | /// <summary> | 544 | /// <summary> |
545 | /// | 545 | /// |
546 | /// </summary> | 546 | /// </summary> |
547 | // ----------------------------------------------------------------- | 547 | // ----------------------------------------------------------------- |
548 | public void ReadValue(UUID storeID, string path, bool useJson, TakeValueCallback cback) | 548 | public void ReadValue(UUID storeID, string path, bool useJson, TakeValueCallback cback) |
@@ -575,7 +575,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
575 | { | 575 | { |
576 | m_log.Error("[JsonStore]: unable to retrieve value", e); | 576 | m_log.Error("[JsonStore]: unable to retrieve value", e); |
577 | } | 577 | } |
578 | 578 | ||
579 | cback(String.Empty); | 579 | cback(String.Empty); |
580 | } | 580 | } |
581 | 581 | ||
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreScriptModule.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreScriptModule.cs index 7a0370a..a9fdb66 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreScriptModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreScriptModule.cs | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors | 2 | * Copyright (c) Contributors |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
@@ -83,7 +83,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
83 | // ----------------------------------------------------------------- | 83 | // ----------------------------------------------------------------- |
84 | public void Initialise(IConfigSource config) | 84 | public void Initialise(IConfigSource config) |
85 | { | 85 | { |
86 | try | 86 | try |
87 | { | 87 | { |
88 | if ((m_config = config.Configs["JsonStore"]) == null) | 88 | if ((m_config = config.Configs["JsonStore"]) == null) |
89 | { | 89 | { |
@@ -166,7 +166,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
166 | 166 | ||
167 | // ----------------------------------------------------------------- | 167 | // ----------------------------------------------------------------- |
168 | /// <summary> | 168 | /// <summary> |
169 | /// Called when all modules have been added for a region. This is | 169 | /// Called when all modules have been added for a region. This is |
170 | /// where we hook up events | 170 | /// where we hook up events |
171 | /// </summary> | 171 | /// </summary> |
172 | // ----------------------------------------------------------------- | 172 | // ----------------------------------------------------------------- |
@@ -251,7 +251,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
251 | #region ScriptInvocationInteface | 251 | #region ScriptInvocationInteface |
252 | // ----------------------------------------------------------------- | 252 | // ----------------------------------------------------------------- |
253 | /// <summary> | 253 | /// <summary> |
254 | /// | 254 | /// |
255 | /// </summary> | 255 | /// </summary> |
256 | // ----------------------------------------------------------------- | 256 | // ----------------------------------------------------------------- |
257 | [ScriptInvocation] | 257 | [ScriptInvocation] |
@@ -260,13 +260,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
260 | UUID uuid = UUID.Zero; | 260 | UUID uuid = UUID.Zero; |
261 | if (! m_store.AttachObjectStore(hostID)) | 261 | if (! m_store.AttachObjectStore(hostID)) |
262 | GenerateRuntimeError("Failed to create Json store"); | 262 | GenerateRuntimeError("Failed to create Json store"); |
263 | 263 | ||
264 | return hostID; | 264 | return hostID; |
265 | } | 265 | } |
266 | 266 | ||
267 | // ----------------------------------------------------------------- | 267 | // ----------------------------------------------------------------- |
268 | /// <summary> | 268 | /// <summary> |
269 | /// | 269 | /// |
270 | /// </summary> | 270 | /// </summary> |
271 | // ----------------------------------------------------------------- | 271 | // ----------------------------------------------------------------- |
272 | [ScriptInvocation] | 272 | [ScriptInvocation] |
@@ -275,12 +275,12 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
275 | UUID uuid = UUID.Zero; | 275 | UUID uuid = UUID.Zero; |
276 | if (! m_store.CreateStore(value, ref uuid)) | 276 | if (! m_store.CreateStore(value, ref uuid)) |
277 | GenerateRuntimeError("Failed to create Json store"); | 277 | GenerateRuntimeError("Failed to create Json store"); |
278 | 278 | ||
279 | lock (m_scriptStores) | 279 | lock (m_scriptStores) |
280 | { | 280 | { |
281 | if (! m_scriptStores.ContainsKey(scriptID)) | 281 | if (! m_scriptStores.ContainsKey(scriptID)) |
282 | m_scriptStores[scriptID] = new HashSet<UUID>(); | 282 | m_scriptStores[scriptID] = new HashSet<UUID>(); |
283 | 283 | ||
284 | m_scriptStores[scriptID].Add(uuid); | 284 | m_scriptStores[scriptID].Add(uuid); |
285 | } | 285 | } |
286 | return uuid; | 286 | return uuid; |
@@ -288,7 +288,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
288 | 288 | ||
289 | // ----------------------------------------------------------------- | 289 | // ----------------------------------------------------------------- |
290 | /// <summary> | 290 | /// <summary> |
291 | /// | 291 | /// |
292 | /// </summary> | 292 | /// </summary> |
293 | // ----------------------------------------------------------------- | 293 | // ----------------------------------------------------------------- |
294 | [ScriptInvocation] | 294 | [ScriptInvocation] |
@@ -305,7 +305,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
305 | 305 | ||
306 | // ----------------------------------------------------------------- | 306 | // ----------------------------------------------------------------- |
307 | /// <summary> | 307 | /// <summary> |
308 | /// | 308 | /// |
309 | /// </summary> | 309 | /// </summary> |
310 | // ----------------------------------------------------------------- | 310 | // ----------------------------------------------------------------- |
311 | [ScriptInvocation] | 311 | [ScriptInvocation] |
@@ -316,7 +316,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
316 | 316 | ||
317 | // ----------------------------------------------------------------- | 317 | // ----------------------------------------------------------------- |
318 | /// <summary> | 318 | /// <summary> |
319 | /// | 319 | /// |
320 | /// </summary> | 320 | /// </summary> |
321 | // ----------------------------------------------------------------- | 321 | // ----------------------------------------------------------------- |
322 | [ScriptInvocation] | 322 | [ScriptInvocation] |
@@ -330,7 +330,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
330 | 330 | ||
331 | // ----------------------------------------------------------------- | 331 | // ----------------------------------------------------------------- |
332 | /// <summary> | 332 | /// <summary> |
333 | /// | 333 | /// |
334 | /// </summary> | 334 | /// </summary> |
335 | // ----------------------------------------------------------------- | 335 | // ----------------------------------------------------------------- |
336 | [ScriptInvocation] | 336 | [ScriptInvocation] |
@@ -341,10 +341,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
341 | o => DoJsonReadNotecard(reqID, hostID, scriptID, storeID, path, notecardIdentifier), null, "JsonStoreScriptModule.JsonReadNotecard"); | 341 | o => DoJsonReadNotecard(reqID, hostID, scriptID, storeID, path, notecardIdentifier), null, "JsonStoreScriptModule.JsonReadNotecard"); |
342 | return reqID; | 342 | return reqID; |
343 | } | 343 | } |
344 | 344 | ||
345 | // ----------------------------------------------------------------- | 345 | // ----------------------------------------------------------------- |
346 | /// <summary> | 346 | /// <summary> |
347 | /// | 347 | /// |
348 | /// </summary> | 348 | /// </summary> |
349 | // ----------------------------------------------------------------- | 349 | // ----------------------------------------------------------------- |
350 | [ScriptInvocation] | 350 | [ScriptInvocation] |
@@ -358,7 +358,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
358 | 358 | ||
359 | // ----------------------------------------------------------------- | 359 | // ----------------------------------------------------------------- |
360 | /// <summary> | 360 | /// <summary> |
361 | /// | 361 | /// |
362 | /// </summary> | 362 | /// </summary> |
363 | // ----------------------------------------------------------------- | 363 | // ----------------------------------------------------------------- |
364 | [ScriptInvocation] | 364 | [ScriptInvocation] |
@@ -366,7 +366,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
366 | { | 366 | { |
367 | string ipath = ConvertList2Path(pathlist); | 367 | string ipath = ConvertList2Path(pathlist); |
368 | string opath; | 368 | string opath; |
369 | 369 | ||
370 | if (JsonStore.CanonicalPathExpression(ipath,out opath)) | 370 | if (JsonStore.CanonicalPathExpression(ipath,out opath)) |
371 | return opath; | 371 | return opath; |
372 | 372 | ||
@@ -375,10 +375,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
375 | // the entire store | 375 | // the entire store |
376 | return "**INVALID**"; | 376 | return "**INVALID**"; |
377 | } | 377 | } |
378 | 378 | ||
379 | // ----------------------------------------------------------------- | 379 | // ----------------------------------------------------------------- |
380 | /// <summary> | 380 | /// <summary> |
381 | /// | 381 | /// |
382 | /// </summary> | 382 | /// </summary> |
383 | // ----------------------------------------------------------------- | 383 | // ----------------------------------------------------------------- |
384 | [ScriptInvocation] | 384 | [ScriptInvocation] |
@@ -389,7 +389,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
389 | 389 | ||
390 | // ----------------------------------------------------------------- | 390 | // ----------------------------------------------------------------- |
391 | /// <summary> | 391 | /// <summary> |
392 | /// | 392 | /// |
393 | /// </summary> | 393 | /// </summary> |
394 | // ----------------------------------------------------------------- | 394 | // ----------------------------------------------------------------- |
395 | [ScriptInvocation] | 395 | [ScriptInvocation] |
@@ -400,7 +400,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
400 | 400 | ||
401 | // ----------------------------------------------------------------- | 401 | // ----------------------------------------------------------------- |
402 | /// <summary> | 402 | /// <summary> |
403 | /// | 403 | /// |
404 | /// </summary> | 404 | /// </summary> |
405 | // ----------------------------------------------------------------- | 405 | // ----------------------------------------------------------------- |
406 | [ScriptInvocation] | 406 | [ScriptInvocation] |
@@ -417,7 +417,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
417 | 417 | ||
418 | // ----------------------------------------------------------------- | 418 | // ----------------------------------------------------------------- |
419 | /// <summary> | 419 | /// <summary> |
420 | /// | 420 | /// |
421 | /// </summary> | 421 | /// </summary> |
422 | // ----------------------------------------------------------------- | 422 | // ----------------------------------------------------------------- |
423 | [ScriptInvocation] | 423 | [ScriptInvocation] |
@@ -425,10 +425,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
425 | { | 425 | { |
426 | return m_store.RemoveValue(storeID,path) ? 1 : 0; | 426 | return m_store.RemoveValue(storeID,path) ? 1 : 0; |
427 | } | 427 | } |
428 | 428 | ||
429 | // ----------------------------------------------------------------- | 429 | // ----------------------------------------------------------------- |
430 | /// <summary> | 430 | /// <summary> |
431 | /// | 431 | /// |
432 | /// </summary> | 432 | /// </summary> |
433 | // ----------------------------------------------------------------- | 433 | // ----------------------------------------------------------------- |
434 | [ScriptInvocation] | 434 | [ScriptInvocation] |
@@ -436,10 +436,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
436 | { | 436 | { |
437 | return m_store.GetArrayLength(storeID,path); | 437 | return m_store.GetArrayLength(storeID,path); |
438 | } | 438 | } |
439 | 439 | ||
440 | // ----------------------------------------------------------------- | 440 | // ----------------------------------------------------------------- |
441 | /// <summary> | 441 | /// <summary> |
442 | /// | 442 | /// |
443 | /// </summary> | 443 | /// </summary> |
444 | // ----------------------------------------------------------------- | 444 | // ----------------------------------------------------------------- |
445 | [ScriptInvocation] | 445 | [ScriptInvocation] |
@@ -457,10 +457,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
457 | m_store.GetValue(storeID,path,true, out value); | 457 | m_store.GetValue(storeID,path,true, out value); |
458 | return value; | 458 | return value; |
459 | } | 459 | } |
460 | 460 | ||
461 | // ----------------------------------------------------------------- | 461 | // ----------------------------------------------------------------- |
462 | /// <summary> | 462 | /// <summary> |
463 | /// | 463 | /// |
464 | /// </summary> | 464 | /// </summary> |
465 | // ----------------------------------------------------------------- | 465 | // ----------------------------------------------------------------- |
466 | [ScriptInvocation] | 466 | [ScriptInvocation] |
@@ -480,10 +480,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
480 | o => DoJsonTakeValue(scriptID,reqID,storeID,path,true), null, "JsonStoreScriptModule.DoJsonTakeValueJson"); | 480 | o => DoJsonTakeValue(scriptID,reqID,storeID,path,true), null, "JsonStoreScriptModule.DoJsonTakeValueJson"); |
481 | return reqID; | 481 | return reqID; |
482 | } | 482 | } |
483 | 483 | ||
484 | // ----------------------------------------------------------------- | 484 | // ----------------------------------------------------------------- |
485 | /// <summary> | 485 | /// <summary> |
486 | /// | 486 | /// |
487 | /// </summary> | 487 | /// </summary> |
488 | // ----------------------------------------------------------------- | 488 | // ----------------------------------------------------------------- |
489 | [ScriptInvocation] | 489 | [ScriptInvocation] |
@@ -503,12 +503,12 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
503 | o => DoJsonReadValue(scriptID,reqID,storeID,path,true), null, "JsonStoreScriptModule.DoJsonReadValueJson"); | 503 | o => DoJsonReadValue(scriptID,reqID,storeID,path,true), null, "JsonStoreScriptModule.DoJsonReadValueJson"); |
504 | return reqID; | 504 | return reqID; |
505 | } | 505 | } |
506 | 506 | ||
507 | #endregion | 507 | #endregion |
508 | 508 | ||
509 | // ----------------------------------------------------------------- | 509 | // ----------------------------------------------------------------- |
510 | /// <summary> | 510 | /// <summary> |
511 | /// | 511 | /// |
512 | /// </summary> | 512 | /// </summary> |
513 | // ----------------------------------------------------------------- | 513 | // ----------------------------------------------------------------- |
514 | protected void GenerateRuntimeError(string msg) | 514 | protected void GenerateRuntimeError(string msg) |
@@ -516,10 +516,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
516 | m_log.InfoFormat("[JsonStore] runtime error: {0}",msg); | 516 | m_log.InfoFormat("[JsonStore] runtime error: {0}",msg); |
517 | throw new Exception("JsonStore Runtime Error: " + msg); | 517 | throw new Exception("JsonStore Runtime Error: " + msg); |
518 | } | 518 | } |
519 | 519 | ||
520 | // ----------------------------------------------------------------- | 520 | // ----------------------------------------------------------------- |
521 | /// <summary> | 521 | /// <summary> |
522 | /// | 522 | /// |
523 | /// </summary> | 523 | /// </summary> |
524 | // ----------------------------------------------------------------- | 524 | // ----------------------------------------------------------------- |
525 | protected void DispatchValue(UUID scriptID, UUID reqID, string value) | 525 | protected void DispatchValue(UUID scriptID, UUID reqID, string value) |
@@ -529,7 +529,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
529 | 529 | ||
530 | // ----------------------------------------------------------------- | 530 | // ----------------------------------------------------------------- |
531 | /// <summary> | 531 | /// <summary> |
532 | /// | 532 | /// |
533 | /// </summary> | 533 | /// </summary> |
534 | // ----------------------------------------------------------------- | 534 | // ----------------------------------------------------------------- |
535 | private void DoJsonTakeValue(UUID scriptID, UUID reqID, UUID storeID, string path, bool useJson) | 535 | private void DoJsonTakeValue(UUID scriptID, UUID reqID, UUID storeID, string path, bool useJson) |
@@ -543,14 +543,14 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
543 | { | 543 | { |
544 | m_log.InfoFormat("[JsonStoreScripts]: unable to retrieve value; {0}",e.ToString()); | 544 | m_log.InfoFormat("[JsonStoreScripts]: unable to retrieve value; {0}",e.ToString()); |
545 | } | 545 | } |
546 | 546 | ||
547 | DispatchValue(scriptID,reqID,String.Empty); | 547 | DispatchValue(scriptID,reqID,String.Empty); |
548 | } | 548 | } |
549 | 549 | ||
550 | 550 | ||
551 | // ----------------------------------------------------------------- | 551 | // ----------------------------------------------------------------- |
552 | /// <summary> | 552 | /// <summary> |
553 | /// | 553 | /// |
554 | /// </summary> | 554 | /// </summary> |
555 | // ----------------------------------------------------------------- | 555 | // ----------------------------------------------------------------- |
556 | private void DoJsonReadValue(UUID scriptID, UUID reqID, UUID storeID, string path, bool useJson) | 556 | private void DoJsonReadValue(UUID scriptID, UUID reqID, UUID storeID, string path, bool useJson) |
@@ -564,13 +564,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
564 | { | 564 | { |
565 | m_log.InfoFormat("[JsonStoreScripts]: unable to retrieve value; {0}",e.ToString()); | 565 | m_log.InfoFormat("[JsonStoreScripts]: unable to retrieve value; {0}",e.ToString()); |
566 | } | 566 | } |
567 | 567 | ||
568 | DispatchValue(scriptID,reqID,String.Empty); | 568 | DispatchValue(scriptID,reqID,String.Empty); |
569 | } | 569 | } |
570 | 570 | ||
571 | // ----------------------------------------------------------------- | 571 | // ----------------------------------------------------------------- |
572 | /// <summary> | 572 | /// <summary> |
573 | /// | 573 | /// |
574 | /// </summary> | 574 | /// </summary> |
575 | // ----------------------------------------------------------------- | 575 | // ----------------------------------------------------------------- |
576 | private void DoJsonReadNotecard( | 576 | private void DoJsonReadNotecard( |
@@ -580,7 +580,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
580 | 580 | ||
581 | if (!UUID.TryParse(notecardIdentifier, out assetID)) | 581 | if (!UUID.TryParse(notecardIdentifier, out assetID)) |
582 | { | 582 | { |
583 | SceneObjectPart part = m_scene.GetSceneObjectPart(hostID); | 583 | SceneObjectPart part = m_scene.GetSceneObjectPart(hostID); |
584 | assetID = ScriptUtils.GetAssetIdFromItemName(part, notecardIdentifier, (int)AssetType.Notecard); | 584 | assetID = ScriptUtils.GetAssetIdFromItemName(part, notecardIdentifier, (int)AssetType.Notecard); |
585 | } | 585 | } |
586 | 586 | ||
@@ -590,10 +590,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
590 | 590 | ||
591 | if (a.Type != (sbyte)AssetType.Notecard) | 591 | if (a.Type != (sbyte)AssetType.Notecard) |
592 | GenerateRuntimeError(String.Format("Invalid notecard asset {0}", assetID)); | 592 | GenerateRuntimeError(String.Format("Invalid notecard asset {0}", assetID)); |
593 | 593 | ||
594 | m_log.DebugFormat("[JsonStoreScripts]: read notecard in context {0}",storeID); | 594 | m_log.DebugFormat("[JsonStoreScripts]: read notecard in context {0}",storeID); |
595 | 595 | ||
596 | try | 596 | try |
597 | { | 597 | { |
598 | string jsondata = SLUtil.ParseNotecardToString(a.Data); | 598 | string jsondata = SLUtil.ParseNotecardToString(a.Data); |
599 | int result = m_store.SetValue(storeID, path, jsondata,true) ? 1 : 0; | 599 | int result = m_store.SetValue(storeID, path, jsondata,true) ? 1 : 0; |
@@ -612,10 +612,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
612 | GenerateRuntimeError(String.Format("Json parsing failed for {0}", assetID)); | 612 | GenerateRuntimeError(String.Format("Json parsing failed for {0}", assetID)); |
613 | m_comms.DispatchReply(scriptID, 0, "", reqID.ToString()); | 613 | m_comms.DispatchReply(scriptID, 0, "", reqID.ToString()); |
614 | } | 614 | } |
615 | 615 | ||
616 | // ----------------------------------------------------------------- | 616 | // ----------------------------------------------------------------- |
617 | /// <summary> | 617 | /// <summary> |
618 | /// | 618 | /// |
619 | /// </summary> | 619 | /// </summary> |
620 | // ----------------------------------------------------------------- | 620 | // ----------------------------------------------------------------- |
621 | private void DoJsonWriteNotecard(UUID reqID, UUID hostID, UUID scriptID, UUID storeID, string path, string name) | 621 | private void DoJsonWriteNotecard(UUID reqID, UUID hostID, UUID scriptID, UUID storeID, string path, string name) |
@@ -626,9 +626,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
626 | m_comms.DispatchReply(scriptID,0,UUID.Zero.ToString(),reqID.ToString()); | 626 | m_comms.DispatchReply(scriptID,0,UUID.Zero.ToString(),reqID.ToString()); |
627 | return; | 627 | return; |
628 | } | 628 | } |
629 | 629 | ||
630 | SceneObjectPart host = m_scene.GetSceneObjectPart(hostID); | 630 | SceneObjectPart host = m_scene.GetSceneObjectPart(hostID); |
631 | 631 | ||
632 | // Create new asset | 632 | // Create new asset |
633 | UUID assetID = UUID.Random(); | 633 | UUID assetID = UUID.Random(); |
634 | AssetBase asset = new AssetBase(assetID, name, (sbyte)AssetType.Notecard, host.OwnerID.ToString()); | 634 | AssetBase asset = new AssetBase(assetID, name, (sbyte)AssetType.Notecard, host.OwnerID.ToString()); |
@@ -681,7 +681,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
681 | for (int i = 0; i < pathlist.Length; i++) | 681 | for (int i = 0; i < pathlist.Length; i++) |
682 | { | 682 | { |
683 | string token = ""; | 683 | string token = ""; |
684 | 684 | ||
685 | if (pathlist[i] is string) | 685 | if (pathlist[i] is string) |
686 | { | 686 | { |
687 | token = pathlist[i].ToString(); | 687 | token = pathlist[i].ToString(); |
@@ -699,16 +699,16 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
699 | { | 699 | { |
700 | token = "." + pathlist[i].ToString() + "."; | 700 | token = "." + pathlist[i].ToString() + "."; |
701 | } | 701 | } |
702 | 702 | ||
703 | path += token + "."; | 703 | path += token + "."; |
704 | } | 704 | } |
705 | 705 | ||
706 | return path; | 706 | return path; |
707 | } | 707 | } |
708 | 708 | ||
709 | // ----------------------------------------------------------------- | 709 | // ----------------------------------------------------------------- |
710 | /// <summary> | 710 | /// <summary> |
711 | /// | 711 | /// |
712 | /// </summary> | 712 | /// </summary> |
713 | // ----------------------------------------------------------------- | 713 | // ----------------------------------------------------------------- |
714 | private void DoJsonRezObject(UUID hostID, UUID scriptID, UUID reqID, string name, Vector3 pos, Vector3 vel, Quaternion rot, string param) | 714 | private void DoJsonRezObject(UUID hostID, UUID scriptID, UUID reqID, string name, Vector3 pos, Vector3 vel, Quaternion rot, string param) |
@@ -801,7 +801,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore | |||
801 | 801 | ||
802 | group.ScheduleGroupForFullUpdate(); | 802 | group.ScheduleGroupForFullUpdate(); |
803 | 803 | ||
804 | // send the reply back to the host object, use the integer param to indicate the number | 804 | // send the reply back to the host object, use the integer param to indicate the number |
805 | // of remaining objects | 805 | // of remaining objects |
806 | m_comms.DispatchReply(scriptID, objlist.Count-i-1, group.RootPart.UUID.ToString(), reqID.ToString()); | 806 | m_comms.DispatchReply(scriptID, objlist.Count-i-1, group.RootPart.UUID.ToString(), reqID.ToString()); |
807 | } | 807 | } |
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs index 99a7076..77ee785 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | |||
@@ -180,7 +180,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
180 | TestHelpers.InMethod(); | 180 | TestHelpers.InMethod(); |
181 | // TestHelpers.EnableLogging(); | 181 | // TestHelpers.EnableLogging(); |
182 | 182 | ||
183 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'Two' } }"); | 183 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'Two' } }"); |
184 | 184 | ||
185 | { | 185 | { |
186 | string value = (string)InvokeOp("JsonGetValue", storeId, "Hello.World"); | 186 | string value = (string)InvokeOp("JsonGetValue", storeId, "Hello.World"); |
@@ -213,7 +213,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
213 | TestHelpers.InMethod(); | 213 | TestHelpers.InMethod(); |
214 | // TestHelpers.EnableLogging(); | 214 | // TestHelpers.EnableLogging(); |
215 | 215 | ||
216 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'Two' } }"); | 216 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'Two' } }"); |
217 | 217 | ||
218 | { | 218 | { |
219 | string value = (string)InvokeOp("JsonGetJson", storeId, "Hello.World"); | 219 | string value = (string)InvokeOp("JsonGetJson", storeId, "Hello.World"); |
@@ -246,11 +246,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
246 | // TestHelpers.InMethod(); | 246 | // TestHelpers.InMethod(); |
247 | //// TestHelpers.EnableLogging(); | 247 | //// TestHelpers.EnableLogging(); |
248 | // | 248 | // |
249 | // UUID storeId | 249 | // UUID storeId |
250 | // = (UUID)m_smcm.InvokeOperation( | 250 | // = (UUID)m_smcm.InvokeOperation( |
251 | // UUID.Zero, UUID.Zero, "JsonCreateStore", new object[] { "{ 'Hello' : 'World' }" }); | 251 | // UUID.Zero, UUID.Zero, "JsonCreateStore", new object[] { "{ 'Hello' : 'World' }" }); |
252 | // | 252 | // |
253 | // string value | 253 | // string value |
254 | // = (string)m_smcm.InvokeOperation( | 254 | // = (string)m_smcm.InvokeOperation( |
255 | // UUID.Zero, UUID.Zero, "JsonTakeValue", new object[] { storeId, "Hello" }); | 255 | // UUID.Zero, UUID.Zero, "JsonTakeValue", new object[] { storeId, "Hello" }); |
256 | // | 256 | // |
@@ -271,7 +271,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
271 | 271 | ||
272 | // Test remove of node in object pointing to a string | 272 | // Test remove of node in object pointing to a string |
273 | { | 273 | { |
274 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : 'World' }"); | 274 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : 'World' }"); |
275 | 275 | ||
276 | int returnValue = (int)InvokeOp( "JsonRemoveValue", storeId, "Hello"); | 276 | int returnValue = (int)InvokeOp( "JsonRemoveValue", storeId, "Hello"); |
277 | Assert.That(returnValue, Is.EqualTo(1)); | 277 | Assert.That(returnValue, Is.EqualTo(1)); |
@@ -285,7 +285,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
285 | 285 | ||
286 | // Test remove of node in object pointing to another object | 286 | // Test remove of node in object pointing to another object |
287 | { | 287 | { |
288 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'Wally' } }"); | 288 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'Wally' } }"); |
289 | 289 | ||
290 | int returnValue = (int)InvokeOp( "JsonRemoveValue", storeId, "Hello"); | 290 | int returnValue = (int)InvokeOp( "JsonRemoveValue", storeId, "Hello"); |
291 | Assert.That(returnValue, Is.EqualTo(1)); | 291 | Assert.That(returnValue, Is.EqualTo(1)); |
@@ -299,7 +299,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
299 | 299 | ||
300 | // Test remove of node in an array | 300 | // Test remove of node in an array |
301 | { | 301 | { |
302 | UUID storeId | 302 | UUID storeId |
303 | = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : [ 'value1', 'value2' ] }"); | 303 | = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : [ 'value1', 'value2' ] }"); |
304 | 304 | ||
305 | int returnValue = (int)InvokeOp( "JsonRemoveValue", storeId, "Hello[0]"); | 305 | int returnValue = (int)InvokeOp( "JsonRemoveValue", storeId, "Hello[0]"); |
@@ -320,7 +320,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
320 | 320 | ||
321 | // Test remove of non-existing value | 321 | // Test remove of non-existing value |
322 | { | 322 | { |
323 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : 'World' }"); | 323 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : 'World' }"); |
324 | 324 | ||
325 | int fakeValueRemove = (int)InvokeOp("JsonRemoveValue", storeId, "Cheese"); | 325 | int fakeValueRemove = (int)InvokeOp("JsonRemoveValue", storeId, "Cheese"); |
326 | Assert.That(fakeValueRemove, Is.EqualTo(0)); | 326 | Assert.That(fakeValueRemove, Is.EqualTo(0)); |
@@ -340,7 +340,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
340 | // TestHelpers.InMethod(); | 340 | // TestHelpers.InMethod(); |
341 | //// TestHelpers.EnableLogging(); | 341 | //// TestHelpers.EnableLogging(); |
342 | // | 342 | // |
343 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'One' } }"); | 343 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'One' } }"); |
344 | // | 344 | // |
345 | // { | 345 | // { |
346 | // int result = (int)InvokeOp("JsonTestPath", storeId, "Hello.World"); | 346 | // int result = (int)InvokeOp("JsonTestPath", storeId, "Hello.World"); |
@@ -372,7 +372,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
372 | // TestHelpers.InMethod(); | 372 | // TestHelpers.InMethod(); |
373 | //// TestHelpers.EnableLogging(); | 373 | //// TestHelpers.EnableLogging(); |
374 | // | 374 | // |
375 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'One' } }"); | 375 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'One' } }"); |
376 | // | 376 | // |
377 | // { | 377 | // { |
378 | // int result = (int)InvokeOp("JsonTestPathJson", storeId, "Hello.World"); | 378 | // int result = (int)InvokeOp("JsonTestPathJson", storeId, "Hello.World"); |
@@ -437,7 +437,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
437 | TestHelpers.InMethod(); | 437 | TestHelpers.InMethod(); |
438 | // TestHelpers.EnableLogging(); | 438 | // TestHelpers.EnableLogging(); |
439 | 439 | ||
440 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : [ 'one', 2 ] } }"); | 440 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : [ 'one', 2 ] } }"); |
441 | 441 | ||
442 | { | 442 | { |
443 | int result = (int)InvokeOp("JsonGetNodeType", storeId, "."); | 443 | int result = (int)InvokeOp("JsonGetNodeType", storeId, "."); |
@@ -509,7 +509,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
509 | // TestHelpers.EnableLogging(); | 509 | // TestHelpers.EnableLogging(); |
510 | 510 | ||
511 | { | 511 | { |
512 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 512 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
513 | 513 | ||
514 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun", "Times"); | 514 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun", "Times"); |
515 | Assert.That(result, Is.EqualTo(1)); | 515 | Assert.That(result, Is.EqualTo(1)); |
@@ -520,7 +520,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
520 | 520 | ||
521 | // Test setting a key containing periods with delineation | 521 | // Test setting a key containing periods with delineation |
522 | { | 522 | { |
523 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 523 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
524 | 524 | ||
525 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun.Circus}", "Times"); | 525 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun.Circus}", "Times"); |
526 | Assert.That(result, Is.EqualTo(1)); | 526 | Assert.That(result, Is.EqualTo(1)); |
@@ -533,7 +533,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
533 | 533 | ||
534 | // Test setting a key containing unbalanced ] without delineation. Expecting failure | 534 | // Test setting a key containing unbalanced ] without delineation. Expecting failure |
535 | { | 535 | { |
536 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 536 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
537 | 537 | ||
538 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun]Circus", "Times"); | 538 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun]Circus", "Times"); |
539 | Assert.That(result, Is.EqualTo(0)); | 539 | Assert.That(result, Is.EqualTo(0)); |
@@ -544,7 +544,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
544 | 544 | ||
545 | // Test setting a key containing unbalanced [ without delineation. Expecting failure | 545 | // Test setting a key containing unbalanced [ without delineation. Expecting failure |
546 | { | 546 | { |
547 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 547 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
548 | 548 | ||
549 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun[Circus", "Times"); | 549 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun[Circus", "Times"); |
550 | Assert.That(result, Is.EqualTo(0)); | 550 | Assert.That(result, Is.EqualTo(0)); |
@@ -555,7 +555,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
555 | 555 | ||
556 | // Test setting a key containing unbalanced [] without delineation. Expecting failure | 556 | // Test setting a key containing unbalanced [] without delineation. Expecting failure |
557 | { | 557 | { |
558 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 558 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
559 | 559 | ||
560 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun[]Circus", "Times"); | 560 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun[]Circus", "Times"); |
561 | Assert.That(result, Is.EqualTo(0)); | 561 | Assert.That(result, Is.EqualTo(0)); |
@@ -566,7 +566,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
566 | 566 | ||
567 | // Test setting a key containing unbalanced ] with delineation | 567 | // Test setting a key containing unbalanced ] with delineation |
568 | { | 568 | { |
569 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 569 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
570 | 570 | ||
571 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun]Circus}", "Times"); | 571 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun]Circus}", "Times"); |
572 | Assert.That(result, Is.EqualTo(1)); | 572 | Assert.That(result, Is.EqualTo(1)); |
@@ -577,7 +577,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
577 | 577 | ||
578 | // Test setting a key containing unbalanced [ with delineation | 578 | // Test setting a key containing unbalanced [ with delineation |
579 | { | 579 | { |
580 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 580 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
581 | 581 | ||
582 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun[Circus}", "Times"); | 582 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun[Circus}", "Times"); |
583 | Assert.That(result, Is.EqualTo(1)); | 583 | Assert.That(result, Is.EqualTo(1)); |
@@ -588,7 +588,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
588 | 588 | ||
589 | // Test setting a key containing empty balanced [] with delineation | 589 | // Test setting a key containing empty balanced [] with delineation |
590 | { | 590 | { |
591 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 591 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
592 | 592 | ||
593 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun[]Circus}", "Times"); | 593 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun[]Circus}", "Times"); |
594 | Assert.That(result, Is.EqualTo(1)); | 594 | Assert.That(result, Is.EqualTo(1)); |
@@ -600,7 +600,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
600 | // // Commented out as this currently unexpectedly fails. | 600 | // // Commented out as this currently unexpectedly fails. |
601 | // // Test setting a key containing brackets around an integer with delineation | 601 | // // Test setting a key containing brackets around an integer with delineation |
602 | // { | 602 | // { |
603 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 603 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
604 | // | 604 | // |
605 | // int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun[0]Circus}", "Times"); | 605 | // int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun[0]Circus}", "Times"); |
606 | // Assert.That(result, Is.EqualTo(1)); | 606 | // Assert.That(result, Is.EqualTo(1)); |
@@ -610,10 +610,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
610 | // } | 610 | // } |
611 | 611 | ||
612 | // *** Test {} *** | 612 | // *** Test {} *** |
613 | 613 | ||
614 | // Test setting a key containing unbalanced } without delineation. Expecting failure (?) | 614 | // Test setting a key containing unbalanced } without delineation. Expecting failure (?) |
615 | { | 615 | { |
616 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 616 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
617 | 617 | ||
618 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun}Circus", "Times"); | 618 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun}Circus", "Times"); |
619 | Assert.That(result, Is.EqualTo(0)); | 619 | Assert.That(result, Is.EqualTo(0)); |
@@ -624,7 +624,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
624 | 624 | ||
625 | // Test setting a key containing unbalanced { without delineation. Expecting failure (?) | 625 | // Test setting a key containing unbalanced { without delineation. Expecting failure (?) |
626 | { | 626 | { |
627 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 627 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
628 | 628 | ||
629 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun{Circus", "Times"); | 629 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun{Circus", "Times"); |
630 | Assert.That(result, Is.EqualTo(0)); | 630 | Assert.That(result, Is.EqualTo(0)); |
@@ -636,7 +636,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
636 | // // Commented out as this currently unexpectedly fails. | 636 | // // Commented out as this currently unexpectedly fails. |
637 | // // Test setting a key containing unbalanced } | 637 | // // Test setting a key containing unbalanced } |
638 | // { | 638 | // { |
639 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 639 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
640 | // | 640 | // |
641 | // int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun}Circus}", "Times"); | 641 | // int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun}Circus}", "Times"); |
642 | // Assert.That(result, Is.EqualTo(0)); | 642 | // Assert.That(result, Is.EqualTo(0)); |
@@ -644,7 +644,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
644 | 644 | ||
645 | // Test setting a key containing unbalanced { with delineation | 645 | // Test setting a key containing unbalanced { with delineation |
646 | { | 646 | { |
647 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 647 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
648 | 648 | ||
649 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun{Circus}", "Times"); | 649 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun{Circus}", "Times"); |
650 | Assert.That(result, Is.EqualTo(1)); | 650 | Assert.That(result, Is.EqualTo(1)); |
@@ -655,7 +655,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
655 | 655 | ||
656 | // Test setting a key containing balanced {} with delineation. This should fail. | 656 | // Test setting a key containing balanced {} with delineation. This should fail. |
657 | { | 657 | { |
658 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 658 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
659 | 659 | ||
660 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun{Filled}Circus}", "Times"); | 660 | int result = (int)InvokeOp("JsonSetValue", storeId, "{Fun{Filled}Circus}", "Times"); |
661 | Assert.That(result, Is.EqualTo(0)); | 661 | Assert.That(result, Is.EqualTo(0)); |
@@ -666,7 +666,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
666 | 666 | ||
667 | // Test setting to location that does not exist. This should fail. | 667 | // Test setting to location that does not exist. This should fail. |
668 | { | 668 | { |
669 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 669 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
670 | 670 | ||
671 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun.Circus", "Times"); | 671 | int result = (int)InvokeOp("JsonSetValue", storeId, "Fun.Circus", "Times"); |
672 | Assert.That(result, Is.EqualTo(0)); | 672 | Assert.That(result, Is.EqualTo(0)); |
@@ -691,7 +691,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
691 | 691 | ||
692 | // Single quoted token case | 692 | // Single quoted token case |
693 | { | 693 | { |
694 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }"); | 694 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }"); |
695 | 695 | ||
696 | int result = (int)InvokeOp("JsonSetJson", storeId, "Fun", "'Times'"); | 696 | int result = (int)InvokeOp("JsonSetJson", storeId, "Fun", "'Times'"); |
697 | Assert.That(result, Is.EqualTo(1)); | 697 | Assert.That(result, Is.EqualTo(1)); |
@@ -702,7 +702,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
702 | 702 | ||
703 | // Sub-tree case | 703 | // Sub-tree case |
704 | { | 704 | { |
705 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }"); | 705 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }"); |
706 | 706 | ||
707 | int result = (int)InvokeOp("JsonSetJson", storeId, "Fun", "{ 'Filled' : 'Times' }"); | 707 | int result = (int)InvokeOp("JsonSetJson", storeId, "Fun", "{ 'Filled' : 'Times' }"); |
708 | Assert.That(result, Is.EqualTo(1)); | 708 | Assert.That(result, Is.EqualTo(1)); |
@@ -713,7 +713,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
713 | 713 | ||
714 | // If setting single strings in JsonSetValueJson, these must be single quoted tokens, not bare strings. | 714 | // If setting single strings in JsonSetValueJson, these must be single quoted tokens, not bare strings. |
715 | { | 715 | { |
716 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }"); | 716 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }"); |
717 | 717 | ||
718 | int result = (int)InvokeOp("JsonSetJson", storeId, "Fun", "Times"); | 718 | int result = (int)InvokeOp("JsonSetJson", storeId, "Fun", "Times"); |
719 | Assert.That(result, Is.EqualTo(0)); | 719 | Assert.That(result, Is.EqualTo(0)); |
@@ -724,7 +724,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
724 | 724 | ||
725 | // Test setting to location that does not exist. This should fail. | 725 | // Test setting to location that does not exist. This should fail. |
726 | { | 726 | { |
727 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }"); | 727 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }"); |
728 | 728 | ||
729 | int result = (int)InvokeOp("JsonSetJson", storeId, "Fun.Circus", "'Times'"); | 729 | int result = (int)InvokeOp("JsonSetJson", storeId, "Fun.Circus", "'Times'"); |
730 | Assert.That(result, Is.EqualTo(0)); | 730 | Assert.That(result, Is.EqualTo(0)); |
@@ -757,7 +757,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
757 | SceneObjectGroup so = SceneHelpers.CreateSceneObject(1, TestHelpers.ParseTail(0x1)); | 757 | SceneObjectGroup so = SceneHelpers.CreateSceneObject(1, TestHelpers.ParseTail(0x1)); |
758 | m_scene.AddSceneObject(so); | 758 | m_scene.AddSceneObject(so); |
759 | 759 | ||
760 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello':'World' }"); | 760 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello':'World' }"); |
761 | 761 | ||
762 | { | 762 | { |
763 | string notecardName = "nc1"; | 763 | string notecardName = "nc1"; |
@@ -820,14 +820,14 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
820 | SceneObjectGroup so = SceneHelpers.CreateSceneObject(1, TestHelpers.ParseTail(0x1)); | 820 | SceneObjectGroup so = SceneHelpers.CreateSceneObject(1, TestHelpers.ParseTail(0x1)); |
821 | m_scene.AddSceneObject(so); | 821 | m_scene.AddSceneObject(so); |
822 | 822 | ||
823 | UUID creatingStoreId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello':'World' }"); | 823 | UUID creatingStoreId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello':'World' }"); |
824 | 824 | ||
825 | // Write notecard | 825 | // Write notecard |
826 | InvokeOpOnHost("JsonWriteNotecard", so.UUID, creatingStoreId, "", notecardName); | 826 | InvokeOpOnHost("JsonWriteNotecard", so.UUID, creatingStoreId, "", notecardName); |
827 | 827 | ||
828 | { | 828 | { |
829 | // Read notecard | 829 | // Read notecard |
830 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 830 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
831 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "", notecardName); | 831 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "", notecardName); |
832 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); | 832 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); |
833 | 833 | ||
@@ -837,10 +837,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
837 | 837 | ||
838 | { | 838 | { |
839 | // Read notecard to new single component path | 839 | // Read notecard to new single component path |
840 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 840 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
841 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "make", notecardName); | 841 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "make", notecardName); |
842 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); | 842 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); |
843 | 843 | ||
844 | string value = (string)InvokeOp("JsonGetValue", receivingStoreId, "Hello"); | 844 | string value = (string)InvokeOp("JsonGetValue", receivingStoreId, "Hello"); |
845 | Assert.That(value, Is.EqualTo("")); | 845 | Assert.That(value, Is.EqualTo("")); |
846 | 846 | ||
@@ -850,7 +850,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
850 | 850 | ||
851 | { | 851 | { |
852 | // Read notecard to new multi-component path. This should not work. | 852 | // Read notecard to new multi-component path. This should not work. |
853 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{}"); | 853 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{}"); |
854 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "make.it", notecardName); | 854 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "make.it", notecardName); |
855 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); | 855 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); |
856 | 856 | ||
@@ -863,7 +863,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
863 | 863 | ||
864 | { | 864 | { |
865 | // Read notecard to existing multi-component path. This should work | 865 | // Read notecard to existing multi-component path. This should work |
866 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{ 'make' : { 'it' : 'so' } }"); | 866 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{ 'make' : { 'it' : 'so' } }"); |
867 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "make.it", notecardName); | 867 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "make.it", notecardName); |
868 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); | 868 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); |
869 | 869 | ||
@@ -876,7 +876,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
876 | 876 | ||
877 | { | 877 | { |
878 | // Read notecard to invalid path. This should not work. | 878 | // Read notecard to invalid path. This should not work. |
879 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{ 'make' : { 'it' : 'so' } }"); | 879 | UUID receivingStoreId = (UUID)InvokeOp("JsonCreateStore", "{ 'make' : { 'it' : 'so' } }"); |
880 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "/", notecardName); | 880 | UUID readNotecardRequestId = (UUID)InvokeOpOnHost("JsonReadNotecard", so.UUID, receivingStoreId, "/", notecardName); |
881 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); | 881 | Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero)); |
882 | 882 | ||
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatarAttachment.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatarAttachment.cs index 1993948..2368a23 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatarAttachment.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatarAttachment.cs | |||
@@ -33,7 +33,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
33 | /// Describes where on the avatar the attachment is located | 33 | /// Describes where on the avatar the attachment is located |
34 | /// </value> | 34 | /// </value> |
35 | int Location { get ; } | 35 | int Location { get ; } |
36 | 36 | ||
37 | //// <value> | 37 | //// <value> |
38 | /// Accessor to the rez'ed asset, representing the attachment | 38 | /// Accessor to the rez'ed asset, representing the attachment |
39 | /// </value> | 39 | /// </value> |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IInventoryItem.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IInventoryItem.cs index a8e545c..d61f52a 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IInventoryItem.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IInventoryItem.cs | |||
@@ -30,7 +30,7 @@ using OpenMetaverse; | |||
30 | using OpenMetaverse.Assets; | 30 | using OpenMetaverse.Assets; |
31 | 31 | ||
32 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 32 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
33 | { | 33 | { |
34 | /// <summary> | 34 | /// <summary> |
35 | /// This implements the methods needed to operate on individual inventory items. | 35 | /// This implements the methods needed to operate on individual inventory items. |
36 | /// </summary> | 36 | /// </summary> |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs index e189489..dc2edd9 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs | |||
@@ -60,19 +60,19 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
60 | /// <summary> | 60 | /// <summary> |
61 | /// Returns whether or not this object is still in the world. | 61 | /// Returns whether or not this object is still in the world. |
62 | /// Eg, if you store an IObject reference, however the object | 62 | /// Eg, if you store an IObject reference, however the object |
63 | /// is deleted before you use it, it will throw a NullReference | 63 | /// is deleted before you use it, it will throw a NullReference |
64 | /// exception. 'Exists' allows you to check the object is still | 64 | /// exception. 'Exists' allows you to check the object is still |
65 | /// in play before utilizing it. | 65 | /// in play before utilizing it. |
66 | /// </summary> | 66 | /// </summary> |
67 | /// <example> | 67 | /// <example> |
68 | /// IObject deleteMe = World.Objects[0]; | 68 | /// IObject deleteMe = World.Objects[0]; |
69 | /// | 69 | /// |
70 | /// if (deleteMe.Exists) { | 70 | /// if (deleteMe.Exists) { |
71 | /// deleteMe.Say("Hello, I still exist!"); | 71 | /// deleteMe.Say("Hello, I still exist!"); |
72 | /// } | 72 | /// } |
73 | /// | 73 | /// |
74 | /// World.Objects.Remove(deleteMe); | 74 | /// World.Objects.Remove(deleteMe); |
75 | /// | 75 | /// |
76 | /// if (!deleteMe.Exists) { | 76 | /// if (!deleteMe.Exists) { |
77 | /// Host.Console.Info("I was deleted"); | 77 | /// Host.Console.Info("I was deleted"); |
78 | /// } | 78 | /// } |
@@ -81,7 +81,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
81 | /// Objects should be near-guarunteed to exist for any event which | 81 | /// Objects should be near-guarunteed to exist for any event which |
82 | /// passes them as an argument. Storing an object for a longer period | 82 | /// passes them as an argument. Storing an object for a longer period |
83 | /// of time however will limit their reliability. | 83 | /// of time however will limit their reliability. |
84 | /// | 84 | /// |
85 | /// It is a good practice to use Try/Catch blocks handling for | 85 | /// It is a good practice to use Try/Catch blocks handling for |
86 | /// NullReferenceException, when accessing remote objects. | 86 | /// NullReferenceException, when accessing remote objects. |
87 | /// </remarks> | 87 | /// </remarks> |
@@ -118,8 +118,8 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
118 | IObject[] Children { get; } | 118 | IObject[] Children { get; } |
119 | 119 | ||
120 | /// <summary> | 120 | /// <summary> |
121 | /// Returns a list of materials attached to this object. Each may contain unique texture | 121 | /// Returns a list of materials attached to this object. Each may contain unique texture |
122 | /// and other visual information. For primitive based objects, this correlates with | 122 | /// and other visual information. For primitive based objects, this correlates with |
123 | /// Object Faces. For mesh based objects, this correlates with Materials. | 123 | /// Object Faces. For mesh based objects, this correlates with Materials. |
124 | /// </summary> | 124 | /// </summary> |
125 | IObjectMaterial[] Materials { get; } | 125 | IObjectMaterial[] Materials { get; } |
@@ -152,7 +152,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
152 | String TouchText { get; set; } | 152 | String TouchText { get; set; } |
153 | 153 | ||
154 | /// <summary> | 154 | /// <summary> |
155 | /// Text to be associated with this object, in the | 155 | /// Text to be associated with this object, in the |
156 | /// Second Life(r) viewer, this is shown above the | 156 | /// Second Life(r) viewer, this is shown above the |
157 | /// object. | 157 | /// object. |
158 | /// </summary> | 158 | /// </summary> |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/InventoryItem.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/InventoryItem.cs index bf85cbc..bec8f38 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/InventoryItem.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/InventoryItem.cs | |||
@@ -40,7 +40,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
40 | { | 40 | { |
41 | TaskInventoryItem m_privateItem; | 41 | TaskInventoryItem m_privateItem; |
42 | Scene m_rootScene; | 42 | Scene m_rootScene; |
43 | 43 | ||
44 | public InventoryItem(Scene rootScene, TaskInventoryItem internalItem) | 44 | public InventoryItem(Scene rootScene, TaskInventoryItem internalItem) |
45 | { | 45 | { |
46 | m_rootScene = rootScene; | 46 | m_rootScene = rootScene; |
@@ -77,10 +77,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
77 | throw new ApplicationException("[MRM] There is no legal conversion from IInventoryItem to InventoryItem"); | 77 | throw new ApplicationException("[MRM] There is no legal conversion from IInventoryItem to InventoryItem"); |
78 | } | 78 | } |
79 | } | 79 | } |
80 | 80 | ||
81 | public int Type { get { return m_privateItem.Type; } } | 81 | public int Type { get { return m_privateItem.Type; } } |
82 | public UUID AssetID { get { return m_privateItem.AssetID; } } | 82 | public UUID AssetID { get { return m_privateItem.AssetID; } } |
83 | 83 | ||
84 | // This method exposes OpenSim/OpenMetaverse internals and needs to be replaced with a IAsset specific to MRM. | 84 | // This method exposes OpenSim/OpenMetaverse internals and needs to be replaced with a IAsset specific to MRM. |
85 | public T RetrieveAsset<T>() where T : OpenMetaverse.Assets.Asset, new() | 85 | public T RetrieveAsset<T>() where T : OpenMetaverse.Assets.Asset, new() |
86 | { | 86 | { |
@@ -89,7 +89,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
89 | 89 | ||
90 | if ((sbyte)result.AssetType != a.Type) | 90 | if ((sbyte)result.AssetType != a.Type) |
91 | throw new ApplicationException("[MRM] The supplied asset class does not match the found asset"); | 91 | throw new ApplicationException("[MRM] The supplied asset class does not match the found asset"); |
92 | 92 | ||
93 | result.AssetData = a.Data; | 93 | result.AssetData = a.Data; |
94 | result.Decode(); | 94 | result.Decode(); |
95 | return result; | 95 | return result; |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/MicroScheduler.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/MicroScheduler.cs index 73fe8b8..5861486 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/MicroScheduler.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/MicroScheduler.cs | |||
@@ -35,7 +35,7 @@ using OpenSim.Region.OptionalModules.Scripting.Minimodule.Interfaces; | |||
35 | 35 | ||
36 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 36 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
37 | { | 37 | { |
38 | public class MicroScheduler : System.MarshalByRefObject, IMicrothreader | 38 | public class MicroScheduler : System.MarshalByRefObject, IMicrothreader |
39 | { | 39 | { |
40 | private readonly List<IEnumerator> m_threads = new List<IEnumerator>(); | 40 | private readonly List<IEnumerator> m_threads = new List<IEnumerator>(); |
41 | 41 | ||
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs index 47b9c09..5513cd5 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs | |||
@@ -165,7 +165,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
165 | get { return GetSOP().Description; } | 165 | get { return GetSOP().Description; } |
166 | set | 166 | set |
167 | { | 167 | { |
168 | if (CanEdit()) | 168 | if (CanEdit()) |
169 | GetSOP().Description = value; | 169 | GetSOP().Description = value; |
170 | } | 170 | } |
171 | } | 171 | } |
@@ -192,7 +192,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
192 | rets = new IObject[total]; | 192 | rets = new IObject[total]; |
193 | 193 | ||
194 | int i = 0; | 194 | int i = 0; |
195 | 195 | ||
196 | foreach (SceneObjectPart part in my.ParentGroup.Parts) | 196 | foreach (SceneObjectPart part in my.ParentGroup.Parts) |
197 | { | 197 | { |
198 | rets[i++] = new SOPObject(m_rootScene, part.LocalId, m_security); | 198 | rets[i++] = new SOPObject(m_rootScene, part.LocalId, m_security); |
@@ -273,8 +273,8 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
273 | public Vector3 SitTarget | 273 | public Vector3 SitTarget |
274 | { | 274 | { |
275 | get { return GetSOP().SitTargetPosition; } | 275 | get { return GetSOP().SitTargetPosition; } |
276 | set | 276 | set |
277 | { | 277 | { |
278 | if (CanEdit()) | 278 | if (CanEdit()) |
279 | { | 279 | { |
280 | GetSOP().SitTargetPosition = value; | 280 | GetSOP().SitTargetPosition = value; |
@@ -285,8 +285,8 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
285 | public string SitTargetText | 285 | public string SitTargetText |
286 | { | 286 | { |
287 | get { return GetSOP().SitName; } | 287 | get { return GetSOP().SitName; } |
288 | set | 288 | set |
289 | { | 289 | { |
290 | if (CanEdit()) | 290 | if (CanEdit()) |
291 | { | 291 | { |
292 | GetSOP().SitName = value; | 292 | GetSOP().SitName = value; |
@@ -297,7 +297,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
297 | public string TouchText | 297 | public string TouchText |
298 | { | 298 | { |
299 | get { return GetSOP().TouchName; } | 299 | get { return GetSOP().TouchName; } |
300 | set | 300 | set |
301 | { | 301 | { |
302 | if (CanEdit()) | 302 | if (CanEdit()) |
303 | { | 303 | { |
@@ -309,7 +309,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
309 | public string Text | 309 | public string Text |
310 | { | 310 | { |
311 | get { return GetSOP().Text; } | 311 | get { return GetSOP().Text; } |
312 | set | 312 | set |
313 | { | 313 | { |
314 | if (CanEdit()) | 314 | if (CanEdit()) |
315 | { | 315 | { |
@@ -382,11 +382,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
382 | get { return this; } | 382 | get { return this; } |
383 | } | 383 | } |
384 | 384 | ||
385 | public IObjectInventory Inventory | 385 | public IObjectInventory Inventory |
386 | { | 386 | { |
387 | get { return new SOPObjectInventory(m_rootScene, GetSOP().TaskInventory); } | 387 | get { return new SOPObjectInventory(m_rootScene, GetSOP().TaskInventory); } |
388 | } | 388 | } |
389 | 389 | ||
390 | #region Public Functions | 390 | #region Public Functions |
391 | 391 | ||
392 | public void Say(string msg) | 392 | public void Say(string msg) |
@@ -406,7 +406,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
406 | SceneObjectPart sop = GetSOP(); | 406 | SceneObjectPart sop = GetSOP(); |
407 | m_rootScene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Say,channel, sop.AbsolutePosition, sop.Name, sop.UUID, false); | 407 | m_rootScene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Say,channel, sop.AbsolutePosition, sop.Name, sop.UUID, false); |
408 | } | 408 | } |
409 | 409 | ||
410 | public void Dialog(UUID avatar, string message, string[] buttons, int chat_channel) | 410 | public void Dialog(UUID avatar, string message, string[] buttons, int chat_channel) |
411 | { | 411 | { |
412 | if (!CanEdit()) | 412 | if (!CanEdit()) |
@@ -445,9 +445,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
445 | dm.SendDialogToUser( | 445 | dm.SendDialogToUser( |
446 | avatar, GetSOP().Name, GetSOP().UUID, GetSOP().OwnerID, | 446 | avatar, GetSOP().Name, GetSOP().UUID, GetSOP().OwnerID, |
447 | message, new UUID("00000000-0000-2222-3333-100000001000"), chat_channel, buttons); | 447 | message, new UUID("00000000-0000-2222-3333-100000001000"), chat_channel, buttons); |
448 | 448 | ||
449 | } | 449 | } |
450 | 450 | ||
451 | #endregion | 451 | #endregion |
452 | 452 | ||
453 | 453 | ||
@@ -540,7 +540,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
540 | if (hasCut) ret += 2; | 540 | if (hasCut) ret += 2; |
541 | if (hasDimple) ret += 2; | 541 | if (hasDimple) ret += 2; |
542 | if (hasHollow) | 542 | if (hasHollow) |
543 | ret += 1; // GOTCHA: LSL shows 2 additional sides here. | 543 | ret += 1; // GOTCHA: LSL shows 2 additional sides here. |
544 | // This has been fixed, but may cause porting issues. | 544 | // This has been fixed, but may cause porting issues. |
545 | break; | 545 | break; |
546 | case (int) PrimType.Torus: | 546 | case (int) PrimType.Torus: |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectInventory.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectInventory.cs index d20f4a4..8c3158c 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectInventory.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectInventory.cs | |||
@@ -61,25 +61,25 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object | |||
61 | if (!m_publicInventory.ContainsKey(privateItem.ItemID)) | 61 | if (!m_publicInventory.ContainsKey(privateItem.ItemID)) |
62 | m_publicInventory.Add(privateItem.ItemID, new InventoryItem(m_rootScene, privateItem)); | 62 | m_publicInventory.Add(privateItem.ItemID, new InventoryItem(m_rootScene, privateItem)); |
63 | } | 63 | } |
64 | 64 | ||
65 | #region IDictionary<UUID, IInventoryItem> implementation | 65 | #region IDictionary<UUID, IInventoryItem> implementation |
66 | public void Add (UUID key, IInventoryItem value) | 66 | public void Add (UUID key, IInventoryItem value) |
67 | { | 67 | { |
68 | m_publicInventory.Add(key, value); | 68 | m_publicInventory.Add(key, value); |
69 | m_privateInventory.Add(key, InventoryItem.FromInterface(value).ToTaskInventoryItem()); | 69 | m_privateInventory.Add(key, InventoryItem.FromInterface(value).ToTaskInventoryItem()); |
70 | } | 70 | } |
71 | 71 | ||
72 | public bool ContainsKey (UUID key) | 72 | public bool ContainsKey (UUID key) |
73 | { | 73 | { |
74 | return m_privateInventory.ContainsKey(key); | 74 | return m_privateInventory.ContainsKey(key); |
75 | } | 75 | } |
76 | 76 | ||
77 | public bool Remove (UUID key) | 77 | public bool Remove (UUID key) |
78 | { | 78 | { |
79 | m_publicInventory.Remove(key); | 79 | m_publicInventory.Remove(key); |
80 | return m_privateInventory.Remove(key); | 80 | return m_privateInventory.Remove(key); |
81 | } | 81 | } |
82 | 82 | ||
83 | public bool TryGetValue (UUID key, out IInventoryItem value) | 83 | public bool TryGetValue (UUID key, out IInventoryItem value) |
84 | { | 84 | { |
85 | value = null; | 85 | value = null; |
@@ -89,7 +89,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object | |||
89 | { | 89 | { |
90 | // wasn't found in the public inventory | 90 | // wasn't found in the public inventory |
91 | TaskInventoryItem privateItem; | 91 | TaskInventoryItem privateItem; |
92 | 92 | ||
93 | result = m_privateInventory.TryGetValue(key, out privateItem); | 93 | result = m_privateInventory.TryGetValue(key, out privateItem); |
94 | if (result) | 94 | if (result) |
95 | { | 95 | { |
@@ -98,16 +98,16 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object | |||
98 | } | 98 | } |
99 | } else | 99 | } else |
100 | return true; | 100 | return true; |
101 | 101 | ||
102 | return result; | 102 | return result; |
103 | } | 103 | } |
104 | 104 | ||
105 | public ICollection<UUID> Keys { | 105 | public ICollection<UUID> Keys { |
106 | get { | 106 | get { |
107 | return m_privateInventory.Keys; | 107 | return m_privateInventory.Keys; |
108 | } | 108 | } |
109 | } | 109 | } |
110 | 110 | ||
111 | public ICollection<IInventoryItem> Values { | 111 | public ICollection<IInventoryItem> Values { |
112 | get { | 112 | get { |
113 | SynchronizeDictionaries(); | 113 | SynchronizeDictionaries(); |
@@ -139,41 +139,41 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object | |||
139 | { | 139 | { |
140 | Add(item.Key, item.Value); | 140 | Add(item.Key, item.Value); |
141 | } | 141 | } |
142 | 142 | ||
143 | public void Clear () | 143 | public void Clear () |
144 | { | 144 | { |
145 | m_publicInventory.Clear(); | 145 | m_publicInventory.Clear(); |
146 | m_privateInventory.Clear(); | 146 | m_privateInventory.Clear(); |
147 | } | 147 | } |
148 | 148 | ||
149 | public bool Contains (KeyValuePair<UUID, IInventoryItem> item) | 149 | public bool Contains (KeyValuePair<UUID, IInventoryItem> item) |
150 | { | 150 | { |
151 | return m_privateInventory.ContainsKey(item.Key); | 151 | return m_privateInventory.ContainsKey(item.Key); |
152 | } | 152 | } |
153 | 153 | ||
154 | public void CopyTo (KeyValuePair<UUID, IInventoryItem>[] array, int arrayIndex) | 154 | public void CopyTo (KeyValuePair<UUID, IInventoryItem>[] array, int arrayIndex) |
155 | { | 155 | { |
156 | throw new NotImplementedException(); | 156 | throw new NotImplementedException(); |
157 | } | 157 | } |
158 | 158 | ||
159 | public bool Remove (KeyValuePair<UUID, IInventoryItem> item) | 159 | public bool Remove (KeyValuePair<UUID, IInventoryItem> item) |
160 | { | 160 | { |
161 | return Remove(item.Key); | 161 | return Remove(item.Key); |
162 | } | 162 | } |
163 | 163 | ||
164 | public int Count { | 164 | public int Count { |
165 | get { | 165 | get { |
166 | return m_privateInventory.Count; | 166 | return m_privateInventory.Count; |
167 | } | 167 | } |
168 | } | 168 | } |
169 | 169 | ||
170 | public bool IsReadOnly { | 170 | public bool IsReadOnly { |
171 | get { | 171 | get { |
172 | return false; | 172 | return false; |
173 | } | 173 | } |
174 | } | 174 | } |
175 | #endregion | 175 | #endregion |
176 | 176 | ||
177 | #region Explicit implementations | 177 | #region Explicit implementations |
178 | IInventoryItem System.Collections.Generic.IDictionary<UUID, IInventoryItem>.this[UUID key] | 178 | IInventoryItem System.Collections.Generic.IDictionary<UUID, IInventoryItem>.this[UUID key] |
179 | { | 179 | { |
@@ -189,13 +189,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object | |||
189 | m_privateInventory[key] = InventoryItem.FromInterface(value).ToTaskInventoryItem(); | 189 | m_privateInventory[key] = InventoryItem.FromInterface(value).ToTaskInventoryItem(); |
190 | } | 190 | } |
191 | } | 191 | } |
192 | 192 | ||
193 | void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<UUID, IInventoryItem>>.CopyTo(System.Collections.Generic.KeyValuePair<UUID,IInventoryItem>[] array, int offset) | 193 | void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<UUID, IInventoryItem>>.CopyTo(System.Collections.Generic.KeyValuePair<UUID,IInventoryItem>[] array, int offset) |
194 | { | 194 | { |
195 | throw new NotImplementedException(); | 195 | throw new NotImplementedException(); |
196 | } | 196 | } |
197 | #endregion | 197 | #endregion |
198 | 198 | ||
199 | public IInventoryItem this[string name] | 199 | public IInventoryItem this[string name] |
200 | { | 200 | { |
201 | get { | 201 | get { |
@@ -204,7 +204,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object | |||
204 | { | 204 | { |
205 | if (!m_publicInventory.ContainsKey(i.ItemID)) | 205 | if (!m_publicInventory.ContainsKey(i.ItemID)) |
206 | m_publicInventory.Add(i.ItemID, new InventoryItem(m_rootScene, i)); | 206 | m_publicInventory.Add(i.ItemID, new InventoryItem(m_rootScene, i)); |
207 | 207 | ||
208 | return m_publicInventory[i.ItemID]; | 208 | return m_publicInventory[i.ItemID]; |
209 | } | 209 | } |
210 | throw new KeyNotFoundException(); | 210 | throw new KeyNotFoundException(); |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs index d192309..a380f66 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs | |||
@@ -70,18 +70,18 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
70 | get { return GetSP().AbsolutePosition; } | 70 | get { return GetSP().AbsolutePosition; } |
71 | set { GetSP().Teleport(value); } | 71 | set { GetSP().Teleport(value); } |
72 | } | 72 | } |
73 | 73 | ||
74 | public bool IsChildAgent | 74 | public bool IsChildAgent |
75 | { | 75 | { |
76 | get { return GetSP().IsChildAgent; } | 76 | get { return GetSP().IsChildAgent; } |
77 | } | 77 | } |
78 | 78 | ||
79 | #region IAvatar implementation | 79 | #region IAvatar implementation |
80 | public IAvatarAttachment[] Attachments | 80 | public IAvatarAttachment[] Attachments |
81 | { | 81 | { |
82 | get { | 82 | get { |
83 | List<IAvatarAttachment> attachments = new List<IAvatarAttachment>(); | 83 | List<IAvatarAttachment> attachments = new List<IAvatarAttachment>(); |
84 | 84 | ||
85 | List<AvatarAttachment> internalAttachments = GetSP().Appearance.GetAttachments(); | 85 | List<AvatarAttachment> internalAttachments = GetSP().Appearance.GetAttachments(); |
86 | foreach (AvatarAttachment attach in internalAttachments) | 86 | foreach (AvatarAttachment attach in internalAttachments) |
87 | { | 87 | { |
@@ -89,7 +89,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
89 | new UUID(attach.ItemID), | 89 | new UUID(attach.ItemID), |
90 | new UUID(attach.AssetID), m_security)); | 90 | new UUID(attach.AssetID), m_security)); |
91 | } | 91 | } |
92 | 92 | ||
93 | return attachments.ToArray(); | 93 | return attachments.ToArray(); |
94 | } | 94 | } |
95 | } | 95 | } |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatarAttachment.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatarAttachment.cs index 570459a..bcf6053 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatarAttachment.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatarAttachment.cs | |||
@@ -41,7 +41,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
41 | private readonly UUID m_assetId; | 41 | private readonly UUID m_assetId; |
42 | 42 | ||
43 | private readonly ISecurityCredential m_security; | 43 | private readonly ISecurityCredential m_security; |
44 | 44 | ||
45 | public SPAvatarAttachment(Scene rootScene, IAvatar self, int location, UUID itemId, UUID assetId, ISecurityCredential security) | 45 | public SPAvatarAttachment(Scene rootScene, IAvatar self, int location, UUID itemId, UUID assetId, ISecurityCredential security) |
46 | { | 46 | { |
47 | m_rootScene = rootScene; | 47 | m_rootScene = rootScene; |
@@ -51,9 +51,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
51 | //m_itemId = itemId; | 51 | //m_itemId = itemId; |
52 | m_assetId = assetId; | 52 | m_assetId = assetId; |
53 | } | 53 | } |
54 | 54 | ||
55 | public int Location { get { return m_location; } } | 55 | public int Location { get { return m_location; } } |
56 | 56 | ||
57 | public IObject Asset | 57 | public IObject Asset |
58 | { | 58 | { |
59 | get | 59 | get |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs index 13d0140..724c2a9 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim | |||
51 | 51 | ||
52 | public void Microthread(IEnumerable thread) | 52 | public void Microthread(IEnumerable thread) |
53 | { | 53 | { |
54 | 54 | ||
55 | } | 55 | } |
56 | 56 | ||
57 | public void RunMicrothread() | 57 | public void RunMicrothread() |
@@ -92,7 +92,7 @@ namespace OpenSim | |||
92 | 92 | ||
93 | public override void Stop() | 93 | public override void Stop() |
94 | { | 94 | { |
95 | 95 | ||
96 | } | 96 | } |
97 | } | 97 | } |
98 | } | 98 | } |
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs index f2324d2..36f70d0 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs | |||
@@ -34,7 +34,7 @@ using OpenSim.Region.OptionalModules.Scripting.Minimodule.WorldX; | |||
34 | 34 | ||
35 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 35 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
36 | { | 36 | { |
37 | public class World : System.MarshalByRefObject, IWorld, IWorldAudio | 37 | public class World : System.MarshalByRefObject, IWorld, IWorldAudio |
38 | { | 38 | { |
39 | private readonly Scene m_internalScene; | 39 | private readonly Scene m_internalScene; |
40 | private readonly ISecurityCredential m_security; | 40 | private readonly ISecurityCredential m_security; |
@@ -149,7 +149,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
149 | e.Sender = new SOPObject(m_internalScene, ((SceneObjectPart) chat.SenderObject).LocalId, m_security); | 149 | e.Sender = new SOPObject(m_internalScene, ((SceneObjectPart) chat.SenderObject).LocalId, m_security); |
150 | e.Text = chat.Message; | 150 | e.Text = chat.Message; |
151 | e.Channel = chat.Channel; | 151 | e.Channel = chat.Channel; |
152 | 152 | ||
153 | _OnChat(this, e); | 153 | _OnChat(this, e); |
154 | return; | 154 | return; |
155 | } | 155 | } |
@@ -160,7 +160,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
160 | e.Sender = new SPAvatar(m_internalScene, chat.SenderUUID, m_security); | 160 | e.Sender = new SPAvatar(m_internalScene, chat.SenderUUID, m_security); |
161 | e.Text = chat.Message; | 161 | e.Text = chat.Message; |
162 | e.Channel = chat.Channel; | 162 | e.Channel = chat.Channel; |
163 | 163 | ||
164 | _OnChat(this, e); | 164 | _OnChat(this, e); |
165 | return; | 165 | return; |
166 | } | 166 | } |
diff --git a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs index 1725eb4..a1dd711 100644 --- a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs | |||
@@ -46,7 +46,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
46 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "RegionReadyModule")] | 46 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "RegionReadyModule")] |
47 | public class RegionReadyModule : IRegionReadyModule, INonSharedRegionModule | 47 | public class RegionReadyModule : IRegionReadyModule, INonSharedRegionModule |
48 | { | 48 | { |
49 | private static readonly ILog m_log = | 49 | private static readonly ILog m_log = |
50 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 50 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
51 | 51 | ||
52 | private IConfig m_config = null; | 52 | private IConfig m_config = null; |
@@ -57,24 +57,24 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
57 | private bool m_enabled = false; | 57 | private bool m_enabled = false; |
58 | private bool m_disable_logins; | 58 | private bool m_disable_logins; |
59 | private string m_uri = string.Empty; | 59 | private string m_uri = string.Empty; |
60 | 60 | ||
61 | Scene m_scene; | 61 | Scene m_scene; |
62 | 62 | ||
63 | #region INonSharedRegionModule interface | 63 | #region INonSharedRegionModule interface |
64 | 64 | ||
65 | public Type ReplaceableInterface | 65 | public Type ReplaceableInterface |
66 | { | 66 | { |
67 | get { return null; } | 67 | get { return null; } |
68 | } | 68 | } |
69 | 69 | ||
70 | public void Initialise(IConfigSource config) | 70 | public void Initialise(IConfigSource config) |
71 | { | 71 | { |
72 | m_config = config.Configs["RegionReady"]; | 72 | m_config = config.Configs["RegionReady"]; |
73 | if (m_config != null) | 73 | if (m_config != null) |
74 | { | 74 | { |
75 | m_enabled = m_config.GetBoolean("enabled", false); | 75 | m_enabled = m_config.GetBoolean("enabled", false); |
76 | 76 | ||
77 | if (m_enabled) | 77 | if (m_enabled) |
78 | { | 78 | { |
79 | m_channelNotify = m_config.GetInt("channel_notify", m_channelNotify); | 79 | m_channelNotify = m_config.GetInt("channel_notify", m_channelNotify); |
80 | m_disable_logins = m_config.GetBoolean("login_disable", false); | 80 | m_disable_logins = m_config.GetBoolean("login_disable", false); |
@@ -106,7 +106,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
106 | m_scene.EventManager.OnEmptyScriptCompileQueue += OnEmptyScriptCompileQueue; | 106 | m_scene.EventManager.OnEmptyScriptCompileQueue += OnEmptyScriptCompileQueue; |
107 | 107 | ||
108 | // This should always show up to the user but should not trigger warn/errors as these messages are | 108 | // This should always show up to the user but should not trigger warn/errors as these messages are |
109 | // expected and are not simulator problems. Ideally, there would be a status level in log4net but | 109 | // expected and are not simulator problems. Ideally, there would be a status level in log4net but |
110 | // failing that, we will print out to console instead. | 110 | // failing that, we will print out to console instead. |
111 | MainConsole.Instance.OutputFormat("Region {0} - LOGINS DISABLED DURING INITIALIZATION.", m_scene.Name); | 111 | MainConsole.Instance.OutputFormat("Region {0} - LOGINS DISABLED DURING INITIALIZATION.", m_scene.Name); |
112 | 112 | ||
@@ -152,12 +152,12 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
152 | { | 152 | { |
153 | m_log.DebugFormat("[RegionReady]: Script compile queue empty!"); | 153 | m_log.DebugFormat("[RegionReady]: Script compile queue empty!"); |
154 | 154 | ||
155 | if (m_firstEmptyCompileQueue || m_oarFileLoading) | 155 | if (m_firstEmptyCompileQueue || m_oarFileLoading) |
156 | { | 156 | { |
157 | OSChatMessage c = new OSChatMessage(); | 157 | OSChatMessage c = new OSChatMessage(); |
158 | if (m_firstEmptyCompileQueue) | 158 | if (m_firstEmptyCompileQueue) |
159 | c.Message = "server_startup,"; | 159 | c.Message = "server_startup,"; |
160 | else | 160 | else |
161 | c.Message = "oar_file_load,"; | 161 | c.Message = "oar_file_load,"; |
162 | m_firstEmptyCompileQueue = false; | 162 | m_firstEmptyCompileQueue = false; |
163 | m_oarFileLoading = false; | 163 | m_oarFileLoading = false; |
@@ -165,7 +165,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
165 | m_scene.Backup(false); | 165 | m_scene.Backup(false); |
166 | 166 | ||
167 | c.From = "RegionReady"; | 167 | c.From = "RegionReady"; |
168 | if (m_lastOarLoadedOk) | 168 | if (m_lastOarLoadedOk) |
169 | c.Message += "1,"; | 169 | c.Message += "1,"; |
170 | else | 170 | else |
171 | c.Message += "0,"; | 171 | c.Message += "0,"; |
@@ -193,7 +193,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
193 | { | 193 | { |
194 | m_oarFileLoading = true; | 194 | m_oarFileLoading = true; |
195 | 195 | ||
196 | if (message==String.Empty) | 196 | if (message==String.Empty) |
197 | { | 197 | { |
198 | m_lastOarLoadedOk = true; | 198 | m_lastOarLoadedOk = true; |
199 | } | 199 | } |
@@ -226,7 +226,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
226 | // m_scene.RegionInfo.RegionName, m_oarFileLoading.ToString()); | 226 | // m_scene.RegionInfo.RegionName, m_oarFileLoading.ToString()); |
227 | 227 | ||
228 | // Putting this out to console to make it eye-catching for people who are running OpenSimulator | 228 | // Putting this out to console to make it eye-catching for people who are running OpenSimulator |
229 | // without info log messages enabled. Making this a warning is arguably misleading since it isn't a | 229 | // without info log messages enabled. Making this a warning is arguably misleading since it isn't a |
230 | // warning, and monitor scripts looking for warn/error/fatal messages will received false positives. | 230 | // warning, and monitor scripts looking for warn/error/fatal messages will received false positives. |
231 | // Arguably, log4net needs a status log level (like Apache). | 231 | // Arguably, log4net needs a status log level (like Apache). |
232 | MainConsole.Instance.OutputFormat("INITIALIZATION COMPLETE FOR {0} - LOGINS ENABLED", m_scene.Name); | 232 | MainConsole.Instance.OutputFormat("INITIALIZATION COMPLETE FOR {0} - LOGINS ENABLED", m_scene.Name); |
@@ -256,7 +256,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
256 | // m_scene.EventManager.OnRezScript += OnRezScript; | 256 | // m_scene.EventManager.OnRezScript += OnRezScript; |
257 | // m_oarFileLoading = true; | 257 | // m_oarFileLoading = true; |
258 | // m_firstEmptyCompileQueue = true; | 258 | // m_firstEmptyCompileQueue = true; |
259 | // | 259 | // |
260 | // m_scene.LoginsDisabled = true; | 260 | // m_scene.LoginsDisabled = true; |
261 | // m_scene.LoginLock = true; | 261 | // m_scene.LoginLock = true; |
262 | // if ( m_uri != string.Empty ) | 262 | // if ( m_uri != string.Empty ) |
diff --git a/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcGridRouterModule.cs b/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcGridRouterModule.cs index 4b7295d..bf33996 100644 --- a/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcGridRouterModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcGridRouterModule.cs | |||
@@ -54,7 +54,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcGridRouterModule | |||
54 | public class XmlRpcGridRouter : INonSharedRegionModule, IXmlRpcRouter | 54 | public class XmlRpcGridRouter : INonSharedRegionModule, IXmlRpcRouter |
55 | { | 55 | { |
56 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 56 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
57 | 57 | ||
58 | private Dictionary<UUID, UUID> m_Channels = | 58 | private Dictionary<UUID, UUID> m_Channels = |
59 | new Dictionary<UUID, UUID>(); | 59 | new Dictionary<UUID, UUID>(); |
60 | 60 | ||
@@ -94,7 +94,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcGridRouterModule | |||
94 | { | 94 | { |
95 | scriptEngine.OnScriptRemoved += this.ScriptRemoved; | 95 | scriptEngine.OnScriptRemoved += this.ScriptRemoved; |
96 | scriptEngine.OnObjectRemoved += this.ObjectRemoved; | 96 | scriptEngine.OnObjectRemoved += this.ObjectRemoved; |
97 | 97 | ||
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
@@ -131,7 +131,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcGridRouterModule | |||
131 | if (!m_Enabled) | 131 | if (!m_Enabled) |
132 | return; | 132 | return; |
133 | 133 | ||
134 | m_log.InfoFormat("[XMLRPC GRID ROUTER]: New receiver Obj: {0} Ch: {1} ID: {2} URI: {3}", | 134 | m_log.InfoFormat("[XMLRPC GRID ROUTER]: New receiver Obj: {0} Ch: {1} ID: {2} URI: {3}", |
135 | objectID.ToString(), channel.ToString(), itemID.ToString(), uri); | 135 | objectID.ToString(), channel.ToString(), itemID.ToString(), uri); |
136 | 136 | ||
137 | XmlRpcInfo info = new XmlRpcInfo(); | 137 | XmlRpcInfo info = new XmlRpcInfo(); |
diff --git a/OpenSim/Region/OptionalModules/ServiceConnectorsIn/Freeswitch/FreeswitchServiceInConnectorModule.cs b/OpenSim/Region/OptionalModules/ServiceConnectorsIn/Freeswitch/FreeswitchServiceInConnectorModule.cs index 78c870a..8654896 100644 --- a/OpenSim/Region/OptionalModules/ServiceConnectorsIn/Freeswitch/FreeswitchServiceInConnectorModule.cs +++ b/OpenSim/Region/OptionalModules/ServiceConnectorsIn/Freeswitch/FreeswitchServiceInConnectorModule.cs | |||
@@ -44,7 +44,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Freeswitch | |||
44 | { | 44 | { |
45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
46 | private static bool m_Enabled = false; | 46 | private static bool m_Enabled = false; |
47 | 47 | ||
48 | private IConfigSource m_Config; | 48 | private IConfigSource m_Config; |
49 | bool m_Registered = false; | 49 | bool m_Registered = false; |
50 | 50 | ||
@@ -73,7 +73,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Freeswitch | |||
73 | { | 73 | { |
74 | } | 74 | } |
75 | 75 | ||
76 | public Type ReplaceableInterface | 76 | public Type ReplaceableInterface |
77 | { | 77 | { |
78 | get { return null; } | 78 | get { return null; } |
79 | } | 79 | } |
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/Clients_report.cs b/OpenSim/Region/OptionalModules/UserStatistics/Clients_report.cs index 3f36e32..d3b97b1 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/Clients_report.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/Clients_report.cs | |||
@@ -115,7 +115,7 @@ namespace OpenSim.Region.UserStatistics | |||
115 | udata.fps = Convert.ToSingle(sdr["simfps"]); | 115 | udata.fps = Convert.ToSingle(sdr["simfps"]); |
116 | clidata.Add(udata); | 116 | clidata.Add(udata); |
117 | totalclients += udata.count; | 117 | totalclients += udata.count; |
118 | 118 | ||
119 | } | 119 | } |
120 | } | 120 | } |
121 | sdr.Close(); | 121 | sdr.Close(); |
@@ -126,9 +126,9 @@ namespace OpenSim.Region.UserStatistics | |||
126 | sql = | 126 | sql = |
127 | "select region_id, client_version, count(*) as cnt, avg(avg_sim_fps) as simfps from stats_session_data group by region_id, client_version order by region_id, count(*) desc;"; | 127 | "select region_id, client_version, count(*) as cnt, avg(avg_sim_fps) as simfps from stats_session_data group by region_id, client_version order by region_id, count(*) desc;"; |
128 | cmd = new SqliteCommand(sql, dbConn); | 128 | cmd = new SqliteCommand(sql, dbConn); |
129 | 129 | ||
130 | sdr = cmd.ExecuteReader(); | 130 | sdr = cmd.ExecuteReader(); |
131 | 131 | ||
132 | if (sdr.HasRows) | 132 | if (sdr.HasRows) |
133 | { | 133 | { |
134 | while (sdr.Read()) | 134 | while (sdr.Read()) |
@@ -145,10 +145,10 @@ namespace OpenSim.Region.UserStatistics | |||
145 | cmd.Dispose(); | 145 | cmd.Dispose(); |
146 | } | 146 | } |
147 | } | 147 | } |
148 | 148 | ||
149 | foreach (ClientVersionData cvd in cliRegData) | 149 | foreach (ClientVersionData cvd in cliRegData) |
150 | { | 150 | { |
151 | 151 | ||
152 | if (regionTotals.ContainsKey(cvd.region_id)) | 152 | if (regionTotals.ContainsKey(cvd.region_id)) |
153 | { | 153 | { |
154 | int regiontotal = (int)regionTotals[cvd.region_id]; | 154 | int regiontotal = (int)regionTotals[cvd.region_id]; |
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/Default_Report.cs b/OpenSim/Region/OptionalModules/UserStatistics/Default_Report.cs index 8745acd..fcc7cee 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/Default_Report.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/Default_Report.cs | |||
@@ -61,7 +61,7 @@ namespace OpenSim.Region.UserStatistics | |||
61 | Hashtable nh = new Hashtable(); | 61 | Hashtable nh = new Hashtable(); |
62 | nh.Add("hdata", mData); | 62 | nh.Add("hdata", mData); |
63 | nh.Add("Reports", pParams["Reports"]); | 63 | nh.Add("Reports", pParams["Reports"]); |
64 | 64 | ||
65 | return nh; | 65 | return nh; |
66 | } | 66 | } |
67 | 67 | ||
@@ -76,7 +76,7 @@ namespace OpenSim.Region.UserStatistics | |||
76 | public string rep_Default_report_view(stats_default_page_values values) | 76 | public string rep_Default_report_view(stats_default_page_values values) |
77 | { | 77 | { |
78 | 78 | ||
79 | 79 | ||
80 | StringBuilder output = new StringBuilder(); | 80 | StringBuilder output = new StringBuilder(); |
81 | 81 | ||
82 | 82 | ||
@@ -105,7 +105,7 @@ TD.align_top { vertical-align: top; } | |||
105 | </STYLE> | 105 | </STYLE> |
106 | "; | 106 | "; |
107 | HTMLUtil.HtmlHeaders_O(ref output); | 107 | HTMLUtil.HtmlHeaders_O(ref output); |
108 | 108 | ||
109 | HTMLUtil.InsertProtoTypeAJAX(ref output); | 109 | HTMLUtil.InsertProtoTypeAJAX(ref output); |
110 | string[] ajaxUpdaterDivs = new string[3]; | 110 | string[] ajaxUpdaterDivs = new string[3]; |
111 | int[] ajaxUpdaterSeconds = new int[3]; | 111 | int[] ajaxUpdaterSeconds = new int[3]; |
@@ -124,7 +124,7 @@ TD.align_top { vertical-align: top; } | |||
124 | ajaxUpdaterReportFragments[2] = "activelogajax.html"; | 124 | ajaxUpdaterReportFragments[2] = "activelogajax.html"; |
125 | 125 | ||
126 | HTMLUtil.InsertPeriodicUpdaters(ref output, ajaxUpdaterDivs, ajaxUpdaterSeconds, ajaxUpdaterReportFragments); | 126 | HTMLUtil.InsertPeriodicUpdaters(ref output, ajaxUpdaterDivs, ajaxUpdaterSeconds, ajaxUpdaterReportFragments); |
127 | 127 | ||
128 | output.Append(STYLESHEET); | 128 | output.Append(STYLESHEET); |
129 | HTMLUtil.HtmlHeaders_C(ref output); | 129 | HTMLUtil.HtmlHeaders_C(ref output); |
130 | HTMLUtil.AddReportLinks(ref output, values.stats_reports, ""); | 130 | HTMLUtil.AddReportLinks(ref output, values.stats_reports, ""); |
@@ -200,7 +200,7 @@ TD.align_top { vertical-align: top; } | |||
200 | return output.ToString(); | 200 | return output.ToString(); |
201 | } | 201 | } |
202 | 202 | ||
203 | 203 | ||
204 | 204 | ||
205 | public stats_default_page_values rep_DefaultReport_data(SqliteConnection db, List<Scene> m_scene) | 205 | public stats_default_page_values rep_DefaultReport_data(SqliteConnection db, List<Scene> m_scene) |
206 | { | 206 | { |
@@ -208,8 +208,8 @@ TD.align_top { vertical-align: top; } | |||
208 | returnstruct.all_scenes = m_scene.ToArray(); | 208 | returnstruct.all_scenes = m_scene.ToArray(); |
209 | lock (db) | 209 | lock (db) |
210 | { | 210 | { |
211 | string SQL = @"SELECT COUNT(DISTINCT agent_id) as agents, COUNT(*) as sessions, AVG(avg_fps) as client_fps, | 211 | string SQL = @"SELECT COUNT(DISTINCT agent_id) as agents, COUNT(*) as sessions, AVG(avg_fps) as client_fps, |
212 | AVG(avg_sim_fps) as savg_sim_fps, AVG(avg_ping) as sav_ping, SUM(n_out_kb) as num_in_kb, | 212 | AVG(avg_sim_fps) as savg_sim_fps, AVG(avg_ping) as sav_ping, SUM(n_out_kb) as num_in_kb, |
213 | SUM(n_out_pk) as num_in_packets, SUM(n_in_kb) as num_out_kb, SUM(n_in_pk) as num_out_packets, AVG(mem_use) as sav_mem_use | 213 | SUM(n_out_pk) as num_in_packets, SUM(n_in_kb) as num_out_kb, SUM(n_in_pk) as num_out_packets, AVG(mem_use) as sav_mem_use |
214 | FROM stats_session_data;"; | 214 | FROM stats_session_data;"; |
215 | SqliteCommand cmd = new SqliteCommand(SQL, db); | 215 | SqliteCommand cmd = new SqliteCommand(SQL, db); |
@@ -230,7 +230,7 @@ TD.align_top { vertical-align: top; } | |||
230 | sdr.Close(); | 230 | sdr.Close(); |
231 | cmd.Dispose(); | 231 | cmd.Dispose(); |
232 | } | 232 | } |
233 | 233 | ||
234 | return returnstruct; | 234 | return returnstruct; |
235 | } | 235 | } |
236 | 236 | ||
@@ -276,5 +276,5 @@ TD.align_top { vertical-align: top; } | |||
276 | public Dictionary<UUID, USimStatsData> sim_stat_data; | 276 | public Dictionary<UUID, USimStatsData> sim_stat_data; |
277 | public Dictionary<string, IStatsController> stats_reports; | 277 | public Dictionary<string, IStatsController> stats_reports; |
278 | } | 278 | } |
279 | 279 | ||
280 | } | 280 | } |
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/HTMLUtil.cs b/OpenSim/Region/OptionalModules/UserStatistics/HTMLUtil.cs index c07619f..20e045a 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/HTMLUtil.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/HTMLUtil.cs | |||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.UserStatistics | |||
95 | { | 95 | { |
96 | o.Append("</table>\n"); | 96 | o.Append("</table>\n"); |
97 | } | 97 | } |
98 | 98 | ||
99 | public static void BLOCKQUOTE_O(ref StringBuilder o, string pclass) | 99 | public static void BLOCKQUOTE_O(ref StringBuilder o, string pclass) |
100 | { | 100 | { |
101 | o.Append("<blockquote"); | 101 | o.Append("<blockquote"); |
@@ -199,7 +199,7 @@ namespace OpenSim.Region.UserStatistics | |||
199 | "); | 199 | "); |
200 | for (int i = 0; i < divID.Length; i++) | 200 | for (int i = 0; i < divID.Length; i++) |
201 | { | 201 | { |
202 | 202 | ||
203 | o.Append("new updater('"); | 203 | o.Append("new updater('"); |
204 | o.Append(divID[i]); | 204 | o.Append(divID[i]); |
205 | o.Append("', "); | 205 | o.Append("', "); |
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/LogLinesAJAX.cs b/OpenSim/Region/OptionalModules/UserStatistics/LogLinesAJAX.cs index 4d45b80..3e0f45e 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/LogLinesAJAX.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/LogLinesAJAX.cs | |||
@@ -66,7 +66,7 @@ namespace OpenSim.Region.UserStatistics | |||
66 | public string RenderView(Hashtable pModelResult) | 66 | public string RenderView(Hashtable pModelResult) |
67 | { | 67 | { |
68 | StringBuilder output = new StringBuilder(); | 68 | StringBuilder output = new StringBuilder(); |
69 | 69 | ||
70 | HTMLUtil.HR(ref output, ""); | 70 | HTMLUtil.HR(ref output, ""); |
71 | output.Append("<H3>ActiveLog</H3>\n"); | 71 | output.Append("<H3>ActiveLog</H3>\n"); |
72 | 72 | ||
@@ -102,13 +102,13 @@ namespace OpenSim.Region.UserStatistics | |||
102 | } | 102 | } |
103 | } | 103 | } |
104 | StringBuilder replaceStr = new StringBuilder(); | 104 | StringBuilder replaceStr = new StringBuilder(); |
105 | //string titlecolorresults = | 105 | //string titlecolorresults = |
106 | 106 | ||
107 | string formatresult = Regex.Replace(TitleColor.Replace(result[i], "$1"), "[^ABCDEFabcdef0-9]", ""); | 107 | string formatresult = Regex.Replace(TitleColor.Replace(result[i], "$1"), "[^ABCDEFabcdef0-9]", ""); |
108 | if (formatresult.Length > 6) | 108 | if (formatresult.Length > 6) |
109 | { | 109 | { |
110 | formatresult = formatresult.Substring(0, 6); | 110 | formatresult = formatresult.Substring(0, 6); |
111 | 111 | ||
112 | } | 112 | } |
113 | for (int j = formatresult.Length; j <= 5; j++) | 113 | for (int j = formatresult.Length; j <= 5; j++) |
114 | formatresult += "0"; | 114 | formatresult += "0"; |
@@ -116,12 +116,12 @@ namespace OpenSim.Region.UserStatistics | |||
116 | replaceStr.Append(formatresult); | 116 | replaceStr.Append(formatresult); |
117 | replaceStr.Append("\">$3</font>] $4<br />"); | 117 | replaceStr.Append("\">$3</font>] $4<br />"); |
118 | string repstr = replaceStr.ToString(); | 118 | string repstr = replaceStr.ToString(); |
119 | 119 | ||
120 | output.Append(formatopen); | 120 | output.Append(formatopen); |
121 | output.Append(webFormat.Replace(result[i], repstr)); | 121 | output.Append(webFormat.Replace(result[i], repstr)); |
122 | output.Append(formatclose); | 122 | output.Append(formatclose); |
123 | } | 123 | } |
124 | 124 | ||
125 | 125 | ||
126 | return output.ToString(); | 126 | return output.ToString(); |
127 | } | 127 | } |
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/Prototype_distributor.cs b/OpenSim/Region/OptionalModules/UserStatistics/Prototype_distributor.cs index 6f8b2aa..63dc87e 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/Prototype_distributor.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/Prototype_distributor.cs | |||
@@ -44,7 +44,7 @@ namespace OpenSim.Region.UserStatistics | |||
44 | jsFileName = "prototype.js"; | 44 | jsFileName = "prototype.js"; |
45 | } | 45 | } |
46 | 46 | ||
47 | public Prototype_distributor(string jsName) | 47 | public Prototype_distributor(string jsName) |
48 | { | 48 | { |
49 | jsFileName = jsName; | 49 | jsFileName = jsName; |
50 | } | 50 | } |
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs b/OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs index 74e9c66..8d5434f 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs | |||
@@ -52,7 +52,7 @@ namespace OpenSim.Region.UserStatistics | |||
52 | SqliteConnection dbConn = (SqliteConnection)pParams["DatabaseConnection"]; | 52 | SqliteConnection dbConn = (SqliteConnection)pParams["DatabaseConnection"]; |
53 | List<SessionList> lstSessions = new List<SessionList>(); | 53 | List<SessionList> lstSessions = new List<SessionList>(); |
54 | Hashtable requestvars = (Hashtable) pParams["RequestVars"]; | 54 | Hashtable requestvars = (Hashtable) pParams["RequestVars"]; |
55 | 55 | ||
56 | 56 | ||
57 | string puserUUID = string.Empty; | 57 | string puserUUID = string.Empty; |
58 | string clientVersionString = string.Empty; | 58 | string clientVersionString = string.Empty; |
@@ -113,7 +113,7 @@ namespace OpenSim.Region.UserStatistics | |||
113 | cmd.Parameters.Add(new SqliteParameter(":client_version", clientVersionString)); | 113 | cmd.Parameters.Add(new SqliteParameter(":client_version", clientVersionString)); |
114 | 114 | ||
115 | SqliteDataReader sdr = cmd.ExecuteReader(); | 115 | SqliteDataReader sdr = cmd.ExecuteReader(); |
116 | 116 | ||
117 | if (sdr.HasRows) | 117 | if (sdr.HasRows) |
118 | { | 118 | { |
119 | UUID userUUID = UUID.Zero; | 119 | UUID userUUID = UUID.Zero; |
@@ -134,7 +134,7 @@ namespace OpenSim.Region.UserStatistics | |||
134 | } | 134 | } |
135 | 135 | ||
136 | ShortSessionData ssd = new ShortSessionData(); | 136 | ShortSessionData ssd = new ShortSessionData(); |
137 | 137 | ||
138 | ssd.last_update = Utils.UnixTimeToDateTime((uint)Convert.ToInt32(sdr["last_updated"])); | 138 | ssd.last_update = Utils.UnixTimeToDateTime((uint)Convert.ToInt32(sdr["last_updated"])); |
139 | ssd.start_time = Utils.UnixTimeToDateTime((uint)Convert.ToInt32(sdr["start_time"])); | 139 | ssd.start_time = Utils.UnixTimeToDateTime((uint)Convert.ToInt32(sdr["start_time"])); |
140 | ssd.session_id = UUID.Parse(sdr["session_id"].ToString()); | 140 | ssd.session_id = UUID.Parse(sdr["session_id"].ToString()); |
@@ -145,7 +145,7 @@ namespace OpenSim.Region.UserStatistics | |||
145 | } | 145 | } |
146 | } | 146 | } |
147 | sdr.Close(); | 147 | sdr.Close(); |
148 | cmd.Dispose(); | 148 | cmd.Dispose(); |
149 | } | 149 | } |
150 | modeldata["SessionData"] = lstSessions; | 150 | modeldata["SessionData"] = lstSessions; |
151 | return modeldata; | 151 | return modeldata; |
@@ -248,7 +248,7 @@ TD.align_top { vertical-align: top; } | |||
248 | output.Append(sesdata.client_version); | 248 | output.Append(sesdata.client_version); |
249 | HTMLUtil.TD_C(ref output); | 249 | HTMLUtil.TD_C(ref output); |
250 | HTMLUtil.TR_C(ref output); | 250 | HTMLUtil.TR_C(ref output); |
251 | 251 | ||
252 | } | 252 | } |
253 | HTMLUtil.TR_O(ref output, ""); | 253 | HTMLUtil.TR_O(ref output, ""); |
254 | HTMLUtil.TD_O(ref output, "align_top", 1, 5); | 254 | HTMLUtil.TD_O(ref output, "align_top", 1, 5); |
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/SimStatsAJAX.cs b/OpenSim/Region/OptionalModules/UserStatistics/SimStatsAJAX.cs index 06d9e91..513686d 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/SimStatsAJAX.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/SimStatsAJAX.cs | |||
@@ -50,7 +50,7 @@ namespace OpenSim.Region.UserStatistics | |||
50 | public Hashtable ProcessModel(Hashtable pParams) | 50 | public Hashtable ProcessModel(Hashtable pParams) |
51 | { | 51 | { |
52 | List<Scene> m_scene = (List<Scene>)pParams["Scenes"]; | 52 | List<Scene> m_scene = (List<Scene>)pParams["Scenes"]; |
53 | 53 | ||
54 | Hashtable nh = new Hashtable(); | 54 | Hashtable nh = new Hashtable(); |
55 | nh.Add("hdata", m_scene); | 55 | nh.Add("hdata", m_scene); |
56 | nh.Add("simstats", pParams["SimStats"]); | 56 | nh.Add("simstats", pParams["SimStats"]); |
@@ -207,9 +207,9 @@ namespace OpenSim.Region.UserStatistics | |||
207 | HTMLUtil.TD_C(ref output); | 207 | HTMLUtil.TD_C(ref output); |
208 | HTMLUtil.TR_C(ref output); | 208 | HTMLUtil.TR_C(ref output); |
209 | HTMLUtil.TABLE_C(ref output); | 209 | HTMLUtil.TABLE_C(ref output); |
210 | 210 | ||
211 | } | 211 | } |
212 | 212 | ||
213 | return output.ToString(); | 213 | return output.ToString(); |
214 | } | 214 | } |
215 | 215 | ||
@@ -218,7 +218,7 @@ namespace OpenSim.Region.UserStatistics | |||
218 | /// <pre> | 218 | /// <pre> |
219 | /// {"REGIONNAME": { | 219 | /// {"REGIONNAME": { |
220 | /// "region": "REGIONNAME", | 220 | /// "region": "REGIONNAME", |
221 | /// "timeDilation": "101", | 221 | /// "timeDilation": "101", |
222 | /// ... // the rest of the stat info | 222 | /// ... // the rest of the stat info |
223 | /// }, | 223 | /// }, |
224 | /// ... // entries for each region | 224 | /// ... // entries for each region |
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/WebStatsModule.cs b/OpenSim/Region/OptionalModules/UserStatistics/WebStatsModule.cs index bd5289f..c15b194 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/WebStatsModule.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/WebStatsModule.cs | |||
@@ -57,7 +57,7 @@ namespace OpenSim.Region.UserStatistics | |||
57 | { | 57 | { |
58 | private static readonly ILog m_log = | 58 | private static readonly ILog m_log = |
59 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 59 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
60 | 60 | ||
61 | private static SqliteConnection dbConn; | 61 | private static SqliteConnection dbConn; |
62 | 62 | ||
63 | /// <summary> | 63 | /// <summary> |
@@ -67,7 +67,7 @@ namespace OpenSim.Region.UserStatistics | |||
67 | 67 | ||
68 | private List<Scene> m_scenes = new List<Scene>(); | 68 | private List<Scene> m_scenes = new List<Scene>(); |
69 | private Dictionary<string, IStatsController> reports = new Dictionary<string, IStatsController>(); | 69 | private Dictionary<string, IStatsController> reports = new Dictionary<string, IStatsController>(); |
70 | private Dictionary<UUID, USimStatsData> m_simstatsCounters = new Dictionary<UUID, USimStatsData>(); | 70 | private Dictionary<UUID, USimStatsData> m_simstatsCounters = new Dictionary<UUID, USimStatsData>(); |
71 | private const int updateStatsMod = 6; | 71 | private const int updateStatsMod = 6; |
72 | private int updateLogMod = 1; | 72 | private int updateLogMod = 1; |
73 | private volatile int updateLogCounter = 0; | 73 | private volatile int updateLogCounter = 0; |
@@ -217,7 +217,7 @@ namespace OpenSim.Region.UserStatistics | |||
217 | { | 217 | { |
218 | m_loglines = readLogLines(10); | 218 | m_loglines = readLogLines(10); |
219 | 219 | ||
220 | if (updateLogCounter > 10000) | 220 | if (updateLogCounter > 10000) |
221 | updateLogCounter = 1; | 221 | updateLogCounter = 1; |
222 | } | 222 | } |
223 | 223 | ||
@@ -228,12 +228,12 @@ namespace OpenSim.Region.UserStatistics | |||
228 | ss.ConsumeSimStats(stats); | 228 | ss.ConsumeSimStats(stats); |
229 | } | 229 | } |
230 | } | 230 | } |
231 | } | 231 | } |
232 | catch (KeyNotFoundException) | 232 | catch (KeyNotFoundException) |
233 | { | 233 | { |
234 | } | 234 | } |
235 | } | 235 | } |
236 | 236 | ||
237 | private Hashtable HandleUnknownCAPSRequest(Hashtable request) | 237 | private Hashtable HandleUnknownCAPSRequest(Hashtable request) |
238 | { | 238 | { |
239 | //string regpath = request["uri"].ToString(); | 239 | //string regpath = request["uri"].ToString(); |
@@ -257,7 +257,7 @@ namespace OpenSim.Region.UserStatistics | |||
257 | int response_code = 404; | 257 | int response_code = 404; |
258 | string contenttype = "text/html"; | 258 | string contenttype = "text/html"; |
259 | bool jsonFormatOutput = false; | 259 | bool jsonFormatOutput = false; |
260 | 260 | ||
261 | string strOut = string.Empty; | 261 | string strOut = string.Empty; |
262 | 262 | ||
263 | // The request patch should be "/SStats/reportName" where 'reportName' | 263 | // The request patch should be "/SStats/reportName" where 'reportName' |
@@ -288,15 +288,15 @@ namespace OpenSim.Region.UserStatistics | |||
288 | repParams["SimStats"] = m_simstatsCounters; | 288 | repParams["SimStats"] = m_simstatsCounters; |
289 | repParams["LogLines"] = m_loglines; | 289 | repParams["LogLines"] = m_loglines; |
290 | repParams["Reports"] = reports; | 290 | repParams["Reports"] = reports; |
291 | 291 | ||
292 | concurrencyCounter++; | 292 | concurrencyCounter++; |
293 | 293 | ||
294 | if (jsonFormatOutput) | 294 | if (jsonFormatOutput) |
295 | { | 295 | { |
296 | strOut = rep.RenderJson(rep.ProcessModel(repParams)); | 296 | strOut = rep.RenderJson(rep.ProcessModel(repParams)); |
297 | contenttype = "text/json"; | 297 | contenttype = "text/json"; |
298 | } | 298 | } |
299 | else | 299 | else |
300 | { | 300 | { |
301 | strOut = rep.RenderView(rep.ProcessModel(repParams)); | 301 | strOut = rep.RenderView(rep.ProcessModel(repParams)); |
302 | } | 302 | } |
@@ -312,7 +312,7 @@ namespace OpenSim.Region.UserStatistics | |||
312 | } | 312 | } |
313 | 313 | ||
314 | concurrencyCounter--; | 314 | concurrencyCounter--; |
315 | 315 | ||
316 | response_code = 200; | 316 | response_code = 200; |
317 | } | 317 | } |
318 | else | 318 | else |
@@ -463,7 +463,7 @@ namespace OpenSim.Region.UserStatistics | |||
463 | UUID agentID, Caps caps) | 463 | UUID agentID, Caps caps) |
464 | { | 464 | { |
465 | // m_log.DebugFormat("[WEB STATS MODULE]: Received viewer starts report from {0}", agentID); | 465 | // m_log.DebugFormat("[WEB STATS MODULE]: Received viewer starts report from {0}", agentID); |
466 | 466 | ||
467 | UpdateUserStats(ParseViewerStats(request, agentID), dbConn); | 467 | UpdateUserStats(ParseViewerStats(request, agentID), dbConn); |
468 | 468 | ||
469 | return String.Empty; | 469 | return String.Empty; |
@@ -525,7 +525,7 @@ namespace OpenSim.Region.UserStatistics | |||
525 | } | 525 | } |
526 | } | 526 | } |
527 | } | 527 | } |
528 | 528 | ||
529 | usd = uid.session_data; | 529 | usd = uid.session_data; |
530 | 530 | ||
531 | if (message.Type != OSDType.Map) | 531 | if (message.Type != OSDType.Map) |
@@ -747,16 +747,16 @@ namespace OpenSim.Region.UserStatistics | |||
747 | );"; | 747 | );"; |
748 | 748 | ||
749 | private const string SQL_STATS_TABLE_INSERT = @"INSERT OR REPLACE INTO stats_session_data ( | 749 | private const string SQL_STATS_TABLE_INSERT = @"INSERT OR REPLACE INTO stats_session_data ( |
750 | session_id, agent_id, region_id, last_updated, remote_ip, name_f, name_l, avg_agents_in_view, min_agents_in_view, max_agents_in_view, | 750 | session_id, agent_id, region_id, last_updated, remote_ip, name_f, name_l, avg_agents_in_view, min_agents_in_view, max_agents_in_view, |
751 | mode_agents_in_view, avg_fps, min_fps, max_fps, mode_fps, a_language, mem_use, meters_traveled, avg_ping, min_ping, max_ping, mode_ping, | 751 | mode_agents_in_view, avg_fps, min_fps, max_fps, mode_fps, a_language, mem_use, meters_traveled, avg_ping, min_ping, max_ping, mode_ping, |
752 | regions_visited, run_time, avg_sim_fps, min_sim_fps, max_sim_fps, mode_sim_fps, start_time, client_version, s_cpu, s_gpu, s_os, s_ram, | 752 | regions_visited, run_time, avg_sim_fps, min_sim_fps, max_sim_fps, mode_sim_fps, start_time, client_version, s_cpu, s_gpu, s_os, s_ram, |
753 | d_object_kb, d_texture_kb, d_world_kb, n_in_kb, n_in_pk, n_out_kb, n_out_pk, f_dropped, f_failed_resends, f_invalid, f_off_circuit, | 753 | d_object_kb, d_texture_kb, d_world_kb, n_in_kb, n_in_pk, n_out_kb, n_out_pk, f_dropped, f_failed_resends, f_invalid, f_off_circuit, |
754 | f_resent, f_send_packet | 754 | f_resent, f_send_packet |
755 | ) | 755 | ) |
756 | VALUES | 756 | VALUES |
757 | ( | 757 | ( |
758 | :session_id, :agent_id, :region_id, :last_updated, :remote_ip, :name_f, :name_l, :avg_agents_in_view, :min_agents_in_view, :max_agents_in_view, | 758 | :session_id, :agent_id, :region_id, :last_updated, :remote_ip, :name_f, :name_l, :avg_agents_in_view, :min_agents_in_view, :max_agents_in_view, |
759 | :mode_agents_in_view, :avg_fps, :min_fps, :max_fps, :mode_fps, :a_language, :mem_use, :meters_traveled, :avg_ping, :min_ping, :max_ping, :mode_ping, | 759 | :mode_agents_in_view, :avg_fps, :min_fps, :max_fps, :mode_fps, :a_language, :mem_use, :meters_traveled, :avg_ping, :min_ping, :max_ping, :mode_ping, |
760 | :regions_visited, :run_time, :avg_sim_fps, :min_sim_fps, :max_sim_fps, :mode_sim_fps, :start_time, :client_version, :s_cpu, :s_gpu, :s_os, :s_ram, | 760 | :regions_visited, :run_time, :avg_sim_fps, :min_sim_fps, :max_sim_fps, :mode_sim_fps, :start_time, :client_version, :s_cpu, :s_gpu, :s_os, :s_ram, |
761 | :d_object_kb, :d_texture_kb, :d_world_kb, :n_in_kb, :n_in_pk, :n_out_kb, :n_out_pk, :f_dropped, :f_failed_resends, :f_invalid, :f_off_circuit, | 761 | :d_object_kb, :d_texture_kb, :d_world_kb, :n_in_kb, :n_in_pk, :n_out_kb, :n_out_pk, :f_dropped, :f_failed_resends, :f_invalid, :f_off_circuit, |
762 | :f_resent, :f_send_packet | 762 | :f_resent, :f_send_packet |
@@ -980,7 +980,7 @@ VALUES | |||
980 | 980 | ||
981 | if ((srtArr[srtArr.Length - 1]) == 0 || (srtArr[srtArr.Length - 1]) == 1) | 981 | if ((srtArr[srtArr.Length - 1]) == 0 || (srtArr[srtArr.Length - 1]) == 1) |
982 | return 0; | 982 | return 0; |
983 | 983 | ||
984 | float freqtest = (float)freq.Length / freq.Rank; | 984 | float freqtest = (float)freq.Length / freq.Rank; |
985 | 985 | ||
986 | for (i = 0; i < freqtest; i++) | 986 | for (i = 0; i < freqtest; i++) |
@@ -1116,7 +1116,7 @@ VALUES | |||
1116 | public List<float> _sim_fps; | 1116 | public List<float> _sim_fps; |
1117 | public List<int> _agents_in_view; | 1117 | public List<int> _agents_in_view; |
1118 | } | 1118 | } |
1119 | 1119 | ||
1120 | #endregion | 1120 | #endregion |
1121 | 1121 | ||
1122 | public class USimStatsData | 1122 | public class USimStatsData |
diff --git a/OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs b/OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs index 770b1f2..54f3ab6 100644 --- a/OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs +++ b/OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs | |||
@@ -161,7 +161,7 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport | |||
161 | { | 161 | { |
162 | foreach (SceneObjectGroup sog in attachs) | 162 | foreach (SceneObjectGroup sog in attachs) |
163 | { | 163 | { |
164 | m_log.DebugFormat("[CAMERA-ONLY MODE]: Forcibly detaching attach {0} from {1} in {2}", | 164 | m_log.DebugFormat("[CAMERA-ONLY MODE]: Forcibly detaching attach {0} from {1} in {2}", |
165 | sog.Name, sp.Name, m_scene.RegionInfo.RegionName); | 165 | sog.Name, sp.Name, m_scene.RegionInfo.RegionName); |
166 | 166 | ||
167 | m_scene.AttachmentsModule.DetachSingleAttachmentToInv(sp, sog); | 167 | m_scene.AttachmentsModule.DetachSingleAttachmentToInv(sp, sog); |
diff --git a/OpenSim/Region/OptionalModules/ViewerSupport/DynamicMenuModule.cs b/OpenSim/Region/OptionalModules/ViewerSupport/DynamicMenuModule.cs index 709a16d..9833086 100644 --- a/OpenSim/Region/OptionalModules/ViewerSupport/DynamicMenuModule.cs +++ b/OpenSim/Region/OptionalModules/ViewerSupport/DynamicMenuModule.cs | |||
@@ -159,7 +159,7 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport | |||
159 | 159 | ||
160 | if (loc == null) | 160 | if (loc == null) |
161 | continue; | 161 | continue; |
162 | 162 | ||
163 | loc[d.Title] = OSD.FromString(d.Title); | 163 | loc[d.Title] = OSD.FromString(d.Title); |
164 | } | 164 | } |
165 | } | 165 | } |
@@ -193,7 +193,7 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport | |||
193 | 193 | ||
194 | if (loc == null) | 194 | if (loc == null) |
195 | continue; | 195 | continue; |
196 | 196 | ||
197 | loc[d.Title] = OSD.FromString(d.Title); | 197 | loc[d.Title] = OSD.FromString(d.Title); |
198 | } | 198 | } |
199 | } | 199 | } |
diff --git a/OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs b/OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs index e0537a4..8ed0bb3 100644 --- a/OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs +++ b/OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs | |||
@@ -50,7 +50,7 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport | |||
50 | private static List<String> m_lastNames = new List<String>(); | 50 | private static List<String> m_lastNames = new List<String>(); |
51 | private static List<String> m_fullNames = new List<String>(); | 51 | private static List<String> m_fullNames = new List<String>(); |
52 | 52 | ||
53 | public void Initialise(IConfigSource config) | 53 | public void Initialise(IConfigSource config) |
54 | { | 54 | { |
55 | IConfig moduleConfig = config.Configs["GodNames"]; | 55 | IConfig moduleConfig = config.Configs["GodNames"]; |
56 | 56 | ||
@@ -133,7 +133,7 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport | |||
133 | fnames.Add(name); | 133 | fnames.Add(name); |
134 | } | 134 | } |
135 | ((OSDMap)namesmap)["full_names"] = fnames; | 135 | ((OSDMap)namesmap)["full_names"] = fnames; |
136 | 136 | ||
137 | OSDArray lnames = new OSDArray(); | 137 | OSDArray lnames = new OSDArray(); |
138 | foreach (string name in m_lastNames) { | 138 | foreach (string name in m_lastNames) { |
139 | lnames.Add(name); | 139 | lnames.Add(name); |
diff --git a/OpenSim/Region/OptionalModules/ViewerSupport/SimulatorFeaturesHelper.cs b/OpenSim/Region/OptionalModules/ViewerSupport/SimulatorFeaturesHelper.cs index 1ae18dd..2c2042d 100644 --- a/OpenSim/Region/OptionalModules/ViewerSupport/SimulatorFeaturesHelper.cs +++ b/OpenSim/Region/OptionalModules/ViewerSupport/SimulatorFeaturesHelper.cs | |||
@@ -49,7 +49,7 @@ using TeleportFlags = OpenSim.Framework.Constants.TeleportFlags; | |||
49 | 49 | ||
50 | namespace OpenSim.Region.OptionalModules.ViewerSupport | 50 | namespace OpenSim.Region.OptionalModules.ViewerSupport |
51 | { | 51 | { |
52 | public class SimulatorFeaturesHelper | 52 | public class SimulatorFeaturesHelper |
53 | { | 53 | { |
54 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 54 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
55 | 55 | ||
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs index ceb3332..79b80f8 100644 --- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs +++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs | |||
@@ -63,28 +63,28 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
63 | /// If specified in Regions.ini, the settings should be within the region's section name. | 63 | /// If specified in Regions.ini, the settings should be within the region's section name. |
64 | /// If specified in OpenSim.ini, the settings should be within the [AutoBackupModule] section. | 64 | /// If specified in OpenSim.ini, the settings should be within the [AutoBackupModule] section. |
65 | /// Region-specific settings take precedence. | 65 | /// Region-specific settings take precedence. |
66 | /// | 66 | /// |
67 | /// AutoBackupModuleEnabled: True/False. Default: False. If True, use the auto backup module. This setting does not support per-region basis. | 67 | /// AutoBackupModuleEnabled: True/False. Default: False. If True, use the auto backup module. This setting does not support per-region basis. |
68 | /// All other settings under [AutoBackupModule] are ignored if AutoBackupModuleEnabled is false, even per-region settings! | 68 | /// All other settings under [AutoBackupModule] are ignored if AutoBackupModuleEnabled is false, even per-region settings! |
69 | /// AutoBackup: True/False. Default: False. If True, activate auto backup functionality. | 69 | /// AutoBackup: True/False. Default: False. If True, activate auto backup functionality. |
70 | /// This is the only required option for enabling auto-backup; the other options have sane defaults. | 70 | /// This is the only required option for enabling auto-backup; the other options have sane defaults. |
71 | /// If False for a particular region, the auto-backup module becomes a no-op for the region, and all other AutoBackup* settings are ignored. | 71 | /// If False for a particular region, the auto-backup module becomes a no-op for the region, and all other AutoBackup* settings are ignored. |
72 | /// If False globally (the default), only regions that specifically override it in Regions.ini will get AutoBackup functionality. | 72 | /// If False globally (the default), only regions that specifically override it in Regions.ini will get AutoBackup functionality. |
73 | /// AutoBackupInterval: Double, non-negative value. Default: 720 (12 hours). | 73 | /// AutoBackupInterval: Double, non-negative value. Default: 720 (12 hours). |
74 | /// The number of minutes between each backup attempt. | 74 | /// The number of minutes between each backup attempt. |
75 | /// If a negative or zero value is given, it is equivalent to setting AutoBackup = False. | 75 | /// If a negative or zero value is given, it is equivalent to setting AutoBackup = False. |
76 | /// AutoBackupBusyCheck: True/False. Default: True. | 76 | /// AutoBackupBusyCheck: True/False. Default: True. |
77 | /// If True, we will only take an auto-backup if a set of conditions are met. | 77 | /// If True, we will only take an auto-backup if a set of conditions are met. |
78 | /// These conditions are heuristics to try and avoid taking a backup when the sim is busy. | 78 | /// These conditions are heuristics to try and avoid taking a backup when the sim is busy. |
79 | /// AutoBackupSkipAssets | 79 | /// AutoBackupSkipAssets |
80 | /// If true, assets are not saved to the oar file. Considerably reduces impact on simulator when backing up. Intended for when assets db is backed up separately | 80 | /// If true, assets are not saved to the oar file. Considerably reduces impact on simulator when backing up. Intended for when assets db is backed up separately |
81 | /// AutoBackupKeepFilesForDays | 81 | /// AutoBackupKeepFilesForDays |
82 | /// Backup files older than this value (in days) are deleted during the current backup process, 0 will disable this and keep all backup files indefinitely | 82 | /// Backup files older than this value (in days) are deleted during the current backup process, 0 will disable this and keep all backup files indefinitely |
83 | /// AutoBackupScript: String. Default: not specified (disabled). | 83 | /// AutoBackupScript: String. Default: not specified (disabled). |
84 | /// File path to an executable script or binary to run when an automatic backup is taken. | 84 | /// File path to an executable script or binary to run when an automatic backup is taken. |
85 | /// The file should really be (Windows) an .exe or .bat, or (Linux/Mac) a shell script or binary. | 85 | /// The file should really be (Windows) an .exe or .bat, or (Linux/Mac) a shell script or binary. |
86 | /// Trying to "run" directories, or things with weird file associations on Win32, might cause unexpected results! | 86 | /// Trying to "run" directories, or things with weird file associations on Win32, might cause unexpected results! |
87 | /// argv[1] of the executed file/script will be the file name of the generated OAR. | 87 | /// argv[1] of the executed file/script will be the file name of the generated OAR. |
88 | /// If the process can't be spawned for some reason (file not found, no execute permission, etc), write a warning to the console. | 88 | /// If the process can't be spawned for some reason (file not found, no execute permission, etc), write a warning to the console. |
89 | /// AutoBackupNaming: string. Default: Time. | 89 | /// AutoBackupNaming: string. Default: Time. |
90 | /// One of three strings (case insensitive): | 90 | /// One of three strings (case insensitive): |
@@ -295,7 +295,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
295 | if (args.Length != 2) { | 295 | if (args.Length != 2) { |
296 | MainConsole.Instance.OutputFormat ("Usage: dobackup <regionname>"); | 296 | MainConsole.Instance.OutputFormat ("Usage: dobackup <regionname>"); |
297 | return; | 297 | return; |
298 | } | 298 | } |
299 | bool found = false; | 299 | bool found = false; |
300 | string name = args [1]; | 300 | string name = args [1]; |
301 | lock (m_Scenes) { | 301 | lock (m_Scenes) { |
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs index ce7c368..b90f0c4 100644 --- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs +++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs | |||
@@ -35,7 +35,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
35 | /// If you use this class in any way outside of AutoBackupModule, you should treat the class as opaque. | 35 | /// If you use this class in any way outside of AutoBackupModule, you should treat the class as opaque. |
36 | /// Since it is not part of the framework, you really should not rely upon it outside of the AutoBackupModule implementation. | 36 | /// Since it is not part of the framework, you really should not rely upon it outside of the AutoBackupModule implementation. |
37 | /// </summary> | 37 | /// </summary> |
38 | /// | 38 | /// |
39 | public class AutoBackupModuleState | 39 | public class AutoBackupModuleState |
40 | { | 40 | { |
41 | private Dictionary<Guid, string> m_liveRequests = null; | 41 | private Dictionary<Guid, string> m_liveRequests = null; |
diff --git a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs index 8565f5a..47edeb9 100644 --- a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs +++ b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs | |||
@@ -151,13 +151,13 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
151 | // to the command line parameters you use to start up your client | 151 | // to the command line parameters you use to start up your client |
152 | // This commonly looks like -helperuri http://127.0.0.1:9000/ | 152 | // This commonly looks like -helperuri http://127.0.0.1:9000/ |
153 | 153 | ||
154 | 154 | ||
155 | // Local Server.. enables functionality only. | 155 | // Local Server.. enables functionality only. |
156 | httpServer.AddXmlRPCHandler("getCurrencyQuote", quote_func); | 156 | httpServer.AddXmlRPCHandler("getCurrencyQuote", quote_func); |
157 | httpServer.AddXmlRPCHandler("buyCurrency", buy_func); | 157 | httpServer.AddXmlRPCHandler("buyCurrency", buy_func); |
158 | httpServer.AddXmlRPCHandler("preflightBuyLandPrep", preflightBuyLandPrep_func); | 158 | httpServer.AddXmlRPCHandler("preflightBuyLandPrep", preflightBuyLandPrep_func); |
159 | httpServer.AddXmlRPCHandler("buyLandPrep", landBuy_func); | 159 | httpServer.AddXmlRPCHandler("buyLandPrep", landBuy_func); |
160 | 160 | ||
161 | } | 161 | } |
162 | 162 | ||
163 | if (m_scenel.ContainsKey(scene.RegionInfo.RegionHandle)) | 163 | if (m_scenel.ContainsKey(scene.RegionInfo.RegionHandle)) |
@@ -212,7 +212,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
212 | 212 | ||
213 | bool give_result = doMoneyTransfer(fromID, toID, amount, 2, description); | 213 | bool give_result = doMoneyTransfer(fromID, toID, amount, 2, description); |
214 | 214 | ||
215 | 215 | ||
216 | BalanceUpdate(fromID, toID, give_result, description); | 216 | BalanceUpdate(fromID, toID, give_result, description); |
217 | 217 | ||
218 | return give_result; | 218 | return give_result; |
@@ -303,7 +303,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
303 | private bool doMoneyTransfer(UUID Sender, UUID Receiver, int amount, int transactiontype, string description) | 303 | private bool doMoneyTransfer(UUID Sender, UUID Receiver, int amount, int transactiontype, string description) |
304 | { | 304 | { |
305 | bool result = true; | 305 | bool result = true; |
306 | 306 | ||
307 | return result; | 307 | return result; |
308 | } | 308 | } |
309 | 309 | ||
@@ -377,10 +377,10 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
377 | else | 377 | else |
378 | { | 378 | { |
379 | m_log.ErrorFormat( | 379 | m_log.ErrorFormat( |
380 | "[MONEY]: Could not resolve user {0}", | 380 | "[MONEY]: Could not resolve user {0}", |
381 | agentID); | 381 | agentID); |
382 | } | 382 | } |
383 | 383 | ||
384 | return String.Empty; | 384 | return String.Empty; |
385 | } | 385 | } |
386 | 386 | ||
@@ -464,7 +464,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
464 | Hashtable quoteResponse = new Hashtable(); | 464 | Hashtable quoteResponse = new Hashtable(); |
465 | XmlRpcResponse returnval = new XmlRpcResponse(); | 465 | XmlRpcResponse returnval = new XmlRpcResponse(); |
466 | 466 | ||
467 | 467 | ||
468 | Hashtable currencyResponse = new Hashtable(); | 468 | Hashtable currencyResponse = new Hashtable(); |
469 | currencyResponse.Add("estimatedCost", 0); | 469 | currencyResponse.Add("estimatedCost", 0); |
470 | currencyResponse.Add("currencyBuy", amount); | 470 | currencyResponse.Add("currencyBuy", amount); |
@@ -475,7 +475,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
475 | 475 | ||
476 | returnval.Value = quoteResponse; | 476 | returnval.Value = quoteResponse; |
477 | return returnval; | 477 | return returnval; |
478 | 478 | ||
479 | 479 | ||
480 | 480 | ||
481 | } | 481 | } |
@@ -485,7 +485,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
485 | // Hashtable requestData = (Hashtable) request.Params[0]; | 485 | // Hashtable requestData = (Hashtable) request.Params[0]; |
486 | // UUID agentId = UUID.Zero; | 486 | // UUID agentId = UUID.Zero; |
487 | // int amount = 0; | 487 | // int amount = 0; |
488 | 488 | ||
489 | XmlRpcResponse returnval = new XmlRpcResponse(); | 489 | XmlRpcResponse returnval = new XmlRpcResponse(); |
490 | Hashtable returnresp = new Hashtable(); | 490 | Hashtable returnresp = new Hashtable(); |
491 | returnresp.Add("success", true); | 491 | returnresp.Add("success", true); |
@@ -536,7 +536,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
536 | 536 | ||
537 | // UUID agentId = UUID.Zero; | 537 | // UUID agentId = UUID.Zero; |
538 | // int amount = 0; | 538 | // int amount = 0; |
539 | 539 | ||
540 | retparam.Add("success", true); | 540 | retparam.Add("success", true); |
541 | ret.Value = retparam; | 541 | ret.Value = retparam; |
542 | 542 | ||
@@ -553,7 +553,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
553 | /// <param name="agentID"></param> | 553 | /// <param name="agentID"></param> |
554 | private void CheckExistAndRefreshFunds(UUID agentID) | 554 | private void CheckExistAndRefreshFunds(UUID agentID) |
555 | { | 555 | { |
556 | 556 | ||
557 | } | 557 | } |
558 | 558 | ||
559 | /// <summary> | 559 | /// <summary> |
@@ -564,13 +564,13 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
564 | private int GetFundsForAgentID(UUID AgentID) | 564 | private int GetFundsForAgentID(UUID AgentID) |
565 | { | 565 | { |
566 | int returnfunds = 0; | 566 | int returnfunds = 0; |
567 | 567 | ||
568 | return returnfunds; | 568 | return returnfunds; |
569 | } | 569 | } |
570 | 570 | ||
571 | // private void SetLocalFundsForAgentID(UUID AgentID, int amount) | 571 | // private void SetLocalFundsForAgentID(UUID AgentID, int amount) |
572 | // { | 572 | // { |
573 | 573 | ||
574 | // } | 574 | // } |
575 | 575 | ||
576 | #endregion | 576 | #endregion |
@@ -689,7 +689,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
689 | /// <see cref="OpenSim.Region.Framework.Scenes.EventManager.ClientClosed"/> | 689 | /// <see cref="OpenSim.Region.Framework.Scenes.EventManager.ClientClosed"/> |
690 | public void ClientClosed(UUID AgentID, Scene scene) | 690 | public void ClientClosed(UUID AgentID, Scene scene) |
691 | { | 691 | { |
692 | 692 | ||
693 | } | 693 | } |
694 | 694 | ||
695 | /// <summary> | 695 | /// <summary> |
@@ -708,19 +708,19 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
708 | 708 | ||
709 | private void ValidateLandBuy(Object osender, EventManager.LandBuyArgs e) | 709 | private void ValidateLandBuy(Object osender, EventManager.LandBuyArgs e) |
710 | { | 710 | { |
711 | 711 | ||
712 | 712 | ||
713 | lock (e) | 713 | lock (e) |
714 | { | 714 | { |
715 | e.economyValidated = true; | 715 | e.economyValidated = true; |
716 | } | 716 | } |
717 | 717 | ||
718 | 718 | ||
719 | } | 719 | } |
720 | 720 | ||
721 | private void processLandBuy(Object osender, EventManager.LandBuyArgs e) | 721 | private void processLandBuy(Object osender, EventManager.LandBuyArgs e) |
722 | { | 722 | { |
723 | 723 | ||
724 | } | 724 | } |
725 | 725 | ||
726 | /// <summary> | 726 | /// <summary> |
@@ -730,7 +730,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
730 | /// <param name="e"></param> | 730 | /// <param name="e"></param> |
731 | private void MoneyTransferAction(Object osender, EventManager.MoneyTransferArgs e) | 731 | private void MoneyTransferAction(Object osender, EventManager.MoneyTransferArgs e) |
732 | { | 732 | { |
733 | 733 | ||
734 | } | 734 | } |
735 | 735 | ||
736 | /// <summary> | 736 | /// <summary> |
@@ -739,7 +739,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
739 | /// <param name="avatar"></param> | 739 | /// <param name="avatar"></param> |
740 | private void MakeChildAgent(ScenePresence avatar) | 740 | private void MakeChildAgent(ScenePresence avatar) |
741 | { | 741 | { |
742 | 742 | ||
743 | } | 743 | } |
744 | 744 | ||
745 | /// <summary> | 745 | /// <summary> |
@@ -748,7 +748,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
748 | /// <param name="AgentId"></param> | 748 | /// <param name="AgentId"></param> |
749 | private void ClientLoggedOut(UUID AgentId, Scene scene) | 749 | private void ClientLoggedOut(UUID AgentId, Scene scene) |
750 | { | 750 | { |
751 | 751 | ||
752 | } | 752 | } |
753 | 753 | ||
754 | /// <summary> | 754 | /// <summary> |
@@ -768,7 +768,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
768 | /// <param name="regionID"></param> | 768 | /// <param name="regionID"></param> |
769 | private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID) | 769 | private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID) |
770 | { | 770 | { |
771 | 771 | ||
772 | //m_log.Info("[FRIEND]: " + avatar.Name + " status:" + (!avatar.IsChildAgent).ToString()); | 772 | //m_log.Info("[FRIEND]: " + avatar.Name + " status:" + (!avatar.IsChildAgent).ToString()); |
773 | } | 773 | } |
774 | 774 | ||
@@ -809,12 +809,12 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
809 | 809 | ||
810 | Scene s = LocateSceneClientIn(remoteClient.AgentId); | 810 | Scene s = LocateSceneClientIn(remoteClient.AgentId); |
811 | 811 | ||
812 | // Implmenting base sale data checking here so the default OpenSimulator implementation isn't useless | 812 | // Implmenting base sale data checking here so the default OpenSimulator implementation isn't useless |
813 | // combined with other implementations. We're actually validating that the client is sending the data | 813 | // combined with other implementations. We're actually validating that the client is sending the data |
814 | // that it should. In theory, the client should already know what to send here because it'll see it when it | 814 | // that it should. In theory, the client should already know what to send here because it'll see it when it |
815 | // gets the object data. If the data sent by the client doesn't match the object, the viewer probably has an | 815 | // gets the object data. If the data sent by the client doesn't match the object, the viewer probably has an |
816 | // old idea of what the object properties are. Viewer developer Hazim informed us that the base module | 816 | // old idea of what the object properties are. Viewer developer Hazim informed us that the base module |
817 | // didn't check the client sent data against the object do any. Since the base modules are the | 817 | // didn't check the client sent data against the object do any. Since the base modules are the |
818 | // 'crowning glory' examples of good practice.. | 818 | // 'crowning glory' examples of good practice.. |
819 | 819 | ||
820 | // Validate that the object exists in the scene the user is in | 820 | // Validate that the object exists in the scene the user is in |
@@ -824,15 +824,15 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
824 | remoteClient.SendAgentAlertMessage("Unable to buy now. The object was not found.", false); | 824 | remoteClient.SendAgentAlertMessage("Unable to buy now. The object was not found.", false); |
825 | return; | 825 | return; |
826 | } | 826 | } |
827 | 827 | ||
828 | // Validate that the client sent the price that the object is being sold for | 828 | // Validate that the client sent the price that the object is being sold for |
829 | if (part.SalePrice != salePrice) | 829 | if (part.SalePrice != salePrice) |
830 | { | 830 | { |
831 | remoteClient.SendAgentAlertMessage("Cannot buy at this price. Buy Failed. If you continue to get this relog.", false); | 831 | remoteClient.SendAgentAlertMessage("Cannot buy at this price. Buy Failed. If you continue to get this relog.", false); |
832 | return; | 832 | return; |
833 | } | 833 | } |
834 | 834 | ||
835 | // Validate that the client sent the proper sale type the object has set | 835 | // Validate that the client sent the proper sale type the object has set |
836 | if (part.ObjectSaleType != saleType) | 836 | if (part.ObjectSaleType != saleType) |
837 | { | 837 | { |
838 | remoteClient.SendAgentAlertMessage("Cannot buy this way. Buy Failed. If you continue to get this relog.", false); | 838 | remoteClient.SendAgentAlertMessage("Cannot buy this way. Buy Failed. If you continue to get this relog.", false); |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 0cabe47..6a7c735 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -49,7 +49,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
49 | } | 49 | } |
50 | 50 | ||
51 | public delegate void ChatToNPC( | 51 | public delegate void ChatToNPC( |
52 | string message, byte type, Vector3 fromPos, string fromName, | 52 | string message, byte type, Vector3 fromPos, string fromName, |
53 | UUID fromAgentID, UUID ownerID, byte source, byte audible); | 53 | UUID fromAgentID, UUID ownerID, byte source, byte audible); |
54 | 54 | ||
55 | /// <summary> | 55 | /// <summary> |
@@ -223,7 +223,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
223 | { | 223 | { |
224 | 224 | ||
225 | } | 225 | } |
226 | 226 | ||
227 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, | 227 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, |
228 | Quaternion SitOrientation, bool autopilot, | 228 | Quaternion SitOrientation, bool autopilot, |
229 | Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | 229 | Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) |
@@ -519,7 +519,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
519 | public event AvatarInterestUpdate OnAvatarInterestUpdate; | 519 | public event AvatarInterestUpdate OnAvatarInterestUpdate; |
520 | 520 | ||
521 | public event PlacesQuery OnPlacesQuery; | 521 | public event PlacesQuery OnPlacesQuery; |
522 | 522 | ||
523 | public event FindAgentUpdate OnFindAgent; | 523 | public event FindAgentUpdate OnFindAgent; |
524 | public event TrackAgentUpdate OnTrackAgent; | 524 | public event TrackAgentUpdate OnTrackAgent; |
525 | public event NewUserReport OnUserReport; | 525 | public event NewUserReport OnUserReport; |
@@ -931,7 +931,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
931 | OnRegionHandShakeReply(this); | 931 | OnRegionHandShakeReply(this); |
932 | } | 932 | } |
933 | } | 933 | } |
934 | 934 | ||
935 | public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID) | 935 | public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID) |
936 | { | 936 | { |
937 | } | 937 | } |
@@ -951,7 +951,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
951 | public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec) | 951 | public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec) |
952 | { | 952 | { |
953 | } | 953 | } |
954 | 954 | ||
955 | public void SendImageNotFound(UUID imageid) | 955 | public void SendImageNotFound(UUID imageid) |
956 | { | 956 | { |
957 | } | 957 | } |
@@ -959,7 +959,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
959 | public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData) | 959 | public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData) |
960 | { | 960 | { |
961 | } | 961 | } |
962 | 962 | ||
963 | public void SendShutdownConnectionNotice() | 963 | public void SendShutdownConnectionNotice() |
964 | { | 964 | { |
965 | } | 965 | } |
@@ -970,7 +970,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
970 | 970 | ||
971 | public void SendObjectPropertiesFamilyData(ISceneEntity Entity, uint RequestFlags) | 971 | public void SendObjectPropertiesFamilyData(ISceneEntity Entity, uint RequestFlags) |
972 | { | 972 | { |
973 | 973 | ||
974 | } | 974 | } |
975 | 975 | ||
976 | public void SendObjectPropertiesReply(ISceneEntity entity) | 976 | public void SendObjectPropertiesReply(ISceneEntity entity) |
@@ -984,7 +984,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
984 | public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks) | 984 | public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks) |
985 | { | 985 | { |
986 | } | 986 | } |
987 | 987 | ||
988 | public void SendViewerTime(int phase) | 988 | public void SendViewerTime(int phase) |
989 | { | 989 | { |
990 | } | 990 | } |
@@ -1029,7 +1029,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1029 | // We never start the client, so always fail. | 1029 | // We never start the client, so always fail. |
1030 | throw new NotImplementedException(); | 1030 | throw new NotImplementedException(); |
1031 | } | 1031 | } |
1032 | 1032 | ||
1033 | public void Stop() | 1033 | public void Stop() |
1034 | { | 1034 | { |
1035 | } | 1035 | } |
@@ -1224,11 +1224,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1224 | public void SendJoinGroupReply(UUID groupID, bool success) | 1224 | public void SendJoinGroupReply(UUID groupID, bool success) |
1225 | { | 1225 | { |
1226 | } | 1226 | } |
1227 | 1227 | ||
1228 | public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool success) | 1228 | public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool success) |
1229 | { | 1229 | { |
1230 | } | 1230 | } |
1231 | 1231 | ||
1232 | public void SendLeaveGroupReply(UUID groupID, bool success) | 1232 | public void SendLeaveGroupReply(UUID groupID, bool success) |
1233 | { | 1233 | { |
1234 | } | 1234 | } |
@@ -1318,7 +1318,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1318 | { | 1318 | { |
1319 | } | 1319 | } |
1320 | #endregion | 1320 | #endregion |
1321 | 1321 | ||
1322 | public void SendRebakeAvatarTextures(UUID textureID) | 1322 | public void SendRebakeAvatarTextures(UUID textureID) |
1323 | { | 1323 | { |
1324 | } | 1324 | } |
@@ -1326,15 +1326,15 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1326 | public void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages) | 1326 | public void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages) |
1327 | { | 1327 | { |
1328 | } | 1328 | } |
1329 | 1329 | ||
1330 | public void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt) | 1330 | public void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt) |
1331 | { | 1331 | { |
1332 | } | 1332 | } |
1333 | 1333 | ||
1334 | public void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier) | 1334 | public void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier) |
1335 | { | 1335 | { |
1336 | } | 1336 | } |
1337 | 1337 | ||
1338 | public void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt) | 1338 | public void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt) |
1339 | { | 1339 | { |
1340 | } | 1340 | } |
@@ -1354,7 +1354,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1354 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId) | 1354 | public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId) |
1355 | { | 1355 | { |
1356 | } | 1356 | } |
1357 | 1357 | ||
1358 | public void SendAgentTerseUpdate(ISceneEntity presence) | 1358 | public void SendAgentTerseUpdate(ISceneEntity presence) |
1359 | { | 1359 | { |
1360 | } | 1360 | } |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs index a892cf4..9a1ea73 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs | |||
@@ -209,10 +209,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests | |||
209 | UserAccountHelpers.CreateUserWithInventory(m_scene, userId); | 209 | UserAccountHelpers.CreateUserWithInventory(m_scene, userId); |
210 | ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, userId); | 210 | ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, userId); |
211 | 211 | ||
212 | InventoryItemBase att1Item | 212 | InventoryItemBase att1Item |
213 | = UserInventoryHelpers.CreateInventoryItem( | 213 | = UserInventoryHelpers.CreateInventoryItem( |
214 | m_scene, "att1", TestHelpers.ParseTail(0x2), TestHelpers.ParseTail(0x3), sp.UUID, InventoryType.Object); | 214 | m_scene, "att1", TestHelpers.ParseTail(0x2), TestHelpers.ParseTail(0x3), sp.UUID, InventoryType.Object); |
215 | InventoryItemBase att2Item | 215 | InventoryItemBase att2Item |
216 | = UserInventoryHelpers.CreateInventoryItem( | 216 | = UserInventoryHelpers.CreateInventoryItem( |
217 | m_scene, "att2", TestHelpers.ParseTail(0x12), TestHelpers.ParseTail(0x13), sp.UUID, InventoryType.Object); | 217 | m_scene, "att2", TestHelpers.ParseTail(0x12), TestHelpers.ParseTail(0x13), sp.UUID, InventoryType.Object); |
218 | 218 | ||
diff --git a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs index bea3a1e..d0d726c 100644 --- a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs +++ b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs | |||
@@ -54,38 +54,38 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
54 | private Scene m_scene; | 54 | private Scene m_scene; |
55 | 55 | ||
56 | public string Name { get { return "Scene Commands Module"; } } | 56 | public string Name { get { return "Scene Commands Module"; } } |
57 | 57 | ||
58 | public Type ReplaceableInterface { get { return null; } } | 58 | public Type ReplaceableInterface { get { return null; } } |
59 | 59 | ||
60 | public void Initialise(IConfigSource source) | 60 | public void Initialise(IConfigSource source) |
61 | { | 61 | { |
62 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: INITIALIZED MODULE"); | 62 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: INITIALIZED MODULE"); |
63 | } | 63 | } |
64 | 64 | ||
65 | public void PostInitialise() | 65 | public void PostInitialise() |
66 | { | 66 | { |
67 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: POST INITIALIZED MODULE"); | 67 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: POST INITIALIZED MODULE"); |
68 | } | 68 | } |
69 | 69 | ||
70 | public void Close() | 70 | public void Close() |
71 | { | 71 | { |
72 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: CLOSED MODULE"); | 72 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: CLOSED MODULE"); |
73 | } | 73 | } |
74 | 74 | ||
75 | public void AddRegion(Scene scene) | 75 | public void AddRegion(Scene scene) |
76 | { | 76 | { |
77 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); | 77 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName); |
78 | 78 | ||
79 | m_scene = scene; | 79 | m_scene = scene; |
80 | 80 | ||
81 | m_scene.RegisterModuleInterface<ISceneCommandsModule>(this); | 81 | m_scene.RegisterModuleInterface<ISceneCommandsModule>(this); |
82 | } | 82 | } |
83 | 83 | ||
84 | public void RemoveRegion(Scene scene) | 84 | public void RemoveRegion(Scene scene) |
85 | { | 85 | { |
86 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); | 86 | // m_log.DebugFormat("[SCENE COMMANDS MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName); |
87 | } | 87 | } |
88 | 88 | ||
89 | public void RegionLoaded(Scene scene) | 89 | public void RegionLoaded(Scene scene) |
90 | { | 90 | { |
91 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); | 91 | // m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName); |
@@ -101,7 +101,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
101 | + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" | 101 | + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" |
102 | + "client-vel-upd - the tolerance before clients are updated with new velocity information for an avatar.\n" | 102 | + "client-vel-upd - the tolerance before clients are updated with new velocity information for an avatar.\n" |
103 | + "root-upd-per - if greater than 1, terse updates are only sent to root agents other than the originator on every n updates.\n" | 103 | + "root-upd-per - if greater than 1, terse updates are only sent to root agents other than the originator on every n updates.\n" |
104 | + "child-upd-per - if greater than 1, terse updates are only sent to child agents on every n updates.\n" | 104 | + "child-upd-per - if greater than 1, terse updates are only sent to child agents on every n updates.\n" |
105 | + "collisions - if false then collisions with other objects are turned off.\n" | 105 | + "collisions - if false then collisions with other objects are turned off.\n" |
106 | + "pbackup - if false then periodic scene backup is turned off.\n" | 106 | + "pbackup - if false then periodic scene backup is turned off.\n" |
107 | + "physics - if false then all physics objects are non-physical.\n" | 107 | + "physics - if false then all physics objects are non-physical.\n" |
@@ -213,7 +213,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
213 | 213 | ||
214 | // FIXME: This can only come from the console at the moment but might not always be true. | 214 | // FIXME: This can only come from the console at the moment but might not always be true. |
215 | if (ConsoleUtil.TryParseConsoleBool(MainConsole.Instance, options["appear-refresh"], out newValue)) | 215 | if (ConsoleUtil.TryParseConsoleBool(MainConsole.Instance, options["appear-refresh"], out newValue)) |
216 | m_scene.SendPeriodicAppearanceUpdates = newValue; | 216 | m_scene.SendPeriodicAppearanceUpdates = newValue; |
217 | } | 217 | } |
218 | 218 | ||
219 | if (options.ContainsKey("client-pos-upd")) | 219 | if (options.ContainsKey("client-pos-upd")) |
@@ -222,7 +222,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
222 | 222 | ||
223 | // FIXME: This can only come from the console at the moment but might not always be true. | 223 | // FIXME: This can only come from the console at the moment but might not always be true. |
224 | if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-pos-upd"], out newValue)) | 224 | if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-pos-upd"], out newValue)) |
225 | m_scene.RootPositionUpdateTolerance = newValue; | 225 | m_scene.RootPositionUpdateTolerance = newValue; |
226 | } | 226 | } |
227 | 227 | ||
228 | if (options.ContainsKey("client-rot-upd")) | 228 | if (options.ContainsKey("client-rot-upd")) |
@@ -231,7 +231,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
231 | 231 | ||
232 | // FIXME: This can only come from the console at the moment but might not always be true. | 232 | // FIXME: This can only come from the console at the moment but might not always be true. |
233 | if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-rot-upd"], out newValue)) | 233 | if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-rot-upd"], out newValue)) |
234 | m_scene.RootRotationUpdateTolerance = newValue; | 234 | m_scene.RootRotationUpdateTolerance = newValue; |
235 | } | 235 | } |
236 | 236 | ||
237 | if (options.ContainsKey("client-vel-upd")) | 237 | if (options.ContainsKey("client-vel-upd")) |
@@ -240,7 +240,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
240 | 240 | ||
241 | // FIXME: This can only come from the console at the moment but might not always be true. | 241 | // FIXME: This can only come from the console at the moment but might not always be true. |
242 | if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-vel-upd"], out newValue)) | 242 | if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-vel-upd"], out newValue)) |
243 | m_scene.RootVelocityUpdateTolerance = newValue; | 243 | m_scene.RootVelocityUpdateTolerance = newValue; |
244 | } | 244 | } |
245 | 245 | ||
246 | if (options.ContainsKey("root-upd-per")) | 246 | if (options.ContainsKey("root-upd-per")) |
@@ -249,7 +249,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
249 | 249 | ||
250 | // FIXME: This can only come from the console at the moment but might not always be true. | 250 | // FIXME: This can only come from the console at the moment but might not always be true. |
251 | if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, options["root-upd-per"], out newValue)) | 251 | if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, options["root-upd-per"], out newValue)) |
252 | m_scene.RootTerseUpdatePeriod = newValue; | 252 | m_scene.RootTerseUpdatePeriod = newValue; |
253 | } | 253 | } |
254 | 254 | ||
255 | if (options.ContainsKey("child-upd-per")) | 255 | if (options.ContainsKey("child-upd-per")) |
@@ -258,7 +258,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
258 | 258 | ||
259 | // FIXME: This can only come from the console at the moment but might not always be true. | 259 | // FIXME: This can only come from the console at the moment but might not always be true. |
260 | if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, options["child-upd-per"], out newValue)) | 260 | if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, options["child-upd-per"], out newValue)) |
261 | m_scene.ChildTerseUpdatePeriod = newValue; | 261 | m_scene.ChildTerseUpdatePeriod = newValue; |
262 | } | 262 | } |
263 | 263 | ||
264 | if (options.ContainsKey("pbackup")) | 264 | if (options.ContainsKey("pbackup")) |
diff --git a/OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs b/OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs index e4a3382..e22c6ea 100644 --- a/OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs +++ b/OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs | |||
@@ -45,7 +45,7 @@ using System.IO; | |||
45 | namespace OpenSim.Region.OptionalModules.World.TreePopulator | 45 | namespace OpenSim.Region.OptionalModules.World.TreePopulator |
46 | { | 46 | { |
47 | /// <summary> | 47 | /// <summary> |
48 | /// Version 2.02 - Still hacky | 48 | /// Version 2.02 - Still hacky |
49 | /// </summary> | 49 | /// </summary> |
50 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "TreePopulatorModule")] | 50 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "TreePopulatorModule")] |
51 | public class TreePopulatorModule : INonSharedRegionModule, ICommandableModule, IVegetationModule | 51 | public class TreePopulatorModule : INonSharedRegionModule, ICommandableModule, IVegetationModule |
@@ -60,7 +60,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
60 | public string m_name; | 60 | public string m_name; |
61 | public Boolean m_frozen; | 61 | public Boolean m_frozen; |
62 | public Tree m_tree_type; | 62 | public Tree m_tree_type; |
63 | public int m_tree_quantity; | 63 | public int m_tree_quantity; |
64 | public float m_treeline_low; | 64 | public float m_treeline_low; |
65 | public float m_treeline_high; | 65 | public float m_treeline_high; |
66 | public Vector3 m_seed_point; | 66 | public Vector3 m_seed_point; |
@@ -78,7 +78,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
78 | { | 78 | { |
79 | } | 79 | } |
80 | 80 | ||
81 | public Copse(string fileName, Boolean planted) | 81 | public Copse(string fileName, Boolean planted) |
82 | { | 82 | { |
83 | Copse cp = (Copse)DeserializeObject(fileName); | 83 | Copse cp = (Copse)DeserializeObject(fileName); |
84 | 84 | ||
@@ -139,7 +139,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
139 | { | 139 | { |
140 | string frozen = (this.m_frozen ? "F" : "A"); | 140 | string frozen = (this.m_frozen ? "F" : "A"); |
141 | 141 | ||
142 | return string.Format("{0}TPM: {1}; {2}; {3:0.0}; {4:0.0}; {5:0.0}; {6}; {7:0.0}; {8:0.0}; {9:0.0}; {10:0.00};", | 142 | return string.Format("{0}TPM: {1}; {2}; {3:0.0}; {4:0.0}; {5:0.0}; {6}; {7:0.0}; {8:0.0}; {9:0.0}; {10:0.00};", |
143 | frozen, | 143 | frozen, |
144 | this.m_name, | 144 | this.m_name, |
145 | this.m_tree_quantity, | 145 | this.m_tree_quantity, |
@@ -156,7 +156,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
156 | 156 | ||
157 | private List<Copse> m_copse; | 157 | private List<Copse> m_copse; |
158 | 158 | ||
159 | private double m_update_ms = 1000.0; // msec between updates | 159 | private double m_update_ms = 1000.0; // msec between updates |
160 | private bool m_active_trees = false; | 160 | private bool m_active_trees = false; |
161 | 161 | ||
162 | Timer CalculateTrees; | 162 | Timer CalculateTrees; |
@@ -174,7 +174,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
174 | 174 | ||
175 | public void Initialise(IConfigSource config) | 175 | public void Initialise(IConfigSource config) |
176 | { | 176 | { |
177 | 177 | ||
178 | // ini file settings | 178 | // ini file settings |
179 | try | 179 | try |
180 | { | 180 | { |
@@ -621,11 +621,11 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
621 | CalculateTrees.Elapsed += CalculateTrees_Elapsed; | 621 | CalculateTrees.Elapsed += CalculateTrees_Elapsed; |
622 | CalculateTrees.Start(); | 622 | CalculateTrees.Start(); |
623 | } | 623 | } |
624 | else | 624 | else |
625 | { | 625 | { |
626 | CalculateTrees.Stop(); | 626 | CalculateTrees.Stop(); |
627 | } | 627 | } |
628 | } | 628 | } |
629 | 629 | ||
630 | private void growTrees() | 630 | private void growTrees() |
631 | { | 631 | { |
@@ -670,7 +670,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
670 | if (copse.m_trees.Count < copse.m_tree_quantity) | 670 | if (copse.m_trees.Count < copse.m_tree_quantity) |
671 | { | 671 | { |
672 | // Tree has grown enough to seed if it has grown by at least 25% of seeded to full grown height | 672 | // Tree has grown enough to seed if it has grown by at least 25% of seeded to full grown height |
673 | if (s_tree.Scale.Z > copse.m_initial_scale.Z + (copse.m_maximum_scale.Z - copse.m_initial_scale.Z) / 4.0) | 673 | if (s_tree.Scale.Z > copse.m_initial_scale.Z + (copse.m_maximum_scale.Z - copse.m_initial_scale.Z) / 4.0) |
674 | { | 674 | { |
675 | if (Util.RandomClass.NextDouble() > 0.75) | 675 | if (Util.RandomClass.NextDouble() > 0.75) |
676 | { | 676 | { |