INTERACT FORUM

Please login or register.

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

Author Topic: What has changed in the implementation of MCxx.exe commands?  (Read 1442 times)

Mastiff

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1977
  • The Multi-Zone Tzar
What has changed in the implementation of MCxx.exe commands?
« on: December 25, 2012, 11:28:54 am »

I have been using MCC commands for a few versions, and it's worked nicely all along. Suddenly there nothing's working here, and I found out why: Earlier I was using a command in Girder (with a variable MC-version set to c:\windows\system32\mccc.exe) which in the new version would be:

Code: [Select]
c:\windows\system32\mc18.exe "/MCC 10000,16777216"
This toggles pause on zone 0. But now this isn't working, and I have to change that to:

Code: [Select]
c:\windows\system32\mc18.exe /MCC 10000,16777216
Note the missing " at the beginning and end of the argument. Is this an intentional change, or is it accidental? In other words do I need to go through each command on every zone on three computers (two at home and one at the cabin, so all in all a bunch of zones) for this change?
Logged
Tor with the Cinema Inferno & Multi-Zone Audio system

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42002
  • Shoes gone again!
Re: What has changed in the implementation of MCxx.exe commands?
« Reply #1 on: December 25, 2012, 11:32:40 am »

All the command line parsing was recently rewritten.

In the case of /MCC, the /MCC is one argument and the command (numbers) are a second argument.

If you put them all in quotes, it forces the parser to treat it as a single argument so it won't understand.

So, this seems best:
/MCC 10000,16777216

Or if you want/need quotes:
/MCC "10000,16777216"

Or if you really like quotes:
"/MCC" "10000,16777216"
Logged
Matt Ashland, JRiver Media Center

Mastiff

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1977
  • The Multi-Zone Tzar
Re: What has changed in the implementation of MCxx.exe commands?
« Reply #2 on: December 25, 2012, 11:34:59 am »

Holy hyperspeed, Batman! I'm impressed! Thanks for the quick answer! I expected a reply to this during the end of the week. ;) OK, then. Does that mean that if I change all those now I won't risk having to do that again for the next version? Please say yes...
Logged
Tor with the Cinema Inferno & Multi-Zone Audio system

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42002
  • Shoes gone again!
Re: What has changed in the implementation of MCxx.exe commands?
« Reply #3 on: December 25, 2012, 11:59:48 am »

Does that mean that if I change all those now I won't risk having to do that again for the next version? Please say yes...

Edit away.  The parser won't change again.

Sorry if this made your life complicated.  It wasn't intentional, I promise.
Logged
Matt Ashland, JRiver Media Center

Mastiff

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1977
  • The Multi-Zone Tzar
Re: What has changed in the implementation of MCxx.exe commands?
« Reply #4 on: December 25, 2012, 12:01:13 pm »

OK, I can probably live with a couple of hours work tonight... :) Thanks for answering.
Logged
Tor with the Cinema Inferno & Multi-Zone Audio system

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42002
  • Shoes gone again!
Re: What has changed in the implementation of MCxx.exe commands?
« Reply #5 on: December 25, 2012, 12:08:25 pm »

We could also update the /MCC command parser to special case the numbers being bundled into the same parameter.  It wouldn't happen until next week, so you let us know what you prefer.
Logged
Matt Ashland, JRiver Media Center

Mastiff

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1977
  • The Multi-Zone Tzar
Re: What has changed in the implementation of MCxx.exe commands?
« Reply #6 on: December 25, 2012, 12:10:03 pm »

Thanks a lot for the offer, but that won't be necessary. I'm already 1/3 through the work of changing the stuff (Christmas day is allways boring anyway), so I'll be OK.
Logged
Tor with the Cinema Inferno & Multi-Zone Audio system
Pages: [1]   Go Up