Pensioner 55 #383744 Posted March 19, 2017 норм все работает :) спасибо еще вопрос Как можно увеличить картинки прицепленные к Названию частей техники (макрос {{comp-name}}, что отображается в Формат последнего урона "formatLastHit": .png' width='16' height='16' цифирки подбери сам. 1 Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #383745 Posted March 19, 2017 .png' width='16' height='16' цифирки подбери сам. в блоке "comp-name": все так и прописано я про блок "formatLastHit": спрашивал - можно ли там значения прописанные в "comp-name": увеличить? Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #383747 Posted March 19, 2017 @MIAPAK, добавьте секцию "comp-name" в секцию "lastHit" и пропишите там размер иконок. 1 Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #383748 Posted March 19, 2017 MIAPAK, добавьте секцию "comp-name" в секцию "lastHit" и пропишите там размер иконок. прописал вот так // Display the last damage (hit). // Отображение последнего урона (попадания). "lastHit": { "comp-name": "<img height='40' width='40' src='xvm://res/icons/damageLog/{{comp-name}}.png'>", "$ref": { "path":"damageLog.log" }, но добился только того, что теперь .png картинка не выводится, а выводится тестовая часть блока "comp-name" Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #383750 Posted March 19, 2017 @MIAPAK, // Display the last damage (hit). // Отображение последнего урона (попадания). "lastHit": { "$ref": { "path":"damageLog.log" }, // Name part of vehicle (macro {{comp-name}}). // Название частей техники (макрос {{comp-name}}). "comp-name":{ "turret": "<img src='xvm://res/путь к картинке.png' width='40' height='40'>", // turret / башня "hull": "<img src='xvm://res/путь к картинке.png' width='40' height='40'>", // body / корпус "chassis": "<img src='xvm://res/путь к картинке.png' width='40' height='40'>", // suspension / ходовая "gun": "<img src='xvm://res/путь к картинке.png' width='40' height='40'>", // gun / орудие "unknown": "" // unknown / неизвестно }, Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #383754 Posted March 19, 2017 // Display the last damage (hit). // Отображение последнего урона (попадания). "lastHit": { "$ref": { "path":"damageLog.log" }, // Name part of vehicle (macro {{comp-name}}). // Название частей техники (макрос {{comp-name}}). "comp-name":{ "turret": "", // turret / башня "hull": "", // body / корпус "chassis": "", // suspension / ходовая "gun": "", // gun / орудие "unknown": "" // unknown / неизвестно }, отчитываюсь :) когда должен пройти первый урон клиент игры виснет вусмерть :( :) xvm.log приложить не могу так как закрывал Винду через диспетчер и xvm.log после этого открываться вообще не хочет damageLog.xcpython.log damageLog.xc python.log Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #383761 Posted March 19, 2017 @MIAPAK, не надо подставлять макрос {{comp-name}} в секции "comp-name". Эта секция и определяет, что будет возвращать макрос {{comp-name}}. Исправил, не проверял damageLog.xc Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #384324 Posted March 25, 2017 Сделал. Проверял на макросе: {{{{py:random.randint()}}==0?zero|one}} то есть теперь не обязательно, чтобы макрос был зарегистрирован в XVM, форматирование будет работать для любых значений. нужно хорошо протестировать, особенно обратить внимание на то, не сломаются ли родные макросы , а можно ли сделать , чтобы при такой конструкции: {{?zero|one}} или при такой: {{None?zero|one}} возвращалось one ? Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #384327 Posted March 25, 2017 По идее, и в текущем виде можно выкрутиться. Что ты хочешь сделать? 1 Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #384335 Posted March 25, 2017 По идее, и в текущем виде можно выкрутиться. Что ты хочешь сделать? Хочу из damageLog в battleLabels в поле "format" передавать строку с не форматированными макросами. P.S. А хотя да, можно выкрутиться. 1 Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #384404 Posted March 26, 2017 Что-то не получается у меня прицепить взводные картинки :( // TODO. // Альтернативный лог полученного урона. "logAlt": { "$ref": { "path":"damageLog.log" }, // true - show hits without damage, false - not to show. // true - отображать попадания без урона, false - не отображать. "showHitNoDamage": true, // Damage log format. // Формат лога повреждений. "formatHistory": "<textformat leading='-1' tabstops='[18,75,159,181,275]'><font face='mono' size='12'>{{level}}</font><tab><font color='{{c:wn8}}'>{{name%.10s~..}}</font><tab>{{diff-masses}}<tab>{{vtype}}<tab><font color='{{c:team-dmg}}'>{{vehicle}}</font><tab><img src='xvm://res/icons/damageLog/squads/{{squad-num}}.png></textformat>" }, Картинки лежат там где надо где ошибся? спасибо Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,157 #384405 Posted March 26, 2017 (edited) Что-то не получается у меня прицепить взводные картинки :( <img src='xvm://res/icons/damageLog/squads/{{squad-num}}.png> ' - пропущена в конце кавычка <img src='xvm://res/icons/damageLog/squads/{{squad-num}}.png'> - так пробуй Edited March 26, 2017 by H_E_K_P_O_M_A_H_T_ 1 Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #384410 Posted March 26, 2017 так пробуй спасибо 1 Quote Share this post Link to post Short link Share on other sites
tupitupi 0 #385019 Posted April 1, 2017 Раз уж средствами XVM можно сделать damageLog, может быть можно средствами этого самого XVM'а сделать и прицел с ангаром?? Как считаете? Не нашёл ещё нормального прицела подобного типа (как на стримах всяких там WGL) Quote Share this post Link to post Short link Share on other sites
MICROB 77 #385022 Posted April 2, 2017 Раз уж средствами XVM можно сделать damageLog, может быть можно средствами этого самого XVM'а сделать и прицел с ангаром?? Как считаете? Не нашёл ещё нормального прицела подобного типа (как на стримах всяких там WGL) https://koreanrandom.com/forum/topic/37259-прицел-без-сведения-средствами-xvm/page-1 дерзай Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #385488 Posted April 9, 2017 почему нет сообщения о закритованной "ШАССИ"? 'картинка' когда тут сообщение выводится (правда о крите башни) 'картинка' и тут есть правда не крит модуля а повреждение 'картинка' прописано все это так - damageLog.xc 'картинка' Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #385493 Posted April 9, 2017 (edited) @MIAPAK, риплей остался? Попробуйте с этим damageLog.rar Edited April 9, 2017 by ktulho Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #385503 Posted April 9, 2017 Попробуйте с этим спс теперь работает нормально Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #385829 Posted April 13, 2017 Откуда тянутся картинки типа снарядов ББ, ОФ.....???? В gui.pkg не могу найти Quote Share this post Link to post Short link Share on other sites
MIAPAK 154 #385900 Posted April 14, 2017 Неужели никто не знает? :( 1 Quote Share this post Link to post Short link Share on other sites