GUIDE: Automatically clear WDB every launch (Windows)

Post Reply
User avatar
Distortedshadow
Posts: 17

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:

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 May 13, 2019 1:30 am, edited 5 times in total.
Belladonna Wintersong
NE Warrior
Takoda Mistmane
Tauren Shaman

Musse
Posts: 69
Location: 70° North

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: 17

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.
Belladonna Wintersong
NE Warrior
Takoda Mistmane
Tauren Shaman

User avatar
Distortedshadow
Posts: 17

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.
Belladonna Wintersong
NE Warrior
Takoda Mistmane
Tauren Shaman

Musse
Posts: 69
Location: 70° North

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: 17

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!
Belladonna Wintersong
NE Warrior
Takoda Mistmane
Tauren Shaman

User avatar
Yutilk
Posts: 99
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?
Shaman Raid Tank, Priest Tank, Rogue Tank, Support Warrior, etc... I'm Livestreaming!

User avatar
Pompa
Posts: 350

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
Turtle developer.

If you love us, vote for us!

Musse
Posts: 69
Location: 70° North

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: 1

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?

Post Reply