Results 1 to 8 of 8

Thread: kWoW - A Simple WoW Launcher Utility

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default kWoW - A Simple WoW Launcher Utility

    Short backstory:

    The issue I had a few nights ago where a good percentage of my saved addon options became corrupted and disappeared was very frustrating to say the least and I immediately started thinking about a method to prevent that from ever happening to me again.

    Kain suggested that the .bat file that Taka introduced many of us to some time ago might be a good avenue and modifiable to create backups of the SavedVariables, and sure enough with some tinkering around I was able to come up with something that does just that: In addition to removing the NPC/Creature cache files upon launch, it also creates backup copies of all the saved variables files (If anyone wants this particular solution, you can find it here).

    Still it wasn't quite what I wanted. The biggest issue is there is no reasonable method through .bat files -- which are insanely archaic to code since it's all basically taken straight from MS-DOS shell commands -- to detect when an archive of Saved Variables is of a certain age and remove them. Most importantly perhaps, given hard drive space is vital for those running their WoW install on an SSD drive like myself, is the fact that a straight copy means every time I launch WoW, I'm adding another 60-70 megs of text files to a new archive somewhere. Launching WoW half a dozen times a day or more can add up really quickly and would require remembering to delete them.

    I'm also aware that the popular Curse Client has backup features, but as far as I could tell, those were only available to Premium Users which didn't seem very viable.

    The solution: kWoW

    What it do?

    As you can see above, it's a very basic application I created to help alleviate the few issues while maintaining simplicity-of-use. Most plainly, the purpose is as a bootstrapper or launcher application to begin your WoW session, just like the aforementioned .bat file, while adding a few (automated) utilities into the mix.

    1. Instantly archives all .lua (SavedVariables) files in the specified Saved Variables Directory and compresses them up into a date-formatted .zip file placed in the specified Archive Directory.

    2. Archive restoration, showing a dropdown of all available archives that have been created, with a Restore button to automatically unzip all the .lua files in the specified Archive back into the Saved Variables directory (overwriting any matching file names in the process). With these first two features, all my addon issues from the other night would've been fixed in 2 or 3 minutes. =(

    3. Automatically delete archives that are of at least a certain age -- my 70 megs of files are compressed down to around 10 megs in .zip format, but even so this option will purge extra stuff that isn't really necessary.

    4. Clear NPC/Creature Cache, which does just as it sounds for NPCScan users and the like, the idea from Taka that originally spawned the first .bat file.

    5. Launch Application, allowing you to specify whether you wish to launch Wow.exe/Wow-64.exe directly, or go the normal route through the Launcher.

    6. Auto-launch after X seconds, allows you to specify how long you want the auto-launch progress bar to remain active before it closes and auto-launches according to your settings. Set it very low if you wish to launch near instantly and have little need to edit options.


    Using kWoW is all pretty simple. Install it just like any other application to the directory of your choice and you should have a Launch kWoW shortcut on your desktop. Once launched, if any of your directories are invalid, you'll get a popup indicating as much. The WoW Folder and Saved Variables Folder are obvious, but the Archive Directory can be anywhere you wish (I personally like I keep it as a sub-directory to keep things tidy).

    Decide on the Delete Archives after X days option setting you wish as well as whether you need the Creature/NPC Caches cleared, and lastly which launch application to use, then Save & Launch!


    When kWoW is launched, you'll see the Auto-Launch countdown bar, which presents the user with a means to cancel execution of the auto-launch sequence by pressing escape, space, or enter at any time during auto-launch. This will force auto-launch to cancel and keep the kWoW UI active to allow settings changes as desired (including the auto-launch execution length).

    Otherwise, normal execution of kWoW will briefly display the Auto-Launch countdown and after completion, will execute the Backup and Cleanup routines as normal, close kWoW, and launch WoW.


    If anyone finds this useful and has any suggestions or improvements, feel free to let me know. I realize the number of users for such a thing is likely fairly small, but it was a fun project to work on and gave me a chance to use a language I haven't coded in before (C#), so that was cool as well!
    Last edited by Kulldam; 03-08-2013 at 01:44 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts