|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Description:
This is a beta release of my XML export scripts. It currently exports accounts,characters,guilds,online users, and server resource statistics. It has been designed to export the data slowly, at a configurable rate to minimize impact in cases when server resources are limited. It will also maintain snapshots of the exported data for analysis. Note: Please note, this is beta. I do not operate a large shard, so I am unable to test this in a high-volume environment. So use with caution. Installation/Setup: Extract the "WorldXMLExport" folder from the zip file and place it within the RunUO scripts directory. Once you start RunUO the exporter will begin to export the XML to the /Data/WorldExportXML/. |
|
|
|
|
|
#5 (permalink) | ||
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
Quote:
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." |
||
|
|
|
|
#6 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 973
|
Do you need all of the files in for this to operate or can you just use one of the exporters without the others? The reason I ask this is because I have an idea I want to do and this is exactly something I might be able to use for this.
__________________
![]() Your fate is sealed in the end of Time..... |
|
|
|
|
#7 (permalink) | |
|
Quote:
Code:
public class MyXMLExporter : IWorldElementXMLExporter
{
private string _rootPath;
public static void Initialize()
{
WorldXMLExporter.GetCurrent().AddExporter( new MyXMLExporter() );
}
void IWorldElementXMLExporter.ExportXML()
{
// Do export here
}
bool IWorldElementXMLExporter.InitExporter(string rootPath)
{
_rootPath = rootPath;
//Do any exporter initalization here
return true;
}
string IWorldElementXMLExporter.GetName()
{
return "My Exporter";
}
}
__________________
Our vibrations were getting nasty. But why? Was there no communication in this car? Had we deteriorated to the level of dumb beasts? Last edited by astrocreep2k; 03-21-2006 at 07:59 PM. |
||
|
|
|
|
#8 (permalink) | |
|
Quote:
Thats not to say the data could not also be used to transfer accounts. I was hoping it would be used for all sorts of stuff. I for sure had data transfer between servers/shards in mind when I created it. Ideas are always welcome. My original post containing the project concept can be found here: World XML Export
__________________
Our vibrations were getting nasty. But why? Was there no communication in this car? Had we deteriorated to the level of dumb beasts? |
||
|
|
|
|
#9 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 973
|
Ok looking at the WorldXMLExport file I have another question.... Does this only export the XML at worldsaves or is more often and if it is how can it be set to export at a longer interval?
__________________
![]() Your fate is sealed in the end of Time..... |
|
|
|
|
#10 (permalink) | |
|
Quote:
You can adjust the interval by changing the value in WorldXMLExport.cs Changing the following will change the global interval. private const int INTERVAL_SECONDS = 10; But keep this in mind.. this would change how often all registered exporters run. If you plan to write an exporter that should run less often, you may want to take a look at how OnlineStatsExporter.cs works. There is a const called STATS_INTERVAL_MULTIPLIER, which specifiys how many ticks it should skip before running. Right now it will skip 6 ticks before processing. The Account exporter on the other hand, runs every tick. This is because you may have alot of accounts to export, but only want online stats every couple of minutes. Right now this is how its setup: Global Interval: 10 seconds Online Stats Multiplier: 6 (6x10- export occurs every minute) Account Exporter:No multiplier (Exports 1 account every 10 seconds) Guild Exporter Multiplier: 2 (2x10- exports 1 guild every 20 seconds).
__________________
Our vibrations were getting nasty. But why? Was there no communication in this car? Had we deteriorated to the level of dumb beasts? |
||
|
|
|
|
#11 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 973
|
Ok thank you very much for the explanation on the intervals. It is fine the way it is set for now.... I just didn't understand the whole export interval and how it worked.
__________________
![]() Your fate is sealed in the end of Time..... |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|