View unanswered posts | View active topics It is currently Sun Apr 26, 2026 8:55 am



Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
 Zentocks Script School Homework 
Author Message
Lieutenant J.G.

Joined: Mon Sep 22, 2003 2:00 am
Posts: 486
Location: USA
Unread post 
Heres where the few the proud the dedicated will post there homework for all to learn from, Check back often one never knows what you will find here.

_________________
C.E.O. Corp Noble House
Sysop - Zentock's Realm TWGS
Co-Sysop - Vulcans Forge TWGS

Admin.
Vulcans Forge Forums
Vulcans Forge TeamSpeak


Sun Dec 10, 2006 10:42 am
Profile ICQ
Lieutenant Commander
User avatar

Joined: Sun Jan 29, 2006 3:00 am
Posts: 801
Location: Iowa
Unread post 
I have been asked to write up a 'walk-thru' on how to open multiple twx sessions simultaineously.
Being able to follow several games at once is extremely useful, not to mention convienient to just
disconnect and minimize the helper.
  Reading this, you should already know how to set up TWX proxy to start a new game... I will keep
the review brief.  Really all you will do is set up a new session under a new port.
  Ok, to begin, here is a link to the twxproxy website, where I got my starting information;
http://www.twxproxy.com/tutorials.php?view=8
If you know how to start TWX up already, skip ahead to 12
1  Double click your twx shortcut, or whatever to start twx, an icon should appear in your tray.
2  Right click the twx icon, and choose setup, a box will pop up.
3  On the server tab, click Add, to add a new game.
4  Engage imagination here and enter game name, ex.Vulcans-E-200 (Vulcan's server, game E, port 200)
5  Enter server address our example; vulcansforge-online.net  (note no telnet:// or :23 just address)
6  Enter server port, example for vulcan's is port 23
7  Enter number of sectors in the game
8  Now click the 'Program' tab change the listening port, pick a # from 1-65500... I think that's  the range.  Example; put vulcan's A on port 101, put vulcan's B on port 201, etc...
9  You are ready to set up your 'front end' like ZOC, Swath, or ATTAC to name a few..(or all 3..)
10 So at this point you enter setup data into your various helpers entering 127.0.0.1 and pointing  to the port you set up to listen.
11 So now you are ready to play, and I assume everyone is familiar with this much. Now to add to it.
12 Without closing out your initial game, start up TWX again, you could get an error about not having an open port available.  We will fix this.
13 So now right click on the new twx icon and pull up the setup information.
14 Go to the Program tab and change the 'listen' port to a fresh, unused port.  See 8 above, or check the link below for more on available ports.
15 Now enter your new server data and you've set up a second twx...
16 You'll need to start up a second instance of your front end program, swath, whatever and point it  to the new twx port.
17 Connect your front end to twx, you will get a confirmation that you're ready to connect.
18 At this point you should be able to connect your second twx and play your second simultaineous  game... 
19 Repeat as needed... I've had 7 games goin' at once personally, but that's a little overdoing it.
20 To conclude; when you disconnect from each server, you can just minimize your 'frontend' and it is ready for reconnect whenever.
Possible problems?  Well, it's awkward to have a 'port' that you connect to the server on and a 'port' that you 'listen' to.  Kinda confusing.  For more on ports, some good reading:
 http://www.twxproxy.com/FAQ.html#_Question_22
I hope this helps even one person to set up multiple games, as it was a milestone for my personal play..   Now I could be podded in multiple games at once!!
-Sometimes Galactic Scourge
-Crosby
 
 

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


Sun Dec 10, 2006 12:44 pm
Profile ICQ YIM
Commander

Joined: Wed Apr 14, 2004 2:00 am
Posts: 1324
Location: USA
Unread post 
David Letterman's Top 10 list of things you never want to manually do in Tradewars:

10: Bust planets
9: Buydowns
8: RUN COLOS
7: Grid
6: Kill Stockton
5: SSM
4: ZTM
3: Pdrop
2: Escape from Stockton
1: CBY

_________________
Infecting others with a Polymorphic Virus since 1975.

Curing ignorance and terminal stupidity since 1999.

Questioning the intellectual abilities of three digit annual salary earners since 2015.


Sun Dec 10, 2006 5:53 pm
Profile WWW
Commander

Joined: Wed Apr 14, 2004 2:00 am
Posts: 1324
Location: USA
Unread post 
Crosby-
I have found that the best way to set up multiple TWX Connections was as easy as copy and paste.
I have multiple TWX folders (each named with the port they use) and just run each executable. If you have multiple TWX folders set up, it is easier to sift through the data you are looking for without accidentally getting into the wrong game on the same server.

_________________
Infecting others with a Polymorphic Virus since 1975.

Curing ignorance and terminal stupidity since 1999.

Questioning the intellectual abilities of three digit annual salary earners since 2015.


Sun Dec 10, 2006 5:56 pm
Profile WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
Oso wrote:
Crosby-
I have found that the best way to set up multiple TWX Connections was as easy as copy and paste.
I have multiple TWX folders (each named with the port they use) and just run each executable. If you have multiple TWX folders set up, it is easier to sift through the data you are looking for without accidentally getting into the wrong game on the same server.


I do a similar tactic. Although my layout differs in some aspect, the result is still the same. It keeps data from one game mixing with another game. It also allows me the luxury to modify some scripts for that particular game, while other games need something different.

No matter which method, it all works, it all is good.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sun Dec 10, 2006 6:27 pm
Profile
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post 
Code:
###IDC_Drain By:Kaus###
####Auto Relogs in Game to drain IDC's/Cannons
#######################
logging off
cutText CURRENTLINE $location 1 12
if ($location <> "Command [TL=")
         echo ANSI_6 "*[" ANSI_14 "This script must be run from the Command Prompt" ANSI_6 "]*" ANSI_7
  halt
end
SetVar $I 1
Echo "**"
GetInput $pw "Whats your password?"
Echo "**"
GetInput $times "How many times?"
Echo "**"
Echo ANSI_11 "Refill Figs Off Planet? (Y/N)"
GetConsoleInput $refill SINGLEKEY
Setdelaytrigger go :go 2000
:go
If ($refill = "Y") or ($refill = "y")
Echo "**"
GetInput $planet "Which Planet To Refill From?"
Else
Send " "
End
:Start
If ($refill = "Y") or ($refill = "y")
Send "l" & $planet & "* m n t * q q y n t* n *"
Else
send "q y n t* n *"
End
waitfor "Password?"
send $pw & "*"
send " a * z n "
WaitFor "Command [TL="
Add $I 1
If ($I = $times)
  Goto one
Else
  Goto :Start
End
one
logging On
Halt



The Breakdown

logging off
## exactually as it soungs logging off to prevent spam in well the logs


-------=-=-=-=-=-=-=--=-==-
cutText CURRENTLINE $location 1 12
if ($location <> "Command [TL=")
        echo ANSI_6 "*[" ANSI_14 "This script must be run from the Command Prompt" ANSI_6 "]*" ANSI_7
halt
end
##Check to see if were at the command prompt


-=-=-=-=-=-=--=-==-=
SetVar $I 1
##Set a VAriable named I to numeric value of 1


-=-=-=-=
Echo "**"
##Send to user screen the character enter twice same as #^M or pressing enter


-=-=--=-=-=-=
GetInput $pw "Whats your password?"
##Get input from user as to what there password is
#And store it to a variable name pw the
#question is in the quotations


=-==-=-=
Echo "**"
GetInput $times "How many times?"
Echo "**"
##Same as above except store how many times to
#execute the script.. this can be any numeric value
#There is not failsafe to check if its actually a number

-=-=-=-=-=-=-
Echo ANSI_11 "Refill Figs Off Planet? (Y/N)"
GetConsoleInput $refill SINGLEKEY
##Send to the terminal the question in quatations
#Then get a SINGLEKEY answer I.E. you can't
#type more than a single character


-=-=-=--=
Setdelaytrigger go :go 2000
:go
#After it recieves the required Y or N answer to the above
# it will pause for 2000 which equals 2 seconds
#the timer runs of 1000=1second so one minute
#would = 60000


-=-=-=-
If ($refill = "Y") or ($refill = "y")
Echo "**"
GetInput $planet "Which Planet To Refill From?"
Else
Send " "
End
#If structure to determine IF the required answer matchs
#what i want from the user which is a Y for yes in
#either captital or lowercase it then asks which planet
#to refill off it if the user typed in any other key it will
#skip this IF statement as it isnt true and as all computers
#they will only recognise true or false staments or 1 and 0
#0's


-=-=-=
:Start
If ($refill = "Y") or ($refill = "y")
Send "l" & $planet & "* m n t * q q y n t* n *"
Else
send "q y n t* n *"
End
##If the user answered yes to refilling the planet
#SEND the sting of keys with a space between them
#As space cancels out all the annoying ascii text/pics
#and speeds up the script
#ELSE send a standard quit without a planet


-=-=-
waitfor "Password?"
send $pw & "*"
send " a * z n "
WaitFor "Command [TL="
Add $I 1
##Tells the script to WAITFOR the word in quotations
#Then send the user password and enter
#send astring to attack any figs that may be inthe sector
#however i added this to actually get through any alien
#msg's and clear through entrance ascii which is why
#no fighters are included in this string
#after it runs it WAITFORS the word in quotations and
#add's 1 to our index variable I


-=-=-=-=
If ($I = $times)
Goto one
Else
Goto :Start
End
one
logging On
Halt
##If our index variable I equals our user defined variable
#times they goto done turn on logging and halt
#ELSE the script will loop to start and add another
#digit to the index counter at the end and check again

-Kaus

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Sun Dec 10, 2006 10:56 pm
Profile ICQ
Commander

Joined: Tue Mar 26, 2002 3:00 am
Posts: 1416
Location: Canada
Unread post 
hey how do you drain an idc without moving?

I'd really love to know, would improve my invasion tactics.


Sun Dec 10, 2006 11:50 pm
Profile ICQ
Commander

Joined: Wed Apr 14, 2004 2:00 am
Posts: 1324
Location: USA
Unread post 
Well, you're arguing semantics.
If the Cannon is drained, the IDC will be too!

_________________
Infecting others with a Polymorphic Virus since 1975.

Curing ignorance and terminal stupidity since 1999.

Questioning the intellectual abilities of three digit annual salary earners since 2015.


Sun Dec 10, 2006 11:56 pm
Profile WWW
Commander

Joined: Wed Apr 14, 2004 2:00 am
Posts: 1324
Location: USA
Unread post 
If we were to debate this, I would ask-
Is it better to invade using a Macro or a Script?
IMHO it is better to use a macro. You can tailor it to each situation better than a script.

_________________
Infecting others with a Polymorphic Virus since 1975.

Curing ignorance and terminal stupidity since 1999.

Questioning the intellectual abilities of three digit annual salary earners since 2015.


Mon Dec 11, 2006 12:00 am
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
Laff, you don't drain an IG w/ exit-enter. There is, however, another way...

_________________
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


Mon Dec 11, 2006 12:45 am
Profile ICQ WWW
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post 
Singularity wrote:
Laff, you don't drain an IG w/ exit-enter. There is, however, another way...


However you do drain cannons if there set and therefor drain a idc. However neither of that was the point. The point was to post a script as a help to others. As IDC Drain was my first script I ever wrote I thought I would share.

-Kaus

P.S. Are you refering to making corp dropping a fig if not present then dropping corp and exiting entering off a rogue fig to drain 500ore per time? Does that still work?

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Mon Dec 11, 2006 2:12 am
Profile ICQ
Chief Warrant Officer

Joined: Mon Sep 25, 2006 2:00 am
Posts: 133
Location: Brazil
Unread post 
yes thats what hes referring to

P.S. sing, read your Darn PM's once in awhile

_________________
This is Loc's unbanned account.. for now


Mon Dec 11, 2006 2:43 am
Profile
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
Kaus wrote:
Singularity wrote:
Laff, you don't drain an IG w/ exit-enter. There is, however, another way...


However you do drain cannons if there set and therefor drain a idc. However neither of that was the point. The point was to post a script as a help to others. As IDC Drain was my first script I ever wrote I thought I would share. Thanks for the replies Sing allways a blast.

-Kaus

P.S. Are you refering to making corp dropping a fig if not present then dropping corp and exiting entering off a rogue fig to drain 500ore per time? Does that still work?


Thanks for the post Kaus. As always I learn alot from you scripters, and appreciate your time and efforts.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Mon Dec 11, 2006 3:02 am
Profile
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
I agree, I have a macro that I use to clear limpets, mines and IG, its just moving back and forth to an adjacent sector for the mines and for the IG it is just trying leave the sector.

 
Mines <adjacent sector>^M^M <current sector>^M^M
IG <adjacent sector>^M

Loop the IG macro 2500 times to eat 1,000,000 fuel, though for the life of me I have no idea why someone would have the IG on and the cannon off

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Mon Dec 11, 2006 7:31 am
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
Hm... not getting PMs here it seems. Very wierd.

Good point tho Kaus, it does show some nifty stuff. gj.

I don't think exit-enter triggers an IG. I know it triggers cannon, but I don't think it triggers IG. Are you sure that it does?

But IG on and cannon off is common in turns game where someone is running citkilla and you don't want to burn ore w/ sector blasts (as a prelude to an invasion). I have a similar script, uses a bunch of exit-enters, to moth down cannons in sector. Something like that could be automated and really mess w/ your day if you have the cannon on too low.

But yea, if you place a fig the right way you can retreat off it and moth down the IG w/ no turn cost.

_________________
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


Mon Dec 11, 2006 9:06 am
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 23 posts ]  Go to page 1, 2  Next

Who is online

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