mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
From: Dr Scofield <hud@zurich.ibm.com>
the attached patch set is centered around RemoteAdminPlugin and focuses
mainly on making it more robust (i.e. more parameter checking and better
error reporting) but also we've re-implemented the LoadTerrain stuff that
got disabled during the terrain code reworking:
* missing PostInitialize() calls on region modules that were loaded
for regions created via RemoteAdmin's CreateRegion XmlRpc call
* re-implements RemoteAdmin's LoadTerrain XmlRpc call (probably lost
during the TerrainModule rework)
* adds lots more parameter checking and error reporting to RemoteAdmin
* adds a read-only property to RegionApplicationBase so that we can
access the CommsManager
* adds Exceptions to TerrainModule so that we get better error case
feedback (and can report more meaningful errors in turn)
* adds a CheckForTerrainUpdate() call to
TerrainModule.LoadFromFile() to make terrain changes effective
* adds TryGetCurrentScene(LLUUID) to SceneManager so that we can
retrieve Scenes not only by name but also by LLUUID
cheers,
dr scofield
This commit is contained in:
@@ -62,14 +62,16 @@ namespace OpenSim.Region.Environment
|
||||
}
|
||||
}
|
||||
|
||||
public void PickupModules(Scene scene, string moduleDir)
|
||||
public List<IRegionModule> PickupModules(Scene scene, string moduleDir)
|
||||
{
|
||||
DirectoryInfo dir = new DirectoryInfo(moduleDir);
|
||||
List<IRegionModule> modules = new List<IRegionModule>();
|
||||
|
||||
foreach (FileInfo fileInfo in dir.GetFiles("*.dll"))
|
||||
{
|
||||
LoadRegionModules(fileInfo.FullName, scene);
|
||||
modules.AddRange(LoadRegionModules(fileInfo.FullName, scene));
|
||||
}
|
||||
return modules;
|
||||
}
|
||||
|
||||
public void LoadDefaultSharedModules()
|
||||
@@ -190,9 +192,10 @@ namespace OpenSim.Region.Environment
|
||||
}
|
||||
}
|
||||
|
||||
public void LoadRegionModules(string dllName, Scene scene)
|
||||
public List<IRegionModule> LoadRegionModules(string dllName, Scene scene)
|
||||
{
|
||||
IRegionModule[] modules = LoadModules(dllName);
|
||||
List<IRegionModule> initializedModules = new List<IRegionModule>();
|
||||
|
||||
if (modules.Length > 0)
|
||||
{
|
||||
@@ -203,6 +206,7 @@ namespace OpenSim.Region.Environment
|
||||
{
|
||||
m_log.InfoFormat("[MODULES]: [{0}]: Initializing.", module.Name);
|
||||
InitializeModule(module, scene);
|
||||
initializedModules.Add(module);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -211,6 +215,7 @@ namespace OpenSim.Region.Environment
|
||||
}
|
||||
}
|
||||
}
|
||||
return initializedModules;
|
||||
}
|
||||
|
||||
public void LoadRegionModule(string dllName, string moduleName, Scene scene)
|
||||
|
||||
Reference in New Issue
Block a user