Documentation of the Ace of Spades 0.75/0.76 wire protocol and of protocol 1.0, the protocol of ngspades-server, with C and Godot examples.
Read online at ngspades.github.io/protocol, or as a PDF: the whole book.
ngspades was an unfinished OpenSpades branch by yvt that worked toward a next-generation Ace of Spades protocol ("strengtheningAo"); it was abandoned years ago. The ngspades organization is reviving that work: Shoot and Destroy is our client and server, a fork of BetterSpades and of SpadesX's server. Its client speaks the classic 0.75/0.76 protocol, including the new extensions ZeroSpades registered (aosprotocol; ZeroSpades and KyroSpades speak them too, the extensions page says who speaks which), and a public list, and with our own server it speaks protocol 1.0, the finished form of what ngspades started.
The sources are Typst files in src/pages/.
| Page | Source | Covers |
|---|---|---|
| Overview | src/pages/index.typ |
versions, implementers, other resources |
| Protocol 0.75 / 0.76 | src/pages/protocol075.typ |
connection, every packet, game rules, the server list, how to write a server |
| Protocol 1.0 | src/pages/protocol10.typ |
connection over ENet and WebRTC, every packet, entities, trajectories, game mode state, a minimum client |
| Extensions | src/pages/extensions.typ |
the 0.75 extension negotiation and registry |
| Master Server | src/pages/protocolmaster.typ |
the classic master and our HTTP master |
| Ping | src/pages/protocolping.typ |
HELLO, HELLOLAN, HELLOINFO, map previews |
| examples/c, examples/godot | C and GDScript codecs and connections |
Needs Typst 0.15 or later and Python 3.
make site # site/ : HTML, style.css, 404.html and site/pdf/*.pdf
make check # fidelity check against the old Markdown, then the link checkSee CONTRIBUTING.md.
A wire change is a protocol change: open an issue first. See CONTRIBUTING.md.
Join the official Nexgen Spades Discord to play, get help and share what you build: https://discord.gg/vfknrFQr2
Where it all began: the Build and Shoot Discord, home of the Ace of Spades community: https://discord.gg/Cbda3DtJR
The text is CC BY 4.0; the example code is MIT. See LICENSE.
