Help us shape the future of Go! Take the 2026 Go Developer Survey

a2kit

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: MIT

README

a2kit

Passive AION 2 protocol decoder. No injection.

Performance (on real game data, Apple Silicon)

  • Decoding: 500 MB/s, 60 ns a frame
  • Allocations: 1 per ~500 frames
  • CPU: ~6 µs per second of play
  • Latency after a lost packet: 51 ms median

Logs

dump -pcap fight.pcap -log fight.jsonl writes an a2log/v0.1 file, which contains a header line, then one JSON line per frame with its raw payload. Captures hold other players' data, so keep them private.

Work in progress.

Directories

Path Synopsis
cmd
dump command
Dump prints a line for each game frame it finds:
Dump prints a line for each game frame it finds:
internal
genfixtures command
Genfixtures writes the synthesized test fixtures: TCP payload streams for package wire, and a pcap for package capture, each with the frames it holds.
Genfixtures writes the synthesized test fixtures: TCP payload streams for package wire, and a pcap for package capture, each with the frames it holds.
opdiff command
Opdiff helps name opcodes.
Opdiff helps name opcodes.
score command
Score measures the decoder on synthesized captures whose frames are known: how many of them it finds, and how many it makes up.
Score measures the decoder on synthesized captures whose frames are known: how many of them it finds, and how many it makes up.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL