Blocktrix Forums
https://www.blocktrix.net/cgi-bin/Ya.cgi
Blocktrix >> Support >> connect using command line
https://www.blocktrix.net/cgi-bin/Ya.cgi?num=1141291290

Message started by vyloveny on 03/02/06 at 4:21am

Title: connect using command line
Post by vyloveny on 03/02/06 at 4:21am

Hi,

is it possible to connect to the server using command line option?

cu,
Maio

Title: Re: connect using command line
Post by strikelight on 03/02/06 at 3:49pm

I'm not sure I understand you.  Do you mean from the "run" option in the windows start menu?  Please give an example of what you mean, to clarify.

Title: Re: connect using command line
Post by vyloveny on 03/04/06 at 7:48am

something like this:

btpr2.exe -mode TetriNET -connect tetrinet.server.org

and it will connect me to tetrinet.server.org just like using GUI (Net Settings->Client Settings->Connect)

Title: Re: connect using command line
Post by strikelight on 03/04/06 at 11:43am

Not currently.. Maybe in the next version.

Thanks.

Title: Re: connect using command line
Post by vyloveny on 03/09/06 at 5:02am

i would be realy grateful. thanks

Title: Re: connect using command line
Post by sordrex on 04/08/06 at 11:21pm

I tried the command line option like so : "btpr2.exe -server tetrinet.org" but my OS gave me an error. Without the command line options, blocktrix opens just fine. I am using the latest release which is .62 BETA. I understand this version already supports command line options. Any help would be greatly appreciated. Thanks.

Title: Re: connect using command line
Post by strikelight on 04/09/06 at 2:50am

What is the error/OS version?

Title: Re: connect using command line
Post by sordrex on 04/09/06 at 9:45pm

Thanks for the prompt reply strikelight. I am on Win XP Professional Edition. The error is "Windows cannot find 'btpr2.exe -server tetrinet.org'. Make sure you typed the name correctly, and then try again. To search for a file.. etc. etc..

Title: Re: connect using command line
Post by strikelight on 04/09/06 at 10:17pm

Where are you typing "btpr2.exe -server tetrinet.org" from?

If from start->run, you may need to specify the full path to btpr2.exe
ie. if you installed to C:\Program Files\Blocktrix , then you may need to type:
C:\Program Files\Blocktrix\btpr2.exe -server tetrinet.org
This may give you another error though, which should be corrected by
creating a shortcut to the file, and right clicking on the shortcut file, and changing the 'start in' path under file properties to that of where btpr2.exe is installed.

Easier is to open up a dos prompt and simply 'cd' to where blocktrix is installed, and then type btpr2.exe -server tetrinet.org
(or even, with reference to the above, create a simple batch script)

Hope this helps.

Title: Re: connect using command line
Post by sordrex on 04/10/06 at 3:06am

Hi strikelight, I actually typed in the full location of the exe file using the command line. By itself, btpr2.exe runs but when i added in the options such as the -server tetrinet.org, the error occurs.

Title: Re: connect using command line
Post by dunno on 04/10/06 at 9:34am

just tried this myself again.
clicked on start, run then

c:\progra~1\blocktrix\btpr2.exe -server tetrinet.org

it opens up blocktrix and connects to the said server without any problem.

Title: Re: connect using command line
Post by strikelight on 04/10/06 at 5:27pm

Looks like it's what I thought the problem was... spaces in the pathname most likely.  OS related, not btrix ;x

Title: Re: connect using command line
Post by sordrex on 04/10/06 at 10:16pm

Works perfectly now.. Thanks guys!  :)

Blocktrix Forums