diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs')
-rwxr-xr-x[-rw-r--r--] | OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs index c04f40c..ded0857 100644..100755 --- a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs | |||
@@ -154,7 +154,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
154 | { | 154 | { |
155 | if (cmd.Length != 2 && cmd.Length < 4) | 155 | if (cmd.Length != 2 && cmd.Length < 4) |
156 | { | 156 | { |
157 | MainConsole.Instance.OutputFormat("Usage: appearance send [<first-name> <last-name>]"); | 157 | MainConsole.Instance.Output("Usage: appearance send [<first-name> <last-name>]"); |
158 | return; | 158 | return; |
159 | } | 159 | } |
160 | 160 | ||
@@ -178,8 +178,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
178 | ScenePresence sp = scene.GetScenePresence(optionalTargetFirstName, optionalTargetLastName); | 178 | ScenePresence sp = scene.GetScenePresence(optionalTargetFirstName, optionalTargetLastName); |
179 | if (sp != null && !sp.IsChildAgent) | 179 | if (sp != null && !sp.IsChildAgent) |
180 | { | 180 | { |
181 | MainConsole.Instance.OutputFormat( | 181 | MainConsole.Instance.Output( |
182 | "Sending appearance information for {0} to all other avatars in {1}", | 182 | "Sending appearance information for {0} to all other avatars in {1}", |
183 | null, | ||
183 | sp.Name, scene.RegionInfo.RegionName); | 184 | sp.Name, scene.RegionInfo.RegionName); |
184 | 185 | ||
185 | scene.AvatarFactory.SendAppearance(sp.UUID); | 186 | scene.AvatarFactory.SendAppearance(sp.UUID); |
@@ -190,8 +191,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
190 | scene.ForEachRootScenePresence( | 191 | scene.ForEachRootScenePresence( |
191 | sp => | 192 | sp => |
192 | { | 193 | { |
193 | MainConsole.Instance.OutputFormat( | 194 | MainConsole.Instance.Output( |
194 | "Sending appearance information for {0} to all other avatars in {1}", | 195 | "Sending appearance information for {0} to all other avatars in {1}", |
196 | null, | ||
195 | sp.Name, scene.RegionInfo.RegionName); | 197 | sp.Name, scene.RegionInfo.RegionName); |
196 | 198 | ||
197 | scene.AvatarFactory.SendAppearance(sp.UUID); | 199 | scene.AvatarFactory.SendAppearance(sp.UUID); |
@@ -206,7 +208,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
206 | { | 208 | { |
207 | if (cmd.Length != 2 && cmd.Length < 4) | 209 | if (cmd.Length != 2 && cmd.Length < 4) |
208 | { | 210 | { |
209 | MainConsole.Instance.OutputFormat("Usage: appearance show [<first-name> <last-name>]"); | 211 | MainConsole.Instance.Output("Usage: appearance show [<first-name> <last-name>]"); |
210 | return; | 212 | return; |
211 | } | 213 | } |
212 | 214 | ||
@@ -229,7 +231,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
229 | { | 231 | { |
230 | ScenePresence sp = scene.GetScenePresence(optionalTargetFirstName, optionalTargetLastName); | 232 | ScenePresence sp = scene.GetScenePresence(optionalTargetFirstName, optionalTargetLastName); |
231 | if (sp != null && !sp.IsChildAgent) | 233 | if (sp != null && !sp.IsChildAgent) |
232 | scene.AvatarFactory.WriteBakedTexturesReport(sp, MainConsole.Instance.OutputFormat); | 234 | scene.AvatarFactory.WriteBakedTexturesReport(sp, MainConsole.Instance.Output); |
233 | } | 235 | } |
234 | else | 236 | else |
235 | { | 237 | { |
@@ -237,8 +239,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
237 | sp => | 239 | sp => |
238 | { | 240 | { |
239 | bool bakedTextureValid = scene.AvatarFactory.ValidateBakedTextureCache(sp); | 241 | bool bakedTextureValid = scene.AvatarFactory.ValidateBakedTextureCache(sp); |
240 | MainConsole.Instance.OutputFormat( | 242 | MainConsole.Instance.Output( |
241 | "{0} baked appearance texture is {1}", sp.Name, bakedTextureValid ? "OK" : "incomplete"); | 243 | "{0} baked appearance texture is {1}", null, sp.Name, bakedTextureValid ? "OK" : "incomplete"); |
242 | } | 244 | } |
243 | ); | 245 | ); |
244 | } | 246 | } |
@@ -250,7 +252,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
250 | { | 252 | { |
251 | if (cmd.Length != 4) | 253 | if (cmd.Length != 4) |
252 | { | 254 | { |
253 | MainConsole.Instance.OutputFormat("Usage: appearance rebake <first-name> <last-name>"); | 255 | MainConsole.Instance.Output("Usage: appearance rebake <first-name> <last-name>"); |
254 | return; | 256 | return; |
255 | } | 257 | } |
256 | 258 | ||
@@ -267,12 +269,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
267 | int rebakesRequested = scene.AvatarFactory.RequestRebake(sp, false); | 269 | int rebakesRequested = scene.AvatarFactory.RequestRebake(sp, false); |
268 | 270 | ||
269 | if (rebakesRequested > 0) | 271 | if (rebakesRequested > 0) |
270 | MainConsole.Instance.OutputFormat( | 272 | MainConsole.Instance.Output( |
271 | "Requesting rebake of {0} uploaded textures for {1} in {2}", | 273 | "Requesting rebake of {0} uploaded textures for {1} in {2}", |
274 | null, | ||
272 | rebakesRequested, sp.Name, scene.RegionInfo.RegionName); | 275 | rebakesRequested, sp.Name, scene.RegionInfo.RegionName); |
273 | else | 276 | else |
274 | MainConsole.Instance.OutputFormat( | 277 | MainConsole.Instance.Output( |
275 | "No texture IDs available for rebake request for {0} in {1}", | 278 | "No texture IDs available for rebake request for {0} in {1}", |
279 | null, | ||
276 | sp.Name, scene.RegionInfo.RegionName); | 280 | sp.Name, scene.RegionInfo.RegionName); |
277 | } | 281 | } |
278 | } | 282 | } |
@@ -283,7 +287,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
283 | { | 287 | { |
284 | if (cmd.Length != 3) | 288 | if (cmd.Length != 3) |
285 | { | 289 | { |
286 | MainConsole.Instance.OutputFormat("Usage: appearance find <uuid-or-start-of-uuid>"); | 290 | MainConsole.Instance.Output("Usage: appearance find <uuid-or-start-of-uuid>"); |
287 | return; | 291 | return; |
288 | } | 292 | } |
289 | 293 | ||
@@ -310,12 +314,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
310 | 314 | ||
311 | if (matchedAvatars.Count == 0) | 315 | if (matchedAvatars.Count == 0) |
312 | { | 316 | { |
313 | MainConsole.Instance.OutputFormat("{0} did not match any baked avatar textures in use", rawUuid); | 317 | MainConsole.Instance.Output("{0} did not match any baked avatar textures in use", null, rawUuid); |
314 | } | 318 | } |
315 | else | 319 | else |
316 | { | 320 | { |
317 | MainConsole.Instance.OutputFormat( | 321 | MainConsole.Instance.Output( |
318 | "{0} matched {1}", | 322 | "{0} matched {1}", |
323 | null, | ||
319 | rawUuid, | 324 | rawUuid, |
320 | string.Join(", ", matchedAvatars.ToList().ConvertAll<string>(sp => sp.Name).ToArray())); | 325 | string.Join(", ", matchedAvatars.ToList().ConvertAll<string>(sp => sp.Name).ToArray())); |
321 | } | 326 | } |
@@ -325,7 +330,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
325 | { | 330 | { |
326 | if (cmd.Length != 2 && cmd.Length < 4) | 331 | if (cmd.Length != 2 && cmd.Length < 4) |
327 | { | 332 | { |
328 | MainConsole.Instance.OutputFormat("Usage: wearables show [<first-name> <last-name>]"); | 333 | MainConsole.Instance.Output("Usage: wearables show [<first-name> <last-name>]"); |
329 | return; | 334 | return; |
330 | } | 335 | } |
331 | 336 | ||
@@ -388,7 +393,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
388 | { | 393 | { |
389 | if (cmd.Length != 4) | 394 | if (cmd.Length != 4) |
390 | { | 395 | { |
391 | MainConsole.Instance.OutputFormat("Usage: wearables check <first-name> <last-name>"); | 396 | MainConsole.Instance.Output("Usage: wearables check <first-name> <last-name>"); |
392 | return; | 397 | return; |
393 | } | 398 | } |
394 | 399 | ||
@@ -410,7 +415,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
410 | AvatarWearable[] wearables = sp.Appearance.Wearables; | 415 | AvatarWearable[] wearables = sp.Appearance.Wearables; |
411 | if(wearables.Count() == 0) | 416 | if(wearables.Count() == 0) |
412 | { | 417 | { |
413 | MainConsole.Instance.OutputFormat("avatar has no wearables"); | 418 | MainConsole.Instance.Output("avatar has no wearables"); |
414 | return; | 419 | return; |
415 | } | 420 | } |
416 | 421 | ||