GUIDE: Automatically clear WDB every launch (Windows)

Post Reply
User avatar
Distortedshadow
Posts: 21

GUIDE: Automatically clear WDB every launch (Windows)

Post by Distortedshadow » Sun May 12, 2019 12:42 am

Want to be sure you're using the latest and greatest of Turtle Tech (tm) without having to manually delete your WDB folder every so often or when switching between servers? Well, there's a few methods to 'fix' this issue:

Very Easy Method

1. Delete WDB folder
2. Create a new Textfile
3. Name it "WDB" and remove .txt at the end (if you can't see file extensions, you'll have to enable that. Google it, it depends on your OS)

Easy Method

Change WDB's permissions so that nobody can write to it. To do this, right click WDB, hit Properties, go to the Security tab, hit Edit, and you should see a window like this. Change every group or user's permissions to DENY write access. Save and you're finished. (Also make sure WDB is empty, delete anything inside)

Image
(thanks musse)

Longer, CMD Method

If the above trick doesn't work for you for whatever reason, make a text file anywhere like Desktop or in your turtle wow directory. Call it Vanilla Wow Launcher or something. Edit it, post the following inside:

Code: Select all

rmdir /s /q "D:\WoW112\WDB"
START "" "D:\WoW112\Wow.exe"
Save it. Rename those file paths to whatever makes sense for you, obviously, based on where you have your 1.12 WoW directory saved.

Rename the file's extension from .txt to .bat (you'll have to have extensions showing for this).

From now on, run WoW from your new .bat file instead of the .exe. It'll now delete WDB, launch WoW, and rebuild it.

What is WDB and why do this?

It's just a local cache folder. All that means is that the first time your WoW client sees a creature's name, or your items descriptions or cooldowns or a tooltip of an ability or whatever, it saves that value to your WDB folder so that instead of pulling data from the server the next time you log into the game to figure out what everything in the world 'is', it just uses that local file. In short, it saves a small amount of web traffic.

The reason you want to do this is because conflicts can happen and your client will believe incorrect information. For example, a lot of people didn't clear WDB when Survival was introduced, and incorrectly have items that do not work because they claim to require Survival 25 when in fact they only require Survival 1. Also, if two servers have conflicting information about an item, your cache wins and the server loses, and you always want the server to win.

It's entirely safe and the only side effect is a few extra megabytes of web traffic.
Last edited by Distortedshadow on Mon Apr 17, 2023 5:23 am, edited 6 times in total.

Musse
Posts: 68

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Musse » Sun May 12, 2019 1:50 pm

And if you launch two clients? There is no problem deleting the folder "WDB" while the other client is running??
MAYBE it works if just emptying the WDB folder (with DEL instead of RMDIR )?

Then we have the problems with open files in WDB. This probably means not being able to delete files or remove directory.
I.e. that .bat file is probably not "general" - probably doesn't work in dual launch situations ... might even lead to serious problems.

A side note: I have never been able to solve any problem by emptying WBD. I doubt it's very important to do at every launch.

User avatar
Distortedshadow
Posts: 21

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Distortedshadow » Sun May 12, 2019 4:02 pm

Hey Musse, thanks for the reply.

Deleting WDB at runtime will cause no problems. Even if it would (ie the file is actively being read, which they won't be) the bat file simply not delete the directory. You can test this yourself by running the game and deleting the WDB cache mid play.

Deleting your local cache can never lead to serious problems, but not deleting it can, if you don't (at a minimum) delete it when you switch servers or when a content patch is released.

You probably just haven't been aware of the issues not clearing your cache has, but they will result in conflicts.

User avatar
Distortedshadow
Posts: 21

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Distortedshadow » Sun May 12, 2019 4:04 pm

I should also add that because Turtle WoW has custom content, your WDB will directly conflict with other 'vanilla' 1.12 servers if you're using the same directory to connect between them. You absolutely should delete it every launch in that case.

Musse
Posts: 68

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Musse » Sun May 12, 2019 9:28 pm

Seems you are right that the there is no problem deleting WDB during "runtime".

I even tested to make the WDB folder read-only (file security):
If the WDB files are so "destructive" this must be the easiest way? No files are written to the folder.
I just tested, seems to launch game, and everything is working fine. No files in WDB.

User avatar
Distortedshadow
Posts: 21

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Distortedshadow » Mon May 13, 2019 1:22 am

You're right, doing that does work. I didn't even think of changing the actual folder permissions. I'll append that to the guide at the top as the easy solution, thanks!

User avatar
Yutilk
Posts: 144
Contact:

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Yutilk » Thu Sep 19, 2019 7:31 am

Is there an easier way to do this?

User avatar
Pompa
Posts: 353

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Pompa » Thu Sep 19, 2019 12:09 pm

Yutilk wrote:
Thu Sep 19, 2019 7:31 am
Is there an easier way to do this?
Yes, just read the guide of this post. turtle_tongue_head

Musse
Posts: 68

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Musse » Fri Sep 20, 2019 2:10 am

Distortedshadow wrote:
Sun May 12, 2019 12:42 am

Easy Method

Change WDB's permissions so that nobody can write to it. To do this, right click WDB, hit Properties, go to the Security tab, hit Edit, and you should see a window like this. Change every group or user's permissions to DENY write access. Save and you're finished. (Also make sure WDB is empty, delete anything inside)
Changing every user's or group's permissions this way to complicated. And the more complicated, the bigger risk you don't remember what you did. Simple solution is put write deny for "Everyone" (user). That way you only changed one user/group.

You probably are owner of the folder, but better double check that. If not, make yourself (user) owner of the folder - just in case.

Totem
Posts: 1

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Totem » Fri Jul 23, 2021 11:52 am

Hi!

I tried changing all the groups and users acces as said in the "easy mode" tutorial. Now I can't open up the application with the warning sign "This application can't be run as you may not have access to one or several files".
I gave up and try to re-install Turtle WoW just to be met with another warning that i can't delete the files as i'm not administrator.

I must have done something terribly wrong, any way to troubleshoot this?

Sincerely,
Totem

Damryx
Posts: 3

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Damryx » Fri Aug 13, 2021 8:07 pm

I searched and cannot find any WDB files in my TurtleWoW folder. what should i does?

User avatar
Manateufel
Posts: 31

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Manateufel » Tue Dec 28, 2021 6:05 pm

Very Easy Solution

1. Delete WDB folder
2. Create a new Textfile
3. Name it "WDB" and remove .txt at the end (search web how to see such things)
Have fun

Imam
Posts: 1

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Imam » Fri Jun 16, 2023 2:50 am

Thank you !it helps me a lot ,very good guide ! turtle_in_love

Daniknez
Posts: 1

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Daniknez » Mon Dec 04, 2023 4:17 pm

Any know about error like FrameXML folder delete in Interface. I cant enter in game...Thanks

Ashwhole
Posts: 39

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Ashwhole » Sun Apr 28, 2024 7:41 pm

Manateufel wrote:
Tue Dec 28, 2021 6:05 pm
Very Easy Solution

1. Delete WDB folder
2. Create a new Textfile
3. Name it "WDB" and remove .txt at the end (search web how to see such things)
Have fun
This how you show file name extensions such as .txt in windows 10

https://fileinfo.com/help/windows_10_sh ... extensions

Grizb37
Posts: 255

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Grizb37 » Sun Apr 28, 2024 8:06 pm

I wouldn't recommend clearing it everytime... Makes your ui loading take abit longer everytime you log in, I'd just clear it manually once every week when they release the weekly updates.

Ashwhole
Posts: 39

Re: GUIDE: Automatically clear WDB every launch (Windows)

Post by Ashwhole » Sun Apr 28, 2024 10:15 pm

Manateufel wrote:
Tue Dec 28, 2021 6:05 pm
Very Easy Solution

1. Delete WDB folder
2. Create a new Textfile
3. Name it "WDB" and remove .txt at the end (search web how to see such things)
Have fun
I have only tried this method for a few hours but it seems to be working perfectly fine even with 2 accounts running at the same time. I had to enable extensions in windows to see the .txt and remove it from the file.

Post Reply