mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Sqlite datastore should now save the textures and extraparams data (used by sculpties) correctly. [Really need to add a ExtraParams field to the sqlite database though, but for now I have combined their data so that we don't lose backward compatibility, know a couple of people have been using the datastore already].
Now have a rough day/night cycle (the movement of the sun needs to be made smoother but for now it is better than we had I think). Added dalien's patch (issue 294) for saving and loading prims to a xml file (think he will be modifying these to be import/export functions and maybe writing a xml datastore for backups). Some preliminary work on task inventory (ie object's/prim's inventory). Added place holder data for AvatarProperties (ie a avatar's profile). Should we store this sort of data on the user server or have another server for it (a normal webserver should work). Added a few more method to IClientAPI. Sure there is something I'm forgeting.
This commit is contained in:
@@ -340,6 +340,28 @@ namespace OpenSim
|
||||
}
|
||||
break;
|
||||
|
||||
case "save-xml":
|
||||
if (cmdparams.Length > 0)
|
||||
{
|
||||
m_localScenes[0].SavePrimsToXml(cmdparams[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_localScenes[0].SavePrimsToXml("test.xml");
|
||||
}
|
||||
break;
|
||||
|
||||
case "load-xml":
|
||||
if (cmdparams.Length > 0)
|
||||
{
|
||||
m_localScenes[0].LoadPrimsFromXml(cmdparams[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_localScenes[0].LoadPrimsFromXml("test.xml");
|
||||
}
|
||||
break;
|
||||
|
||||
case "terrain":
|
||||
string result = "";
|
||||
foreach (Scene scene in m_localScenes)
|
||||
@@ -357,7 +379,7 @@ namespace OpenSim
|
||||
if (scene.RegionInfo.RegionName.ToLower() == cmdparams[0].ToLower())
|
||||
{
|
||||
string[] tmpCmdparams = new string[cmdparams.Length - 1];
|
||||
cmdparams.CopyTo(tmpCmdparams,1);
|
||||
cmdparams.CopyTo(tmpCmdparams, 1);
|
||||
|
||||
if (!scene.Terrain.RunTerrainCmd(tmpCmdparams, ref result2, scene.RegionInfo.RegionName))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user