Configuration Files

Suggest improvements and features you'd like to see in MTG Studio while creating and editing my deck...

Moderator: gaddlord

Configuration Files

Postby gaddlord » Fri Feb 08, 2008 5:22 pm

MTG Studio 1.x stores its configuration files in XML and INI format in folder

C:\Documents and Settings\USER\Application Data\PalmROOT\MTG Studio 1.X.Y

where USER is your Windows username and 1.X.Y is the version of your MTG Studio copy.

MTG Studio 2.0 will store its configuration files only in XML format (since it is more easy to read).

The new configuration files will be stored in the folder where MTG Studio has been installed. This will allow easy XCopy installation (just copy your MTG Studio directory to another machine.)

The configuration files (up to now) in 2.0 are:
1. MtgStudio.config - stores the View|Options dialog settings
2.CardPool.layout - stores the user interface settings of the card pool columns, sizes, column visibility, sorting, etc.
3. Meny.layout - stores the menu and toolbar settings.
GET LATEST STABLE http://www.mtgstudio.com/download.aspx
Send feature requests and bugs to gaddlord@mtgstudio.com or vote online.
User avatar
gaddlord
MTG Studio Team
MTG Studio Team
 
Posts: 2957
Joined: Thu Dec 18, 2003 12:01 pm
Location: Europe

Postby gaddlord » Fri Feb 08, 2008 5:25 pm

The new MtgStudio.config file is heavily commented in order easily to be edited outside MTG Studio using Notepad (or your favorite text processor).

Here is a sample MtgStudio.config

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<mtgstudio-configuration version="1.0" last-saved="2008-02-08T22:05:16.484375Z">
  <!--MTG Studio configuration file. Edit this file only if necessary. The settings can be changed form View|Options dialog. If the configuration file is manually edited and MTG Studio fails to start, delete this file - it will be recreated.-->
  <general>
    <!--General application settings-->
    <!--User interface language. Possible values are: bg-BG for Bulgarian. Leave empty for default English language.-->
    <interface-language><![CDATA[en-EN]]></interface-language>
    <!--Password used to lock the application in tray. The password is encrypted. Do NOT modify this setting manually.-->
    <password><![CDATA[wi5Fc0QR3ssAO5VoYudeZg==]]></password>
    <!--User interface skin. Possible values are:
    Default, Windows XP, Office XP, Office 2000, Office 2003,
    Caramel, The Asphalt World, Money Twins, Lilian, iMaginary, Black, Blue, Coffee, Liquid Sky, London Liquid Sky, Glass Oceans, Stardust,
    Office 2007 Blue, Office 2007 Black, Office 2007 Silver, Office 2007 Pink, Office 2007 Green, Xmas 2008 Blue-->
    <skin><![CDATA[Office 2007 Silver]]></skin>
    <!--Defines whether the application is being started for the first time. Possible values are 'True' and 'False'.-->
    <first-run><![CDATA[False]]></first-run>
    <!--Settings for card art providers:
{8B870EC8-7F92-4472-B57D-DF8EC40DD86C} - Local Full
Searched for full images cached on your local drives.
Full card art images from a local hard drive.
Size: varies
Format: Jpg, Bmp, Png, Gif, Tiff, Wmf, Emf
Displays a locally cached card art images.

{FC4367DD-9C84-4A88-9288-4FB27494D4D9} - MTG Studio Full
Downloads and caches locally high quality card art scans.
Full images downloaded from Internet.
Size: 312/445 or 480/680 pixels
Format: Jpg
All sets are available including promotional cards.

{A6CADE54-469C-45AE-9DFA-2DCD30517247} - Good Scans Full
Downloads and caches locally good quality scans of the card.
Full card art images downloaded from Internet.
Size: 312/445 pixels
Format: Jpg
Different images for the card reprinted versions.
Almost all editions are present including some promotional cards.

{F10805FD-E74B-451E-B6DA-81B1B53A738C} - Wizards Full
Downloads and caches locally the card art for the latest reprinted version of the card.
Full images downloaded from Internet.
Size: 200, 285 pixels
Format: Jpg
Only the latest reprinted card version is available.
No promotional cards are available.

{AAD8F1E2-5DDC-4930-838B-F342636A911F} - Gatherer Full
Downloads and caches locally the images from Wizards Gatherer.
Full card scans without border.
Size: 200/285 pixels.
Format: JPEG.
Different scan is available for each reprinted version of the card.
Almost all cards are present except the promotional ones.
Foil versions are not available

{3BAC0D22-5171-443C-A53F-511B36A55A4C} - High Quality Full
Downloads and caches locally high quality card art scans.
Full images downloaded from Internet.
Size: 480/680 pixels
Format: Jpg
All sets are available including promotional cards.

{A4E1DE1D-D85E-4D1D-8563-9E4CD6105CB7} - MTG Encyclopedia Full
Show the full card art images from your MTG Encyclopedia installation.
Full images from the local drive installation of MTG Encyclopedia.
Size: 312/445 pixels
Format: Jpg
Not all sets are available. MTG Encyclopedia is not supported any more.

-->
    <card-art-providers>
      <card-art-provider id="{8B870EC8-7F92-4472-B57D-DF8EC40DD86C}" uri="D:\Projects\MTG Studio\mtgs2\MtgStudio\bin\Debug\Card Art\Local" enabled="True" />
      <card-art-provider id="{FC4367DD-9C84-4A88-9288-4FB27494D4D9}" enabled="True" />
      <card-art-provider id="{A6CADE54-469C-45AE-9DFA-2DCD30517247}" enabled="True" />
      <card-art-provider id="{F10805FD-E74B-451E-B6DA-81B1B53A738C}" enabled="True" />
      <card-art-provider id="{AAD8F1E2-5DDC-4930-838B-F342636A911F}" enabled="True" />
      <card-art-provider id="{3BAC0D22-5171-443C-A53F-511B36A55A4C}" enabled="True" />
      <card-art-provider id="{A4E1DE1D-D85E-4D1D-8563-9E4CD6105CB7}" uri="C:\Program Files\Wizards of the Coast\Magic the Gathering\Images\LARGEJPG\" enabled="True" />
    </card-art-providers>
  </general>
  <deck-editor>
    <!--Deck Editor module settings-->
    <!--Card Pool row highlighting. Possible values are:
    0 - No highlighting
    1 - The rows are colored depending on the card color
    2 - The rows are colored depending on the card rarity
    3 - Grid rows are colored depending the card is Creature, Land or Spell
    4 - The rows are colored depending on the block
    5 - The rows are colored depending on the Stand᳤ format legality
    6 - The rows are colored depending on the Extended format legality
    7 - The rows are colored depending on the Legacy format legality
    8 - The rows are colored depending on the Vintage format legality
    9 - The rows are colored if valid for MTG Online
    10 - The rows are colored if valid for Magic Encyclopedia
    11 - The rows are colored if available in the user Collection-->
    <card-pool-row-highlight-type><![CDATA[1]]></card-pool-row-highlight-type>
    <!--Card pool Legality column appearance. Possible values are:
    0 - The formats are displayed with letter abbreviations. S - Standard, E - Extended, L - Legacy, V - Vintage
    1 - The formats are displayed with roman digits. II - Standard, I.x - Extended, I.5 - Legacy, I - Vintage
    2 - The formats are displayed with roman digits. 2 - Standard, 1.x - Extended, 1.5 - Legacy, 1 - Vintage-->
    <card-pool-legality-appearance><![CDATA[1]]></card-pool-legality-appearance>
    <!--Card pool Mana Cost column appearance. Possible values are:
    0 - Draw mana cost using round mana images with magic symbols on them Sun - white, Drop - blue, Skull - black, Fire - red, Tree - green
    1 - Draw mana cost using round images with letters W - white, U - blue, B - black, R - red, G - green
    2 - Draw mana cost as text using the current grid font-->
    <card-pool-mana-cost-appearance><![CDATA[1]]></card-pool-mana-cost-appearance>
    <card-pool-font>
      <!--Card pool font name.-->
      <name><![CDATA[Tahoma]]></name>
      <!--Card pool font in pt.-->
      <size><![CDATA[8.25]]></size>
      <!--Card pool font style. Possible values are:
    0 - normal text
    1 - bold text
    2 - italic text
    4 - underlined text
    8 - text with a line through the middle (strikeout)-->
      <style><![CDATA[0]]></style>
    </card-pool-font>
    <!--Card preview position and size. Possible values are:
    0 - top left
    1 - centered
    2 - stretched to fit-->
    <card-preview-position><![CDATA[2]]></card-preview-position>
    <!--Card preview effect. Possible values are:
    0 - no effect
    1 - fade in/out-->
    <card-preview-effect><![CDATA[1]]></card-preview-effect>
    <!--The speed of the card preview morph effect.
    The value can be between 0 and 10.
    0 - very fast
    5 - normal
    10 - slow-->
    <card-preview-effect-speed><![CDATA[6]]></card-preview-effect-speed>
    <!--Defines whether the downloaded images from Internet to be stored locally on the hard drive. Possible values are 'True' and 'False'.-->
    <card-preview-cache-images><![CDATA[True]]></card-preview-cache-images>
  </deck-editor>
  <multiplayer>
    <!--Multiplayer module settings-->
    <!--Machine name or IP address of the multiplayer server-->
    <host><![CDATA[192.168.1.2]]></host>
    <!--Port of the multiplayer servers-->
    <port><![CDATA[1979]]></port>
  </multiplayer>
  <own-server>
    <!--Own Server module settings-->
    <!--Web address of the GeoIP service-->
    <geo-ip-web-service-url><![CDATA[http://www.webservicex.net/geoipservice.asmx]]></geo-ip-web-service-url>
    <!--Web address of the What is my IP service-->
    <what-is-my-ip-url><![CDATA[http://www.whatismyip.org/]]></what-is-my-ip-url>
  </own-server>
</mtgstudio-configuration>
GET LATEST STABLE http://www.mtgstudio.com/download.aspx
Send feature requests and bugs to gaddlord@mtgstudio.com or vote online.
User avatar
gaddlord
MTG Studio Team
MTG Studio Team
 
Posts: 2957
Joined: Thu Dec 18, 2003 12:01 pm
Location: Europe

Postby digzor » Fri Feb 08, 2008 5:29 pm

Ah! I love the fact that you are encouraging fellow hacks to adjust their settings in the way many of us are most comfortable - with our hands on the keyboard and our screen set in a text editor!

That fixes one of my biggest problems with adjusting the configurations (on my systems, switching panels/applying the changes can take several seconds to refresh before I can move on). Of course, the fact that you are moving the file to the install folder means I wouldn't have to do that until the app is upgraded anyways!

Which is a good point - when the app is upgraded, can it import the settings from the previous config files (when available) so as to not overwrite them?
Guns make you stupid. Duct tape makes you smart.
User avatar
digzor
Registered User
Registered User
 
Posts: 38
Joined: Thu Feb 07, 2008 3:29 pm

Postby gaddlord » Fri Feb 08, 2008 5:37 pm

When the app is upgraded, can it import the settings from the previous config files (when available) so as to not overwrite them?


"Import configuration from previous version" is not in my TODO list since it requires lots of testing. I would really prefer avoiding it. If the demand for such tool increases I will consider it.

In any case the new config files will have version number and timestamp of last modification to allow making such feature in the future.

Code: Select all
<mtgstudio-configuration version="2.0" last-saved="2008-02-08T22:05:16.484375Z">
GET LATEST STABLE http://www.mtgstudio.com/download.aspx
Send feature requests and bugs to gaddlord@mtgstudio.com or vote online.
User avatar
gaddlord
MTG Studio Team
MTG Studio Team
 
Posts: 2957
Joined: Thu Dec 18, 2003 12:01 pm
Location: Europe

Postby digzor » Fri Feb 08, 2008 5:54 pm

That is true - since we (the public) may potentially modify the config file, it may not be consistent with the formats you are expecting.

Also, I hadn't considered that people may be upgrading from an older version than the previous one (and thus may not have the config files in the same formats).

When doing the upgrades, can we backup the old config file instead of replacing it though? That way, we can at least review all our customizations to make sure we get them all.
Guns make you stupid. Duct tape makes you smart.
User avatar
digzor
Registered User
Registered User
 
Posts: 38
Joined: Thu Feb 07, 2008 3:29 pm

Postby gaddlord » Fri Feb 08, 2008 6:00 pm

Every new MTG Studio version is installed in a new folder in
C:\Program Files\PalmROOT\MTG Studio X.Y.Z by default.

Being this way currently I have a PC with all 37 versions of MTG Studio installed in parallel.

Installing MTG Studio 2.0 will not overwrite any old installation or config file. :wink:
GET LATEST STABLE http://www.mtgstudio.com/download.aspx
Send feature requests and bugs to gaddlord@mtgstudio.com or vote online.
User avatar
gaddlord
MTG Studio Team
MTG Studio Team
 
Posts: 2957
Joined: Thu Dec 18, 2003 12:01 pm
Location: Europe


Return to Deck Editing Suggestions (MTG Studio)

Who is online

Users browsing this forum: No registered users and 2 guests

cron