Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.95 KB

mac-setup.md

File metadata and controls

34 lines (28 loc) · 1.95 KB

Mac Setup Instructions

<project root> below refers to wherever this git repository was cloned to.

Configure

  1. Install stack
  2. Install homebrew
    • brew install pkg-config sdl2 sdl2-image sdl2-ttf

Enable Game Audio (optional)

  1. Register for a FMOD account
  2. Download and extract "FMOD Engine 2.02.08" (Mac)
  3. From the extracted contents:
    • Copy api/core/inc/*.h into <project root>/inc/
    • Copy api/studio/inc/*.h into <project root>/inc/
    • Copy api/core/lib/libfmod.dylib into <project root>/lib/
    • Copy api/studio/lib/libfmodstudio.dylib into <project root>/lib/
  4. Edit the lines at the bottom of <project root>/package.yaml:
    • In the c-sources: line change wrapper-NOAUDIO.c to wrapper.c
    • Uncomment the extra-lib-dirs and extra-libraries lines
  5. After building run the game with: DYLD_LIBRARY_PATH=<project root>/lib ./defect-process

Build

stack build --local-bin-path . --copy-bins (ignore any warnings about PATH)

Run

This assumes you've purchased a copy of the game on Steam.

  1. 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"
  2. 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/
  3. From <project root> run ./defect-process

See docs/dev-console-reference.pdf for what dev console commands are available.