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

Blocked port report
https://mail.black-squirrel.com/viewtopic.php?f=15&t=31258
Page 1 of 1

Author:  Cruncher [ Sun Mar 27, 2011 11:27 am ]
Post subject:  Blocked port report

I haven't seen this report offered in Swath or public TWX scripts (yet)

This was a report I enjoyed using that was in TWHelper, basically just reading the CIM file, and telling you if a port you've already visited was not reporting now - enemy fig blocking port report.

Is there anything like this available publically?

Author:  Helix [ Sun Mar 27, 2011 11:35 am ]
Post subject:  Re: Blocked port report

Try this one :)

Attachments:
ls_cim hunter_v20.ts [25.56 KiB]
Downloaded 416 times

Author:  Promethius [ Sun Mar 27, 2011 1:51 pm ]
Post subject:  Re: Blocked port report

Cruncher wrote:
I haven't seen this report offered in Swath or public TWX scripts (yet)

This was a report I enjoyed using that was in TWHelper, basically just reading the CIM file, and telling you if a port you've already visited was not reporting now - enemy fig blocking port report.

Is there anything like this available publically?


Something like the below might work for you:

Code:
# blocked ports
delete gameName & "blockedPort.txt"
setArray $ports SECTORS
setVar $i 11
setVar $pass 1
:begin
  send "^rq"
  setTextTrigger done :done ": ENDINTERROG"
  setTextLineTrigger port :port "%"
   pause
  :getPorts

     :port
     setTextLineTrigger port :port "%"
     getword currentline $portNum 1
       setVar $ports[$portNum] $portNum
     pause
     :done
     killtrigger port
  while ($i <= SECTORS)
    if (port.exists[$i])
       if ($ports[$i] = 0)
       # below is just to set for certain warps out - add to line above
       # and (sector.warpcount[$i] = 1)
          getsector $i $chkSector
          # ignore alien space
          getwordpos $chkSector.Constellation $pos "Space"
          if ($pos = 0)
             write gameName & "blockedPort.txt" $i
          end
       end
    end
    add $i 1
  end


Author:  Cruncher [ Sun Mar 27, 2011 10:22 pm ]
Post subject:  Re: Blocked port report

Thanks guys, can't wait to try them out in my new TWGS game.

Started one today, 500 sector universe, 250 turns deepest bbl is 2 sectors. Turn management is vital :)

Author:  Scrat [ Mon Mar 28, 2011 12:27 pm ]
Post subject:  Re: Blocked port report

Or you could just use the Sector Finder tool in Swath. Just set the port type to "Blocked".

Author:  Cruncher [ Mon Mar 28, 2011 3:29 pm ]
Post subject:  Re: Blocked port report

Scrat wrote:
Or you could just use the Sector Finder tool in Swath. Just set the port type to "Blocked".


Very cool, thank you! I'm going to have to explore Swath more thoroughly.

Author:  ElderProphet [ Tue Mar 29, 2011 1:23 pm ]
Post subject:  Re: Blocked port report

That's a really long post Helix. My preference would be short code snippets in posts, longer scripts in attached files. I'm just saying...

Prom, that is a nice routine. Another example of cleverly using the TWX database.

Author:  Helix [ Tue Mar 29, 2011 3:48 pm ]
Post subject:  Re: Blocked port report

The forum doesn't allow .ts file attachments.

H

Author:  Singularity [ Tue Mar 29, 2011 4:20 pm ]
Post subject:  Re: Blocked port report

Ooo, good reminder. See if you can upload .ts and .cts now.

Author:  Helix [ Tue Mar 29, 2011 9:58 pm ]
Post subject:  Re: Blocked port report

the .ts attached just fine

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