SkillAgentSearch skills...

H3m2json

Heroes III PHP map parser and compiler. Complete .h3m format documentation.

Install / Use

/learn @HeroWO-js/H3m2json
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

HeroWO's HoMM 3 Map Processor

Produced by the HeroWO.js project - a JavaScript re-implementation of Heroes of Might and Magic III.

https://github.com/HeroWO-js/Workbench

https://herowo.game

h3m2json.php

  • Parses .h3m files into various formats (uncompressed .h3m, JSON, PHP serialize()).
  • Compiles those formats back into .h3m. Can convert between different game versions.
  • Performs excessive error-checking (lots of potential warnings).
  • Provides ample debug information (byte-by-byte stream analysis, relation to parsed structures).
  • Built around an extensible architecture with current support of all official HoMM 3 versions (RoE, AB, SoD).
  • ...and HotA, but keeps raw values for non-official content (e.g. numeric identifiers for HotA-specific terrain).
  • Written in an easy-to-follow manner. No C, please!
  • Can be called from CLI or include'd into your own script.

Run php h3m2json.php -h for details.

h3m-The-Corpus.txt

Documents the entire .h3m binary file format based on multiple sources, primarily on homm3tools.

View on GitHub
GitHub Stars21
CategoryDevelopment
Updated1mo ago
Forks6

Languages

PHP

Security Score

90/100

Audited on Mar 5, 2026

No findings