Pages

Dbtool Fix Script Perfect World

For the past year i've noticed many servers "1.3.6" havnt been able to use the dbtool. I myself couldnt even use it, i used to be able to use it back in the day but now it just gives C++ errors so i debugged it and looked around and noticed if you use directories it fails, i mean \ and / regardless of what kind it just failes. So after removing the directories from the arguments the tool uses it works without a problem and since i dont see many people posting a fix on this ill just throw my two cents into this.this code is very basic, i didnt wanna do all the work but this is a working script you just have to code it to your design, this fix has to be in the same folder as your dbtool and you start it as an sh script so if you throw this into a file and grant permissions lets say fix.sh you would move to that directory in the terminal and type ./fix.sh and it will run.
you should notice that my dbtool is located into my db folder like wdb or dbhomewdb folder with all the files such as auction/base and etc.
Im not promising this will work for everyone but its worked for me and all the people i shared it with.
as always Always backup your db files before you run this script especially on an active server.
Code:

./dbtool dbtool -r -s auction -d 1
mv 1 auction
./dbtool dbtool -r -s base -d 2
mv 2 base
sleep 5
./dbtool dbtool -r -s city -d 3
mv 3 city
./dbtool dbtool -r -s clsconfig -d 4
mv 4 clsconfig
./dbtool dbtool -r -s config -d 5
mv 5 config
./dbtool dbtool -r -s factioninfo -d 6
mv 6 factioninfo
./dbtool dbtool -r -s factionname -d 7
mv 7 factionname
./dbtool dbtool -r -s friends -d 8
mv 8 friends
sleep 5
./dbtool dbtool -r -s gtask -d 9
mv 9 gtask
./dbtool dbtool -r -s inventory -d 10
mv 10 inventory
sleep 5
./dbtool dbtool -r -s mailbox -d 11
mv 11 mailbox
./dbtool dbtool -r -s messages -d 12
mv 12 messages
./dbtool dbtool -r -s order -d 13
mv 13 order
./dbtool dbtool -r -s rolename -d 14
mv 14 rolename
sleep 5
./dbtool dbtool -r -s sellpoint -d 15
mv 15 sellpoint
./dbtool dbtool -r -s shoplog -d 16
mv 16 shoplog
sleep 5
./dbtool dbtool -r -s status -d 17
mv 17 status
sleep 5
./dbtool dbtool -r -s storehouse -d 18
mv 18 storehouse
sleep 5
./dbtool dbtool -r -s task -d 19
mv 19 task
sleep 5
./dbtool dbtool -r -s translog -d 20
mv 20 translog
./dbtool dbtool -r -s user -d 21
mv 21 user
sleep 5
./dbtool dbtool -r -s userfaction -d 22
mv 22 userfaction
sleep 5

./dbtool dbtool -r -s waitdel -d 23
mv 23 waitdel
./dbtool dbtool -r -s equiptment -d 25
mv 25 equiptment
./dbtool dbtool -r -s equipment -d 26
mv 26 equipment
sleep 5
echo "finished"

softsoldier
Ragezone