| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Zentocks Script School Homework https://mail.black-squirrel.com/viewtopic.php?f=15&t=18208 |
Page 1 of 2 |
| Author: | Zentock [ Sun Dec 10, 2006 10:42 am ] |
| Post subject: | |
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. |
|
| Author: | Crosby [ Sun Dec 10, 2006 12:44 pm ] |
| Post subject: | |
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 |
|
| Author: | Oso [ Sun Dec 10, 2006 5:53 pm ] |
| Post subject: | |
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 |
|
| Author: | Oso [ Sun Dec 10, 2006 5:56 pm ] |
| Post subject: | |
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. |
|
| Author: | Thrawn [ Sun Dec 10, 2006 6:27 pm ] |
| Post subject: | |
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. |
|
| Author: | Kaus [ Sun Dec 10, 2006 10:56 pm ] |
| Post subject: | |
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 |
|
| Author: | Silence [ Sun Dec 10, 2006 11:50 pm ] |
| Post subject: | |
hey how do you drain an idc without moving? I'd really love to know, would improve my invasion tactics. |
|
| Author: | Oso [ Sun Dec 10, 2006 11:56 pm ] |
| Post subject: | |
Well, you're arguing semantics. If the Cannon is drained, the IDC will be too! |
|
| Author: | Oso [ Mon Dec 11, 2006 12:00 am ] |
| Post subject: | |
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. |
|
| Author: | Singularity [ Mon Dec 11, 2006 12:45 am ] |
| Post subject: | |
Laff, you don't drain an IG w/ exit-enter. There is, however, another way... |
|
| Author: | Kaus [ Mon Dec 11, 2006 2:12 am ] |
| Post subject: | |
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? |
|
| Author: | Hiro [ Mon Dec 11, 2006 2:43 am ] |
| Post subject: | |
yes thats what hes referring to P.S. sing, read your Darn PM's once in awhile |
|
| Author: | Thrawn [ Mon Dec 11, 2006 3:02 am ] |
| Post subject: | |
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. |
|
| Author: | Cerne [ Mon Dec 11, 2006 7:31 am ] |
| Post subject: | |
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 |
|
| Author: | Singularity [ Mon Dec 11, 2006 9:06 am ] |
| Post subject: | |
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. |
|
| Page 1 of 2 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|