The ngspades protocol for Ace of Spades, alive again, and ngspades-client and ngspades-server, its reference client and server.
A community project, made by Ace of Spades players for Ace of Spades players.
Ace of Spades has been kept alive for over a decade by its players: the map makers, the script authors, the people who run servers and the ones who just keep logging in. ngspades is one more piece of that, built in the open on the work they shared, and it is meant to stay theirs: the code is GPL-3, the protocol is documented so anyone can write their own client or server, and the maps and plugins live in public repositories that take contributions.
Come say hello, tell us what is broken, and share what you build:
| Where | What for |
|---|---|
| 💬 Nexgen Spades Discord | The project's official server: playing, finding a match, help with a server, feedback while it is fresh. |
| 🔨 Build and Shoot Discord | Where it all began: the Ace of Spades community's server, home of the scripts, maps and servers this project builds on. |
| 🟠 r/AceOfSpades | The wider Ace of Spades community: news, maps, memories, questions. |
| 🔨 Build and Shoot | The classic forums and server list: scripts, maps and servers from the community's long history. |
ngspades was a branch of OpenSpades, the
open source Ace of Spades client written by yvt and its
contributors. Between 2013 and 2014 that branch designed a new network protocol
for Ace of Spades (its wire calls itself WorldOfSpades), meant to replace the
0.75 protocol every public server still speaks: entities and trajectories instead
of fixed packets, a proper handshake with versions and certificates. The branch was
left as a prototype. Its codec was complete, its game was not.
We picked it up where it stopped. Our protocol 1.0 starts from the ngspades wire format, fixes its defects and adds what a whole game needs (building, digging, chat, game modes, classes, perks, bots). It is documented, packet by packet, in ngspades/protocol, together with 0.75 and 0.76, so anyone can write a client or a server that plays with ours.
This organization is named after that work as a credit to it. It is not the OpenSpades project and is not run by its authors; the original ngspades code is theirs, under its own licence, in the OpenSpades repository.
ngspades-client and ngspades-server implement the ngspades protocol, and are the reference for it: one client that speaks protocol 1.0 with our servers and keeps joining every public 0.75 / 0.76 server, and a server that speaks 1.0 (or, in its classic profile, 0.75).
- Singleplayer that is a real server. Starting a match runs the dedicated server locally and joins it: offline and online are the same game, and friends can join you.
- Bots that play like people. They plan their way to the objective (digging, bridging, swimming out), take cover, hear digging, and split CTF into roles: defenders, infiltrators tunnelling with a bodyguard, snipers, rushers.
- Classes and perks. Commando, Rocketeer, Marksman and Miner, each with its own gear and streak perk: sentry guns, landmines, dynamite, revives, jetpacks.
- Many modes. Classic and next gen CTF, Babel, Arena, Zombies, King of the Hill, Territory Control, Creative, and Lua game modes from plugins.
- Up to 128 players a match, bots included.
- Fast joins, light on the network. The server sends a map as its stored, compact file, and a player who has played it before receives nothing at all. Each player gets only the bodies it can use, at a rate that falls with distance: with 127 bots a client needs about 26 KB/s instead of 161, and a 1024 x 1024 map takes about 60 MiB of the server instead of 297. How, and how it compares with SpadesX, is in the server's README.
- Gamepad first. Every menu and every action works with a controller, for handhelds and consoles.
- Everywhere. Linux, macOS, Windows, iOS, Android, the browser and handhelds.
Its visual target is the Ace of Spades that never shipped: the cancelled OpenGL 1.0 build of 2012, the one Jagex later turned into Ace of Spades: Battle Builder. Its developers, Ben Aksoy (bcoolface), Mathias Kærlev (Mat^2) and Grandy (TheGrandMaster), left 166 screenshots of it, from January to September 2012, which SeanVS preserved in the Ace of Spades OpenGL 1.0 Build - Full Developer Screenshot Collection on the Internet Archive. ngspades-client aims to come as close as it can to those pictures, with its own models, effects and code: the screenshots are the goal, not a source of files.
| Repository | What is in it |
|---|---|
| 🖥️ server | The open source reference server. Supports the classic 0.75 protocol and the ngspades 1.0 protocol, with bots, game modes, Lua plugins, Docker and ready-to-run builds. Host your own match. |
| 📡 protocol | The protocols, documented for implementers: ngspades 1.0, Ace of Spades 0.75 / 0.76 and its extensions, the master server and the ping queries, with C and Godot examples. |
| 🗺️ maps | Every Ace of Spades map from aos.party (891 of them), with the original pyspades .txt and a .toml ready for an ngspades-server. Copy a folder, add it to your rotation. |
| 🧩 plugins | Lua plugins for ngspades-server: game modes, mechanics, admin and building tools, most of them pyspades / PySnip scripts ported to Lua. Includes the plugin API and examples to write your own. |
ngspades stands on the shoulders of the Ace of Spades community: protocol 1.0 starts from the ngspades branch of OpenSpades by yvt and its contributors, the client is a fork of ButterSpades (itself a fork of BetterSpades), and the server a fork of SpadesX. Thank you to every map maker and script author whose work lives on here, and to everyone in the Discord, the Build and Shoot Discord, r/AceOfSpades and Build and Shoot who tests, reports and keeps the game going.
