View unanswered posts | View active topics It is currently Thu Apr 23, 2026 9:18 pm



Reply to topic  [ 5 posts ] 
 Fighter/Explore 
Author Message
Warrant Officer

Joined: Tue Dec 21, 2004 3:00 am
Posts: 92
Location: USA
Unread post 
Does anyone know of a script that will parse the data from the "show fighter" screen and generate a text file or auto-explore (preferrable)
I could probably write a pascal prog that would parse it, not too terrible I don't guess. Or if u know of a explore script that will explore from a text file.

Thanks, --LD--


Sat Dec 25, 2004 2:30 am
Profile ICQ
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
Simple enough to create a text file from the fig display if you are using TWX Proxy. The following would create a figlist.txt file in your TWX directory:
Code:
delete figlist.txt
send "g"
waitOn "Deployed  Fighter  Scan"
setTextLineTrigger personal :getDeployed "Personal "
setTextLineTrigger corp :getDeployed " Corp"
waitOn "Command [TL"
halt

:getDeployed
killTrigger personal
killTrigger corp
getWord CURRENTLINE $figSector 1
write figlist.txt $figSector
setTextLineTrigger personal :getDeployed "Personal "
setTextLineTrigger corp :getDeployed " Corp"
pause

Not sure what you want to explore based on your fig list though. Care to explain a bit more?

+EP+

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


Sat Dec 25, 2004 3:35 am
Profile WWW
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Or you could use my sector list generator...that is one of the many sources that it will get a list of sectors from...(if you use twx) http://phx.servosdigitaldomain.com/


Sat Dec 25, 2004 7:44 am
Profile ICQ YIM WWW
Warrant Officer

Joined: Tue Dec 21, 2004 3:00 am
Posts: 92
Location: USA
Unread post 
This is a script that I attempted to write do what what I wanted, it won't work b/c I don't quite have the command usage or the environment correct. I am attempting to check a deploy fig scan and line buy line (while incrementing a variable which starts at 11) compare the figs shown. For instance:

------------------
11 Corp . ...
13 Corp . .
14 Corp. ...
16 Corp ....
if sectorshown <> sectorcount write sector to file..

The file would contain:

(Sectorfile.txt)
--------------
12
15
__________________





:start
logging off
setvar $writenum 0
setvar $sectnum 11
send "g"
setTextTrigger 1 :finish "Command [TL="
waitfor "====="
while ($sectnum <= 20000)
getword currentline $figsect 1
gosub :checktext
gosub :writetext
add $sectnum 1
end

halt

:checktext
if ($sectnum = $figsect)
setvar $writenum 0
else
setvar $writenum 1
end
return

:writetext
if ($writenum = 1)
echo $sectnum
write figsect.txt $sectnum
setvar $writenum 0
end
return


Sat Dec 25, 2004 3:51 pm
Profile ICQ
Chief Warrant Officer

Joined: Mon Oct 07, 2002 2:00 am
Posts: 125
Location: USA
Unread post 
Put your "g" list into a array, then write the sectors that didn't get flagged.

setarray $fig sectors
send "g"
waitfor "==================================="
settextlinetrigger grab :grab
pause

:grab
getword currentline $secnum 1
getword currentline $finish 2
if ($finish = "Total")
goto :finish
else
setVar $fig[$secnum] 1
end
settextlinetrigger grab :grab
pause

:finish
setVar $num 10
while ($num < sectors)
add $num 1
if ($fig[$num] = 0)
write $file $num
end
end

something like this will give you a list of sectors you don't have fighters in...

_________________
Alexio just #Ship Destroyed# your Butt! hahahahah

Check out Damage Unlimited Perma Website!!
http://WWW.DAMAGEUNLIMITED.COM


Sat Dec 25, 2004 11:45 pm
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

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