Skip to content

fheroes2 emulates Heroes of Might and Magic II. It reads 2 files, 1 of them required: without a required file it does not start games.

About this profile
Detail Value
Type standalone
Classification Game engine
Source https://github.com/ihhub/fheroes2
Version 1.0.11
Revision ihhub/fheroes2@35ca4c915be0
Revision held EmuELEC, the only platform that ships it, builds this revision (EmuELEC packages/sx05re/emuelec-ports/fheroes2/package.mk:5). Later commits are not part of that build.
Profiled 2026-10-22
Profile YAML, JSON
Cores fheroes2
Systems Heroes of Might and Magic II
Technical notes

Free reimplementation of the Heroes of Might and Magic II engine (New World Computing, 1996). It plays the original or demo data. EmuELEC builds this revision, installs the engine's resurrection.h2d under /usr/share/fheroes2/files/data and runs fheroes2 from /storage/roms/ports/fheroes2. When data/HEROES2.AGG is absent there, its fheroes2.sh offers to download the demo (h2demo.zip from archive.org) and unpacks its DATA and MAPS directories in place. ref: version.txt:1, EmuELEC packages/sx05re/emuelec-ports/fheroes2/package.mk:4-7,15-23, EmuELEC packages/sx05re/emuelec-ports/fheroes2/scripts/fheroes2.sh:9-40

Every resource is looked up under each root directory in turn: the FHEROES2_DATA build path and environment variable, the program's directory, then the OS data directories. The data subdirectory is scanned for .agg files, the one whose lowercased name ends in heroes2.agg is the game resource file, and a heroes2x.agg beside it turns on The Price of Loyalty content. No AGG, no resurrection.h2d, or an AGG without the font stops the start with a missing resource window. ref: src/fheroes2/system/settings.cpp:526-551, src/fheroes2/agg/agg.cpp:53-118, src/fheroes2/h2d/h2d.cpp:35-62, src/fheroes2/game/fheroes2.cpp:220-240

Maps are the .mp2, .mx2 (with the expansion) and .fh2m files of the maps directories, campaign videos come from anim, anim2, heroes2/anim or data, and CD music from music. All are optional. ref: src/fheroes2/maps/maps_fileinfo.cpp:600-615, src/fheroes2/game/game_video.cpp:47, src/fheroes2/audio/audio_manager.cpp:94-101

2 files: 1 required, 1 optional. 1 more file comes with the app.

By kind: 3 game data.

In this collection: 0 in repo and 2 missing.

heroes2.agg required missing game data

Game resource archive (retail or demo HEROES2.AGG)

  • Path: data/heroes2.agg
  • System: Heroes of Might and Magic II
  • Found by a case-insensitive name ending among the .agg files of the data directory. EmuELEC's launcher fetches the demo on first start.

heroes2x.agg optional missing game data

The Price of Loyalty resource archive

  • Path: data/heroes2x.agg
  • System: Heroes of Might and Magic II

resurrection.h2d comes with the app game data

fheroes2's own resource container, installed with the engine

  • Path: files/data/resurrection.h2d
  • System: Heroes of Might and Magic II
.