Results 1 to 8 of 8

Thread: kWoW - A Simple WoW Launcher Utility

Hybrid 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.

    Usage

    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!

    Auto-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.

    Questions/Suggestions

    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 12:44 AM.

  2. #2
    VOTE ME RAID LEADER 2012! Takaoni's Avatar
    Join Date
    Apr 2011
    Location
    Minneapolis, MN
    Posts
    1,155

    Default

    These creation skills are so mad! What a cool tool to whip up so quickly after your corruptastrophy.

    Sent from my DROIDX using Tapatalk 2

  3. #3

    Default

    Updated:
    • Improved upgrading mechanisms -- From this version forward, installing over an existing copy should seamlessly update your installation settings rather than force a manual uninstall through Add/Remove Programs.
    • Added .NET 4.5 framework redistributable if necessary to the setup (Please advise if this doesn't work for anyone, I can't test it very well.)
    • Removed modifier-hotkey launch cancellation method -- This proved too clunky and inexact. Instead, launching kWoW now displays a brief Auto-Launch countdown window, which allows the user to cancel the Auto-Launch sequence at any time by pressing Escape, Space, or Enter during the sequence. The length of time for Auto-Launch can be adjusted in the options.

  4. #4

    Default

    Updated:
    • Added Wow-64.exe option to Launcher dropdown.
    • Updated download URL to setup.zip -- NOTE: Installing will likely not retain previous settings for this new version. Sorry, but necessary evil as my InstallShield was a trial version used for previous setup.exe files.

  5. #5

    Default

    Yay 64 bit!

    Ever since the patch my launcher hangs from time to time, so skipping it became a must.

  6. #6

    Default

    Updated

    • Battle.net Launcher support added.
    • Restore list now populated immediately following change of Archive directory.
    Last edited by Kulldam; 08-24-2013 at 01:35 PM.

Posting Permissions

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