View Single Post
Old 03-09-2006, 10:33 PM   #1
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default War3 GameCache Converter

I'm proud to announce the release of another Warcraft III tool, the War3 GameCache Converter, or short, CacheConv. http://www.wc3campaigns.net/tools/we...eConverter.rar

This tool lets you extract game caches from Campaigns.w3v and from savegames and export it to SLK sheets. Those can be edited in Excel, Open Office or SYLK Pad.
Then CacheConv lets you convert the SLK table back to a Campaigns.w3v file to put it back in game.



Several possible use cases come to my mind:
  • Custom Ladder Systems: I don't know if the Save Game trigger actually works, but if it does, you could create bnet maps that automatically save a savegame that contains game cache data when a game is over. A tool running in the background could monitor the file system and wait for the creation of this savegame, then use CacheConv to extract desired information and finally automatically report the results to a webserver.
  • Gamecache Maintainance: If you ever hit the 256 game cache limit you will be thankful to be able to simply remove some of the game caches manually with this tool. Also whenever you're not sure if there are the correct values in the game cache you can now easily check it out.
  • Debugging: You can write all sorts of debug information to gamecache and later analyze it in Excel. I've added 2 special tags for that purpose: Integers with labels that start with # will be displayed as ids (eg AHbz, hpea ...) instead of numbers. Values in a category that starts with < or > will be sorted ascending/descending by their labels. This can be useful for logging actions to the gamecache and to get the output in the correct order.
    Especially for AI file development a log can be really useful.
    Excel macros can then be used to evaluate the gatherd information.
  • Injecting Data into the Game: Might be useful for singleplayer campaigns, to precompile certain tables (for example with an Excel macro) and put it in-game with a custom Campaigns.w3v file.


Usage:

This requires the .NET framework 2.0. It's a command line tool.
Type CacheConv register to register the .w3v and .w3z file extensions to the tool and CacheConv unregister to unregister them. When registered it will auto-convert those files to SLK when double clicking them.
Type CacheConv inputfile to convert a file.


Have Fun!
PitzerMike
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Sponsored Links - Login to hide this ad!