Building on Haiku
Pages 29
TheXTech Docs
Links and Downloads
🦊 Official Wohlsoft.ru Thread💬 Our Discord- Stable releases at GitHub
- Fresh devel builds
- Game assets packages
Using
- Use the game
- Create levels and episodes
- Tutorials
Advanced use
- Command-line arguments
- thextech.ini: Tune game settings
- compat.ini: Tune the compatibility
- Run old packed games
- gameinfo.ini: Customize the game
Hacking
Clone this wiki locally
The game should work with a default GCC compiler, included with Haiku Beta 1 and higher.
This build is very similar to Linux/xBSD build, however, it has some differences that you need to pay attention on some cases:
-
A build-in-place of SDL2 gives a not working properly build, therefore, you need to use an SDL2 from the system. Install it via Haiku Depot or via
pkgmantool from a command line:pkgman install libsdl2 libsdl2_devel cmake ninja
-
Clone repository:
git clone https://github.com/Wohlstand/TheXTech.git
-
Make sure all submodules were pulled, otherwise, it won't build:
cd TheXTech git submodule init git submodule update -
Make the building directory:
mkdir build cd build -
Run a CMake configuring:
# when you want to use the regular GNU Make cmake -DCMAKE_BUILD_TYPE=Debug ..# OR when you want to use Ninja which does better parallel processes management cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ..A note: if you going to deploy a release build, the "MinSizeRel" configuration is suggested.
-
Run the build itself:
# Run regular GNU Make build with 4 parallel tasks (suggested on 4-core CPU, if you have more cores, use a different number than 4) make -j 4# Or run a Ninja build ninja
Running and debugging a build
The built game will not work until you will prepare the game root. Please prepare the game root until you will be able to run a game. The game root by default is located in your home directory and you can have multiple builds with different configurations and modes, all will use the same game root directory at your home directory.
-
Make a folder in your home directory:
mkdir -p "~/PGE Project/thextech/" -
Download one of two archives with compatible assets:
-
Unpack the content of the archive into your
~/PGE Project/thextech/directory -
Make in the
~/PGE Project/thextech/directory the "worlds" folder and put any compatible episodes you have (all episodes made for an original SMBX 1.3 and earlier will work here). Optionally you can make the "battle" folder and put a bunch of level fils which will be used for battle arena purposes. -
Once your game root directory is ready, feel free to run the
output/bin/thextechbinary to start a game.