Merge branch 'master' of /home/opensim/var/repo/opensim
commit
8ef85f2a38
|
@ -79,7 +79,11 @@ namespace OpenSim.Framework.Console
|
||||||
public List<CommandDelegate> fn;
|
public List<CommandDelegate> fn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public const string GeneralHelpText = "For more information, type 'help <item>' where <item> is one of the following categories:";
|
public const string GeneralHelpText
|
||||||
|
= "To enter an argument that contains spaces, surround the argument with double quotes.\nFor example, show object name \"My long object name\"\n";
|
||||||
|
|
||||||
|
public const string ItemHelpText
|
||||||
|
= "For more information, type 'help <item>' where <item> is one of the following:";
|
||||||
|
|
||||||
/// <value>
|
/// <value>
|
||||||
/// Commands organized by keyword in a tree
|
/// Commands organized by keyword in a tree
|
||||||
|
@ -108,7 +112,9 @@ namespace OpenSim.Framework.Console
|
||||||
// General help
|
// General help
|
||||||
if (helpParts.Count == 0)
|
if (helpParts.Count == 0)
|
||||||
{
|
{
|
||||||
|
help.Add(""); // Will become a newline.
|
||||||
help.Add(GeneralHelpText);
|
help.Add(GeneralHelpText);
|
||||||
|
help.Add(ItemHelpText);
|
||||||
help.AddRange(CollectModulesHelp(tree));
|
help.AddRange(CollectModulesHelp(tree));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -132,7 +138,7 @@ namespace OpenSim.Framework.Console
|
||||||
// Check modules first to see if we just need to display a list of those commands
|
// Check modules first to see if we just need to display a list of those commands
|
||||||
if (TryCollectModuleHelp(originalHelpRequest, help))
|
if (TryCollectModuleHelp(originalHelpRequest, help))
|
||||||
{
|
{
|
||||||
help.Insert(0, GeneralHelpText);
|
help.Insert(0, ItemHelpText);
|
||||||
return help;
|
return help;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,7 @@ namespace OpenSim
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void RegisterConsoleCommands()
|
private void RegisterConsoleCommands()
|
||||||
{
|
{
|
||||||
m_console.Commands.AddCommand("Regions", false, "force update",
|
m_console.Commands.AddCommand("Objects", false, "force update",
|
||||||
"force update",
|
"force update",
|
||||||
"Force the update of all objects on clients",
|
"Force the update of all objects on clients",
|
||||||
HandleForceUpdate);
|
HandleForceUpdate);
|
||||||
|
@ -306,7 +306,7 @@ namespace OpenSim
|
||||||
+ " If this is not given then the oar is saved to region.oar in the current directory.",
|
+ " If this is not given then the oar is saved to region.oar in the current directory.",
|
||||||
SaveOar);
|
SaveOar);
|
||||||
|
|
||||||
m_console.Commands.AddCommand("Regions", false, "edit scale",
|
m_console.Commands.AddCommand("Objects", false, "edit scale",
|
||||||
"edit scale <name> <x> <y> <z>",
|
"edit scale <name> <x> <y> <z>",
|
||||||
"Change the scale of a named prim", HandleEditScale);
|
"Change the scale of a named prim", HandleEditScale);
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ namespace OpenSim
|
||||||
"show ratings",
|
"show ratings",
|
||||||
"Show rating data", HandleShow);
|
"Show rating data", HandleShow);
|
||||||
|
|
||||||
m_console.Commands.AddCommand("Regions", false, "backup",
|
m_console.Commands.AddCommand("Objects", false, "backup",
|
||||||
"backup",
|
"backup",
|
||||||
"Persist currently unsaved object changes immediately instead of waiting for the normal persistence call.", RunCommand);
|
"Persist currently unsaved object changes immediately instead of waiting for the normal persistence call.", RunCommand);
|
||||||
|
|
||||||
|
@ -410,7 +410,7 @@ namespace OpenSim
|
||||||
"modules unload <name>",
|
"modules unload <name>",
|
||||||
"Unload a module", HandleModules);
|
"Unload a module", HandleModules);
|
||||||
|
|
||||||
m_console.Commands.AddCommand("Regions", false, "kill uuid",
|
m_console.Commands.AddCommand("Objects", false, "kill uuid",
|
||||||
"kill uuid <UUID>",
|
"kill uuid <UUID>",
|
||||||
"Kill an object by UUID", KillUUID);
|
"Kill an object by UUID", KillUUID);
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,45 +78,49 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
m_scene = scene;
|
m_scene = scene;
|
||||||
m_console = MainConsole.Instance;
|
m_console = MainConsole.Instance;
|
||||||
|
|
||||||
m_console.Commands.AddCommand("Regions", false, "delete object owner",
|
m_console.Commands.AddCommand("Objects", false, "delete object owner",
|
||||||
"delete object owner <UUID>",
|
"delete object owner <UUID>",
|
||||||
"Delete a scene object by owner", HandleDeleteObject);
|
"Delete a scene object by owner", HandleDeleteObject);
|
||||||
m_console.Commands.AddCommand("Regions", false, "delete object creator",
|
|
||||||
|
m_console.Commands.AddCommand("Objects", false, "delete object creator",
|
||||||
"delete object creator <UUID>",
|
"delete object creator <UUID>",
|
||||||
"Delete a scene object by creator", HandleDeleteObject);
|
"Delete a scene object by creator", HandleDeleteObject);
|
||||||
m_console.Commands.AddCommand("Regions", false, "delete object uuid",
|
|
||||||
|
m_console.Commands.AddCommand("Objects", false, "delete object uuid",
|
||||||
"delete object uuid <UUID>",
|
"delete object uuid <UUID>",
|
||||||
"Delete a scene object by uuid", HandleDeleteObject);
|
"Delete a scene object by uuid", HandleDeleteObject);
|
||||||
m_console.Commands.AddCommand("Regions", false, "delete object name",
|
|
||||||
|
m_console.Commands.AddCommand("Objects", false, "delete object name",
|
||||||
"delete object name <name>",
|
"delete object name <name>",
|
||||||
"Delete a scene object by name", HandleDeleteObject);
|
"Delete a scene object by name", HandleDeleteObject);
|
||||||
m_console.Commands.AddCommand("Regions", false, "delete object outside",
|
|
||||||
|
m_console.Commands.AddCommand("Objects", false, "delete object outside",
|
||||||
"delete object outside",
|
"delete object outside",
|
||||||
"Delete all scene objects outside region boundaries", HandleDeleteObject);
|
"Delete all scene objects outside region boundaries", HandleDeleteObject);
|
||||||
|
|
||||||
m_console.Commands.AddCommand(
|
m_console.Commands.AddCommand(
|
||||||
"Regions",
|
"Objects",
|
||||||
false,
|
false,
|
||||||
"show object uuid",
|
"show object uuid",
|
||||||
"show object uuid <UUID>",
|
"show object uuid <UUID>",
|
||||||
"Show details of a scene object with the given UUID", HandleShowObjectByUuid);
|
"Show details of a scene object with the given UUID", HandleShowObjectByUuid);
|
||||||
|
|
||||||
m_console.Commands.AddCommand(
|
m_console.Commands.AddCommand(
|
||||||
"Regions",
|
"Objects",
|
||||||
false,
|
false,
|
||||||
"show object name",
|
"show object name",
|
||||||
"show object name <name>",
|
"show object name <name>",
|
||||||
"Show details of scene objects with the given name", HandleShowObjectByName);
|
"Show details of scene objects with the given name", HandleShowObjectByName);
|
||||||
|
|
||||||
m_console.Commands.AddCommand(
|
m_console.Commands.AddCommand(
|
||||||
"Regions",
|
"Objects",
|
||||||
false,
|
false,
|
||||||
"show part uuid",
|
"show part uuid",
|
||||||
"show part uuid <UUID>",
|
"show part uuid <UUID>",
|
||||||
"Show details of a scene object parts with the given UUID", HandleShowPartByUuid);
|
"Show details of a scene object parts with the given UUID", HandleShowPartByUuid);
|
||||||
|
|
||||||
m_console.Commands.AddCommand(
|
m_console.Commands.AddCommand(
|
||||||
"Regions",
|
"Objects",
|
||||||
false,
|
false,
|
||||||
"show part name",
|
"show part name",
|
||||||
"show part name <name>",
|
"show part name <name>",
|
||||||
|
@ -271,6 +275,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
sb.AppendFormat("Description: {0}\n", so.Description);
|
sb.AppendFormat("Description: {0}\n", so.Description);
|
||||||
sb.AppendFormat("Location: {0} @ {1}\n", so.AbsolutePosition, so.Scene.RegionInfo.RegionName);
|
sb.AppendFormat("Location: {0} @ {1}\n", so.AbsolutePosition, so.Scene.RegionInfo.RegionName);
|
||||||
sb.AppendFormat("Parts: {0}\n", so.PrimCount);
|
sb.AppendFormat("Parts: {0}\n", so.PrimCount);
|
||||||
|
sb.AppendFormat("Flags: {0}\n", so.RootPart.Flags);
|
||||||
|
|
||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
|
@ -283,6 +288,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
sb.AppendFormat("Parent: {0}",
|
sb.AppendFormat("Parent: {0}",
|
||||||
sop.IsRoot ? "Is Root\n" : string.Format("{0} {1}\n", sop.ParentGroup.Name, sop.ParentGroup.UUID));
|
sop.IsRoot ? "Is Root\n" : string.Format("{0} {1}\n", sop.ParentGroup.Name, sop.ParentGroup.UUID));
|
||||||
sb.AppendFormat("Link number: {0}\n", sop.LinkNum);
|
sb.AppendFormat("Link number: {0}\n", sop.LinkNum);
|
||||||
|
sb.AppendFormat("Flags: {0}\n", sop.Flags);
|
||||||
|
|
||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
private void InventoryRunDeleteTimer(object sender, ElapsedEventArgs e)
|
private void InventoryRunDeleteTimer(object sender, ElapsedEventArgs e)
|
||||||
{
|
{
|
||||||
m_log.Debug("[ASYNC DELETER]: Starting send to inventory loop");
|
// m_log.Debug("[ASYNC DELETER]: Starting send to inventory loop");
|
||||||
|
|
||||||
// We must set appearance parameters in the en_US culture in order to avoid issues where values are saved
|
// We must set appearance parameters in the en_US culture in order to avoid issues where values are saved
|
||||||
// in a culture where decimal points are commas and then reloaded in a culture which just treats them as
|
// in a culture where decimal points are commas and then reloaded in a culture which just treats them as
|
||||||
|
@ -147,9 +147,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
x = m_inventoryDeletes.Dequeue();
|
x = m_inventoryDeletes.Dequeue();
|
||||||
|
|
||||||
m_log.DebugFormat(
|
// m_log.DebugFormat(
|
||||||
"[ASYNC DELETER]: Sending object to user's inventory, action {1}, count {2}, {0} item(s) remaining.",
|
// "[ASYNC DELETER]: Sending object to user's inventory, action {1}, count {2}, {0} item(s) remaining.",
|
||||||
left, x.action, x.objectGroups.Count);
|
// left, x.action, x.objectGroups.Count);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -185,7 +185,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
e.StackTrace);
|
e.StackTrace);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_log.Debug("[ASYNC DELETER]: No objects left in inventory send queue.");
|
// m_log.Debug("[ASYNC DELETER]: No objects left in inventory send queue.");
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1401,9 +1401,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
{
|
{
|
||||||
response = WebUtil.PostToService(m_groupsServerURI, requestArgs);
|
response = WebUtil.PostToService(m_groupsServerURI, requestArgs);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
m_log.InfoFormat("[SIMIAN GROUPS CONNECTOR] request failed {0}",CacheKey);
|
m_log.ErrorFormat("[SIMIAN GROUPS CONNECTOR]: request failed {0}", CacheKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
// and cache the response
|
// and cache the response
|
||||||
|
|
Loading…
Reference in New Issue