cheva Posted November 11, 2016 Share Posted November 11, 2016 Парни подскажите пожалуйста как сделать что-бы на миникарте отображались ники бойцов, оч. надо для ком.боев. Сам не смог разобраться , прошу помощи. @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 11, 2016 Share Posted November 11, 2016 (edited) minimapLabelsTemplates.xc->def->nickSpotted->flags, добавьте флаги ally и enemy. Я только заметил, что в дефолтном конфиге уже есть секция для командных боев. "nickSpottedCompany": { "$ref": { "path": "def.nickSpotted" }, "flags": [ "ally", "squadman", "teamKiller", "spotted", "alive" ], "format": "<font size='{{battletype?8|{{squad?8|0}}}}' color='{{squad?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|{{tk?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|#BFBFBF}}}}'><i>{{name%.7s~..}}</i></font>" }, Если у вас нет ее, добавьте ее (minimapLabelsTemplates.xc). Нужно тоже в minimapLabels.xc->labels->formats добавить ${ "minimapLabelsTemplates.xc":"def.vehicleSpottedCompany" } При этих настройках, ники будут отображаются только для совзводных. Если хотите иначе, напишите. Edited November 11, 2016 by konrad509 @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted November 11, 2016 Share Posted November 11, 2016 @konrad509,and only in battletype 8, meaning 7/54 ? correct me if it's wrong @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 11, 2016 Share Posted November 11, 2016 (edited) Um, no. Only when {{battletype}} doesn't return any value, which is determined by substituted values for this macro in the file texts.xc. But why are you asking me this? I think you should know it. Aren't you one of XVM experts? ;) And what did you mean by 7/54? Edited November 11, 2016 by konrad509 @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted November 11, 2016 Share Posted November 11, 2016 @konrad509, I am, but didn't noticed the {{battletype?8|{{squad?8|0}}}}' )))7/54 - Team Battle "cybersport" 1 @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 11, 2016 Share Posted November 11, 2016 Aha, ok. I don't know battle numerical values. @ Quote Link to comment Short link Share on other sites More sharing options...
Наглый Котэ Posted November 12, 2016 Share Posted November 12, 2016 why do you say in english? what happened? @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted November 12, 2016 Share Posted November 12, 2016 why do you say in english? what happened?coz konrad needs to use translator to write to other people . @ Quote Link to comment Short link Share on other sites More sharing options...
cheva Posted November 12, 2016 Author Share Posted November 12, 2016 (edited) minimapLabelsTemplates.xc->def->nickSpotted->flags, добавьте флаги ally и enemy. Я только заметил, что в дефолтном конфиге уже есть секция для командных боев. "nickSpottedCompany": { "$ref": { "path": "def.nickSpotted" }, "flags": [ "ally", "squadman", "teamKiller", "spotted", "alive" ], "format": "<font size='{{battletype?8|{{squad?8|0}}}}' color='{{squad?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|{{tk?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|#BFBFBF}}}}'><i>{{name%.7s~..}}</i></font>" }, Если у вас нет ее, добавьте ее (minimapLabelsTemplates.xc). Нужно тоже в minimapLabels.xc->labels->formats добавить ${ "minimapLabelsTemplates.xc":"def.vehicleSpottedCompany" } При этих настройках, ники будут отображаются только для совзводных. Если хотите иначе, напишите. В ком. боях у меня так получилось , т.е.название техники союзных 2 раза а ника нет. Помоги пожалуйста. Edited November 12, 2016 by cheva @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 12, 2016 Share Posted November 12, 2016 (edited) Хм, прикрепите ваш конфиг. Edited November 12, 2016 by konrad509 @ Quote Link to comment Short link Share on other sites More sharing options...
cheva Posted November 12, 2016 Author Share Posted November 12, 2016 Хм, прикрепите ваш конфиг. minimapLabels.xc minimapLabelsTemplates.xc @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 12, 2016 Share Posted November 12, 2016 Извините, ошибся. Должно будет ${ "minimapLabelsTemplates.xc":"def.nickSpottedCompany" } @ Quote Link to comment Short link Share on other sites More sharing options...
cheva Posted November 13, 2016 Author Share Posted November 13, 2016 Извините, ошибся. Должно будет ${ "minimapLabelsTemplates.xc":"def.nickSpottedCompany" } konrad509 спасибо, работает. Только ник и название техники лезут друг на друга. Можно убрать в КБ на миникарте название техники? @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 13, 2016 Share Posted November 13, 2016 Да, можно. Замените секцию vehicleSpotted с этим "vehicleSpotted": { "$ref": { "path":"def.defaultItem" }, "x": 2, "y": "{{squad?7|-1}}", "flags": [ "ally", "enemy", "squadman", "teamKiller", "spotted", "alive" ], "format": "<font size='{{battletype?8|0}}' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'>{{vehicle}}</font>" }, @ Quote Link to comment Short link Share on other sites More sharing options...
cheva Posted November 14, 2016 Author Share Posted November 14, 2016 (edited) Да, можно. Замените секцию vehicleSpotted с этим "vehicleSpotted": { "$ref": { "path":"def.defaultItem" }, "x": 2, "y": "{{squad?7|-1}}", "flags": [ "ally", "enemy", "squadman", "teamKiller", "spotted", "alive" ], "format": "<font size='{{battletype?8|0}}' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'>{{vehicle}}</font>" }, Шэф , увсе пропало В рандоме хочу название техники а в КБ ники союзников.Так гибко можно настроить? minimapLabelsTemplates.xc Edited November 14, 2016 by cheva @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 14, 2016 Share Posted November 14, 2016 Сорри... size='{{battletype?0|8}}' @ Quote Link to comment Short link Share on other sites More sharing options...
cheva Posted November 15, 2016 Author Share Posted November 15, 2016 konrad509 теперь в КБ-ных боях техника противника не отображается. @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 16, 2016 Share Posted November 16, 2016 А, вы хотели это сделать только для союзников? @ Quote Link to comment Short link Share on other sites More sharing options...
cheva Posted November 16, 2016 Author Share Posted November 16, 2016 Прошу прощения если не ясно выразил свою хотелку. В КБ-ях(укреп, ГК) на миникарте ники союзников и название техники противника, в рандоме только название техники. Думаю такая конфа будет востребована не только у кэпов, но и у обычных бойцов, кто хочет грамотно играть. Сейчас вот что имею А, вы хотели это сделать только для союзников? @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted November 17, 2016 Share Posted November 17, 2016 Проверьте size='{{battletype?{{ally?0|8}}|8}}' @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.