Jump to content
Korean Random
Sign in to follow this  
AstraNme

Minimap labels

Recommended Posts

Good day.  I need some help with the minimap labels.  Before the 9.12 update I had my minimap configured a certain way.  Since the update the labels configuration doesn't seem to change anything.  I am unable to change the size, style, or color.  Also, before the update, the minimap would show player names when I used alt. 
 
I have no problems with the minimapCircles.xc.  When I make changes to that it takes effect.  When I make changes to the minimapLabelsTemplates.xc it does not do anything in game.  It seems like it is using some default setting instead of the configuration file.  Is there a setting that I'm missing?
 
Thanks in advance.

 

Before 9.12

post-34295-0-34771600-1447957944_thumb.jpg

 

 

After 9.12

post-34295-0-72119500-1447957943_thumb.jpg

Share this post


Link to post

Short link
Share on other sites

Before the updates I had the following config file for labels
 

'minimapLabels.xc'

/**
 * Minimap labels. Basic HTML/CSS supported.
 */
{
  "labels": {
      "vehicleclassmacro": {
        // ЛT ♦.
        "light": "\u2022",
        // СТ.
        "medium": "\u2022",
        // ТТ.
        "heavy": "\u2022",
        // ПТ ▼.
        "td": "\u2022",
        // Artillery / Арта.
        "spg": "\u2022",
        // HeavyTank10 by gui_settings.xml.
        "superh": ""
      },
      // Textfields for tanks on minimap.
      "units": {
        // Textfields switch for revealed units.
        "revealedEnabled": true,
        // Textfields switch for lost enemy units. Show last seen position.
        "lostEnemyEnabled": true,
        "format": {
          "ally":  "<span class='mm_a'><i>{{vehicle}}</span>",
          "enemy": "<span class='mm_e'><b>{{vehicle}}<b></span>",
          "squad": "<textformat leading='-1'><span class='mm_s'><i>{{name%.10s}}</i></span><textformat>",
          "lost":  "<span class='mm_dot'>•</span><span class='mm_l'>{{vehicle}}</span>",
          "oneself": "",
          "lostally":       "<span class='mm_dot'>•</span><span class='mm_la'>{{vehicle}}</span>",
          "lostteamkiller": "",
          "lostsquad":      "<span class='mm_dot'>•</span><span class='mm_ls'>{{name%.10s}}</span>",
          "deadally":       "",
          "deadteamkiller": "",
          "deadenemy":      "",
          "deadsquad":      "<span class='mm_dot'>•</span><span class='mm_ds'><i>{{name%.10s}}</i></span>"
        },
        "css": {
          "ally":  ".mm_a{font-family:tahoma,$FieldFont; font-size:5.5px; color:#BBEEBB;}",
          "enemy": ".mm_e{font-family:tahoma,$FieldFont; font-size:5.5px; color:#EEBBBB;}",
          "squad": ".mm_s{font-family:tahoma,$FieldFont; font-size:5.5px; color:#FFEE44;}",
          "lost":  ".mm_l{font-family:tahoma,$FieldFont; font-size:5.5px; color:#bfbfbf;} .mm_dot{font-family:Arial; font-size:14px; color:#bfbfbf;}",
          "lostally":  ".mm_la{font-family:tahoma,$FieldFont; font-size:5.5px; color:#BBEEBB;} .mm_dot{font-family:Arial; font-size:14px; color:#BBEEBB;}",
          "lostsquad":  ".mm_ls{font-family:tahoma,$FieldFont; font-size:5.5px; color:#FFEE44;} .mm_dot{font-family:Arial; font-size:14px; color:#FFEE44;}",
          "deadsquad":  ".mm_ds{font-family:tahoma,$FieldFont; font-size:5.0px; color:#FFEE44;} .mm_dot{font-family:Arial; font-size:10px; color:#FFEE44;}",
          "deadally":  ".mm_da{font-family:tahoma,$FieldFont; font-size:5.0px; color:#BBEEBB;} .mm_dot{font-family:Arial; font-size:10px; color:#BBEEBB;}",
          "oneself": ".mm_o{font-family:tahoma,$FieldFont; font-size:6px; color:#FFFFFF;}"
        },
        "shadow": {
          "ally": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 100,
            "blur": 3,
            "strength": 5
          },
          "enemy": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 100,
            "blur": 3,
            "strength": 5
          },
          "squad": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 100,
            "blur": 3,
            "strength": 5
          },
          "lost": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 100,
            "blur": 3,
            "strength": 5
          },
          "lostally": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 100,
            "blur": 3,
            "strength": 5
          },
          "deadally": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 100,
            "blur": 3,
            "strength": 5
          },
          "deadsquad": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 100,
            "blur": 3,
            "strength": 5
          },
          "lostsquad": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 100,
            "blur": 3,
            "strength": 5
          },
          "oneself": {
            "enabled": true,
            "color": "0x000000",
            "distance": 0,
            "angle": 0,
            "alpha": 80,
            "blur": 3,
            "strength": 4
          }
        },

        "offset": {
          "ally":  {"x": 1, "y": -6},
          "enemy": {"x": 1, "y": -1},
          "squad": {"x": 1, "y": -1},
          "lost":  {"x": -6, "y": -10},
          "lostally":  {"x": -6, "y": -10},
          "deadsquad":  {"x": -6, "y": -10},
          "lostsquad":  {"x": -6, "y": -10},
          "oneself": {"x": 0, "y": 0}
        },

        "alpha" : {
          "ally":  100,
          "enemy": 100,
          "squad": 100,
          "lost":  100,
          "lostally":  60,
          "deadally":  40,
          "lostsquad":  60,
          "deadsquad":  60,
          "oneself": 100
        }
      },
      // Textfield for map side size. 1000m, 700m, 600m.
      // Works only with xvm-stat.exe for uncommon locales.
      // xvm-stat.exe is not necessary for RU, EN, DE and partially CH locale.
      "mapSize": {
        "enabled": true,
        "format": "<b>{{cellsize}}0 м</b>",
        "css": "font-size:10px; color:#FFCC66;",
        "alpha": 80,
        "offsetX": 0,
        "offsetY": 0,
        "shadow": { // Тень.
          "enabled": true,
          "color": "0x000000",
          "distance": 0,
          "angle": 0,
          "alpha": 80,
          "blur": 2,
          "strength": 3
        },
        // Decrease sizes in case of map image weird shrinking while map resize.
        // Increase sizes in case of field being partially cut off.
        "width": 100,
        "height": 30
      }
    }
}

 

After 9.12 and the xvm update I tried using my old configs but it didn't work.  I also tried to change the config files that came with xvm 6.1.6 but it did not have any effect.  The config files with xvm 6.1.6 used a minimapLabelsTemplates.xc file for the labels.  Below is the config file that came with xvm. 6.1.6:

 

'minimapLabelsTemplates.xc'

/**
 * Minimap labels.
 * Надписи на миникарте.
 */
{
  // Textfields for units on minimap.
  // Текстовые поля юнитов на миникарте.
  // TODO: documentation
  //  {
  //    Если не указаны "ally", "squadman", "player", "enemy", "teamKiller", то они не используются.
  //    Если не указаны "lost" и "spotted", то используются оба - и "lost", и "spotted".
  //    Если не указаны "alive", "dead", то используются оба - и "alive", и "dead".
  //    "flags": [ "player", "ally", "squadman", "enemy", "teamKiller", "lost", "spotted", "alive", "dead" ],
  //    "format": "...",
  //    "shadow": { ... },
  //    "alpha": "...",
  //    "x": { ... },
  //    "y": { ... },
  //    "antiAliasType": "normal" // normal/advanced
  //  }
  // Definitions
  // Шаблоны
  "def": {
    // Формат поля по умолчанию
    "defaultItem": {
      "flags": [ "player", "ally", "squadman", "enemy", "teamKiller", "lost", "spotted", "alive", "dead" ],
      "shadow": { "distance": 0, "angle": 45, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 4 },
      "alpha": 100,
      "x": 0,
      "y": 0,
      "width": 100,
      "height": 40,
      "align": "left",
      "valign": "top",
      "antiAliasType": "normal",
      "bgColor": null,
      "borderColor": null
    },
    // Тип техники, видимый
    "vtypeSpotted": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "ally", "enemy", "squadman", "teamKiller", "spotted", "alive" ],
      "format": "<font size='13' color='{{.minimap.labelsData.colors.dot.{{sys-color-key}}}}'>{{.minimap.labelsData.vtype.{{vtype-key}}}}</font>",
      "align": "center",
      "valign": "center"
    },
    // Название техники, видимый
    "vehicleSpotted": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "ally", "enemy", "squadman", "teamKiller", "spotted", "alive" ],
      "format": "<font size='8' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'>{{vehicle}}</font>",
      "x": 2,
      "y": -1
    },
    // Ник игрока, видимый
    "nickSpotted": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "squadman", "spotted", "alive" ],
      "format": "<font size='8' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'><i>{{name%.7s~..}}</i></font>",
      "x": 2,
      "y": -9
    },
    // Тип техники, пропавший
    "vtypeLost": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "ally", "enemy", "squadman", "teamKiller", "lost", "alive" ],
      "format": "<font size='13' color='{{.minimap.labelsData.colors.lostDot.{{sys-color-key}}}}'>{{.minimap.labelsData.vtype.{{vtype-key}}}}</font>",
      "align": "center",
      "valign": "center",
      "alpha": 75
    },
    // Название техники, пропавший
    "vehicleLost": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "ally", "enemy", "squadman", "teamKiller", "lost", "alive" ],
      "format": "<font size='8' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'><i>{{vehicle}}</i></font>",
      "alpha": 85,
      "x": 2,
      "y": -1
    },
    // Ник игрока, пропавший
    "nickLost": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "squadman", "lost", "alive" ],
      "format": "<font size='8' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'><i>{{name%.7s~..}}</i></font>",
      "alpha": 85,
      "x": 2,
      "y": -9
    },
    // Тип техники, мертвый
    "vtypeDead": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "ally", "enemy", "squadman", "teamKiller", "dead" ],
      "format": "<font face='xvm' size='8' color='{{.minimap.labelsData.colors.lostDot.{{sys-color-key}}}}'>D</font>",
      "shadow": { "$ref": { "path":"def.defaultItem.shadow" }, "strength": 3 },
      "align": "center",
      "valign": "center",
      "alpha": 90
    },
    // Название техники, мертвый
    "vehicleDead": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "squadman", "dead" ],
      "format": "<font size='8' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'>{{vehicle}}</font>",
      "alpha": 85,
      "x": 2,
      "y": -1
    },
    // Ник игрока, мертвый
    "nickDead": {
      "$ref": { "path":"def.defaultItem" },
      "flags": [ "squadman", "dead" ],
      "format": "<font size='8' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'><i>{{name%.7s~..}}</i></font>",
      "shadow": { "$ref": { "path":"def.defaultItem.shadow" }, "strength": 3 },
      "x": 2,
      "y": -9
    }
  }
}

 

When I make changes to the minimapCircles.xc file they work but for some reason nothing changes when I edit the minimapLabelsTemplates.xc.  It almost seems like the mod is not actually using the minimapLabelsTemplates.xc configuration.

 

Thanks again in advance.

 

UPDATE:  I also tried completely deleting all of the minimap configuration .xc files.  With the files deleted, the label text remains unchanged but the circles are different. 

 

post-34295-0-92828900-1447977962_thumb.jpg

Edited by AstraNme

Share this post


Link to post

Short link
Share on other sites

If you copied only the file minimapLabelsTemplates.xc into your config then it's no wonder. Copy also minimap.xc, minimapLabels.xc and minimapLabelsData.xc.

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...