View unanswered posts | View active topics It is currently Sun Apr 19, 2026 12:40 am



Reply to topic  [ 6 posts ] 
 Terra Plots Tracker -New Scripter Challenge 
Author Message
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post 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

_________________
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 Feb 06, 2012 6:49 am
Profile ICQ
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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.

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Wed Feb 08, 2012 2:56 am
Profile ICQ
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: Terra Plots Tracker -New Scripter Challenge
So this is for hunting your opponents? Or finding places to build yourself?

_________________
Suddenly you're Busted!


Wed Feb 08, 2012 7:20 pm
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: Terra Plots Tracker -New Scripter Challenge
Promethius wrote:
I am surprised that someone has not taken up the challenge.
Well, he did say non-veteran scripters...
I'd be happy to rewrite it in like 10 lines :), but it seems Kaus is really asking for feature improvements.

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Wed Feb 08, 2012 11:36 pm
Profile WWW
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Re: Terra Plots Tracker -New Scripter Challenge
ElderProphet wrote:
Promethius wrote:
I am surprised that someone has not taken up the challenge.
Well, he did say non-veteran scripters...
I'd be happy to rewrite it in like 10 lines :), but it seems Kaus is really asking for feature improvements.


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.

_________________
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."


Thu Feb 09, 2012 5:41 pm
Profile ICQ
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post 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.

_________________
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."


Thu Feb 09, 2012 5:44 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

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