mmarch: command line tool to handle (extract add compare res..) H3/MM678 archive [upd 21 Apr 2020]

The role-playing games (I-X) that started it all and the various spin-offs (including Dark Messiah).

Moderator: Moderators

User avatar
Posts: 119
Joined: 21 Jun 2008
Location: Europe / China

mmarch: command line tool to handle (extract add compare res..) H3/MM678 archive [upd 21 Apr 2020]

Postby tomchen1989 » Apr 2 2020, 11:10

Command line tool to handle Heroes of Might and Magic 3 and Might and Magic 6, 7, 8 resource archive files (e.g. lod files)

GitHub homepage and detailed manual/readme:

Download mmarch v3.2 (2020-04-21): ... /mmarch.7z

Based on GrayFace's great MMArchive (repo). If you need a graphical user interface tool, use MMArchive.

Condensed manual/cheatsheet (read GitHub homepage for the full manual):

Code: Select all

mmarch add <ARCHIVE_FILE> <FILE_TO_ADD_1> [FILE_TO_ADD_2] [...]
mmarch delete <ARCHIVE_FILE> <FILE_TO_DELETE_1> [FILE_TO_DELETE_2] [...]
mmarch merge <ARCHIVE_FILE> <ARCHIVE_FILE_2>
mmarch diff-files-to-{nsis|batch} <OLD_DIFF_FOLDER> <SCRIPT_FILE> <DIFF_FOLDER_NAME>
mmarch diff-add-keep <DIFF_FOLDER>
mmarch optimize <ARCHIVE_FILE>
mmarch help

Typical advanced usage:
  • Extract all archive files recursively in a folder and its subfolders
  • Automatize the workflow of MM/HoMM MODs development
  • Be used with batch file (.bat) or NSIS script to produce game patch or MOD installation / update files
  • Automatically compare two or more game folders and make an NSIS-compiled .exe patch installation file (MM Merge Update Patch as example & tutorial) (<*> : one of the tutorial's screenshot images)

<*> :

I looked for a command line tool in 2012, and again looked for such tool recently because I wanted to make localization patches which are .exe (or .bat) that can fully-automatically update MMMerge/MM678 to newer version, add localized files, clean up old files and other languages' localized files, replace sound in video files (.bik and .smk) in .lod/.vid to localized version (Smacker and Bink's original developer's official CL "The RAD Video Tools" can replace sound, but there was no CL lod/vid extractor and editor). GrayFace's AutoLod, LodCompare and CL tool LodMerge can solve the problem sometimes but not always (for example, unable to extract video and pack it back after modification). So, after learning a little Delphi (Pascal), here is my tool, heavily based on MMArchive. Enjoy.

[Strange phpBB (CH's forum system) bug, completely unable to edit the topic that I posted weeks ago screenshot. Since that topic had no reply, I deleted it and reposted it here.]
Last edited by tomchen1989 on Apr 21 2020, 20:27, edited 1 time in total.

Return to “Might and Magic”

Who is online

Users browsing this forum: No registered users and 11 guests