Hero Invincible 3 Open Source Engine VCMI compilation and installation

Source: Internet
Author: User

What is VCMI?

VCMI is the classic SLG hero Invincible 3 of the open source game engine. The original Hero Invincible 3 can only play on Windows, now through VCMI, we can also play in Unix/linux, Apple and other systems. Currently the hero of the mobile phone and tablet 3 is the result of this project. The 2 of Heroes on cell phones and tablets is the result of another open source project fheroes2 .

vcmiAnd fheroes2 Another benefit is to reduce the CPU consumption, the previous Windows game is estimated to get a timely response, are 100% of the CPU, even if there is nothing to calculate, but also let the CPU continuously empty loop. vcmiand fheroes2 are very environmentally friendly, CPU utilization is very low. Originally a game calculation is very small, why occupy 100% of the CPU it.

Speaking of Heroes Invincible 3, I have special feelings, I like this game more than Warcraft. I also use its map editor to edit the map itself, with its campaign editor to edit the campaign itself. Think of a autumn afternoon, and your good friends, spend half a day, while drinking tea, playing chess like a game of Heroes Invincible 3, how comfortable things ah.

If you're like me, you have a hero. 3 Love, you can visit VCMI's homepage: http://forum.vcmi.eu/portal.php

Why would you like to compile the installation?
    • Learn the source code and, if possible, join this open source project.
    • Because now the VCMI does not support the Chinese version of the death shadow, I want to modify the source code, let it support the normal display of Chinese. (The Hero Invincible 2 and Hero Invincible 3 are also English version, because the original project did not provide Chinese support.) Some of the people on the mainland who publish mobile phone bags know what to bring to their homes, to implant ads, to despise them.
    • If you do not want to learn and modify the code, or directly install the official web-provided binary package bar.
Get VCMI Source code

Download the latest source package: http://download.vcmi.eu/vcmi-0.93.tar.gz. Download it and unzip it somewhere.

Compiling the installation

Before you start compiling, say something about my environment: arch Linux. The following steps are mostly not related to what Linux distributions you use, and if you have a different command for the distribution, I'll explain it in particular.

    1. Enter the source directory.
    2. Build a build directory.
    3. Use CMake to check the compilation environment and generate makefile.

      If you have already installed the SDL and Boost development libraries, there should be no problem.

      At first I did not install the Boost Development Library, CMake did not succeed, error: error found. Boost_INCLUDE_DIR not defined. . So I installed the Boost development library, sudo pacman -S boost (if you're using a different Linux distribution, please install it with the appropriate package manager), CMake is successful.

    4. Start compiling.
      Make-j2

      J2 indicates that this option is not available for dual-core CPU compilation. Wait, my 2.3G dual-core CPU, compiled for 15 minutes.

    5. Installation.
      Make install
Installation data

Take a look at the installation directory of the game and execute it from the command line:

Vcmiclient-v

My result is as follows:

Starting ... VCMI 0.93  Data directory:    /USR/LOCAL/SHARE/VCMI  Library directory:/USR/LOCAL/LIB/VCMI  path to Server:    /usr/local/bin/vcmiserver

The data Catalog is =/usr/local/share/vcmi/=, and we'll copy the original game's data, Maps, and MP3 directories to this directory. If you do not want to copy, you can also create symbolic links. That's what I did:

Cd/usr/local/share/vcmisudo ln-sf/path/to/heroes3-shadow-of-death/data. Sudo ln-sf/path/to/ Heroes3-shadow-of-death/mp3. Sudo ln-sf/path/to/heroes3-shadow-of-death/maps.

Now you're ready to play.

Note : You should install the data for the English version of the game. If you are using the Chinese version of the game data, the screen will show garbled. Don't worry, I have started to modify the source code, let VCMI support Chinese, can wait for my modified version AH.

Optional Packets :

The official website also provides two downloads of the data, all of which are game mods. What is a mod, estimate the "death shadow" of the data slice it. I don't have a download for the moment.

    • Mod Wog:http://download.vcmi.eu/wog/wog.zip
    • VCMI Data File:http://download.vcmi.eu/core.zip

The installation method for both packets is to extract the data directory to the game, core for example:

Cd/usr/local/share/vcmisudo Unzip/path/to/core.zip
Start playing.

At the command line, enter: vcmiclient the game starts. In fact, the English version is good, you can practice English. If you insist on playing the Chinese version, wait for my revised version.

Other nonsense
    1. For Windows systems, the source code contains the project files for Visual Studio, and as long as the SDL, Boost Library is configured, the compilation should be smooth. Another option is to install MinGW under windows and make it like Linux.
    2. I'm not familiar with Mac OS, but I think it's a direct cmake and make. Because it's also a Unix like OS, its shell doesn't make much of a difference with Linux (if it's not right, please spray me heartily). To add, I found that the source package has Xcode's engineering files.
    3. If you do not want to modify the game engine, you do not have to compile the installation. For Debian/ubuntu/fedora Linux, it can be installed directly from the software repository, and for Niche Arch Linux, it can be installed from the AUR. For both Windows and Mac OS, there is a compiled binary package download. Please refer to the project homepage

date:2013-08-24t20:32+0800

Author:jiqing Wu

Http://www.cnblogs.com/jiqingwu/p/vcmi_make_install.html

Hero Invincible 3 Open Source Engine VCMI compilation and installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.