Berkeley DB editor

Thats the bdb not an editor romulan. Im talking about visual editor for bdb (Berkeley DB). With your link i can use the db_dump command and i can see the database but i cant edit.
 
it would be awsome to have the possibility to convert them to sql, so it may be later possible to convert existing servers to the emulator to update a server without a wipe
 
it would be awsome to have the possibility to convert them to sql, so it may be later possible to convert existing servers to the emulator to update a server without a wipe

It would be possible, just would have to take some time to figure out all the table structures...

I might do that over the weekend since I won't be busy...
 
It uses a converted format of berkley db 4.2 and can be converted to and from that format using /PWServer/gamedbd/gamedbd.conv.

Thats all we know about it really, so far nobody has managed to get it open. I can only presume you would need to install red hat with that version of berkley db and try it then.

All in all, its way too much work than its worth.
 
It uses a converted format of berkley db 4.2 and can be converted to and from that format using /PWServer/gamedbd/gamedbd.conv.

Thats all we know about it really, so far nobody has managed to get it open. I can only presume you would need to install red hat with that version of berkley db and try it then.

All in all, its way too much work than its worth.

Well... I decided to look into it

First download:
Which contains the libraries gamedbd.conv needs
If running an RPM based distro install it and all done

If running Debian: I'd say use alien to convert it but I had issues with that, you'll still need rpm2cpio for this to work

rpm2cpio compat-db-4.2.52-5.1.i386.rpm | cpio -vid

you'll then get two directories, lib and usr you ONLY need the /lib dir and this is 32 bit, so make sure you put it in the proper location if running 64 bit debian/ubuntu/w/e seeing as how I'm running Ubuntu "cp lib/* /lib32" worked just fine

Then after that "cd /PWServer/gamedbd/; ./gamedbd.conv gamesys.conf tobdb" worked!

Now to work on figuring out a way to get it all into SQL (which will make creating a database for Angelica-Emulator so much easier)
 
very interesting.

I converted mine now and it says:
Code:
root@devastation:/PWServer/gamedbd# ./gamedbd.conv gamesys.conf tobdb
read compress status from config file, compress=1
convert wdb format to bdb format
read compress status from storage, compress=1
convert wdb to bdb waitdel:
convert wdb to bdb userfaction:
        converting database records counter 1...
convert wdb to bdb user:
convert wdb to bdb translog:
convert wdb to bdb task:
convert wdb to bdb storehouse:
convert wdb to bdb status:
convert wdb to bdb shoplog:
convert wdb to bdb sellpoint:
convert wdb to bdb rolename:
convert wdb to bdb order:
convert wdb to bdb messages:
convert wdb to bdb mailbox:
convert wdb to bdb inventory:
convert wdb to bdb gtask:
convert wdb to bdb friends:
convert wdb to bdb factionname:
convert wdb to bdb factioninfo:
convert wdb to bdb equipment:
convert wdb to bdb config:
convert wdb to bdb clsconfig:
convert wdb to bdb city:
convert wdb to bdb base:
convert wdb to bdb auction:
read compress status from storage, compress=1

and created a decompressed version under /dbf/dbhome/dbdata which i can open in hex editor but thats about it.

Btw this might be useful:
 
Last edited:
very interesting.

I converted mine now and it says:
Code:
root@devastation:/PWServer/gamedbd# ./gamedbd.conv gamesys.conf tobdb
read compress status from config file, compress=1
convert wdb format to bdb format
read compress status from storage, compress=1
convert wdb to bdb waitdel:
convert wdb to bdb userfaction:
        converting database records counter 1...
convert wdb to bdb user:
convert wdb to bdb translog:
convert wdb to bdb task:
convert wdb to bdb storehouse:
convert wdb to bdb status:
convert wdb to bdb shoplog:
convert wdb to bdb sellpoint:
convert wdb to bdb rolename:
convert wdb to bdb order:
convert wdb to bdb messages:
convert wdb to bdb mailbox:
convert wdb to bdb inventory:
convert wdb to bdb gtask:
convert wdb to bdb friends:
convert wdb to bdb factionname:
convert wdb to bdb factioninfo:
convert wdb to bdb equipment:
convert wdb to bdb config:
convert wdb to bdb clsconfig:
convert wdb to bdb city:
convert wdb to bdb base:
convert wdb to bdb auction:
read compress status from storage, compress=1

and created a decompressed version under /dbf/dbhome/dbdata which i can open in hex editor but thats about it.

Btw this might be useful:

HashMan does seem interesting... I'll keep on looking into this
 
It doesnt seem to fit any database format i can find, but i can see my name and player info inside with simple hex editor.

Maybe a bdb->sql tool for PW can be developed for it?

Ill keep looking for something to open it. Hashman gave me a page full of errors on the make command.

They don't seem to fit any pattern at all, each time i convert the same database without server online it gives completely different file headers???
 
Last edited:
It doesnt seem to fit any database format i can find, but i can see my name and player info inside with simple hex editor.

Maybe a bdb->sql tool for PW can be developed for it?

Ill keep looking for something to open it.

They don't seem to fit any pattern at all, each time i convert the same database without server online it gives completely different file headers???

time based maybe?
 
how much of it can be time based.

check out db4.2-util package.
(apt-get install db4.2-util)

Code:
root@devastation:/dbf/dbhome/dbdata# db4.2_load -f base base
db_load: line 1: unexpected format

throws it back at me.
 
Last edited:
if anybody can get this into an editor many thankyous will come your way.
 

Attachments

i can just tell you that it was created 03/24/2011 23:34:38
and there was some change 03/15/2011 23:03:25, but thats just stuff you can get with any hex editor.
i think it may be possible to make a tool like sEledit for uncompressed dbs, but that city db has too few data to find any structures.
 
Last edited:
in theory it should open with berkley db 4.2
 
Back