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



Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
 Multiple TWXProxy's 
Author Message
Captain
User avatar

Joined: Sat Jun 18, 2005 2:00 am
Posts: 2214
Location: USA
Unread post 
For those that were unaware of how to run more then one instance of TWXProxy, or was I the only one? LAFF, anyways I believe I have finally determined how to achieve this monumental task and broken through the discovery of this darkly held secret! Heh, I am putting this out not to be an enabler for wanna-be duping fanatics, but fore those that which to play more one game simultaneously using their favorite helper, ol’ TWX! It is really very simple, now I be wondering why it didn’t occur to me before. In my testing I did three instances and it worked good, other then my system being s l o w, but I would think that should more then suffice anyways.

You will want to create a separate TWXProxy directory for each instance you wish to run, this directory is to contain your core TWXProxy files as you will need to change the listening/binding port for each one individually, on my computer I tested: (of course 23), 24, and 26 (25 does not work), 27, 28, 29, and 30; they all worked fine. As well you will want to create a shortcut for each directory or instance on your desktop or where ever you keep your TWXProxy Icon, all the scripts and you terminal should not be effected and could run off the main TWXProxy directory as normal; as all the files will be saved under the game-name anyways, thus they should not be effected, (you will just need to know which one is for which though, otherwise you will corrupt you game data by mixing up game info.) In SWATH for example for each individual game file you have you will need to change the TWX configuration (under Game Options) to the matching port that you plan to have that TWX instance set to. i.e. ‘Port’ for both the top and bottom portions Game settings and Proxy settings; they should both match up to that instance of TWXProxy.

You could of course use the same copy of TWX and just bring up multiple copies, but every time you will get a binding error and will need to manually change the 23 port (or prior set port) to the new port you wish to use, this would quickly become a monotonous process though. Remember please do not use this for duping, unless the board you are duping on permits it.

_________________
Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact!
Don't mess with me, I will 26 U.S.C. § 7212(a) your IRS!


Thu Jun 01, 2006 9:30 am
Profile ICQ WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
Shhh, it's a secret.

You can launch TWProxy with an optional /P switch, specifying the listening port, like so:
twxproxy /P2023
Now it is listening on port 2023.

+EP+

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


Thu Jun 01, 2006 3:27 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
You serious? Wow that makes batch file startups so much easier...

_________________
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


Thu Jun 01, 2006 4:19 pm
Profile ICQ WWW
Lieutenant

Joined: Fri Apr 05, 2002 3:00 am
Posts: 580
Location: USA
Unread post 
What is a batch file? Hehehehhehehehhehehehehehhe jk

_________________
My scripts can be downloaded at http://www.grimytrader.com/.
Ore *****.
Even in my signature it's blocked out.


Thu Jun 01, 2006 5:12 pm
Profile ICQ YIM
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
quote:Originally posted by ElderProphet

Shhh, it's a secret.

You can launch TWProxy with an optional /P switch, specifying the listening port, like so:
twxproxy /P2023
Now it is listening on port 2023.

+EP+


That IS quite handy. Can you also specify the database file to load in the start-up command rather than going through the program to load?

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Thu Jun 01, 2006 6:40 pm
Profile
Captain
User avatar

Joined: Sat Jun 18, 2005 2:00 am
Posts: 2214
Location: USA
Unread post 
Wouldn’t it just be easier to use your mouse to change the game you wish to load as it stays on the last game loaded when you bring it anyways, right? Rather then having to type it out in a batch file each time and then save it, or change the shortcut to a new batch file each time, etc. I guess unless you have a shortcut on your desktop for each game you play, then it would be a good idea to use that method instead.

_________________
Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact!
Don't mess with me, I will 26 U.S.C. § 7212(a) your IRS!


Thu Jun 01, 2006 8:34 pm
Profile ICQ WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
quote:Originally posted by RexxCrow

Wouldn’t it just be easier to use your mouse to change the game you wish to load as it stays on the last game loaded when you bring it anyways, right? Rather then having to type it out in a batch file each time and then save it, or change the shortcut to a new batch file each time, etc. I guess unless you have a shortcut on your desktop for each game you play, then it would be a good idea to use that method instead.


That's my thought. Now by knowing the /P switch, I can play two games on two different servers at the same time. If one is /P2005 and the other is /P2006, then I was hoping to also load the database file that corresponds to that TWXProxy port.

If it can't be done, then that's no problem. Knowing the /P switch definately helps.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Thu Jun 01, 2006 9:44 pm
Profile
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
I have run multiple instances of TWX using the same copy from the same directory....the port error is expected just change it for each instance, other than that I have never had a problem and actually I didnt consider it a problem.


Fri Jun 02, 2006 11:19 pm
Profile ICQ YIM WWW
Captain
User avatar

Joined: Sat Jun 18, 2005 2:00 am
Posts: 2214
Location: USA
Unread post 
Hey though after thinking about it Thrawn suggestion is pretty cool, you could a copy TWX for each of your game characters or whatever to help you get into the right frame of mind for your game play. It would streamline the logging on process, maybe you could even have it (the batch file) bring up a terminal along with it. hahaa

_________________
Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact!
Don't mess with me, I will 26 U.S.C. § 7212(a) your IRS!


Sat Jun 03, 2006 1:18 am
Profile ICQ WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
quote:Originally posted by RexxCrow

Hey though after thinking about it Thrawn suggestion is pretty cool, you could a copy TWX for each of your game characters or whatever to help you get into the right frame of mind for your game play. It would streamline the logging on process, maybe you could even have it (the batch file) bring up a terminal along with it. hahaa


Well I modified my SWATH link so when it executes the program, it also loads the .swt file. I then have a trigger so when a game is loaded, it activates TWXProxy. I know I can set triggers or macros to access TWXProxy and change the port/load the database that way. I was just thinking if we can load TWXProxy with the /P switch, it could be handy to also load the database. Just like loading a SWATH game from my earlier mention. Then it reduces the chance of error in the execution of macros.

Here's a question. In SWATH, I set the trigger to execute an application "thrawn1.bat" when my SWATH loads a game, which has the command "twxproxy.exe /p2005". When it executes, the DOS cmd window stays open and TWXProxy loads properly, but I have to manually close the DOS box. Does TWXProxy produce an errorlevel code when it executes? If so, that would be great to know so I can make a label in my batch file. Otherwise, the exit command in the batch does not close it. Oh, I'm in XP Pro.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sat Jun 03, 2006 2:03 am
Profile
Lieutenant

Joined: Sun Nov 07, 2004 3:00 am
Posts: 588
Location: USA
Unread post 
quote:Originally posted by PHX

I have run multiple instances of TWX using the same copy from the same directory....the port error is expected just change it for each instance, other than that I have never had a problem and actually I didnt consider it a problem.


Thats all i have ever done... never even though of putting twx in multiple directorys seems like such a waste.


Sat Jun 03, 2006 2:30 am
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
I actually wrote a script to load a specific database according to which listening port was in use... but it doesn't work :(
TWX bug. Anyway, here's what the script looked like...getMenuValue TWX_LISTENPORT $listenPort
if ($listenPort = 1023)
setMenuValue TWX_DATABASE_SELECT 5K1
elseif ($listenPort = 2023)
setMenuValue TWX_DATABASE_SELECT Local5k
else
setMenuValue TWX_DATABASE_SELECT TS_5k
endI'll try and fix the updating of those values so that this sort of script will work in the future.

I also noticed that the batch files don't close. I'll see what I can do there in a future release.

+EP+

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


Sat Jun 03, 2006 3:08 am
Profile WWW
Captain
User avatar

Joined: Sat Jun 18, 2005 2:00 am
Posts: 2214
Location: USA
Unread post 
kewl EP, if nobody has yet to tell you that you are the man, then I am telling you now! [^]

_________________
Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact!
Don't mess with me, I will 26 U.S.C. § 7212(a) your IRS!


Sat Jun 03, 2006 5:37 am
Profile ICQ WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
quote:Originally posted by ElderProphet

I actually wrote a script to load a specific database according to which listening port was in use... but it doesn't work :(
TWX bug. Anyway, here's what the script looked like...getMenuValue TWX_LISTENPORT $listenPort
if ($listenPort = 1023)
setMenuValue TWX_DATABASE_SELECT 5K1
elseif ($listenPort = 2023)
setMenuValue TWX_DATABASE_SELECT Local5k
else
setMenuValue TWX_DATABASE_SELECT TS_5k
endI'll try and fix the updating of those values so that this sort of script will work in the future.

I also noticed that the batch files don't close. I'll see what I can do there in a future release.

+EP+


If it can be done that's great. If it's too much, then leave it. As Rexx stated earlier, I can right click. Or I can access it via the terminal screen in SWATH using keys and triggers, etc. I can even load the database that way too.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sat Jun 03, 2006 4:06 pm
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
Yeah, simple enough to work around.

Still a bug though, so it'll get addressed. There may be other cool things that I want to script in the future, and this sorta thing needs to work as expected.

+EP+

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


Mon Jun 05, 2006 5:09 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 22 posts ]  Go to page 1, 2  Next

Who is online

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