Mar. 07, 2021

Hello der,  Guest
Trader Name:
Password:
 | Home | Forum List | Active Threads | Search:
Page: of 1   
TWX Development > CurrentAnsiLine  
<< Thread >>
Subscribed:  
ElderProphet
TWX Development Team

Joined: Mar 2005

posted: 12/14/2005 at 05:53 AM Post #1

I'm interested in how scripters currently use this feature.  Currently, the Carriage Return (#13) is not included with each ansi line, and I'm thinking of leaving it attached at the end, instead of stripping it like it is now.

My thinking (and experimentation) is that you need these CRs to echo the CURRENTANSILINE to properly duplicate incoming displays.  For example, say you copied every CURRENTANSILINE to a text file; it could be played back correctly if it included the CR.  I can think of a few reasons why just adding the #13 at the end will not work as well.

Can anyone think of possible problems with that, or know of scripts that make use of CURRENTANSILINE that might be affected by this change?

Many thanks,
+EP+

Haggle Blog-> http://jroller.com/page/ElderProphet
Traitor
Admin of THE tw
info site


Joined: Mar 2005

posted: 12/14/2005 at 10:25 AM Post #2

Um.  I use it, but only in some of my personal scripts.  I think it would be easy enough to put in a striptext #13 in them if I needed too. 
Looking through my scripts, I guess only my DockKiller and displayAnsiLine use them.  I can edit both.  Or you can edit the last one, since it's yours :P

Visit www.tw-cabal.com!
Dnyarri


Joined: Jun 2005

posted: 12/14/2005 at 10:45 PM Post #3

Alien detection for torp and pdrop stuff. Aliens always carry an extra ansi code... makes it easy.

The NavHaz Junction - http://www.navhaz.com
ElderProphet
TWX Development Team

Joined: Mar 2005

posted: 12/20/2005 at 08:27 AM Post #4

Thanks Singularity.  Any insight as to whether #13 at the end will cause any problems parsing them?

Haggle Blog-> http://jroller.com/page/ElderProphet
ElderProphet
TWX Development Team

Joined: Mar 2005

posted: 12/20/2005 at 02:52 PM Post #5

Instead of altering the existing CURRENTANSILINE, I may try to introduce some sort of raw ansi line.  I've tried to use TWX to parse other telnet streams (non-Tradewars), and had problems, most likely because of the way it divides lines and strips certain characters.

Feedback appreciated.

+EP+

edited by: ElderProphet on 12/20/2005 at 02:55 PM

Haggle Blog-> http://jroller.com/page/ElderProphet
TWX Development >  CurrentAnsiLine
<< Thread >>
Subscribed:  
 | Home | Forum List | Active Threads | Search:
Page: of 1   

"why hello der matey! have a sit and buy me an ale, eh?" -- The Grimy Old Trader

The Grimy Trader is best viewed at 1024x768 resolution -- this page was generated in: 0.624 seconds.