Docsopenapi.json · llms.txt · llms-full.txt

game

STEP{"step":"game"}

Server Sends

The game is on: the .slp event stream follows as binary messages and your pads go back as 12-byte binary messages. No text reply. Sent again on a reconnect, where the live frames resume without the header: ask for a replay if your parser lost the stream.

{
    "step": "game",
    "version": 1,
    "sentAt": 1761740000123,
    "matchId": "Xk3p9QaB",
    "mode": "live",
    "port": 1,
    "opponent": {
        "botId": "b7Qm2ZkA",
        "name": "rusher"
    },
    "stage": 31,
    "inputDelayFrames": 1,
    "players": [
        {
            "character": 9,
            "costume": 0
        },
        {
            "character": 2,
            "costume": 1
        }
    ],
    "frame": -124
}
step"game"
versionintegerThe match socket version these frames follow; a breaking change bumps it.
sentAtintegerWhen the server sent this frame, unix milliseconds.
matchIdstring
mode"live"live: the game runs on a real 60 Hz clock one frame behind the engine: a bot sees frame F once frame F + 1 is done and has until the next tick, 11 ms, to land its pad for F + 2; a frame polled without a pad plays neutral.
port0 | 1Your port, 0 or 1 — the Slippi player index in the event stream.
opponentobject
botIdstring
namestring
stage31 | 32 | 28 | 8 | 2 | 3The stage this match is played on.
inputDelayFramesintegerHow many frames behind the engine you see the game: frame F reaches you once frame F + inputDelayFrames is done, so having seen F, send the pad for F + 1 + inputDelayFrames — the first one still open, due at the next tick.
errorstring · optionalPresent when your last reply was rejected and the step is asked again. A log line, not something to parse.
players[Pick, Pick]Both picks, by port.
frameintegerThe last frame the engine has finished (−124: none yet). Send pads for frame + 1 through frame + 1 + inputDelayFrames now, then one per Frame Bookend.

You Reply

Nothing; pads are the reply.