Problems registering at AoCZone?
You can try resending activation email. If that doesnt work you can send an email here. If you forgot your password click here.
 Main Menu

 ForumsSearch »

 SY Nations Cup 2017

 Escape Gaming

 EGC #1: Strike the Balance

 Gladiators of the Arena

 AoC Recorded Games

 AoE2HD Recorded Games

 AoFE Recorded Games

 Major Past Tournaments

 Auto downloadedFind »

 Users currently online
Members (64)
»  Ganji
»  Hico
»  HJFE
»  Jupe
»  Kigo
»  Rumpi
»  Twigg
Guests (145)

 AoC Clans Add yours »

 Links

 Ads

Minimalistic Recorded Game Analyser (MinRec)

Here you can upload things you want to be in the download section.
If approved they are moved to proper section.
Advertisement from Google 
 

Minimalistic Recorded Game Analyser (MinRec)

Postby  Richard » Sat Oct 01, 2016 7:51 pm

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:
  1. Download the release version.
  2. 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.)
  3. All the recs you want to rename have to be in the same folder as well as the exe and the dll's.
  4. Run the exe as administrator. (right click -> Run as Administrator)
  5. 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:
[Show] Spoiler:
  • 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:
[Show] Spoiler:
  • 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:
[Show] Spoiler:
  • 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:
[Show] Spoiler:
  • 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.
Attachments
MinRec debug verbose.zip
Not recommended. It runs even slower. Only for debugging.
(111.64 KiB) Downloaded 4 times
MinRec debug moderate.zip
Not recommended. It runs much slower. Only for debugging.
(111.64 KiB) Downloaded 3 times
MinRec release.zip
This version should be used if everything goes well.
(111.64 KiB) Downloaded 28 times
Image
 Richard
AoFE developer
 
Posts: 1218
Joined: Mar 13, 2010
 1627 (50%)
 
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  Jaraldo » Sat Oct 01, 2016 8:18 pm

Cool! I'll check it out :)
Image
 Jaraldo
 
Posts: 1503
Joined: May 19, 2010
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  TetraPak » Sat Oct 01, 2016 9:28 pm

Well done! Just tested it out, makes finding the right recorded games, which were played weeks ago, way easier!

Thanks for sharing it!
Image

"Now hole is no hole anymore" - Memb 2015
 TetraPak
 
Posts: 81
Joined: Dec 09, 2013
Location: Germany
Age: 19
 1609 (50%)
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  Poxo » Sun Oct 02, 2016 12:49 pm

IT WORKED :)
Image
Image

#HUNWHOREHATER

#PrayforSet0

#Believe
User avatar
 Poxo
 
Posts: 1143
Joined: Oct 27, 2012
Age: 22
 1761 (48%)
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  Richard » Sun Oct 02, 2016 7:19 pm

Thx for the feedback, guys.
@TetraPak: I'm glad you found it useful. Enjoy! :)
Image
 Richard
AoFE developer
 
Posts: 1218
Joined: Mar 13, 2010
 1627 (50%)
 
Advertisement from Google 
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  Clemensor » Sun Oct 02, 2016 7:28 pm

Good stuff!!
User avatar
 Clemensor
 
Posts: 846
Joined: Jun 09, 2014
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  mk13g10n » Sun Apr 09, 2017 8:14 pm

Thank you very much, I would like you to continue developing it, to be able to configure it to taste, I would have liked to accommodate it for dates, it is very good since it had about 1400 recordings and with this, it is easier to see, greetings from Mexico
 mk13g10n
 
Posts: 3
Joined: Aug 11, 2016
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  linetyReborn » Sun Apr 09, 2017 11:33 pm

amazing work
User avatar
 linetyReborn
 
Posts: 14
Joined: Oct 27, 2014
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  Huehuecoyotl22 » Sun Apr 09, 2017 11:54 pm

Is it possible to change it, removing the [W] and [L] from it, so you don't know the winner and loser before watching?
 Huehuecoyotl22
Gameposter Master
 
Posts: 8018
Joined: Jun 09, 2012
 

Re: Minimalistic Recorded Game Analyser (MinRec)

Postby  Richard » Tue Apr 11, 2017 12:12 pm

@mk13g10n: I am glad you find it useful. Have fun with it. :)
@linetyReborn: thx!
@Huehuecoyotl: Right now it is not possible to configure, the rename format is hard coded. It would be up for a future development. Unfortunately I don't think I will have time for this in the near future.
Image
 Richard
AoFE developer
 
Posts: 1218
Joined: Mar 13, 2010
 1627 (50%)
 
 

Return to Uploads

Who is online

Users browsing this forum: No registered users and 2 guests

Legend: Global moderators, News posters, Tournament moderators