|
Page 1 of 1
|
[ 12 posts ] |
|
| Author |
Message |
|
Admin 1
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 1432 Location: USA
|
 TWX Terminal
I dont know if this has been attempted or not but i have intrest in Developing a "TWX Terminal" Which would basically be a termianl program geared for using TWX and playing hte game of Tradewars 2002. The "Terminal " shuld include a natural telnet to twx client as well as a built in Database Reader that can read data thjat twxx has stored...A Good Visual Map comes to mind....
Now some would ask or question what im trying to do..I'm not looking for scripting language this would be a terminal that connects to TWX ..for the most part the terminal would be Stupid...But a Few add ons designed specifically for TW would be nice....a Com window where i can monitor SS and fed and respond even if in a script.......maybe a few other small Features like a Macro Bar..But this would be designed to be used specifically with TWX and would be a FREE terminal. Does anyone have any Intrest in this project?
|
| Sun Aug 09, 2009 1:00 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: TWX Terminal
Sounds like stripped down version of SWATH or maybe GATH (haven't used it). One of the problems of comms during a script is the comm getting mixed in with the script commands or the opposite.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Sun Aug 09, 2009 1:13 pm |
|
 |
|
Admin 1
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 1432 Location: USA
|
 Re: TWX Terminal
Promethius wrote: Sounds like stripped down version of SWATH or maybe GATH (haven't used it). One of the problems of comms during a script is the comm getting mixed in with the script commands or the opposite. Well Swath is a great product.But its not free .
I would like to Develope a Terminal Specifically for TW that is 1.Free & supported by the community and 2 fully utilizes TWX proxy Database and Information.....
I think this project if Completed properly Could Help Generate more intrest in the game.
|
| Sun Aug 09, 2009 1:48 pm |
|
 |
|
Angoth
1st Sergeant
Joined: Wed Jan 26, 2005 3:00 am Posts: 36 Location: Argentina
|
 Re: TWX Terminal
Actually, SWATH, while nice is a bit limited when you consider all TWX can do. Scripts utilize this info, but, swath tries to parse it from the TW text. It should. It's designed as a TW helper with TWX as an afterthought. The helper he's talking about is (if I read it right) one to fully leverage TWX's capabilities. Just the ability to burst commands would be a great improvement over SWATH's hinky macros tied to keys.
|
| Sun Aug 09, 2009 2:14 pm |
|
 |
|
Admin 1
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 1432 Location: USA
|
 Re: TWX Terminal
Angoth wrote: Actually, The helper he's talking about is (if I read it right) one to fully leverage TWX's capabilities. Just the ability to burst commands would be a great improvement. Yes i would like to take advantage of TWX's inclusive .XDB files and maybe as well as being able to take advantage of certain script database files like ck's nego or mombots fig file....All of these things could come later though...As the Basics is still out of reach for me...A Basic Telnet program to start then a map..the we can add modules in as we go i assume...
I want to point out that i dont want any disparring remarks about existing TW Helpers One of the Co- owners Macahan(and his wife Bev) is a personal friend for whom i have a lot of respect for. I dont know Stein but He has always been courteous to me. Attac ..also Earth is a Friend and i actually own a copy of Attac.
,,,,,Im mostly intrested in making a Terminal for TWX..and making that FREE to help round out the Experience...Im not looking for scripting language or the like...But a way to access Data from TWX and convert it into some type of good visual format for a Map.....TWX has a Bubble finder in it natively...A Comm Window would be VERY nice....For Sending and Recieveing....Those types of things..It wont be as Full Featured as some of the current helpers but over time will become better.
|
| Sun Aug 09, 2009 2:34 pm |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: TWX Terminal
It's actually pretty easy to write a telnet console app in C#. I wrote one a few years back, with an emphasis on properly displaying the ANSI graphics in TW, and it was more accurate than any others (at least for TW), though I think ZOC was equally accurate. Actually, ZOC does blinking text, which I never got around to. If I recall, there are small problems with MS telnet, SWATH, and even the one built into TWGS. However, I think I notified Stein of the issues I found, so he probably fixed them in SWATH.
However, it's a console app, and I never found an easy way to create a form around it. The form would be important for adding buttons and GUI menues, etc. I never found a good text box component that would work, so you'd likely have to create a canvas, and manipulate it directly... tedious programming. Still another option might be a basic console app, with a floating toolbar or comm window.
I'll likely give it another go if I ever get a TWX release done. Still, I'm willing to help any interested programmers with the ANSI or telnet aspects in the mean time.
Regards, +EP+
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Mon Aug 10, 2009 9:50 pm |
|
 |
|
Angoth
1st Sergeant
Joined: Wed Jan 26, 2005 3:00 am Posts: 36 Location: Argentina
|
 Re: TWX Terminal
Sigh. I've concentrated my efforts on finding a control that will do the terminal emulation for ANSI graphics, colors and screen positions. No dice. So, since this is my first go round with a console app that will display ANSI, are you saying that it has to be interpreted from the stream received? Any pointers would be much appreciated. I'm using VB.net and I've come up with the following (work in progress):  The stuff below what you recognize on the right are fields and a button for testing. As I said, the form portion is easy, the ANSI emulation is throwing me for a loop.
|
| Tue Aug 11, 2009 2:07 pm |
|
 |
|
Thrawn
Commander
Joined: Fri Aug 20, 2004 2:00 am Posts: 1801 Location: Outer Rims
|
 Re: TWX Terminal
Angoth wrote: Sigh.
I've concentrated my efforts on finding a control that will do the terminal emulation for ANSI graphics, colors and screen positions. No dice.
So, since this is my first go round with a console app that will display ANSI, are you saying that it has to be interpreted from the stream received? Any pointers would be much appreciated. I'm using VB.net and I've come up with the following (work in progress):
The stuff below what you recognize on the right are fields and a button for testing. As I said, the form portion is easy, the ANSI emulation is throwing me for a loop. @ Angoth... ANSI emu is throwing me too. I did not use my Visual Studio, but went back to VB6 for my console app. I did a similar idea as you with the multiple buttons. I have one for each OCSBot, plus one for ScoreKeeper. Perhaps I'll change it to VB.Net as well.
_________________ -Thrawn
But risk has always been an inescapable part of warfare.
--
Knight to Queen's Bishop 3
|
| Tue Aug 11, 2009 3:02 pm |
|
 |
|
Angoth
1st Sergeant
Joined: Wed Jan 26, 2005 3:00 am Posts: 36 Location: Argentina
|
 Re: TWX Terminal
Seems as if we're going down the same paths, at the same time. I do enjoy learning new stuff, so it's cool.
|
| Tue Aug 11, 2009 3:04 pm |
|
 |
|
Thrawn
Commander
Joined: Fri Aug 20, 2004 2:00 am Posts: 1801 Location: Outer Rims
|
 Re: TWX Terminal
We are. I found it easy to write a telnet app so I could connect to our TWGS and the TWXProxy instances running OCSBot and ScoreKeeper. I know my wife Daala has an easier time when the app has the buttons for each one.
However, I think if I want to get into more "detail" with my app like you, I'll have to switch to Visual Studio. I'm going to start a rough one in Visual Basic 2008 later on. I know in VB6 I have a VT100 module in my telnet app and that is why ANSI don't display. I assume I'll need to create the module for ANSI.
_________________ -Thrawn
But risk has always been an inescapable part of warfare.
--
Knight to Queen's Bishop 3
|
| Tue Aug 11, 2009 3:15 pm |
|
 |
|
Tweety
Boo! inc.
Joined: Fri Jan 04, 2002 3:00 am Posts: 221 Location: Canada
|
 Re: TWX Terminal
you know whats funny? The name you gave your program "TW Commander" was actually used at one point by a player if i remember correctly named Luke Skywalker. He built his own tradewars helper which basically just queued up many different commands and built in scripts so he could automate many tasks at once.
i don't think he ever released it though to the public.
oh lol, you named it twx commander lol
|
| Thu Aug 13, 2009 1:15 pm |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: TWX Terminal
Yes Angoth, you'll need to interpret the ANSI codes from the telnet stream, checking for matches to the various ANSI codes, as in... Code: // ESC[#C - Cursor Forward (CUF) else if (AnsiString[i] == 67) // Capital C { CheckCursorPos(); if (PendingCount == 0) { if (ansiCode == "") ansiCode = "1"; CheckCursorPos(); Console.CursorLeft += int.Parse(ansiCode); for (int j = 0; j < int.Parse(ansiCode); j++) { outStream.Write(" "); } ansiCode = ""; InEsc = 0; } } // ESC[#D - Cursor Backward (CUB) else if (AnsiString[i] == 68) // Capital D { if (PendingCount == 0) { if (ansiCode == "") ansiCode = "1"; Console.CursorLeft -= int.Parse(ansiCode); CheckCursorPos(); ansiCode = ""; InEsc = 0; } } I have about 20 else if statements in the ANSI routine, similar to the 2 above. But as you can see, I'm using the console instead of some other text box type component. You can find a fair amount of info on parsing ANSI codes here on Wikipedia.
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Sun Aug 16, 2009 6:52 pm |
|
 |
|
|
Page 1 of 1
|
[ 12 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 31 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
|
|