mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Yet another command line option (really need to get all these moved into a config file), this one: "-localasset" (without the quotes) is a temporary hack to use a local asset server when in grid mode. (use with extreme caution if you have more than one sim in a grid)
This commit is contained in:
@@ -83,6 +83,7 @@ namespace OpenSim
|
||||
public bool m_sandbox = false;
|
||||
public bool m_loginserver;
|
||||
public bool user_accounts = false;
|
||||
public bool gridLocalAsset = false;
|
||||
|
||||
protected ConsoleBase m_console;
|
||||
|
||||
@@ -126,7 +127,14 @@ namespace OpenSim
|
||||
}
|
||||
else
|
||||
{
|
||||
GridServers.AssetDll = "OpenSim.GridInterfaces.Remote.dll";
|
||||
if (this.gridLocalAsset)
|
||||
{
|
||||
GridServers.AssetDll = "OpenSim.GridInterfaces.Local.dll";
|
||||
}
|
||||
else
|
||||
{
|
||||
GridServers.AssetDll = "OpenSim.GridInterfaces.Remote.dll";
|
||||
}
|
||||
GridServers.GridDll = "OpenSim.GridInterfaces.Remote.dll";
|
||||
|
||||
m_console.WriteLine("Starting in Grid mode");
|
||||
|
||||
@@ -201,7 +201,6 @@ namespace OpenSim
|
||||
NewSimPack.Info.LookAt = new LLVector3(0.99f, 0.042f, 0); // copied from Avatar.cs - SHOULD BE DYNAMIC!!!!!!!!!!
|
||||
NewSimPack.RegionData = new libsecondlife.Packets.CrossedRegionPacket.RegionDataBlock();
|
||||
NewSimPack.RegionData.RegionHandle = Helpers.UIntsToLong((uint)(Convert.ToInt32(borderingSim["region_locx"]) * 256), (uint)(Convert.ToInt32(borderingSim["region_locy"]) * 256));
|
||||
|
||||
System.Net.IPAddress neighbourIP = System.Net.IPAddress.Parse((string)borderingSim["sim_ip"]);
|
||||
byte[] byteIP = neighbourIP.GetAddressBytes();
|
||||
NewSimPack.RegionData.SimIP = (uint)byteIP[3] << 24;
|
||||
|
||||
Reference in New Issue
Block a user