Skip to content

Getting Started ​

Just want to play?

Play Washiki Washoi in your browser at washoi.net: nothing to install. Start with Your first match.

This guide is for modders and developers who want to run the game locally from its source code.

Washiki Washoi runs as a git submodule under src/games/fps/ inside the SHAG engine repo. The engine handles BSP / PK3 / shaders / rendering / physics; this submodule is the game on top.

Requirements ​

  • Node.js 24 or later; the engine's .nvmrc pins major version 24. The lobby uses the built-in node:sqlite module.
  • Git with submodule support
  • A modern WebGL2-capable browser; WebGPU is also available on supported setups

Setup ​

Clone the engine + this submodule together ​

bash
git clone --recursive https://github.com/Higher-Standard-Games/shag.git
cd shag
npm install

Add to an existing engine clone ​

bash
git submodule update --init --recursive

Game data ​

PK3 files (maps, textures, models, sounds) are not in this repo or the engine repo. Drop them into public/data/ in the engine repo root:

Package in public/data/Purpose
map_washoi_dm2.pk3Example installed map archive
washoi_player_model.pk3Player bodies
washoi_player_animations.pk3Animation clips every body shares
Other *.pk3 packagesShared textures, sounds and other game data

This directory is gitignored — each developer downloads or builds their own game data.

Map loading uses the PK3 index rather than searching for loose BSP files. After adding packages, run npm run tools:pk3-index at the SHAG root; restart the lobby so its installed map list is refreshed. See Maps.

First Run ​

powershell
# In the engine repo root (PowerShell)
npm --prefix src/games/fps run dev

Washoi owns client/main.ts, index.html and browser.json. SHAG supplies the renderer and engine services. The game package's commands select Washoi automatically, including npm --prefix src/games/fps run build. They run from the assembled root so media, storage and output paths keep the same meaning. Inside src/games/fps, the shorter npm run dev and npm run build also work. Install dependencies only at the engine root; the game package supplies commands and does not install another Babylon dependency tree.

The engine's own npm run dev uses SHAG_APP or .shag-application.json; set SHAG_APP=engine there to open its example instead. Media remains under the engine's public/data/ directory. The tracked submodule still exists during the repository split; the checkout commands above remain applicable until cutover.

Run npm --prefix src/games/fps run lobby:server in another terminal for a local lobby. Open http://localhost:3000, choose Play, a mode and Public or Private, then enter a room and ready up. Add AI player in a room seats a bot; the lobby runs bots itself, so nothing else needs starting. A public room nobody else joins invites a bot by itself after 90 seconds. See Your First Match.

For the developer flow with a one-keystroke server-backed map launch:

# In a separate terminal
npm --prefix src/games/fps run lobby:server

# Then in the in-game console (press the backquote key):
developer 1; map washoi_dm2 duel

See the engine's Map Launching Guide for the full developer flow.

Dedicated Server ​

Washoi supplies a headless dedicated-server launcher that runs its GameServer using SHAG's reusable server services:

bash
npm --prefix src/games/fps run net:server -- --map washoi_dm2 --port 7777 --gametype duel

Common flags (the full list, including --name, --tickrate, --snapshotrate, --single-match and TLS options, is in Server Commands):

FlagDefaultNotes
--mapwashoi_dm2Map name (must exist in public/data/)
--port7777WebSocket port
--gametypeDeathmatchRelease modes: Deathmatch (ffa), Duel (1v1), Amphi, SnD (bomb)
--max16Max clients
--shutdownoffAuto-exit when all clients disconnect

Type spawn_bots 4 in the server's terminal to add four simple bots.

Connect to it from the in-game console:

connect ws://localhost:7777

Bots ​

Bots connect to game servers as real WebSocket clients; at the protocol level they are indistinguishable from human players. The lobby seats them and plays each match's bots in a child process of its own, so a running lobby is all they need. A separate bot server (bot:server) is the alternative.

See Tools → Bots for where bots run, their difficulty presets and how they play.

Preview this manual ​

From the engine repository root:

bash
npm --prefix src/games/fps run docs:dev
npm --prefix src/games/fps run docs:build
npm --prefix src/games/fps run docs:preview

The game manual has its own VitePress config and bundled fonts. The engine's docs:dev / docs:build scripts serve the engine manual instead.

Next ​

Built on the SHAG Engine.