An attempt at continuing Trykowka's "The Ghost Hunter".
This fork is maintained independently and the original author, Trykowka, is not involved in these updates. If you'd like to support the original creator, you can find their Patreon here: https://www.patreon.com/Yaldabaoth
- Tweego (Twee/Twine compiler)
- Download from: https://github.com/tmedwards/tweego
- Or use the automated setup script below
- Python 3 (for validation checks during build)
- Windows users: PowerShell 5+ (included with Windows 10/11)
Run the setup script to automatically download and install Tweego and SugarCube:
Linux / macOS:
./scripts/setup.shWindows:
scripts\setup.batIf you prefer to set up Tweego manually:
- Download Tweego from: https://github.com/tmedwards/tweego/releases
- Extract the archive to the project root
- Ensure the path in the build script matches your Tweego location:
- Linux/macOS default:
tweego-2.1.1-linux-x64/tweego - Windows default:
tweego-2.1.1-windows-x64\tweego.exe - Or update the
TWEEGO_PATHvariable inscripts/build.sh/scripts/build.bat
- Linux/macOS default:
- Open the project in VS Code
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "Run Task" and select "Tasks: Run Task"
- Choose "Build Story" to build the project
- Choose "Open in Browser" to build the story and open it in your default browser
VS Code tasks automatically detect your OS and run the correct script.
Linux / macOS:
# Build the story
./scripts/build.sh
# Build and open the story in your default browser
./scripts/start.sh
# Clean build artifacts
rm -f ghost-in-msheet.htmlWindows:
:: Build the story
scripts\build.bat
:: Build and open the story in your default browser
scripts\start.bat
:: Clean build artifacts
del ghost-in-msheet.htmlCtrl+Shift+B(orCmd+Shift+Bon Mac): Run Build TaskCtrl+Shift+P→ "Run Task": Select from available tasks
- Build the story using the "Build Story" task (or run
./scripts/start.shto build and open it) - Press
F5to launch the debugger - Choose your preferred browser (Chrome or Firefox)
The scripts/build.sh script includes:
- Automatic error handling
- Verification of required files and dependencies
- Color-coded output for better visibility
- File size reporting
- Cleanup of existing output files
- Detailed error messages
If you have inotify-tools installed:
npm run watchThis will automatically rebuild the story whenever source files change.
npm scripts automatically detect your OS and run the correct build script:
# Install dependencies
npm install
# One-time setup (downloads Tweego & SugarCube)
npm run setup
# Build
npm run build
# Build and open in browser
npm start
# Watch for changes (Linux only, requires inotify-tools)
npm run watch
# Clean build artifacts
npm run clean
# Rebuild
npm run rebuild- Ensure Tweego is installed and in your PATH
- Or update the
TWEEGO_PATHvariable inscripts/build.sh
- Verify that your story passages are in the
passages/directory - Ensure files have the
.twextension
- Check that all required files exist
- Verify file permissions (scripts/build.sh should be executable)
- Check the error output for specific issues
The build process creates ghost-in-msheet.html, which can be:
- Opened directly in a web browser
- Served using a local development server
- Deployed to a web server
You can customize the build process by editing:
scripts/build.sh/scripts/build.bat: Main build script (Linux+macOS / Windows)scripts/start.sh/scripts/start.bat: Build-and-open-in-browser scriptscripts/setup.sh/scripts/setup.bat: One-time setup script.vscode/tasks.json: VS Code task definitions (auto-detects OS).vscode/launch.json: VS Code debug configurations
- Setup Guide - Detailed setup instructions
GPLv3