gear-foundation / vcmi

Open-source engine for Heroes of Might and Magic III

Home Page:https://vcmi.eu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork features

  • Works with Gear protocol via the gear-connector app.
  • Saves game states to the chain.
  • Load game states from the chain.

Installation guide

Contract

  1. Download the contract from https://github.com/gear-dapps/homm3
  2. Upload contracts .opt.wasm files with IDEA to https://idea.gear-tech.io/programs?node=wss%3A%2F%2Ftestnet.vara.rs

IPFS daemon

ipfs init # When running for the first time only
ipfs daemon

Game

  1. Download the binaries package from the Releases section according to your OS.
  2. Unpack the archive and run:
VCMICLIENT_PATH=./vcmiclient ./gear-connector

VCMI Installation guides

To use VCMI you need to own original data files.

Building from source

Clone this repository

git clone https://github.com/gear-dapps/vcmi
cd vcmi

Install dependencies

cd vcmi
./CI/<platform>/before_install.sh

Build VCMI from the source

mkdir -p build
cmake -S . -B build
cmake --build build

Find executables in the build/bin directory.

Install dependencies for Tauri.

Example for Ubuntu:

  sudo apt update
  sudo apt install -y libwebkit2gtk-4.0-dev \
    build-essential curl wget \
    libssl-dev libgtk-3-dev \
    libayatana-appindicator3-dev librsvg2-dev

For Windows, macOS look at official Tauri docs

For another Linux distribution look at https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-linux

Build Tauri app

cargo b -r --manifest-path=gear-connector/src-tauri/Cargo.toml

Find the gear-connector executable in the gear-connector/src-tauri/target/release directory.

Run Tauri app

VCMICLIENT_PATH=./build/bin/vcmiclient ./gear-connector/src-tauri/target/release/gear-connector

About

Open-source engine for Heroes of Might and Magic III

https://vcmi.eu/

License:GNU General Public License v2.0


Languages

Language:C++ 86.2%Language:Java 4.3%Language:C 4.0%Language:CMake 2.2%Language:Rust 1.6%Language:Lua 0.5%Language:JavaScript 0.3%Language:HTML 0.2%Language:TeX 0.2%Language:Shell 0.2%Language:Python 0.2%Language:Objective-C++ 0.1%Language:Objective-C 0.1%Language:AppleScript 0.0%Language:Jinja 0.0%Language:PostScript 0.0%Language:Batchfile 0.0%Language:CSS 0.0%