DisAstro 0 Posted May 9, 2017 I'm trying to add some extra stats to the extended markers of alive players. To do this, I replaced // Text field with rating. // Текстовое поле с рейтингом. "rating": { "name": "Rating", "enabled": true, "x": 0, "y": -51, "alpha": 100, "align": "center", "textFormat": { "font": "$FieldFont", "size": 13, "color": "{{c:r}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 6, "strength": 2 }, "format": "{{r}}" } }, in markersAliveExtended.xc with // Text field with tank rating. // Текстовое поле с рейтингом. "tankrating": { "name": "Tank rating", "enabled": true, "x": -32, "y": -5, "alpha": "100", "align": "right", "textFormat": { "font": "xvm", "size": 17, "color": "{{c:e}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 2, "strength": 1 }, "format": "{{teff}}" },// Text field with tank battles. // Текстовое поле с рейтингом. "tankbattles": { "name": "Tank battles", "enabled": true, "x": -32, "y": -37, "alpha": "100", "align": "right", "textFormat": { "font": "$FieldFont", "size": 17, "color": "{{c:t-battles}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 2, "strength": 1 }, "format": "{{t-kb}}" }, // Text field with rating. // Текстовое поле с рейтингом. "rating": { "name": "Rating", "enabled": true, "x": 0, "y": -51, "alpha": 100, "align": "center", "textFormat": { "font": "$FieldFont", "size": 13, "color": "{{c:r}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 6, "strength": 2 }, "format": "{{r}}"// Text field with total battles. // Текстовое поле с рейтингом. "totalbattles": { "name": Battles "enabled": true, "x": -64, "y": -37, "alpha": "100", "align": "right", "textFormat": { "font": "$FieldFont", "size": 17, "color": "{{c:kb}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 2, "strength": 1 }, "format": "{{battles}}" }, At the end of the file, I add the three new statistics, like so: // Block of text fields (extended format supported, see extra-field.txt). // Блок текстовых полей (поддерживается расширенный формат, см. extra-field.txt). "textFields": [ ${ "def.playerName" }, ${ "def.hpPercent" }, ${ "def.tankrating" }, ${ "def.tankbattles" }, ${ "def.rating" }, ${ "def.totalbattles" } ] }} Yet it doesn't work. I've been staring at the code for an hour but just can't find the error. Can anybody help me out? Thanks in advance. Quote Share this post Link to post Short link Share on other sites
konrad509 445 #389820 Posted May 9, 2017 It would be easier if you just posted the whole file. BTW, there's no macro {{teff}}. Quote Share this post Link to post Short link Share on other sites
DisAstro 0 #389824 Posted May 9, 2017 It would be easier if you just posted the whole file. BTW, there's no macro {{teff}}. Thanks! That's one mistake less I guess. Still doesn't work though :( Here's the whole file: /*** Options for alive with Alt markers. * ????????? ???????? ??? ????? ? Alt. */ { // Definitions // ??????? "def": { // Floating damage values. // ??????????? ????. "damageText": { // false - disable / ?? ??????????. "enabled": true, // Axis field coordinates // ????????? ???? ?? ???? "x": 0, "y": -67, // Opacity (dynamic transparency allowed, see macros.txt). // ???????????? (??????????? ????????????? ???????????? ????????????, ??. macros.txt) "alpha": 100, "align": "center", // Font options. // ????????? ??????. "textFormat": { "font": "$FieldFont", // Font name / ???????? "size": 18, // Font size / ?????? // Color (dynamic colors allowed, see macros.txt). // ???? (??????????? ????????????? ????????????? ?????, ??. macros.txt) "color": null, "bold": false, // True - bold / ??????. "italic": false // True - italic / ??????. }, // Shadow options. // ????????? ????. "shadow": { // false - no shadow // false - ??? ???? "enabled": true, "distance": 0, // (in pixels) / offset distance / ????????? ???????? "angle": 45, // (0.0 .. 360.0) / offset angle / ???? ???????? "color": "0x000000", // "0xXXXXXX" / color / ???? "alpha": 100, // (0 .. 100) / opacity / ???????????? "blur": 3, // (0.0 .. 255.0) / blur / ???????? "strength": 1 // (0.0 .. 255.0) / intensity / ????????????? }, // Rising speed of displayed damage (float up speed). // ????? ??????????? ??????????? ?????. "speed": 2, // Maximum distance of target for which damage rises. // ??????????, ?? ??????? ???????? ????. "maxRange": 40, // Text for normal damage (see description of macros in the macros.txt). // ????? ??? ??????? ????? (??. ???????? ???????? ? macros.txt). "damageMessage": "{{dmg}}", // Text for ammo rack explosion (see description of macros in the macros.txt). // ????? ??? ?????? ?????????? (??. ???????? ???????? ? macros.txt). "blowupMessage": "{{l10n:blownUp}}\n{{dmg}}" }, // Text field with the name of the player. // ????????? ???? ? ?????? ??????. "playerName": { "name": "Player name", // ???????? ?????????? ????, ?? ?? ??? ?? ?????? "enabled": true, // false - ?? ?????????? "x": 0, // ????????? ?? ??? X "y": -36, // ????????? ?? ??? Y "alpha": 100, // ???????????? (??????????? ????????????? ???????????? ????????????, ??. macros.txt) "align": "center", // ???????????? ?????? (left, center, right) // Font options. // ????????? ??????. "textFormat": { "font": "$FieldFont", // ???????? "size": 13, // ?????? "color": null, // ???? (??????????? ????????????? ????????????? ?????, ??. macros.txt) "bold": false, // ??????? (false) ??? ?????? (true) "italic": false // ??????? (false) ??? ?????? (true) }, // Shadow options. // ????????? ????. "shadow": { // false - no shadow // false - ??? ???? "enabled": true, "distance": 0, // ????????? ???????? "angle": 45, // ???? ???????? "color": "0x000000", // ???? "alpha": 100, // ???????????? "blur": 6, // ???????? "strength": 2 // ????????????? }, "format": "{{nick}}" // ?????? ??????. ??. ???????? ???????? ? macros.txt }, // Text field with the percentage of remaining health. // ????????? ???? ? ????????? ??????????? ????????. "hpPercent": { "name": "Percent of HP", "enabled": true, "x": 0, "y": -20, "alpha": 100, "align": "center", "textFormat": { "font": "$FieldFont", "size": 11, "color": "0xD9D9D9", "bold": true, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 1 }, "format": "{{hp-ratio}}% / {{hp-max}}" }, // Text field with tank rating. // Текстовое поле с рейтингом. "tankrating": { "name": "Tank rating", "enabled": true, "x": -32, "y": -5, "alpha": "100", "align": "right", "textFormat": { "font": "xvm", "size": 17, "color": "{{c:e}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 2, "strength": 1 }, "format": "{{xte}}" }, // Text field with tank battles. // Текстовое поле с рейтингом. "tankbattles": { "name": "Tank battles", "enabled": true, "x": -32, "y": -37, "alpha": "100", "align": "right", "textFormat": { "font": "$FieldFont", "size": 17, "color": "{{c:t-battles}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 2, "strength": 1 }, "format": "{{t-kb}}" }, // Text field with rating. // Текстовое поле с рейтингом. "rating": { "name": "Rating", "enabled": true, "x": 0, "y": -51, "alpha": 100, "align": "center", "textFormat": { "font": "$FieldFont", "size": 13, "color": "{{c:r}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 6, "strength": 2 }, "format": "{{r}}" }, }, // Text field with total battles. // Текстовое поле с рейтингом. "totalbattles": { "name": Battles "enabled": true, "x": -64, "y": -37, "alpha": "100", "align": "right", "textFormat": { "font": "$FieldFont", "size": 17, "color": "{{c:kb}}", "bold": false, "italic": false }, "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 100, "blur": 2, "strength": 1 }, "format": "{{battles}}" }, // ????????? ??? ?????????. "ally": { // Type of vehicle icon (HT/MT/LT/TD/Arty). // ?????? ???? ????? (??/??/??/??/????). "vehicleIcon": { // false - disable / ?? ?????????? "enabled": true, // true - show speaker even if enabled=false // true - ?????????? ??????, ???? ???? enabled=false "showSpeaker": false, // Axis field coordinates // ????????? ???? ?? ???? "x": 0, "y": -16, // Opacity. // ????????????. "alpha": 100, // Maximum scale (default is 100). // ???????????? ??????? (?? ????????? 100). "maxScale": 100, // Offset along the X axis (?) // ???????? ?? ??? X (?) "offsetX": 0, // Offset along the Y axis (?) // ???????? ?? ??? Y (?) "offsetY": 0 }, // ????????? ????????. "healthBar": { "enabled": true, // false - ?? ?????????? "x": -36, // ????????? ?? ??? X "y": -33, // ????????? ?? ??? Y "alpha": 100, // ???????????? (??????????? ????????????? ???????????? ????????????, ??. macros.txt) "color": null, // ???? ???????? (??????????? ????????????? ????????????? ?????, ??. macros.txt) "lcolor": null, // ???? ?????????????? (??? ?????????) "width": 70, // ?????? ?????? ???????? "height": 12, // ?????? ?????? ???????? // ????????? ???????? ? ?????. "border": { "alpha": 35, // ???????????? "color": "0x000000", // ???? "size": 1 // ?????? ????? }, // ????????? ??????????? ????????. "fill": { "alpha": 45 // ???????????? }, // ????????? ???????? ??????????? ????????. "damage": { "alpha": 80, // ???????????? "color": null, // ???? "fade": 1 // ????? ????????? ? ???????? } }, // Floating damage values for ally, player, squadman. // ??????????? ???? ??? ????????, ??????, ?????????. "damageText": { "$ref": { "path":"def.damageText" } }, "damageTextPlayer": { "$ref": { "path":"def.damageText" } }, "damageTextSquadman": { "$ref": { "path":"def.damageText" } }, // Vehicle contour icon. // ????????? ?????? ?????. "contourIcon": { // false - disable / ?? ??????????. "enabled": false, // Axis field coordinates. // ????????? ???? ?? ????. "x": 6, "y": -65, // Opacity (dynamic transparency allowed, see macros.txt). // ???????????? (??????????? ????????????? ???????????? ????????????, ??. macros.txt). "alpha": 100, // Color (dynamic colors allowed, see macros.txt). // ???? (??????????? ????????????? ????????????? ?????, ??. macros.txt). "color": null, // Color intensity from 0 to 100. The default is 0 (off). // ????????????? ????? ?? 0 ?? 100. ?? ????????? 0, ?.?. ?????????. "amount": 0 }, // Vehicle tier. // ??????? ?????. "levelIcon": { "enabled": false, // false - disable / ?? ??????????. "x": 0, // Position on the X axis / ????????? ?? ??? X. "y": -21, // Position on the Y axis / ????????? ?? ??? Y. "alpha": 100 // Opacity / ????????????. }, // Markers "Help!" and "Attack!". // ??????? "????? ??????" ? "??????". "actionMarker": { "enabled": true, // false - disable / ?? ??????????. "x": 0, // Position on the X axis / ????????? ?? ??? X. "y": -67, // Position on the Y axis / ????????? ?? ??? Y. "alpha": 100 // Opacity / ????????????. }, // Stun marker // ?????? ????????? "stunMarker": { "enabled": true, // false - disable / ?? ??????????. "x": 0, // Position on the X axis / ????????? ?? ??? X. "y": -67, // Position on the Y axis / ????????? ?? ??? Y. "alpha": 100 // Opacity / ????????????. }, // Block of text fields (extended format supported, see extra-field.txt). // ???? ????????? ????? (?????????????? ??????????? ??????, ??. extra-field.txt). "textFields": [ ${ "def.playerName" }, ${ "def.hpPercent" }, ${ "def.rating" } ] }, // ????????? ??? ???????????. "enemy": { // Type of vehicle icon (HT/MT/LT/TD/Arty). // ?????? ???? ????? (??/??/??/??/????). "vehicleIcon": { "enabled": true, "showSpeaker": false, "x": 0, "y": -16, "alpha": 100, "maxScale": 100, "offsetX": 0, "offsetY": 0 }, // ????????? ????????. "healthBar": { "enabled": true, "x": -36, "y": -33, "alpha": 100, "color": null, "lcolor": null, "width": 70, "height": 12, "border": { "alpha": 35, "color": "0x000000", "size": 1 }, "fill": { "alpha": 50 }, "damage": { "alpha": 80, "color": null, "fade": 1 } }, // Floating damage values for ally, player, squadman. // ??????????? ???? ??? ????????, ??????, ?????????. "damageText": { "$ref": { "path":"def.damageText" } }, "damageTextPlayer": { "$ref": { "path":"def.damageText" } }, "damageTextSquadman": { "$ref": { "path":"def.damageText" } }, // Vehicle contour icon. // ????????? ?????? ?????. "contourIcon": { "enabled": false, "x": 6, "y": -65, "alpha": 100, "color": null, "amount": 0 }, // Vehicle tier. // ??????? ?????. "levelIcon": { "enabled": false, "x": 0, "y": -21, "alpha": 100 }, // Markers "Help!" and "Attack!". // ??????? "????? ??????" ? "??????". "actionMarker": { "enabled": true, "x": 0, "y": -67, "alpha": 100 }, // Stun marker // ?????? ????????? "stunMarker": { "enabled": true, "x": 0, "y": -67, "alpha": 100 }, // Block of text fields (extended format supported, see extra-field.txt). // ???? ????????? ????? (?????????????? ??????????? ??????, ??. extra-field.txt). "textFields": [ ${ "def.playerName" }, ${ "def.hpPercent" }, ${ "def.tankrating" }, ${ "def.tankbattles" }, ${ "def.rating" }, ${ "def.totalbattles" } ] } } Quote Share this post Link to post Short link Share on other sites
konrad509 445 #389829 Posted May 9, 2017 (edited) Add files as an attachment. Don't post their contents. There were syntax errors, so XVM failed to load the config. markersAliveExtended.xc Edited May 9, 2017 by konrad509 Quote Share this post Link to post Short link Share on other sites
Xeideo 0 #389910 Posted May 9, 2017 Check your color's DisAstro Quote Share this post Link to post Short link Share on other sites