Skip to content

siredmar/mdcii-engine

Repository files navigation

MDCII Game Engine

CircleCI Codacy Badge CodeFactor

The main goal of this project is to provide an independent reimplementation of the game engine for Anno 1602/1602 AD under a free license.

Note: Supported versions of the original game are NINA ("Neue Inseln, Neue Abenteuer", "New Islands, New Adventures"), Königsedition (Kings Edition), Gold Edition. The original vanilla game without the NINA addon won't work, because of hardcoded stuff in the .exe files. The new published version 'History Edition' currently won't work either, because of changed BSH files.

Currently this project contains several helper tools:

  • bshdump
  • bshpacker
  • cod_parser
  • codcat
  • gam_parser
  • paldump
  • zeidump
  • inselbmp
  • weltbmp
  • zeitext

The most complex program is mdcii-sdltest that can load savegames and scenario files and animate the buildings.

Requirements

  • g++-8 or greater
  • SDL2
  • boost
  • protobuf

Media

See this video for a short demonstration of an earlier stage

mdcii youtube playlist

How to build (currently only debug build!)

Clone the repo

$ mkdir build
$ cd build
$ cmake -DCMAKE_CXX_FLAGS="-Wno-error=deprecated-copy" -DCMAKE_BUILD_TYPE=Debug ..
$ make -j$(nproc)

The main program is called mdcii-sdltestd.

How to run the game

The game uses the original files from your Anno 1602/1602 AD installation.

$ ./mdcii-sdltestd -p <path-to-1602-ad-installation>

License

GPL Version 2 or newer, see COPYING.