MultiCraft2 is a free open-source voxel game engine with easy modding and game creation.
MultiCraft is based on the Minetest project, which is developed by a number of contributors.
This is best used as server, as it allows both clients with 0.4 and 5.0 versions to connect to it.
Steps:
The official MultiCraft2 git repository can be found at: https://github.com/MultiCraft/MultiCraft2
.
$ wget 'https://github.com/MultiCraft/MultiCraft2/archive/refs/heads/main.zip'
$ 7z x main.zip
$ cd MultiCraft2-main
Alternatively you can git clone
the master
branch:
$ git clone https://github.com/MultiCraft/MultiCraft2
$ cd MultiCraft2
$ sudo apt install g++ make libc6-dev libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libbz2-dev is already the newest version (1.0.6-9.2~deb10u1).
libcurl4-gnutls-dev is already the newest version (7.64.0-4+deb10u1).
libfreetype6-dev is already the newest version (2.9.1-3+deb10u2).
g++ is already the newest version (4:8.3.0-1).
libc6-dev is already the newest version (2.28-10).
libgmp-dev is already the newest version (2:6.1.2+dfsg-4).
libirrlicht-dev is already the newest version (1.8.4+dfsg1-1.1).
libjpeg-dev is already the newest version (1:1.5.2-2+deb10u1).
libjsoncpp-dev is already the newest version (1.7.4-3).
libogg-dev is already the newest version (1.3.2-1+b1).
libpng-dev is already the newest version (1.6.36-6).
libvorbis-dev is already the newest version (1.3.6-2).
libxxf86vm-dev is already the newest version (1:1.1.4-1+b2).
make is already the newest version (4.2.1-1.2).
libgl1-mesa-dev is already the newest version (18.3.6-2+deb10u1).
libopenal-dev is already the newest version (1:1.19.1-1).
libsqlite3-dev is already the newest version (3.27.2-3+deb10u1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
cmake is already the newest version (3.16.3-3~bpo10+1).
As you can see, the required packages are already installed on my system.
Make sure you are in the MultiCraft2 source code directoty:
$ cmake . -DRUN_IN_PLACE=TRUE -B build
$ cd build
$ make -j$(nproc)
RUN_IN_PLACE parameter will let MultiCraft2 to run directly in the source directory and the make parameter -j$(nproc)
will utilize all your CPU to make the compilation faster.
Sample output:
$ cmake -B build
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compile features - done
-- *** Will build version 2.0.0 ***
...
-- Configuring done
-- Generating done
-- Build files have been written to: ./build
$ make -j$(nproc)
Scanning dependencies of target jsoncpp
Scanning dependencies of target lua
[ 0%] Building CXX object lib/jsoncpp/CMakeFiles/jsoncpp.dir/jsoncpp.cpp.o
[ 0%] Building C object lib/lua/build/CMakeFiles/lua.dir/lapi.o
...
[ 98%] Building CXX object src/CMakeFiles/multicraft.dir/version.cpp.o
[ 99%] Building CXX object src/CMakeFiles/multicraft.dir/voxel.cpp.o
[ 99%] Building CXX object src/CMakeFiles/multicraft.dir/voxelalgorithms.cpp.o
[100%] Linking CXX executable ../../bin/multicraft
Running the compiled MultiCraft2:
$ ./bin/multicraft
References:
https://github.com/MultiCraft/MultiCraft2
Except where otherwise noted, this work is licensed under Creative Commons Attribution-ShareAlike 4.0 International License (http://creativecommons.org/licenses/by-sa/4.0/).