Event: Reload database from disk

Got an idea, post it here

Event: Reload database from disk

Postby antipasto on Wed Sep 08, 2004 7:46 pm

This is an event that will provide the ability to reload a database from the .XML on disk. It would support modifications to databases done by plugins or external processes while XLobby is running.
antipasto
 
Posts: 44
Joined: Fri May 07, 2004 10:35 pm

Postby maniac's on Thu Sep 09, 2004 8:19 am

Why with an event ??? I think it will be more interesting to do it automatically ! The only problem is that it takes time to load the databases...

It could be done automatically (Steven : System.IO.FileSystemWatcher) !
maniac's
 
Posts: 7
Joined: Wed Jun 30, 2004 8:13 am
Location: Paris - France

Postby antipasto on Thu Sep 09, 2004 1:40 pm

touché
antipasto
 
Posts: 44
Joined: Fri May 07, 2004 10:35 pm

Postby stevenhanna6 on Thu Sep 09, 2004 9:54 pm

uploaded this for antipasto, but anyone else is welcome to try

it now checks the database files for changes, and updates if it sees the files last write time has changed.

http://www.xlobby.com/xlobby2.zip

I didn't know about System.IO.FileSystemWatcher, its pretty neat, but I didnt use it.
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby smeehrrr on Tue Apr 05, 2005 10:41 pm

Anyone know if this ever made it into the mainline builds? Where in the event list would I find it?

I have an XML database that I've constructed outside of Xlobby, and I'd like Xlobby to reload it and pick up the changes when it's edited, but I can't for the life of me get it to work. Category/refresh does nothing, if there's an explicit reload somewhere that would be perfect.
smeehrrr
 
Posts: 18
Joined: Wed May 05, 2004 5:40 am

Postby badubo on Tue Apr 05, 2005 11:24 pm

Is this behaviour (automatic reload of dba) still in the current version?
If yes, does xlobby also refresh all categories associated with the dba?
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium

Postby smeehrrr on Sat Apr 09, 2005 7:53 pm

Anyone? Anyone? Bueller?
smeehrrr
 
Posts: 18
Joined: Wed May 05, 2004 5:40 am