Hi people,
I have written a recorded game renamer program for my own need. I am uploading it here, I hope others will find it useful too. It is quite minimalistic, follows the "stupid simple" rule. This is the first released version, so problems, bugs can happen. Please report if you find any. Ideas, feedback are welcome.
Usage:
Features:
Notes:
Future ideas:
Technical details:
Disclaimer:
I have written a recorded game renamer program for my own need. I am uploading it here, I hope others will find it useful too. It is quite minimalistic, follows the "stupid simple" rule. This is the first released version, so problems, bugs can happen. Please report if you find any. Ideas, feedback are welcome.
Usage:
- Download the release version.
- The program consists of 3 files: 1 exe and 2 dll's. These files have to be in the same folder (can be the SaveGame folder.)
- All the recs you want to rename have to be in the same folder as well as the exe and the dll's.
- Run the exe as administrator. (right click -> Run as Administrator)
- Your recorded games get renamed.
Features:
- Renames mgx and mgz files. (AoC, CD version only)
- Extracts player names, POV, winners, losers, teams, map.
- POV player is always listed first.
- Handles any kind of strange matchups: uneven teams, more than two teams, FFA, coops.
- Cooping players are put in parenthesis: (player1, player2)
- Adds civs to 1v1 file names.
- Format: Rec - {W/L} {POV player}{civ} vs {W/L} {player}{civ} - {map} - {date time}.{ext}
Notes:
- In some cases the winner is not possible to find out. This case the W/L part is omitted.
- The file names contain spoilers. It is intended for archiving.
- If the file name gets too long, it cuts the end, and puts an ellipsis (...) at the end.
- There are debug versions that make logs in files. They run much slower. Not recommended, only if there is a problem and you want to help me finding out.
- If debugging, moderate should be enough. Verbose makes excessive logs.
Future ideas:
- Configurable rename format
- Configurable path, so it doesn't only rename within its own folder.
- Configurable logging
- Support for steam version and/or AoFE. For this I would need to get to know the format of those recorded games.
Technical details:
- Written in C using WinAPI. Yeah, it is pretty hard core, but I was interested in the challenge.
- Uses zlib to decompress the header of the rec.
- The parsing part is written from scratch by me.
- I used this reference for the mgx format.
- I used Qt Creator as my IDE.
Disclaimer:
- By using the program, you accept that I am not responsible for the loss of any recorded games or other data on your computer. Use at your own risk.
- I don't plan to develop it further in the near future as it has all the features I wanted for my own use. Bug fixes may happen sooner. All feedback is welcome regardless.