
Easier scripting via HIPS protocol - request feedback
The textual output of TradeWars is great for humans, but not so great for helpers and scripts. As part of a bigger effort to look at how to make TradeWars more attractive to the casual player, I needed to write a client, and having been
there and done
that, my efforts always stall on the monumental task of parsing the textual output of TWGS. To get around that this time, I came up with a new protocol that allows a client and server to embed structured data within the telnet stream, and have implemented it in
TWX Proxy.
The protocol is called the Hidden In Plain Sight (HIPS) protocol and utilizes telnet negotiation and ANSI codes to embed structured data (
JSON specifically) in the text stream as a way for the server and client to communicate easily without disrupting the game. I've outlined the design in the
HIPS Protocol Specification, and intrepid coders can check out the implementation in the
TWX Proxy source code (see the
Developers Guide for more information).
I believe this protocol will make implementing your own helper significantly easier, especially if you use TWX Proxy to handle the data parsing and scripting. I'd like to see this protocol not be tied just to TWX Proxy, perhaps one day, it could even be implemented in TWGS directly, opening up the game for all sorts of interesting innovations. Please take a look and let me know what you think.