Installation
This guide covers installing Two-Face on all supported platforms.
Quick Install
Pre-built Binaries
Download the latest release for your platform from GitHub Releases:
| Platform | Download |
|---|---|
| Windows (x64) | two-face-windows-x64.zip |
| Linux (x64) | two-face-linux-x64.tar.gz |
| macOS (Intel) | two-face-macos-x64.tar.gz |
| macOS (Apple Silicon) | two-face-macos-arm64.tar.gz |
Extract and Run
Windows:
# Extract to a folder
Expand-Archive two-face-windows-x64.zip -DestinationPath C:\two-face
# Run
C:\two-face\two-face.exe
Linux/macOS:
# Extract
tar xzf two-face-linux-x64.tar.gz
# Make executable
chmod +x two-face
# Run
./two-face
Building from Source
For the latest features or unsupported platforms, build from source.
Prerequisites
-
Rust Toolchain (1.70+)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -
Platform-Specific Dependencies
Windows:
- Visual Studio Build Tools
- vcpkg with OpenSSL:
git clone https://github.com/microsoft/vcpkg.git C:\vcpkg cd C:\vcpkg .\bootstrap-vcpkg.bat .\vcpkg install openssl:x64-windows $env:VCPKG_ROOT = "C:\vcpkg"
Linux (Debian/Ubuntu):
sudo apt install build-essential pkg-config libssl-dev libasound2-devLinux (Fedora/RHEL):
sudo dnf install gcc pkg-config openssl-devel alsa-lib-develmacOS:
xcode-select --install # OpenSSL usually provided by system
Build Steps
# Clone repository
git clone https://github.com/nisugi/two-face.git
cd two-face
# Build release version
cargo build --release
# Binary is at target/release/two-face
Build Options
# Build without sound support (smaller binary)
cargo build --release --no-default-features
# Build with all features
cargo build --release --features sound
Data Directory
Two-Face stores configuration in a data directory:
| Platform | Default Location |
|---|---|
| Windows | %USERPROFILE%\.two-face\ |
| Linux | ~/.two-face/ |
| macOS | ~/.two-face/ |
Structure
~/.two-face/
├── config.toml # Main configuration
├── layout.toml # Window layout
├── keybinds.toml # Key bindings
├── highlights.toml # Text highlighting
├── colors.toml # Color theme
├── simu.pem # eAccess certificate (auto-downloaded)
├── two-face.log # Debug log
└── profiles/ # Per-character profiles
└── CharName/
├── layout.toml
└── highlights.toml
Custom Data Directory
Override the default location:
# Via command line
two-face --data-dir /path/to/custom/dir
# Via environment variable
export TWO_FACE_DIR=/path/to/custom/dir
two-face
Verifying Installation
-
Check version:
two-face --version -
View help:
two-face --help -
Test terminal colors: Launch Two-Face and check if colors display correctly. If colors look wrong:
# Set truecolor support export COLORTERM=truecolor two-face
Troubleshooting Installation
Windows: “vcruntime140.dll not found”
Install the Visual C++ Redistributable.
Windows: OpenSSL errors
Ensure VCPKG_ROOT is set and OpenSSL is installed via vcpkg.
Linux: “libasound.so not found”
Install ALSA library:
# Debian/Ubuntu
sudo apt install libasound2
# Fedora
sudo dnf install alsa-lib
macOS: “cannot be opened because the developer cannot be verified”
Right-click the binary, select “Open”, then click “Open” in the dialog.
All Platforms: Colors not working
- Use a modern terminal (Windows Terminal, iTerm2, etc.)
- Set
COLORTERM=truecolorenvironment variable - Ensure your terminal supports 24-bit color
Next Steps
With Two-Face installed, continue to First Launch to connect to the game.
See Also
- Building from Source - Detailed build guide for developers
- Configuration Reference - Config file documentation
- Troubleshooting - Common issues and solutions