View unanswered posts | View active topics It is currently Wed Apr 22, 2026 6:06 pm



Reply to topic  [ 4 posts ] 
 Community Probe Script 
Author Message
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post 
I thought it might be fun to do a community scirpt of sorts. I have been playing with "getNearestWarps" command some to that end for some subroutines. If anyone wishes to help please feel free to post some code for a probe script and we will put it together and put it in the download area for everyone to use and modify as they wish.
For you peeps just starting it might be a good chance to get your name in your first script.
Any of you seasoned scripters out their who wish to take charge of putting it together please volunteer.
 
 
 

_________________
Coconut Telegraph (ICQ)#586137616
Team Speak3@ 220.244.125.70:9987
Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
Image
Jesus wounldn't Subspace Crawl


Sun Feb 04, 2007 5:16 am
Profile ICQ YIM
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post 
content edited.


Sun Feb 04, 2007 6:15 am
Profile ICQ YIM
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
No need to make it DEs since furthest unexploreds will either end up being DEs or 0 traffic sectors... both of which you'll end up having to probe anyway.

My version of the above...

Code:
setVar $filename GAMENAME & "-Unexplored_Unfigged.txt"
delete $filename
getNearestWarps $stack STARDOCK
setVar $count $stack
while ($count > 0)
     setVar $this $stack[$count]
     if (SECTOR.EXPLORED[$this] <> "YES")
               getSectorParameter  $this "FIGSEC" $figtest
               if ($figtest = FALSE)
                    write   $filename $this
               end
     end
     subtract $count 1
end


But if you really want to spice it up, do a getCourse out and count the number of unexploreds in each. Then sort by that count.

Code:
setVar $filename GAMENAME & "-most-unexplored.txt"
delete $filename
getNearestWarps $stack STARDOCK
setVar $max_unexp 0
setVar $count $stack
while ($count > 0)
     setVar $this $stack[$count]
     if (SECTOR.EXPLORED[$this] <> "YES")
               getSectorParameter  $this "FIGSEC" $figtest
               if ($figtest = FALSE)
                    getCou rse  $lane STARDOCK $this
                    setVar   $unexp_cnt 0
                    setVar   $course_idx 1
                    while   ($course_idx <= ($lane+1))
                           setVar  $course_test $lane[$course_idx]
                           if (SECTOR.EXPLORED[$course_test] <> "YES")
                                   add $unexp_cnt 1
                            end
                             add  $course_idx 1
                     end
                    add   $occurances[$unexp_cnt][0] 1
                    setVar   $occurances[$unexp_cnt][$occurances[$unexp_cnt][0]] $this
                     if ($unexp_cnt > $max_unexp)
                           setVar  $max_unexp $unexp_cnt
                     end
               end
     end
     subtract $count 1
end
setVar $count $max_unexp
while ($count > 0)
     setVar $idx 1
     while ($idx <= $occurances[$count][0])
               write $filename $occurances[$count][$idx] & " " & $count
               add $idx 1
     end
     subtract $count 1
end


The way I do it is to stack filters on top of each other. I'll output a file like this, put it into the prober and then double check for those that are unexplored as I go along, filtering those out that have already been checked.

An alternative way of doing this is to generate the first few, probe some, generate the next few, etc. The smaller your gen list the more accurate it would be, but the more time it would take to calculate.

With the avoids option it is possible now to calculate the path of a probe better... there are a number of possibilities there.

It would probably not be accurate, however, to run thru the getcourse and mark each sector as "explored" in an array... while that would certainly reduce the number of times you'd have to run this, you'd still have to make multiple passes to filter in blocked probes... and you'd still have to make it atleast a 3-pass approach or you'll end up running thru the wrong list. All in all that might be more trouble than it's worth.

_________________
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


Sun Feb 04, 2007 8:44 am
Profile ICQ WWW
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1401
Location: Canada
Unread post 
I'll be happy to do the Menu's and initial ship/player, check.
 
EDIT:  Time is very limited for me atm. In the best interests of this little project I feel that someone else completing this task would better serve the comunity. Thank you ...this is a recording.
 

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.


Sun Feb 04, 2007 5:54 pm
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

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