What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Clearing your HB and WoW cache for dummies

RobertPaulson

Member
Joined
Jun 2, 2012
Messages
56
I saw another post on this and not trying to steal anyone's thunder but I find this to be the easiest method...

This will delete your WoW errors
Clear your NPC_Scan database

Clear the HB Cache, Compiled Assemblies, and logs

Update your SVN Bot's, Routines, and Pluggins

Peace,
BobHadBitchTits

Save the following into something like ClearCache.cmd and run it. Remove the SVN lines if you don't want them.

Code:
@echo off
REM -- Change the following two set lines to reflect your actual WoW and HonorBuddy BASE directories!
set WoW_Dir=C:\Program Files (x86)\World of Warcraft
set HB_Dir=C:\HonorBuddy
REM --  If your local isn't enUS then change the next line to your proper local...
set WoW_Local=enUS
cls

REM Leave the below alone unless you know what your doing
set SVN_64="C:\Program Files\TortoiseSVN\bin\svn.exe"
set SVN_86="C:\Program Files (x86)TortoiseSVN\bin\svn.exe"
set error1=The SVN command line tool doesn't seem to be installed...
Echo WoW directory set to %WoW_Dir%
Echo WoW Local set to %WoW_Local%
Echo HonorBuddy directory set to %HB_Dir%
Echo .
Echo ..
Echo ...
Echo Deleting Cache
If exist "%WoW_Dir%\Errors" del /q "%WoW_Dir%\Errors\*.*" >nul
If exist "%WoW_Dir%\Cache\WDB\%WoW_Local%\creaturecache*.wdb" del /q "%WoW_Dir%\Cache\WDB\%WoW_Local%\creaturecache*.wdb"
If exist "%HB_Dir%\Cache" del /q "%HB_Dir%\Cache\*.*" >nul
If exist "%HB_Dir%\Logs" del /q "%HB_Dir%\logs\*.*" >nul
If exist "%HB_Dir%\CompiledAssemblies" del /q "%HB_Dir%\CompiledAssemblies\*.*" >nul
Echo .
Echo ..
Echo ...
Echo Updating SVN, Please wait...
Echo .
If exist %SVN_64% (svn update -q %HB_Dir%\Routines\*.*) else if exist %SVN_86% svn update -q %HB_Dir%\Routines\*.* else echo %error1%
Echo ..
If exist %SVN_64% (svn update -q %HB_Dir%\Bots\*.*) else if exist %SVN_86% svn update -q %HB_Dir%\Bots\*.* else echo %error1%
Echo ...
If exist %SVN_64% (svn update -q %HB_Dir%\Plugins\*.*) else if exist %SVN_86% svn update -q %HB_Dir%\Plugins\*.* else echo %error1%

Echo Errors, Logs, Cache Cleared, and SVN updated...
pause
exit
 
Last edited:
But shouldn't it only run the code if it is there? i mean, thats the whole point of the if statement yes?

lol yes that is the point, if you look you'll see that for the NPC Cache line I used an "If" to check for file(s) that existed, where as for the mass delete's I don't really care if they exist, it just delete's them if it can.

The REAL reason tbh, is that I took what really only needs to be a 5ish line batch file and all that extra "fluff" was to try to make it pretty for others. If it says file doesn't exist I'm "Guessing" your local isn't enUS. There is now a variable for you local, and a lot of other stuff that shouldn't need to be changed by 99% of people.

Also, very good point earlier about the SVN made by wakkawakka22, you need to have the Tortoise command line tools option checked when you install it for those lines to work.

I've edited the script so that it should be a little more user friendly by checking shit for you lol.

Thanks
 
Last edited:
lol yes that is the point, if you look you'll see that for the NPC Cache line I used an "If" to check for file(s) that existed, where as for the mass delete's I don't really care if they exist, it just delete's them if it can.

The REAL reason tbh, is that I took what really only needs to be a 5ish line batch file and all that extra "fluff" was to try to make it pretty for others. If it says file doesn't exist I'm "Guessing" your local isn't enUS. There is now a variable for you local, and a lot of other stuff that shouldn't need to be changed by 99% of people.

Also, very good point earlier about the SVN made by wakkawakka22, you need to have the Tortoise command line tools option checked when you install it for those lines to work.

I've edited the script so that it should be a little more user friendly by checking shit for you lol.

Thanks

It was meant as an actual question, no disrespect intended. I already editted and made my own little version of it. Using the enGB ofc.
 
I made one for my Daily hb install and main wow folder. I made two more for my other folders and 2nd wow install using the same setup as the first. The first works as it should, the 2nd and 3rd flash for a sec and go away. The other questions I had is when the svns update does the window pop up like when you do them by hand?

Edit: Can I add my other hb installs and other wow install to the first one? Great work, such a time saver!
 
hi all,

could someone explain me what i have to do with the code what Robert posted, it sounds nice to clear and update all with it but i have no idea what to do so wanted to ask if someone could help me, where and how do i have to save the code and how do i run it then, yes im a noob i know ^.^

greetings Pongo
 
hi all,

could someone explain me what i have to do with the code what Robert posted, it sounds nice to clear and update all with it but i have no idea what to do so wanted to ask if someone could help me, where and how do i have to save the code and how do i run it then, yes im a noob i know ^.^

greetings Pongo


I also want to know the same thing :) and thank you in advance.
 
This is what I get when I use this. Is this correct or what's going on?

WoW directory set to C:\Program Files (x86)\World of Warcraft
HonorBuddy directory set to C:\HonorBuddy
.
..
...
Deleting Cache
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
.
..
...
Updating SVN, Please wait...
.
'svn' is not recognized as an internal or external command,
operable program or batch file.
..
'svn' is not recognized as an internal or external command,
operable program or batch file.
...
'svn' is not recognized as an internal or external command,
operable program or batch file.
Errors, Logs, Cache Cleared, and SVN updated...
Press any key to continue . . .
 
hi all,

could someone explain me what i have to do with the code what Robert posted, it sounds nice to clear and update all with it but i have no idea what to do so wanted to ask if someone could help me, where and how do i have to save the code and how do i run it then, yes im a noob i know ^.^

greetings Pongo

Hi there, open notepad, paste the code in and modify what ever needs to be changed. Then save it as Name.cmd. You can name it what ever you want, but you need to save it as .cmd

This is what I get when I use this. Is this correct or what's going on?

WoW directory set to C:\Program Files (x86)\World of Warcraft
HonorBuddy directory set to C:\HonorBuddy
.
..
...
Deleting Cache
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
.
..
...
Updating SVN, Please wait...
.
'svn' is not recognized as an internal or external command,
operable program or batch file.
..
'svn' is not recognized as an internal or external command,
operable program or batch file.
...
'svn' is not recognized as an internal or external command,
operable program or batch file.
Errors, Logs, Cache Cleared, and SVN updated...
Press any key to continue . . .

You haven't got command line functions in your tortuise SVN, re-download it and click Modify / Reinstall when it asks you what you want to do. Then install the command prompt stuff.

I made one for my Daily hb install and main wow folder. I made two more for my other folders and 2nd wow install using the same setup as the first. The first works as it should, the 2nd and 3rd flash for a sec and go away. The other questions I had is when the svns update does the window pop up like when you do them by hand?

Edit: Can I add my other hb installs and other wow install to the first one? Great work, such a time saver!

I believe so yes.

I added a total of three HB installs to my ClearCache.cmd.

All I did was make 2 additional variables, being HB_Dir2 & HB_Dir3. Simply copy'paste the code that does something to the HB_Dir and do the same with HB_Dir2 and HB_Dir3.
 
Used it, went so fast i couldnt realy believe it worked so i checked:

Clear the HB Cache, Compiled Assemblies, and logs

And the log folder of HB was still filled, so i guess it didnt work?
HTML:
EDIT: nvm, made a typo in the 2 lines.
 
Last edited:
I was planning on posting that it didn't work for me. But then I noticed that indeed the creature cache was gone from my WoW folder.
I had HB installed directly in a folder on my desktop, I suppose it went wrong there, maybe because my OS is installed in Dutch (stupid computer store, I like it better in English, but I'm too lazy to change it). I cut and pasted it into my "games" folder and now it worked.
I have one question though, what exactly is getting an update about the SNV? I don't get an error, but it's done within a second, so I doubt it could actually look something up online to see if there is an update to anything...
I like the first part of the program though :) this will save me lots of time :) Thanks!
 
Back
Top