INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Connect to Server zone at startup?  (Read 1122 times)

Dan1970

  • Recent member
  • *
  • Posts: 35
Connect to Server zone at startup?
« on: April 26, 2010, 08:27:27 am »

I have one pc running MC15 as Library Server and another one connecting to this library.

I have managed to have the client connect to the server at startup, but I can not see how I also can select the zone from the server at startup? So I start the client, it connects to the server library but it sets playback to the local zone1 whereas I would like to have it set to There: Zone1 at startup. Now I first have to do ctrl-t to toggle the zone.

I have tried deleting the local zone1 but it is back after restart of MC.

Thanks for helping!
Logged

Mike Noe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 792
Re: Connect to Server zone at startup?
« Reply #1 on: April 26, 2010, 08:37:21 am »

You could try the command line initiating MC from a batch file, such as:

@echo off MC15.exe /start
@REM potentially some period to wait...or not
@echo off MC15.exe /MCC 10011, X

where X is the zone index (zero-based in MC).  There might be a timing issue depending on how long it takes MC to load and connect to the server and you would have to know the zone index, so if Zone Defs changed, your command line would have to change.

There are other ways (COM automation, etc.)

Edit:  More info here
Logged
openSUSE TW/Plasma5 x86_64 | Win10Pro/RX560
S.M.S.L USB-DAC => Transcendent GG Pre (kit) => Transcendent mono OTLs (kit)
(heavily modded) Hammer Dynamics Super-12s (kit)
(optionally) VonSchweikert VR8s

Dan1970

  • Recent member
  • *
  • Posts: 35
Re: Connect to Server zone at startup?
« Reply #2 on: April 28, 2010, 06:05:53 am »

Thanks, I have the command

mc15.exe /MCC 10011, -1

working to switch to the next zone which is There: Zone1 for me.

Can't figure out what the zone index is though...
Logged
Pages: [1]   Go Up