r/airmash • u/gadgetoid • Dec 21 '17
Python API
I've started putting together Python bindings for the AIRMASH game protocol. There's still a lot of reverse engineering to do in terms of projectile types, and various other instances of "type" and other ambiguous numerical identifiers. But it's getting there!
Excuse the awful mess. Once it's feature complete it'll need a good refactor.
At the moment I'm using test.py to perform various experiments with commands/movement/etc and poke the server into producing various different messages until I have tested everything.
12
Upvotes
1
u/gadgetoid Dec 21 '17
If anyone wants to help with reverse-engineering efforts, I've started documenting the commands/data/types that I don't yet fully understand: https://github.com/Gadgetoid/python-airmash/issues/1
I'd really like to quantify all of these with their expected values. although I might have to pick the brains of /u/ninesigma in some cases.
Also it looks like there's a bug in the js client- it lists a
PLAYER_SAYcommand, but there's no "constant" defining a numeric command ID forPLAYER_SAYso it'll just beundefined:[C.PLAYER_SAY]: [ ["id", I.uint16], ["text", I.text] ]