View unanswered posts | View active topics It is currently Tue May 19, 2026 6:47 pm



This topic is locked, you cannot edit posts or make further replies.  [ 132 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next
 Scripting Challenge 
Author Message
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Scripting Challenge
Here's a chalenge for the scripters:

telnet://lightningbbs.dyndns.org/

Just write a script that can login to this BBS, navigate to TradeWars, display the "S" settings screen, and then logg off cleanly (No DC).

Sounds simple? Right?

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Mon Jul 11, 2011 4:36 pm
Profile ICQ YIM WWW
Immortal Op
User avatar

Joined: Fri Jun 25, 2010 6:33 am
Posts: 257
Location: Sydney Australia
Unread post Re: Scripting Challenge
this one sounds like a job for Vid..

_________________
Teamspeak3: 60.242.57.40:9987
Z-Bot does my dirty work!


Mon Jul 11, 2011 5:22 pm
Profile ICQ
Lieutenant Commander
User avatar

Joined: Sun Jan 29, 2006 3:00 am
Posts: 801
Location: Iowa
Unread post Re: Scripting Challenge
problem is, you have to make an account, or use an existing account to log in...

Do you have some login info for us to use to cobble this together?
Or do you expect us to each make our own account on this system
just to write this script for ya?

There was a time when I would jump through BBS hoops to find a TW2002
game, I'm glad TWGS means I don't have to anymore. Excellent security
if you want to keep out script kiddies <- read: users, not writers.


It's possible though.

_________________
#+++
The early bird may get the worm, but the second mouse gets the cheese.
#---


Mon Jul 11, 2011 8:38 pm
Profile ICQ YIM
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Scripting Challenge
Yes, you would have to create an account. That part takes about 30 seconds.

This sysop has spent a lot of time using ANSI to make his BBS interesting. The opening menu is random, as are some of the screens that follow. Navigation is animated, and uses up/down keys to select menu items. Here is the real kicker though, the pause prompt is a random looping animation.

This is really a challenge for Vid, Sing, or any of the other skilled script writers if they are up to it.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Mon Jul 11, 2011 9:52 pm
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 4016
Location: USA
Unread post Re: Scripting Challenge
MicroBlaster wrote:
Yes, you would have to create an account. That part takes about 30 seconds.

This sysop has spent a lot of time using ANSI to make his BBS interesting. The opening menu is random, as are some of the screens that follow. Navigation is animated, and uses up/down keys to select menu items. Here is the real kicker though, the pause prompt is a random looping animation.

This is really a challenge for Vid, Sing, or any of the other skilled script writers if they are up to it.



Or just ask the sysop to give you a quick access to TW, so you can promote his server?

_________________

BOTE 1998 Champs: Team Fament
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
HHT 2018 Champs: Rock Stars
Big Game 2019 Champs: Draft Team


Classic Style Games Here:
telnet://crunchers-twgs.com:2002

Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
Discord: https://discord.gg/4dja5Z8
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Mon Jul 11, 2011 11:17 pm
Profile ICQ WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Scripting Challenge
Cruncher wrote:
Or just ask the sysop to give you a quick access to TW, so you can promote his server?

Your assuming it has an active sysop. Most of these guys don't even watch their BBSs anymore.

I'm actually more interested in knowing if it can be scripted. I spent about an hour trying before I gave up.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Tue Jul 12, 2011 12:32 am
Profile ICQ YIM WWW
Ambassador

Joined: Wed Feb 28, 2001 3:00 am
Posts: 1410
Location: Boo! inc. Ireland
Unread post Re: Scripting Challenge
Telix SALT: Ran it a few times. Entry 9 in phonebook, named "lightning" is lightningbbs.dyndns.org


main()
{
dial("9|lightning|",1,1);
if (waitFor("sconnect ³ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ",120)) cPuts("^M");
if (waitFor("³ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ",100)) cPutS("mickey mouse^Ilpword^M");
delay(50); // 5 secs
cPuts("^M^M^M");
delay(50);
cPuts("^M^M^M");
if (waitFor("anna write something? {NO} Yes",100)) cPuts("^M");
if (waitFor("{Main Menu}",100)) cPuts("^M");
if (waitFor("{Main Menu} Oo.",100) cPutC('d');
if (waitFor("ÄÄÙ",100)) cPutC('5');
if (waitFor("ÄÄÙ",100)) cPutC('6');
if (waitFor("[Pause]",100)) cPuts("^M");
if (waitFor("Enter your choice:",100)) cPutS("s^M");
if (waitFor("[Pause]",100)) cputs("^M");
if (waitFor("Enter your choice:",100)) cPutS("x^M");
if (waitFor("ÄÄÙ",100)) cPutC('q');
if (waitFor("ÄÄÙ",100)) cPutC('q');
if (waitFor("{Main Menu}",100)) cPutC('g');
if (waitFor("Log off? {NO} Yes",100)) cPutC('y');
if (waitFor("Yes",100)) cPuts("^M");

}


Tue Jul 12, 2011 6:14 am
Profile
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Scripting Challenge
I tried sending ^M at timed intervals yesterday, and it didn't work. Today it works...
There's a Node list that displays after the one-liner screen, but only if there are other nodes active, but another timed ^M works there.

I'm still having trouble with the d 5 6 sequence. Microbot is seeing pause prompts at these sub-menus, but I'm not sure why as they don't appear when using putty. Maybe the BBS is trying to autodetect my screen length, and Microbot doesn't respond to that request.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Tue Jul 12, 2011 9:19 am
Profile ICQ YIM WWW
Ambassador

Joined: Wed Feb 28, 2001 3:00 am
Posts: 1410
Location: Boo! inc. Ireland
Unread post Re: Scripting Challenge
I had trouble getting to the "anna write something? {NO} Yes" prompt, which is why I had to put in the two delays and the triple ^Ms. Never after that though. What triggers are you using, and what terminal program?


Tue Jul 12, 2011 9:39 am
Profile
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Scripting Challenge
I'm using Microbot, and I have confirmed that the problem is screen length detection. Microbot does not respond to the screen size request, so the BBS is assuming my screen is 1 line long.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Tue Jul 12, 2011 10:34 am
Profile ICQ YIM WWW
Ambassador

Joined: Wed Feb 28, 2001 3:00 am
Posts: 1410
Location: Boo! inc. Ireland
Unread post Re: Scripting Challenge
That might not be your problem, Telix (which I use) does not respond to anything incoming, and there is no way to know my terminal sizing short of asking me personally.


Tue Jul 12, 2011 10:59 am
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Scripting Challenge
Dude, you guys are making this waaaaayyy too hard. If you just burst a bunch of...
"N N N N N N N"

Maybe with a small delay between it, it gets you past all the random pauses and questions. Once at the main menu, hit D a few times...

Then 5 and 6. So...

Code:
send "N   N   N   N   N   D   D   D   56 "


Appears to work fine after you log in. To logout, either disconnect or just gggy

Why script when you can macro?

_________________
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
Image


Tue Jul 12, 2011 4:29 pm
Profile ICQ WWW
Ambassador

Joined: Wed Feb 28, 2001 3:00 am
Posts: 1410
Location: Boo! inc. Ireland
Unread post Re: Scripting Challenge
roflmao, why do either when you can log on by hand? The man asked how to script it, not how to macro it.

Like, "solve the murder" question, as opposed to ....... umm

I have never script/macro logged to a bbs or game before. Had to read the help file for the SALT "dial" command to write the logon script above, laff.


Tue Jul 12, 2011 4:44 pm
Profile
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3151
Location: USA
Unread post Re: Scripting Challenge
The point of the exercise is to explore the question of whether or not there are ways to have a human-readable interface that is difficult for a script to handle. I'm skeptical that this could be done, certainly not bulletproof, but this site had some interesting ideas and we were curious how long it would take our local scripters to complete the challenge.

This is something I've given a lot of thought to, and haven't had any ideas even worth exploring. Short of having periodic challenge questions, like the kind that used to keep 8 year olds off of your BBS, I don't have anything...

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Tue Jul 12, 2011 4:59 pm
Profile WWW
Veteran Op

Joined: Tue Nov 28, 2006 4:04 pm
Posts: 5025
Unread post Re: Scripting Challenge
John Pritchett wrote:
The point of the exercise is to explore the question of whether or not there are ways to have a human-readable interface that is difficult for a script to handle. I'm skeptical that this could be done, certainly not bulletproof, but this site had some interesting ideas and we were curious how long it would take our local scripters to complete the challenge.

This is something I've given a lot of thought to, and haven't had any ideas even worth exploring. Short of having periodic challenge questions, like the kind that used to keep 8 year olds off of your BBS, I don't have anything...


I see what you are driving at, but this would only hinder relog scripts, not scripts in general. Once in the game everything could be scripted as normal.


Tue Jul 12, 2011 5:04 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 132 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next

Who is online

Users browsing this forum: No registered users and 8 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.