Determining Current Prompt
| Author |
Message |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
Does anyone know if sending #145 to redisplay the current prompt has been made an official Global cmd (as mentioned in http://www.eisonline.com/twgs/beta/ Section: TWGS Revision 58 - February 23, 2004 'New: Added experimental global...')?
I've tried it, and it seems to work just fine.
Lone
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Mon Jan 01, 2007 4:37 am |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
Does seem to work in most cases, yes. But they say not to implement them so... heh. I use / or just *, seems to work fine. Benefit to / being that for the same latency you also get stats... mmm.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Mon Jan 01, 2007 5:10 am |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
Well, incidently, #145 doesn't work through SWATH, but #128 does.
I think it has its uses... though I can't really think of a time I've used it, other than in testing.
Still, I doubt it's going away, so make use of it.
+EP+
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Mon Jan 01, 2007 5:11 am |
|
 |
|
RexxCrow
Captain
Joined: Sat Jun 18, 2005 2:00 am Posts: 2214 Location: USA
|
Why even bother using that though? Like Sing stated either / or * is fine and productive, or even #27 if good to keep the screen clean as Billie Jean... well until I get ahold of her newayz!
_________________ Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact! Don't mess with me, I will 26 U.S.C. § 7212(a) your IRS!
|
| Mon Jan 01, 2007 7:22 am |
|
 |
|
the reverend
Gameop
Joined: Thu Mar 08, 2001 3:00 am Posts: 886 Location: USA
|
this #145 feature was added at my request.
TWGS Revision 58 wrote: New: Added an experimental global to help scripts and helpers verify the active prompt. Using the extended character ascii 145, a script or helper can tell TW to redisplay the active prompt, followed by the same ascii character, #145. The result of issueing a #145 will be two newlines, followed by the prompt, followed by ascii 145 and a backspace. In some cases, there will be additional dynamic information following the ascii 145, so it is not guaranteed that the 145 will be at the end of the prompt line.
if you read it carefully, it says that it will issue a #145 + backspace after the prompt. basically, what this allows you to do, is know the current prompt by waiting for #145 in your script and trapping that line.
if you are using '/' or '@' or '#' to redisplay the current prompt, you get the same effect, but you have to know - to a certain degree - what you are looking for after the /@# display. with #145, all you do is wait for #145 to be repeated back, then grab *that line* - and you are done.
_________________ 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/
|
| Mon Jan 01, 2007 12:15 pm |
|
 |
|
the reverend
Gameop
Joined: Thu Mar 08, 2001 3:00 am Posts: 886 Location: USA
|
ElderProphet wrote: Well, incidently, #145 doesn't work through SWATH, but #128 does.
I think it has its uses... though I can't really think of a time I've used it, other than in testing.
Still, I doubt it's going away, so make use of it.
+EP+
this is probably due to some code page translation that swath is doing. you send swath #128 and it gets translated into #145 before going to the twgs. someone could test that theory with a short script in twx. hint hint.
_________________ 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/
|
| Mon Jan 01, 2007 12:19 pm |
|
 |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
the reverend wrote: this #145 feature was added at my request.
if you read it carefully, it says that it will issue a #145 + backspace after the prompt. basically, what this allows you to do, is know the current prompt by waiting for #145 in your script and trapping that line.
if you are using '/' or '@' or '#' to redisplay the current prompt, you get the same effect, but you have to know - to a certain degree - what you are looking for after the /@# display. with #145, all you do is wait for #145 to be repeated back, then grab *that line* - and you are done.
That's awsome. I knew there was a reason fot its implementation; just couldn't put my finger on it. Thanks for the great insight!
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Mon Jan 01, 2007 2:08 pm |
|
 |
|
the reverend
Gameop
Joined: Thu Mar 08, 2001 3:00 am Posts: 886 Location: USA
|
TWGS Revision 58 wrote: New: Added an experimental global to help scripts and helpers verify the active prompt. Using the extended character ascii 145, a script or helper can tell TW to redisplay the active prompt, followed by the same ascii character, #145. The result of issueing a #145 will be two newlines, followed by the prompt, followed by ascii 145 and a backspace. In some cases, there will be additional dynamic information following the ascii 145, so it is not guaranteed that the 145 will be at the end of the prompt line.
hmm i finally got around to actually testing this feature - and i can't see the "145 + backspace" in the echo'd prompt. does anyone else have this problem?
_________________ 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/
|
| Wed Jan 24, 2007 7:28 pm |
|
 |
|
Parrothead
Commander
Joined: Wed May 03, 2006 2:00 am Posts: 1722 Location: USA
|
i am using it in my still beta bot to check against an array of available prompts to prevent getting stuck on a trigger/witon/waitfor as well as the usual redirect
_________________ Coconut Telegraph (ICQ)#586137616 Team Speak3@ 220.244.125.70:9987 Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
 Jesus wounldn't Subspace Crawl
|
| Wed Jan 24, 2007 8:21 pm |
|
 |
|
Traitor
Lieutenant Commander
Joined: Thu Mar 21, 2002 3:00 am Posts: 890 Location: USA
|
Don't send the backspace.
I use it all the time.
_________________ http://tw-cabal.navhaz.com - THE TW info site
Man, I gotta quit showing up here...next thing you know i'll get dragged back in.
|
| Wed Jan 24, 2007 10:10 pm |
|
 |
|
Vulcan
Gameop
Joined: Fri Sep 03, 2004 2:00 am Posts: 2041 Location: Acworth, Georgis USA
|
Traitor, what's with the new avatar? Kinda funny tho. laff
_________________ Vulcan's Forge v1 TWGS telnet://vulcansforge.homeip.net:2002 v2 TWGS telnet://vulcansforge.homeip.net:23 Forum and site down for now. my Email is vulcan219@comcast.net now
|
| Wed Jan 24, 2007 11:12 pm |
|
 |
|
Slim Shady
Gameop
Joined: Thu Jun 06, 2002 2:00 am Posts: 2371 Location: USA
|
the reverend wrote: this #145 feature was added at my request. TWGS Revision 58 wrote: New: Added an experimental global to help scripts and helpers verify the active prompt. Using the extended character ascii 145, a script or helper can tell TW to redisplay the active prompt, followed by the same ascii character, #145. The result of issueing a #145 will be two newlines, followed by the prompt, followed by ascii 145 and a backspace. In some cases, there will be additional dynamic information following the ascii 145, so it is not guaranteed that the 145 will be at the end of the prompt line.
if you read it carefully, it says that it will issue a #145 + backspace after the prompt. basically, what this allows you to do, is know the current prompt by waiting for #145 in your script and trapping that line. if you are using '/' or '@' or '#' to redisplay the current prompt, you get the same effect, but you have to know - to a certain degree - what you are looking for after the /@# display. with #145, all you do is wait for #145 to be repeated back, then grab *that line* - and you are done.
coincidentally, pods were added to the game because i dominated too many people and they wanted an extra chance.
true story.
...
_________________ Ask Slim!
--==[The Outfit]==--
|
| Wed Jan 24, 2007 11:24 pm |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
I thought pods were added to the game after you complained to K3 about being dead too often...
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Wed Jan 24, 2007 11:26 pm |
|
 |
|
Traitor
Lieutenant Commander
Joined: Thu Mar 21, 2002 3:00 am Posts: 890 Location: USA
|
Vulcan wrote: Traitor, what's with the new avatar? Kinda funny tho. laff
sorta sums up my feelings about EIS and these forums.
I'm the user...
_________________ http://tw-cabal.navhaz.com - THE TW info site
Man, I gotta quit showing up here...next thing you know i'll get dragged back in.
|
| Thu Jan 25, 2007 1:34 am |
|
 |
|
RexxCrow
Captain
Joined: Sat Jun 18, 2005 2:00 am Posts: 2214 Location: USA
|
lol, I think pods were made to give you a false sense of security... either that or just to make scripting out attack scripts a real challenge.
_________________ Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact! Don't mess with me, I will 26 U.S.C. § 7212(a) your IRS!
|
| Thu Jan 25, 2007 1:58 am |
|
 |
|
Who is online |
Users browsing this forum: No registered users and 19 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
|
|