* Added ServiceURLs to AgentCircuitData.
* Fixed a configuration buglet introduced yesterday in StandaloneHypergrid.ini.slimupdates
parent
bd4d94a4f5
commit
a7309d90da
|
@ -101,6 +101,8 @@ namespace OpenSim.Framework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 startpos;
|
public Vector3 startpos;
|
||||||
|
|
||||||
|
public Dictionary<string, object> ServiceURLs;
|
||||||
|
|
||||||
public AgentCircuitData()
|
public AgentCircuitData()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -187,6 +189,16 @@ namespace OpenSim.Framework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ServiceURLs != null && ServiceURLs.Count > 0)
|
||||||
|
{
|
||||||
|
OSDArray urls = new OSDArray(ServiceURLs.Count * 2);
|
||||||
|
foreach (KeyValuePair<string, object> kvp in ServiceURLs)
|
||||||
|
{
|
||||||
|
urls.Add(OSD.FromString(kvp.Key));
|
||||||
|
urls.Add(OSD.FromString((kvp.Value == null) ? string.Empty : kvp.Value.ToString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return args;
|
return args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -270,6 +282,15 @@ namespace OpenSim.Framework
|
||||||
Appearance.SetAttachments(attachments);
|
Appearance.SetAttachments(attachments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ServiceURLs = new Dictionary<string, object>();
|
||||||
|
if (args.ContainsKey("service_urls") && args["service_urls"] != null && (args["service_urls"]).Type == OSDType.Array)
|
||||||
|
{
|
||||||
|
OSDArray urls = (OSDArray)(args["service_urls"]);
|
||||||
|
for (int i = 0; i < urls.Count / 2; i++)
|
||||||
|
{
|
||||||
|
ServiceURLs[urls[i * 2].AsString()] = urls[(i * 2) + 1].AsString();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,8 +86,6 @@ namespace OpenSim.Server.Handlers.Hypergrid
|
||||||
//string portstr = (string)requestData["port"];
|
//string portstr = (string)requestData["port"];
|
||||||
string name = (string)requestData["region_name"];
|
string name = (string)requestData["region_name"];
|
||||||
|
|
||||||
m_log.DebugFormat("[HGrid]: Hyperlink request");
|
|
||||||
|
|
||||||
UUID regionID = UUID.Zero;
|
UUID regionID = UUID.Zero;
|
||||||
string imageURL = string.Empty;
|
string imageURL = string.Empty;
|
||||||
ulong regionHandle = 0;
|
ulong regionHandle = 0;
|
||||||
|
|
|
@ -70,7 +70,7 @@ namespace OpenSim.Services.Connectors.Hypergrid
|
||||||
|
|
||||||
XmlRpcRequest request = new XmlRpcRequest("link_region", paramList);
|
XmlRpcRequest request = new XmlRpcRequest("link_region", paramList);
|
||||||
string uri = "http://" + info.ExternalEndPoint.Address + ":" + info.HttpPort + "/";
|
string uri = "http://" + info.ExternalEndPoint.Address + ":" + info.HttpPort + "/";
|
||||||
m_log.Debug("[HGrid]: Linking to " + uri);
|
//m_log.Debug("[HGrid]: Linking to " + uri);
|
||||||
XmlRpcResponse response = null;
|
XmlRpcResponse response = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -159,6 +159,7 @@ namespace OpenSim.Services.HypergridService
|
||||||
string reason = string.Empty;
|
string reason = string.Empty;
|
||||||
if (m_HypergridService.TryLinkRegionToCoords(mapName, xloc, yloc, out reason) == null)
|
if (m_HypergridService.TryLinkRegionToCoords(mapName, xloc, yloc, out reason) == null)
|
||||||
MainConsole.Instance.Output("Failed to link region: " + reason);
|
MainConsole.Instance.Output("Failed to link region: " + reason);
|
||||||
|
MainConsole.Instance.Output("Hyperlink estalished");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -438,6 +438,7 @@ namespace OpenSim.Services.LLLoginService
|
||||||
aCircuit.SecureSessionID = secureSession;
|
aCircuit.SecureSessionID = secureSession;
|
||||||
aCircuit.SessionID = session;
|
aCircuit.SessionID = session;
|
||||||
aCircuit.startpos = position;
|
aCircuit.startpos = position;
|
||||||
|
aCircuit.ServiceURLs = account.ServiceURLs;
|
||||||
|
|
||||||
if (simConnector.CreateAgent(region, aCircuit, 0, out reason))
|
if (simConnector.CreateAgent(region, aCircuit, 0, out reason))
|
||||||
return aCircuit;
|
return aCircuit;
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
Realm = "regions"
|
Realm = "regions"
|
||||||
|
|
||||||
[HypergridService]
|
[HypergridService]
|
||||||
GridService = "OpenSim.Region.CoreModules.dll:LocalGridServicesConnector"
|
GridService = "OpenSim.Services.GridService.dll:GridService"
|
||||||
AssetService = "OpenSim.Services.AssetService.dll:AssetService"
|
AssetService = "OpenSim.Services.AssetService.dll:AssetService"
|
||||||
|
|
||||||
[GatekeeperService]
|
[GatekeeperService]
|
||||||
|
|
Loading…
Reference in New Issue