| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Community Probe Script https://mail.black-squirrel.com/viewtopic.php?f=15&t=18650 |
Page 1 of 1 |
| Author: | Parrothead [ Sun Feb 04, 2007 5:16 am ] |
| Post subject: | |
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. |
|
| Author: | Parrothead [ Sun Feb 04, 2007 6:15 am ] |
| Post subject: | |
content edited. |
|
| Author: | Singularity [ Sun Feb 04, 2007 8:44 am ] |
| Post subject: | |
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. |
|
| Author: | LoneStar [ Sun Feb 04, 2007 5:54 pm ] |
| Post subject: | |
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. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|