<project root> below refers to wherever this git repository was cloned to.
- Install stack
- Install the SDL2, SDL2_image, SDL2_ttf libraries from your distribution's package manager e.g.:
- Ubuntu:
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev - Arch Linux:
sudo pacman -S sdl2 sdl2_image sdl2_ttf
- Ubuntu:
- Register for a FMOD account
- Download and extract "FMOD Engine 2.02.08" (Linux)
- From the extracted contents:
- Copy
api/core/inc/*.hinto<project root>/inc/ - Copy
api/studio/inc/*.hinto<project root>/inc/ - Copy
api/core/lib/x86_x64/libfmod.so*into<project root>/lib/ - Copy
api/studio/lib/x86_x64/libfmodstudio.so*into<project root>/lib/
- Copy
- Edit the lines at the bottom of
<project root>/package.yaml:- In the
c-sources:line changewrapper-NOAUDIO.ctowrapper.c - Uncomment the
extra-lib-dirsandextra-librarieslines
- In the
- After building run the game with:
LD_LIBRARY_PATH=<project root>/lib ./defect-process
stack build --local-bin-path . --copy-bins (ignore any warnings about PATH)
This assumes you've purchased a copy of the game on Steam.
- From the Steam client right click the Defect Process entry in the games library
-> Properties -> Betas- Change the selected beta from "None" to "github - branch for github"
- From the Steam client right click the Defect Process entry in your games library
-> Properties -> Local Files -> Browse. The file explorer window that pops up should be in the installed steam game directory:- Copy the contents of
<steam game directory>/data/into<project root>/data/
- Copy the contents of
- From
<project root>run./defect-process
See docs/dev-console-reference.pdf for what dev console commands are available.