View unanswered posts | View active topics It is currently Thu Apr 30, 2026 7:02 pm



Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3
 Call for TWX Proxy bugs / wish list 
Author Message
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Call for TWX Proxy bugs / wish list
Quote:
it is not repeatable. i can't seem to figure out what the trigger is.


You aren't the only one that's had this happen, I've had it, as have others I've corped with. If you re-open the database (re-select the game) you can continue where you left off, otherwise sometimes the DB gets corrupted.

Quote:
mean when you are coding a script to ask the user where the data file (sector data, port data, etc...) is located.


In TWXproxy you don't really need a sector data file or a port data file, most of the time. All of that is in the database. For other files I just use getInput, it's not perfect but it works. You can check if the file exists or not tho. Prome published his directory browser snippet, that is as close to what you want as you'll find, there is no way to access the file explorer dialog box from twxproxy.

_________________
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


Mon Jun 30, 2008 8:05 am
Profile ICQ WWW
Veteran Op

Joined: Tue Nov 28, 2006 4:04 pm
Posts: 5025
Unread post Re: Call for TWX Proxy bugs / wish list
Singularity wrote:

In TWXproxy you don't really need a sector data file or a port data file, most of the time. All of that is in the database. For other files I just use getInput, it's not perfect but it works. You can check if the file exists or not tho. Prome published his directory browser snippet, that is as close to what you want as you'll find, there is no way to access the file explorer dialog box from twxproxy.


This is what I was asking for, to see if there was a way to configure twx proxy to use a file explorer to load a file inside a script. If getInput is the best that can be configured so be it. I just posted to this threads title which is (Call for TWX Proxy bugs / wish list), and that was one thing that I wish was better about twx proxy. Most of the data I need isn't inside twx proxy, such as a list of unfigged sectors, sectors that are X amount of hops from Terra, dead end sectors that are X deep, or any combination of the above. I create most of my grid data by weeding out sectors to only the most likely areas someone would build and saving that data to a file. This way if I run out of turns, I can send that data file to a corpie.


Tue Jul 01, 2008 12:05 am
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: Call for TWX Proxy bugs / wish list
No love yet Rev. I've been coding TWX a lot lately, but mostly looking for speed improvements. I'll see how hard the Port CIM will be.

Thanks for the additional info Sing, I'll keep digging.

BigD, I added the 'getFileList' command in 2.04 for just this sort of use. So let's say you wanted to select from a number of files in the TWX Proxy root folder, where the file names started with 'BD_' and ended in '.txt'. You could make it easy on the script user by coding something like this:
Code:
getFileList $txtArray "bd_*.txt"
if ($txtArray = 0)
   echo "*No files found.*"
   halt
else
   echo "*Select a file number:"
   setVar$i 1
   while ($i <= $txtArray)
      echo "*" $i " - " $txtArray[$i]
      add $i 1
   end
end
getConsoleInput $selection
Prom just posted a script that uses the basic idea here. While it's not a windows dialog, it does simplify things.

+EP+

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


Wed Jul 02, 2008 11:39 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 33 posts ]  Go to page Previous  1, 2, 3

Who is online

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