Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 03-11-2006, 11:30 PM   #1 (permalink)
 
Join Date: Feb 2006
Location: Wisconsin
Age: 30
Posts: 23
Send a message via ICQ to astrocreep2k
Default WorldXMLExport

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/.
Attached Files
File Type: zip WorldXMLExport-1Beta.zip (9.1 KB, 54 views)
astrocreep2k is offline  
Old 03-21-2006, 07:48 AM   #2 (permalink)
Forum Novice
 
Join Date: Dec 2003
Location: South-Africa
Age: 20
Posts: 165
Default

Sweet!
Thanks, will give it a try
DaLaw66 is offline  
Old 03-21-2006, 08:36 AM   #3 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: New York
Age: 28
Posts: 688
Default

What do you do with the xml files after they have been created? I think i'm missing the big picture of this, sorry.
X-SirSly-X is offline  
Old 03-21-2006, 12:24 PM   #4 (permalink)
Forum Novice
 
nerun's Avatar
 
Join Date: Jun 2003
Location: Brazil
Age: 29
Posts: 801
Default

Interesting, but what it does exactly? I can use this XML file to transfer players from one shard to another? Is it?
nerun is offline  
Old 03-21-2006, 04:30 PM   #5 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by nerun
Interesting, but what it does exactly? I can use this XML file to transfer players from one shard to another? Is it?
from what I read in the original discussion it just exports a ton of information, then that information can be used in someway to display statistics on your shard...
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
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."
Greystar is offline  
Old 03-21-2006, 06:56 PM   #6 (permalink)
Forum Novice
 
Karmageddon's Avatar
 
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 973
Default

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.....
Karmageddon is offline  
Old 03-21-2006, 07:46 PM   #7 (permalink)
 
Join Date: Feb 2006
Location: Wisconsin
Age: 30
Posts: 23
Send a message via ICQ to astrocreep2k
Default

Quote:
Originally Posted by Karmageddon
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.
The only one that is required is the WorldXMLExport.cs. It contains the core stuff, the interfaces, and the account map code. All of the rest perform specific tasks. If you want to create your own exporter, you simply implement the IWorldElementXMLExporter and then register it with the exporter in your Initialize method.

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.
astrocreep2k is offline  
Old 03-21-2006, 07:52 PM   #8 (permalink)
 
Join Date: Feb 2006
Location: Wisconsin
Age: 30
Posts: 23
Send a message via ICQ to astrocreep2k
Default

Quote:
Originally Posted by nerun
Interesting, but what it does exactly? I can use this XML file to transfer players from one shard to another? Is it?
My original idea was to use the data to publish HTML stats and render character images. I still plan on doing that, this is kind of the frst step. All this will do is export data from your server (for now). I would like to at some point, create an app that analyzes the data, and generates reports on usage trends... etc

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?
astrocreep2k is offline  
Old 03-22-2006, 07:31 AM   #9 (permalink)
Forum Novice
 
Karmageddon's Avatar
 
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 973
Default

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.....
Karmageddon is offline  
Old 03-22-2006, 10:56 AM   #10 (permalink)
 
Join Date: Feb 2006
Location: Wisconsin
Age: 30
Posts: 23
Send a message via ICQ to astrocreep2k
Default

Quote:
Originally Posted by Karmageddon
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?
It exports at a set interval, unrelated to the world saves. It will however, stop exporting once Autosave has been disabled (For Server Wars/Backups).

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?
astrocreep2k is offline  
Old 03-22-2006, 01:23 PM   #11 (permalink)
Forum Novice
 
Karmageddon's Avatar
 
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 973
Default

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.....
Karmageddon is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5