Last update: 05-01-2008
I have released the program under the GPL. It is now open-source and the project's page has moved to sourceforge. Please use that page for the latest releases.
This page is about a WarcraftScreenshotReader, a program that decodes save codes from Warcraft III screenshots.
Most Warcraft III RPG-style maps have some kind of "save" command that allows the player to save his character, inventory, etc. This is usually implemented by displaying a code that the player has to write down. The next time the map is played, the player types the code and his character is restored. While this works well, the process of writing down the code is annoying and error-prone.
WarcraftScreenshotReader simplifies this task by parsing a screenshot that contains a specially formatted code and decoding the text that is embedded in it.
If you do not want to use the 'Monitor Clipboard' option, you can also open a screenshot with the File / Open Screenshot... menu item. The code will be decoded and copied to the clipboard.
Before using this system, your map should already have a traditional load/save system. I can't help you on that part but there are lots of tutorials for that. You should provide two save commands, one for people that do not want to use this system, and the one that that displays the color-coded code.
The JASS code provided contains three functions that you should include on your save code. The EncodeString function takes the regular save code as input and returns the color-coded equivalent.
Previous versions of the program required that the code was displayed as cinematics transmission. Since the program now detects automaticallt the location of the save code, this is no longer required.
The function accepts only the following characters: digits (0-9), letters (a-z and A-Z), dash (-) and space ( ). It will not work correctly with any other characters.
This program requires the .NET Framework 2.0 or later. It is installed automatically by the setup program. If you download the no-install version, you need to install if manually. If you use Windows Vista, you already have it. Otherwise, try to run the program. If you get an error, download and install the .NET Framework.
This program is distributed under the GPL version 3.
Fell free to contact me if you have any question, if you find a bug, or for any other reason. If you use this system in a map, I will be pleased if you let me know.