View unanswered posts | View active topics It is currently Mon Apr 27, 2026 6:08 am



Reply to topic  [ 5 posts ] 
 Easier scripting via HIPS protocol - request feedback 
Author Message
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post 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.


Sat Aug 16, 2008 9:59 am
Profile WWW
Gameop
User avatar

Joined: Thu Mar 08, 2001 3:00 am
Posts: 886
Location: USA
Unread post Re: Easier scripting via HIPS protocol - request feedback
very interesting, however there is one fly in the ointment. other legacy helpers that connect to twx, e.g. swath, would have to filter out all the hips messages that get in the way of their own parsing of the game text and ansi codes. not a big deal, i suppose, but then again i'm not a helper author, yet.

_________________
twgs : telnet://twgs.thereverend.org:5023
web : http://www.thereverend.org
games : http://www.thestardock.com/twgssearch/i ... verend.org
helper : http://svn.thereverend.org:8080/revhelper/


Sat Aug 16, 2008 10:35 am
Profile
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post Re: Easier scripting via HIPS protocol - request feedback
the reverend wrote:
very interesting, however there is one fly in the ointment. other legacy helpers that connect to twx, e.g. swath, would have to filter out all the hips messages that get in the way of their own parsing of the game text and ansi codes. not a big deal, i suppose, but then again i'm not a helper author, yet.


That's not a problem, since the telnet option negotiation ensures that only clients that support HIPS will receive HIPS messages. TWX Proxy will continue to work with Zoc, Swath, or whatever out of the box. Only clients that respond to the HIPS negotiation correctly will trigger them in TWX Proxy.


Sat Aug 16, 2008 10:44 am
Profile WWW
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 1432
Location: USA
Unread post Re: Easier scripting via HIPS protocol - request feedback
mrdon wrote:
the reverend wrote:
very interesting, however there is one fly in the ointment. other legacy helpers that connect to twx, e.g. swath, would have to filter out all the hips messages that get in the way of their own parsing of the game text and ansi codes. not a big deal, i suppose, but then again i'm not a helper author, yet.


That's not a problem, since the telnet option negotiation ensures that only clients that support HIPS will receive HIPS messages. TWX Proxy will continue to work with Zoc, Swath, or whatever out of the box. Only clients that respond to the HIPS negotiation correctly will trigger them in TWX Proxy.


I'm not going to pretend that im anything more then an "End User" of helpers and Scripts..Nay that is infact what i am....However i dont understand what direction your going..Are you attempting to make your own Helper?? That incorporates TWX ? Im all for that ecspecially if your looking to give us a better Visual Map......Or even a TWHelper type interface....? I dont htink JP is looking to do more then fix bugs with TWGS currently...


Sat Aug 16, 2008 1:03 pm
Profile
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post Re: Easier scripting via HIPS protocol - request feedback
My personal use case is ElderProphet and I are exploring running TWXProxy on the server with a board-provided client, so in order to develop the client, I want to leverage TWXProxy for data parsing and script execution, leaving me able to focus on the user interface. For end users, HIPS doesn't mean anything, but for those that want to write a helper or higher-level scripts building on TWX Proxy, HIPS makes their job much easier. Sure, I'd love to get JP to add support in TWGS, but right, I doubt that would ever happen. :)


Sat Aug 16, 2008 6:48 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 55 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.