ExternalProtocol

From Wiki in Space
Revision as of 21:58, 3 June 2018 by Segwegler (talk | contribs) (added a sorce for the commands and requests)
Jump to: navigation, search

Objects in space was made with the intention that it could be playable with just buttons.

You can also get almost all the information from the in-game UI sent back to your Arduino or other external microcontroller that can speak Serial.

There are 193 Commands Serial Commands, 164 Boolean Requests, and 24 Numeric Requests for a total of 381 commands and requests (source Zebra)

Protocol Details

The protocol is outlined on the offical web site, however there are some minor inaccuracies whilst the game is in Beta.

To connect your controller to the game you need to send 451 with a newline at the end. The game will send back 452. (source Nocturnal)

Also, contrary to the documentation, the newline character is LF (Dec: 10, Hex 0x0A), not CR (Dec: 13, Hex 0x0D). (note: Most C compilers encode '\n' as LF (CR would be '\r'), so the sample codes provided is correct, just the description on the page is wrong).