Blocktrix Forums
https://www.blocktrix.net/cgi-bin/Ya.cgi
Blocktrix >> Support >> Starting a server from the command line
https://www.blocktrix.net/cgi-bin/Ya.cgi?num=1146800337

Message started by Zero on 05/04/06 at 10:38pm

Title: Starting a server from the command line
Post by Zero on 05/04/06 at 10:38pm

Hi. I'm somewhat of a newbie to Blocktrix, but not to programming or things of that sort. I'm trying to start a server from the command line. Using the -startserver switch, you can open up the chat window, but you still have to hit start game. Is there any way to bypass this and launch straight into a game?

EDIT: What is the mode switch? What kind of modes are there?

EDIT 2: Is there any way to set your name to something other than "server" using the command line "-startserver" switch?

Title: Re: Starting a server from the command line
Post by strikelight on 05/05/06 at 4:48pm

Just out of curiosity, why would you want the game to already be
started as soon as you start your server? No clients will have had the
chance to even connect yet, and it is of no benefit to them to join a server with a game already in progress, since they won't be able to participate in said game.  Having said that, you can have a tcl script loaded on startup that will automatically start the game upon starting a server.

The modes are for client mode only (Blocktrix/TetriNET/TetriFast/TSpec).

You may set your server name in the Net Settings->Server Settings panel, and check that server playing is enabled.  Else, it will use "Server".

Title: Re: Starting a server from the command line
Post by Zero on 05/05/06 at 7:50pm

Ah, I see. I didn't realize that clients couldn't join midgame. What I was planning on doing was making a "dedicated server".

Thanks for the in depth response. Very good job on Blocktrix, I love it.

Title: Re: Starting a server from the command line
Post by strikelight on 05/05/06 at 10:52pm

if you uncheck 'server playing', the player in position one is able to start the game.

Blocktrix Forums