!!!!!!! TribesIP 1.3 - written by Rasia, modified and fixed by Cowboy !!!!!!!

Original by:
             Rasia
             rasia@planetstarsiege.com
             http://www.planetstarsiege.com/TheDen/

Reworked by:
             Cowboy
             cowboy@planetstarsiege.com
             http://www.planetstarsiege.com/cowboy/
             ICQ# 31184463

I first saw TribesLinker on Rasia's old page (on fortunecity, before he moved
to PSS).. and as I had already been working on a Tribes IP Linker, I figured
I'd check his out... Well, it was WAY better than mine.. Creating a separate
window for the captured IP links was ingenious!

A few problems though, is the installation procedure was problematic, with
no error-checking.. And it wouldn't actually create a working .bat file!

Also, I play alot of password-protected servers, so I *needed* to be able to
join a server with the right password!

So, I modified his script, cleaned it up, got it working...

Note: Sets you marked as 'away' when you connect, this was a requested feature!

Installation Instructions - Put the TribesIP.mrc file in your mirc directory.
                            At the status window in mirc, type:

                            /load -rs TribesIP.mrc

                            Follow the instructions!

If you use TimeHUD or wish to change the batch file, just edit TribesIP.bat in
your mirc directory.

This stuff is mostly from tribeslink.txt by Rasia:

All the servers you detect will be in the TribesIP window that this script
creates when you connect to the server. If it doesn't create it the first time,
no worries, just goto your Commands menu (its up ther by DCC, File, edit, etc.)
There should be a Tribes IP Catcher menu option - just hit it, and boom, done.
Also, this is the way to restart the window if you close it accidentally.

Once you have a server in the TribesIP window, you can doubleclick to connect
to it, or you can right click to get some options.

Join selected server ------- Joins the server, doesn't specify a password!
Join selected w/Password --- Lets you type in the password for the server. If you
                             just hit <enter> it uses the last Tribes password.
Join server, manual IP ----- Lets you manually type in the server IP and password.
Tribes Main Menu ----------- Just start tribes, like you clicked its Windows icon.

Delete selected line(s) ---- Deletes the selected lines from the TribesIP window.
Post IP, don't join -------- Only posts the server in all your channels (no join)

Toggle auto-notify joiners - Anytime someone Joins a channel you are on, it will
                             send a private msg to them with the message that you
                             specify, as well as the server IP of the currently
                             selected server.

Toggle demo record mode ---- Lets you toggle whether or not you want to record a
                             demo! (also shows current status) Basically, it adds
                             the +record parameter to the Tribes command line until
                             you disable it! (defaults to disabled on startup)

About TribesIP ------------- Gives you some info!

...

Running the script for the first time creates the file TribesIP.bat in your mirc
directory. This file looks like this (i: and cd\games\tribes are where I installed
tribes, and d:\mirc\ is my mirc directory - Yours will probably be different):

@echo off

echo !!!!!!!! TribesIP 1.3 - written by Rasia, modified and fixed by Cowboy !!!!!!!!
echo.
echo Cowboy
echo cowboy@planetstarsiege.com
echo http://www.planetstarsiege.com/cowboy/
echo ICQ# 31184463
echo.
echo If you need to use any other command line parameters, you can just add them in
echo at the end of the appropriate line! (d:\mirc\TribesIP.bat)
echo.

echo Changing directory to i:\games\tribes

i:
cd\games\tribes

echo.
echo Starting Tribes, passing: %1 %2 %3 %4 %5 %6 %7 %8 %9




rem Normal Tribes Users:
tribes.exe %1 %2 %3 %4 %5 %6 %7 %8 %9

rem If you use TimeHUD, uncomment the next line (and comment out the preceding)
rem start /m timehud.exe %1 %2 %3 %4 %5 %6 %7 %8 %9




echo.
echo You'll notice that this DOS-box stays up after you choose to connect to a game
echo using TribesIP. This is normal, but annoying... What you can do to make it go
echo away is go to its Properties box (Alt-Space, P) check the 'Close on Exit' box
echo and then the 'OK' button. Every time henceforth, it will close automatically!

...

Also created is the Tribes script config\TribesIPrecord.cs that contains this:

// This file is used by TribesIP 1.3, don't worry about it!

setupRecorderFile();

...

This is to get around a bug in the command-line parsing / function loading of
Tribes! (not to mention the other stuff I had to do to get Tribes to recognize
passwords containing more than one word! Ack!

Thanks to Labrat for some insights into this! (he already emailed the dev team
about this bug) LOL!