| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Terra Plots Tracker -New Scripter Challenge https://mail.black-squirrel.com/viewtopic.php?f=15&t=32846 |
Page 1 of 1 |
| Author: | Kaus [ Mon Feb 06, 2012 6:49 am ] |
| Post subject: | Terra Plots Tracker -New Scripter Challenge |
Been while since I visited this forum, below is some earlier beta code of Terra_Plots_Tracker.ts My challenge to non-veteran scripters is to tell me what they would add or remove to make the result's more dependable. Synopsis: What Terra_Plots_Tracker does it create a list of deadend's which are unfigged and meets the user specified number of hops from terra. I have included some echo's to hopefully make it easier to understand and read as the script load's, just remove the # and let it run The script requires a full ZTM and a refreshed FIGSEC. Code: setVar $file "_" & GAMENAME & "_SectorMatch.txt" delete $file SetVar $idx 1 getallcourses $Check 1 GetInput $Num "How Deep?" While ($idx <= Sectors) If ($Check[$idx] = $Num) SetVar $Testsec $idx GetSectorParameter $TestSec "FIGSEC" $IfFigged If ($IfFigged = 1) goto :Next end If ((SECTOR.WARPCOUNT[$idx] = 1) AND (SECTOR.WARPINCOUNT[$idx] = 1)) SetVar $adj SECTOR.WARPSIN[$idx][1] # Echo "*" ANSI_11 $idx "*" # Echo ANSI_11 SECTOR.WARPCOUNT[$idx] "*" # Echo ANSI_11 $adj "*" # Echo ANSI_11 SECTOR.WARPINCOUNT[$adj] "*" If (SECTOR.WARPCOUNT[$adj] = 2) Write $file $idx end goto :Next end end :Next Add $idx 1 end Echo ANSI_12 & "**Writing Specified Warps to file: _" & GAMENAME & "_SectorMatch.txt" halt #/////////////////////////////////////////////////////////////////////////// #While $IDX is less than total sectors (SECTORS) #load a array of number's which have a course plotted from 1 into $check #if the $check variable ='s $num which was set by user #set a $testsec variable with the current sector $idx #Check our sector against our fig array "FIGSEC" and if its true (1) #check if it has 1 warpcount and 1 warpin #if $idx passes our previous check set a variable $adj to the 1 warpin #if the warpcount of the $adj variable is 2 then write our original $idx to file #continue untill we have no more sectors that match our criteria |
|
| Author: | Promethius [ Wed Feb 08, 2012 2:56 am ] |
| Post subject: | Re: Terra Plots Tracker -New Scripter Challenge |
I am surprised that someone has not taken up the challenge. I see one thing I would change (wouldn't remove it so I could use it another time) to get all DEs at a specified distance, and another that can be rewritten, but it will probably get the most likely locations. A couple of other things are just habit like starting $idx at 11 instead of 1. |
|
| Author: | Mongoose [ Wed Feb 08, 2012 7:20 pm ] |
| Post subject: | Re: Terra Plots Tracker -New Scripter Challenge |
So this is for hunting your opponents? Or finding places to build yourself? |
|
| Author: | ElderProphet [ Wed Feb 08, 2012 11:36 pm ] |
| Post subject: | Re: Terra Plots Tracker -New Scripter Challenge |
Promethius wrote: I am surprised that someone has not taken up the challenge. I'd be happy to rewrite it in like 10 lines |
|
| Author: | Kaus [ Thu Feb 09, 2012 5:41 pm ] |
| Post subject: | Re: Terra Plots Tracker -New Scripter Challenge |
ElderProphet wrote: Promethius wrote: I am surprised that someone has not taken up the challenge. I'd be happy to rewrite it in like 10 lines Let's not read into this more than needed. As stated earlier this was a early beta I still had laying around. I'm sure that a tracker could be written in less lines. I was hoping to engage people who havethe desire to learn but been afraid to ask or pursue it. |
|
| Author: | Kaus [ Thu Feb 09, 2012 5:44 pm ] |
| Post subject: | Re: Terra Plots Tracker -New Scripter Challenge |
Mongoose wrote: So this is for hunting your opponents? Or finding places to build yourself? Mongoose, You would use this in conjunction with information gained by watching someone colonize. The concept is that many players do not buffer there ore consumption while colonizing, so by counting the colonists prior and after you can reverse how much ore they used. Divide by three, get the potential hops from terra and make s list of potential home base sectors to grid. This very basic script gives the later, however it is missing some features that will provide more confidant results. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|