Blocktrix
Welcome, Guest. Please Login or Register.
12/04/26 at 7:26pm

Home Home Help Help Search Search Login Login Register Register


Pages: 1
Starting a server from the command line (Read 490 times)
Zero
New Member
*


Blocktrix Rules!

Posts: 4
Starting a server from the command line
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?
Back to top
 
« Last Edit: 05/05/06 at 5:46am by Zero »  
Email View Profile   IP Logged
strikelight
Administrator
*****


Make Me King

Posts: 288
Re: Starting a server from the command line
Reply #1 - 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".
Back to top
 
 

-=) StrikeLight
-=) Blocktrix developer
-=) www.blocktrix.org
Email View Profile WWW   IP Logged
Zero
New Member
*


Blocktrix Rules!

Posts: 4
Re: Starting a server from the command line
Reply #2 - 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.
Back to top
 
 
Email View Profile   IP Logged
strikelight
Administrator
*****


Make Me King

Posts: 288
Re: Starting a server from the command line
Reply #3 - 05/05/06 at 10:52pm
 
if you uncheck 'server playing', the player in position one is able to start the game.
Back to top
 
 

-=) StrikeLight
-=) Blocktrix developer
-=) www.blocktrix.org
Email View Profile WWW   IP Logged
Pages: 1