The first thing to run. It clones the projects of the GameSpice family (games, addons, maps), links each addon into the projects that use it, and gets you to a running game. Part of the GameSpice family.
These are plain shell and PowerShell scripts, MIT licensed and built with Claude Code. The tests/ folder checks them. The games in Zee's Games run on live servers, and this is the script that gets a fresh machine from nothing to one of them running.
Each GameSpice project is its own Git repository on purpose: an addon is used by copying its addons/<name>/ folder. These scripts are the one place that knows which repositories exist and which addons each one needs.
| File | Platform |
|---|---|
bootstrap.sh |
Linux and macOS |
bootstrap.ps1 |
Windows |
projects.tsv |
The list of every project and where it is cloned from. |
The repositories are public, so you need no credentials to clone or pull. The scripts use HTTPS by default. Use --ssh (-Ssh on Windows) on a machine you push from.
git clone https://github.com/gamespice-platform/bootstrap.git
cd bootstrap
./bootstrap.shgit clone https://github.com/gamespice-platform/bootstrap.git
cd bootstrap
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # once, if PowerShell refuses
.\bootstrap.ps1Everything goes into ./projects next to the script (gitignored). Run it again at any time to pull updates. Uncommitted work is never overwritten. Set GS_PROJECTS (-Projects on Windows) to use another folder. The first line printed says where it decided to put things.
A plain run with no selection clones every repository in projects.tsv: all games, all map repositories and the optional weapon and monster packs.
Name what you want and it brings what that needs, and nothing else.
./bootstrap.sh --only wipeout # one game with its addons, weapons and maps
./bootstrap.sh --only fatal-contact,playlot # short names; several at once
./bootstrap.sh --only 'mg-*' # a wildcard
./bootstrap.sh --only gs-weapon --no-deps # just that repository
./bootstrap.sh mg-wipeout --min # no content packs
./bootstrap.sh --plan zees-games # print what would happen, change nothing| Option (Windows form in brackets) | What it does |
|---|---|
--only A,B (-Only) |
Select projects by name, short name or wildcard. Bare names work too. |
--games, --addons (-Games, -Addons) |
Select by kind. |
--no-deps (-NoDeps) |
Do not bring dependencies. |
--min (-Min) |
Base repository and addons only, no content packs. |
--with-maps (-WithMaps, or GS_FETCH_MAPS=1) |
Also clone and link the Fatal Contact map packs (fc-dm-maps, fc-surf-dm-maps, 1.2 GB). By default they are left out: the game fetches a map's pack from the CDN when you pick it. Needed for map editing and the offline map suites. |
--map-get SPEC... (-MapGet) |
Fetch only the named maps into the game's maps/dev/ (see below). --map-version V (-MapVersion) is an alternative to @V. |
--plan (-Plan) |
Show what would be cloned and linked. |
--import (-Import) |
Import every selected game headless (the editor can crash on its own first import). |
--discard-generated (-DiscardGenerated) |
Restore editor-rewritten .import and .uid files so a blocked update can continue. |
--links (-Links) |
Only redo the addon links. |
--status (-Status) |
Branch, dirty and unpushed state for each repository. |
--check (-Check) |
Check that projects.tsv still matches the disk. |
--tools (-Tools) |
Install fastgmad (see below). |
--content-keys (-ContentKeys) |
Make a content signing key so this machine can publish packs. |
--no-stores (-NoStores) |
Skip the large art stores (maps then use low-detail art). |
Set GS_GIT_BASE to clone from somewhere other than GitHub.
./bootstrap.sh --list # what there is
./bootstrap.sh --play fatal-contact # or airdrift, playlot, hungarioYou need no server and no downloads. Every game plays offline when no dedicated server is attached (Fatal Contact gives you bots on a map, other games a map and a timer). You need Godot 4.7 on PATH, GODOT pointing at it, or ./bootstrap.sh --get-godot (.\bootstrap.ps1 -GetGodot), which downloads the latest stable release.
To make a release build, run ./bootstrap.sh --export fatal-contact (-Export on Windows). It uses the game's Linux x86_64 or Windows x86_64 preset and writes to the game's build/ folder. --play-export <game> starts that build, exporting first if needed.
While exporting, maps/imported, maps/imported_dm and maps/dev (present only after --with-maps) are renamed out of the way so Godot's import does not scan hundreds of maps; they are restored afterwards, even if the export fails. Set GS_IMPORT_MAPS=1 to import and export them.
--with-maps is 1.2 GB. To work on a few maps, fetch just those:
./bootstrap.sh --map-get fc-dm-maps/cp-orange-x3 fc-surf-dm-maps/surf-ice@1.0.1
./bootstrap.sh --map-get owner/pack/map --map-version 1.0.2
./bootstrap.sh --map-get # replay maps.dev.lock exactly
| Spec | Meaning |
|---|---|
owner/pack/map, pack/map, owner/map, map |
One map. _ matches - and the mode prefix (cp-, dm-, gg-, ctf-, dod-) may be left off when the name is unique. |
owner/pack or pack |
The whole pack. |
...@latest (default) |
The pack's current content.lock.json entry. |
...@1.0.1 or --map-version 1.0.1 |
That version, pinned. A version the lock does not name has no pinned manifest hash (a note says so); every file is still hash-checked. A version applies to one map, not a whole pack. |
Each map is its own entry in the pack's content.lock.json (id, version, manifest hash; the manifest lists every file with its sha256 and size), so no manifest change is needed and tools/fetch_lock.sh does the download. The lock comes from the pack's checkout when present, otherwise from a small sparse clone in <projects>/.map-locks/. An unknown pack, map or version stops with one map-get: error line and leaves maps.dev.lock untouched.
- Maps land in the game's
maps/dev/<map>/, separate frommaps/imported*. The game defaults togame-fatal-contact; name another with--gamesorGS_MAP_GAME. maps.dev.lock(in the game) records what was fetched, so reruns and--map-getwith no arguments reproduce it. Later calls add to it./maps/devand/maps.dev.lockare added to the game's.git/info/exclude; add them to its.gitignoretoo if you like.maps/dev/*is added to the exportexclude_filterofexport_presets.cfg, and--exporthides and restores the folder as it doesmaps/imported(GS_IMPORT_MAPS=1keeps it).- Non-production CDNs normally replace a pin with their "-dev.N" latest;
--map-getsetsGS_CDN_PIN=1for replays and pinned versions so they stay reproducible.
PowerShell: .\bootstrap.ps1 -MapGet fc-dm-maps/cp-orange-x3,surf-ice@1.0.1 -MapVersion ...; the --map-get a b spelling also works. orange_x3@latest needs no quotes because the @ is not leading; quote a spec if it contains spaces or a leading @, and separate several -MapGet values with commas. The PowerShell side is mirrored by hand and has not been run (no pwsh available); it calls the shared tools/map_get.py, so it needs Python 3 (python3, python or py -3).
You can play a converted map folder or .zip without publishing it. Name it <map>_orig if it keeps its original textures; such packs are never published. Use one of:
- Put it in the game's user data
maps/folder (Linux~/.local/share/godot/app_userdata/<game>/maps, Windows%APPDATA%\Godot\app_userdata\<game>\maps;--play-export <game>prints the exact folder). - In a source checkout, put it in
res://addons/maps. - Drag it onto the window of a game that calls
GSMapLocalMaps.watch_drops(Fatal Contact does).
It shows as <title> (local) and plays solo only. See gs-map docs/content.md.
Some games draw converted maps with shared textures and models that are in no repository. Without them the maps still play with low-detail stand-ins and the load screen says "Low-detail art". Players get the art as GameSpice Cloud slices from a server that publishes them. A developer stages it once (about 2 GB):
gs-map-convert/tools/stage_stores.sh zombie-zone-maps --from dev02:godot/zombie-zone-maps/.stores --game game-zombie-zoneThis is not part of a plain sync because it is a large download. Details: gs-map docs/content.md.
There are no hard-coded lists in the scripts, because lists in several places go stale.
| Source | What it gives |
|---|---|
projects.tsv |
The projects. --check fails if it disagrees with the disk. |
A project's .gitignore, /addons/<name> lines |
The addons that project needs. |
# bootstrap-link: <repo>/<path> above an ignored path |
A content folder from another repository. |
# bootstrap-optional above an addon line |
An optional pack. Linked by default, skipped with --min. |
# bootstrap-natives: <repo> <tag> above an addon line |
A native library. Bootstrap fetches that release and checks its SHA256SUMS before linking. |
gs-workbench is in projects.tsv and is linked into every game and gs-game-template.
bootstrap.sh makes relative symlinks. bootstrap.ps1 copies each addon folder, because Godot 4.7 does not register class_name scripts through Windows junctions (-Junction opts back in; --copy on Linux copies). After a git pull on Windows, re-run .\bootstrap.ps1 -Links. If Git checks a symlink out as a plain file (core.symlinks false on Windows), addons\gs_core becomes a tiny text file and every class_name fails to resolve.
Stock Valve and Source assets (.vpk, .vtf, .vmt, .mdl, .vvd, .vtx, .phy, .ani, a textures/orig folder) never belong in a repository or a published pack. gs-cloud's tools/check_valve_files.py refuses them and CI runs it everywhere. To refuse them at commit time too:
tools/install-valve-hooks.sh # every repository in ./projects
tools/install-valve-hooks.sh /path/to/dir # any directory of repositories
tools/install-valve-hooks.sh --check # list repositories without the hookbootstrap.sh runs this on every sync. The hook needs gs-cloud cloned next to the others; set GS_CLOUD=/path if it is elsewhere. Git worktrees share their repository's hooks.
A repository with content on the CDN (art stores, packs) has a content.lock.json that lists what to fetch, pinned by hash. One fetcher reads it: tools/fetch_lock.sh (tools/fetch_lock.ps1 on Windows).
../zombie-zone-maps/fetch-content.sh # one repository
tools/fetch_all.sh # every lock file in the tree
tools/fetch_all.sh --only 'zombie-*' # only some
tools/fetch_all.sh --except zz-stores,mg-*-maps # all but some
tools/fetch_lock.sh <repo>/content.lock.json --list # what would be fetchedThe CDN is the first of these that is set:
--from(a full origin URL or a folder).$GS_PACKS_FROM(nonefetches nothing).--cdn URLor$GS_CDN_URL.GS_CDN_URL=inbootstrap/.env(copy.env.example; gitignored).- The lock file's own
originandmirrors. https://content.gamespice.net.
The dev CDN is the dev storez node behind an nginx vhost on the dev VM (10.50.0.111, /etc/nginx/sites-enabled/x-tmc-storez.conf); packs sit at /content/<owner>/<id>/latest.json like on prod. Publish to it through the dev site (GS_SITE=https://tmcdev.net tools/publish.sh ...); each site signs with its own key, so a lock file pinned to prod needs manifest_sha256_by_origin for this base. Point every repo at it with GS_CDN_URL=https://x-tmc-storez in .env. Every bootstrap run prints the CDN on its top lines (cdn: https://x-tmc-storez (DEV, from .env), in colour) so a dev run cannot pass for prod.
Dev latest: against a non-prod CDN fetch_lock.sh reads each pack's latest.json; when it names a -dev.N version, that version is fetched instead of the lock's pin (manifest hash not pinned; the lock file is never written; GS_CDN_PIN=1 keeps the pins). Windows fetchers (fetch_lock.ps1) do not do this yet.
The certificate comes from the TMC Local Development CA, published at https://x-tmc-storez/tmc-local-ca.crt (and plain http://x-tmc-storez/tmc-local-ca.crt).
| Where | Trust the CA |
|---|---|
Linux / macOS (fetch_lock.sh) |
GS_CDN_CA=/path/tmc-local-ca.crt in .env or the environment (used for the fetch only; on the dev VM /opt/tmc-local-ca.crt). |
Windows (fetch_lock.ps1, bootstrap.ps1) |
PowerShell uses the Windows certificate store, not a browser's. -TrustDevCa (or $env:GS_TRUST_DEV_CA=1) imports the CA into Cert:\CurrentUser\Root (no admin, one Windows confirm); an interactive run with a dev CDN that fails the handshake asks first. By hand: Invoke-WebRequest http://x-tmc-storez/tmc-local-ca.crt -OutFile $env:TEMP\ca.crt; Import-Certificate -FilePath $env:TEMP\ca.crt -CertStoreLocation Cert:\CurrentUser\Root |
Download lists in cfg/content/addons.yml and games.yml (and cfg/server/content/) are respected. Packs are only mirrored when --packs DIR is given; otherwise GSCloudClient mounts them at run time. The raw art stores of zombie-zone-maps are fetched once and kept; set GS_STORES_FROM=none to skip them, or to a folder or .tar URL to use your own. On Windows the fetch scripts need PowerShell 7 (pwsh) or the Windows PowerShell 5.1 that ships with Windows 10 and later.
gs-cloud refuses unsigned manifests, because a mounted pack can contain scripts. A fresh clone can consume the team's content but cannot publish its own, since private keys are never in a repository. Run:
./bootstrap.sh --content-keys # or .\bootstrap.ps1 -ContentKeysThis gives the machine its own key and rewrites gs-server-deploy/client/content.json to trust it. That leaves the file locally modified, so do not commit it.
--tools installs fastgmad, the extractor for .gma addon archives. gs-map-convert's BSP importer runs it. It is found through GSBSP_FASTGMAD, then PATH, then ~/.local/bin/fastgmad. It is opt-in so a plain sync needs only git.
| Tool | Author | Licence |
|---|---|---|
| fastgmad 0.2.1 | William Venner | Apache-2.0 |
The release zip is checked against a pinned SHA-256 before it is unpacked into ~/.local/share/fastgmad-0.2.1 (GS_TOOLS_PREFIX changes the prefix). Linux x86_64 and macOS are supported (macOS untested). On Windows it unpacks into %LOCALAPPDATA%\fastgmad\0.2.1, which you must put on PATH or point GSBSP_FASTGMAD at (untested).
These are for people working on the family itself.
| Tool | What it does |
|---|---|
shadowed_methods.py |
Finds public funcs whose name a native Godot class already defines, which GDScript silently binds to the engine version. Run --self-test first. Needs godot. |
check_pushed_floors.sh |
Compares each game's published requires.floor.json with each addon's published API level, so a fresh clone parses. |
check_workbench_link.sh |
Checks that every game links GameSpice Workbench. |
install-valve-hooks.sh |
See above. |
fetch_all.sh, make_fetch_scripts.sh |
See "Fetching content". |
gpu.sh, heavy, realtime_suites.conf |
Run heavy jobs on the shared GPU and build boxes. The comments in each file explain the options. |
gpu.sh offer ... processes are heavy's offload hook: each queued job shows as two or three of them, and most run a suite on ph's CPUs. They are not GPU tickets, so count jobs with ./gpu.sh queue (or tools/gpu_queue.sh), not ps | grep gpu.sh.
| Command | Does |
|---|---|
./gpu.sh queue (also the first lines of ./gpu.sh status) |
heavy jobs running or waiting, oldest wait, captures waiting for a GPU box, duplicate and orphaned jobs |
./gpu.sh queue reap [-n] |
SIGTERM orphaned duplicates (an identical job exists and no agent is above it); -n only lists. offer does this itself every GPU_REAP_EVERY_S (300, 0 = never); GPU_ORPHAN_REAP_S=N also reaps any orphan older than N s |
./gpu.sh queue check |
FLAG gpu-queue: lines and exit 1 when a job or capture has waited over GPU_WAIT_ALERT_S (900, 0 = off) or orphaned duplicates exist; notes the nightly item gpu-queue-starvation at most every GPU_QUEUE_NOTE_EVERY_S (1800) |
Captures (gpu.sh shot) come first: while one waits for a GPU box, offer keeps suites on the CPU boxes (ph). GPU_SHOT_PRIORITY=0 turns that off.
Run GPU captures and gpu.sh as gamedev (sudo -u gamedev ...): the christian user has no ~/.ssh/gpu-laptop key, so a capture started as christian never reaches a box, and only gamedev can see every agent's jobs.
Zee's Games is a collection of games I made on GameSpice, for demonstration and for fun. They show what the platform can do, and they run on live servers you can join. Anybody can create games on GameSpice, and everything in the family is its own repository and can be used separately from the games.
Nobody vendors it, because it is a set of scripts and not an addon. It is how you get any of the games and the addons they use onto your machine. The whole collection is at zeesgames.com.
MIT. See LICENSE.