mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Modules active. Tested HGGridConnector in standalone only for now. Modules commands work.
This commit is contained in:
@@ -38,11 +38,15 @@
|
||||
<RegionModule id="RemoteLandServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Land.RemoteLandServicesConnector" />
|
||||
<RegionModule id="LocalInterregionComms" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Interregion.LocalInterregionComms" />
|
||||
<RegionModule id="RESTInterregionComms" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Interregion.RESTInterregionComms" />
|
||||
<RegionModule id="LocalGridServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.LocalGridServicesConnector" />
|
||||
<RegionModule id="RemoteGridServicesConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.RemoteGridServicesConnector" />
|
||||
<RegionModule id="HGGridConnector" type="OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.HGGridConnector" />
|
||||
<!-- Service connectors IN modules -->
|
||||
<RegionModule id="AssetServiceInConnectorModule" type="OpenSim.Region.CoreModules.ServiceConnectorsIn.Asset.AssetServiceInConnectorModule" />
|
||||
<RegionModule id="InventoryServiceInConnectorModule" type="OpenSim.Region.CoreModules.ServiceConnectorsIn.Inventory.InventoryServiceInConnectorModule" />
|
||||
<RegionModule id="LandServiceInConnectorModule" type="OpenSim.Region.CoreModules.ServiceConnectorsIn.Land.LandServiceInConnectorModule" />
|
||||
<RegionModule id="NeighbourServiceInConnectorModule" type="OpenSim.Region.CoreModules.ServiceConnectorsIn.Neighbour.NeighbourServiceInConnectorModule" /> \
|
||||
<RegionModule id="HypergridServiceInConnectorModule" type="OpenSim.Region.CoreModules.ServiceConnectorsIn.Grid.HypergridServiceInConnectorModule" /> \
|
||||
|
||||
</Extension>
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Grid
|
||||
m_Enabled = moduleConfig.GetBoolean("HypergridServiceInConnector", false);
|
||||
if (m_Enabled)
|
||||
{
|
||||
m_log.Info("[INVENTORY IN CONNECTOR]: Hypergrid Service In Connector enabled");
|
||||
m_log.Info("[HGGRID IN CONNECTOR]: Hypergrid Service In Connector enabled");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
|
||||
private void RunHGCommand(string command, string[] cmdparams)
|
||||
{
|
||||
if (command.Equals("link-mapping"))
|
||||
if (command.Equals("linkk-mapping"))
|
||||
{
|
||||
if (cmdparams.Length == 2)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (command.Equals("link-region"))
|
||||
else if (command.Equals("linkk-region"))
|
||||
{
|
||||
if (cmdparams.Length < 3)
|
||||
{
|
||||
@@ -181,7 +181,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (command.Equals("unlink-region"))
|
||||
else if (command.Equals("unlinkk-region"))
|
||||
{
|
||||
if (cmdparams.Length < 1)
|
||||
{
|
||||
|
||||
@@ -156,18 +156,27 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
if (!m_Initialized)
|
||||
{
|
||||
m_HypergridServiceConnector = new HypergridServiceConnector(scene.AssetService);
|
||||
HGCommands hgCommands = new HGCommands(this, scene);
|
||||
MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "linkk-region",
|
||||
"link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>",
|
||||
"Link a hypergrid region", hgCommands.RunCommand);
|
||||
MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "unlinkk-region",
|
||||
"unlink-region <local name> or <HostName>:<HttpPort> <cr>",
|
||||
"Unlink a hypergrid region", hgCommands.RunCommand);
|
||||
MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "linkk-mapping", "link-mapping [<x> <y>] <cr>",
|
||||
"Set local coordinate to map HG regions to", hgCommands.RunCommand);
|
||||
m_Initialized = true;
|
||||
}
|
||||
|
||||
HGCommands hgCommands = new HGCommands(this, scene);
|
||||
scene.AddCommand("HG", "link-region",
|
||||
"link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>",
|
||||
"Link a hypergrid region", hgCommands.RunCommand);
|
||||
scene.AddCommand("HG", "unlink-region",
|
||||
"unlink-region <local name> or <HostName>:<HttpPort> <cr>",
|
||||
"Unlink a hypergrid region", hgCommands.RunCommand);
|
||||
scene.AddCommand("HG", "link-mapping", "link-mapping [<x> <y>] <cr>",
|
||||
"Set local coordinate to map HG regions to", hgCommands.RunCommand);
|
||||
|
||||
//scene.AddCommand("HGGridServicesConnector", "linkk-region",
|
||||
// "link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>",
|
||||
// "Link a hypergrid region", hgCommands.RunCommand);
|
||||
//scene.AddCommand("HGGridServicesConnector", "unlinkk-region",
|
||||
// "unlink-region <local name> or <HostName>:<HttpPort> <cr>",
|
||||
// "Unlink a hypergrid region", hgCommands.RunCommand);
|
||||
//scene.AddCommand("HGGridServicesConnector", "linkk-mapping", "link-mapping [<x> <y>] <cr>",
|
||||
// "Set local coordinate to map HG regions to", hgCommands.RunCommand);
|
||||
|
||||
}
|
||||
|
||||
@@ -407,6 +416,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
return null;
|
||||
}
|
||||
|
||||
// From the map search and secondlife://blah
|
||||
public SimpleRegionInfo TryLinkRegion(Scene m_scene, IClientAPI client, string mapName)
|
||||
{
|
||||
uint xloc = (uint)(random.Next(0, Int16.MaxValue));
|
||||
|
||||
@@ -50,6 +50,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
|
||||
private bool m_Enabled = false;
|
||||
|
||||
public LocalGridServicesConnector()
|
||||
{
|
||||
}
|
||||
|
||||
public LocalGridServicesConnector(IConfigSource source)
|
||||
{
|
||||
InitialiseService(source);
|
||||
|
||||
@@ -51,6 +51,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
|
||||
private IGridService m_LocalGridService;
|
||||
|
||||
public RemoteGridServicesConnector()
|
||||
{
|
||||
}
|
||||
|
||||
public RemoteGridServicesConnector(IConfigSource source)
|
||||
{
|
||||
InitialiseServices(source);
|
||||
|
||||
Reference in New Issue
Block a user