www.ClassicTW.com
https://mail.black-squirrel.com/

Sweeper Script
https://mail.black-squirrel.com/viewtopic.php?f=15&t=32297
Page 1 of 1

Author:  T0yman [ Sat Sep 17, 2011 6:21 pm ]
Post subject:  Sweeper Script

I have been testing and adding option's for several days with no problems. This version is only for 2.10, if there are more changes in T-Edit I will keep this updated.
If there is a feature that someone would like added please let me know I will add what I can.
Use= Login T-Edit - E > (Game Letter) Start Script. Select options you want from the menu below. Title bar will show the number of sectors it will be sweeping. Since this script can remove planets from sectors I have markers set in each sector it sweeps as a warning:
Sector : 18897 in Planets/Limps/Mines/NavHaz - Check Rules!.
Beacon : 1 Toll Fig anything else will be removed!

Those can be edited and changed in the script lines 21 & 22. I considered making them part of the menu but I was trying to keep the menu limited to normal changes. But if someone wants it added let me know.
When the script is done with it's run it let's you know it has finished using the following message.
"Currently Running The Butler, Sweeping 155 Sectors on a 120 min Delay!"

-------====== The Butler ver 1.1 Sweeping 155 Sectors =======--------
A) Sweep Nav Haz (Y or N) :Y
B) Sweep List of Figs (Y or N) :Y
C) Number of Figs (1 default) :1
D) Sweep List of Mines (Y or N) :Y
E) Sweep List of Limpets (Y or N) :Y
F) Sweep List for Planets (Y or N) :Y
T) Delay between runs (default 120min) :120
S) Start!
X) Stop & Exit Script!
>
Script reads a text file named "tb.txt" from the root of TWX (folder) and sweeps the sectors you select. I normally sweep 4 out from SD, MSL's and Class 0's.

Sector Listing in tb.txt is listed in the following format.
6021
7710
12513
18897
Attachment:
File comment: The Butler ver 1.1
The_Butler.ts [5.94 KiB]
Downloaded 446 times

Author:  T0yman [ Fri Oct 28, 2011 5:31 pm ]
Post subject:  Re: Sweeper Script

Another version that does exactly the same thing but offer's a few minor changes. No Menu like the above since this one is designed to run without a telnet window. Make changes to the variables using Notepad or other text editor as I explain the attached instruction. Has a setting for servers that are closing games from let's say 11pm to 1am, the script will not sweep during these hours. I am not 100% sure if you close from 1am to 3am, I have not tested but would be more than happy to add if someone needs it. I have ran this script for 1 week with absolutely NO issues.

Reason for change - I might be Gameop for a building game and the server will be down for a significant amount of time & was requested to not have the script using a port if not actually running. Options I should have had in the original version but just never had a reason until now.
Attachment:
The_Butler_Unattendedv1.1u.ts [3.98 KiB]
Downloaded 420 times

Instruction and Variable descriptions:
Attachment:
The Butler 1.1u.doc [37.5 KiB]
Downloaded 458 times

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/