Stepan371 15 #357783 Posted October 9, 2016 сделайте, пожалуйста, суммарный натанкованный урон(DamageReceived + totalBlocked) Quote Share this post Link to post Short link Share on other sites
N_P 24 #357787 Posted October 9, 2016 ktulho, что-то я пропустил в прошлом обсуждении - так пожар сейчас в логе суммируется или нет? Quote Share this post Link to post Short link Share on other sites
Slava7572 1,685 #357788 Posted October 9, 2016 Ребят,скажите пожалуйста,почему картинку не подхватывает.Вот так прописаны иконки типа снаряда(чисто пример): "type-shell": { "armor_piercing": "<img src='img:xvm://res/icons/damagelog/bb.png' width='27' height='9' align='baseline' vspace='2'>{{dl.costShell}}", "dmg-kind": { "shot": "{{dl.type-shell}}", в формате так: "formatHistory": "<textformat tabstops='[17,65,123,150]'><font size='13' color='#88CEF9'>{{dl.number}}:</font><tab><font color='{{dl.c:dmg-kind}}'><b>{{dl.damage}}{{dl.critical-hit}}{{dl.splash-hit}}</b></font><tab><font color='{{dl.c:dmg-kind}}'>{{dl.dmg-kind}}</font><tab><font color='{{dl.c:vtype}}'>{{dl.vtype}}</font><tab><font color='{{dl.c:team-damage}}'>{{dl.vehicle}}</font></textformat>", У Гамбитера такая постановка подхватывалась,путь вроде верный,в хитлоге тот же и работает.Можно было прям в формате макрос пописать,но там есть картинки с разными vspace,не ровно будет. Где ошибка?Монетки то подхватывает в costShell,правда там дефолтный путь,а эти иконки лежат в C:\Games\World_of_Tanks\res_mods\mods\shared_resources\xvm\res\icons\damagelog Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #357791 Posted October 9, 2016 ktulho, что-то я пропустил в прошлом обсуждении - так пожар сейчас в логе суммируется или нет? http://www.koreanrandom.com/forum/topic/31856-%D0%B4%D0%B8%D0%BD%D0%B0%D0%BC%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B5-%D0%BC%D0%B0%D0%BA%D1%80%D0%BE%D1%81%D1%8B-%D0%B2-python/page-35?do=findComment&comment=357261 Тушить сразу надо :) Quote Share this post Link to post Short link Share on other sites
ger Gauf 0 #357799 Posted October 9, 2016 Народ , всех благ всем ))) Подскажите, как увеличить размер маркера класса техники в панели ? Пробовал вставить "size": 16 везде где только влезло ))) Никак что то.... Quote Share this post Link to post Short link Share on other sites
daftGear 33 #357801 Posted October 9, 2016 (edited) Народ , всех благ всем ))) Подскажите, как увеличить размер маркера класса техники в панели ? Пробовал вставить "size": 16 везде где только влезло ))) Никак что то.... Как именно прописывал? примерно надо как то так <font size='16'>{{dl.vtype}}</font> Edited October 9, 2016 by NagibMan Quote Share this post Link to post Short link Share on other sites
panteror 54 #357804 Posted October 9, 2016 (edited) Added in totalEfficiency.py py_macros {{the py: xvm.totalDamagesBlockedReceived ()}} (not tested). Updated cap threads. Thanks i will test it. ------------ 1/ there is a mistake in the py files for new macro : not totalAssist but totalBlocked @xvm.export('xvm.totalDamagesBlockedReceived', deterministic=False) def xvm_totalDamagesBlockedReceived(): # log('log = %s' % (totalDamage + totalAssist + DamageReceived)) return '%s' % (totalDamage + totalAssist + DamageReceived) should be @xvm.export('xvm.totalDamagesBlockedReceived', deterministic=False) def xvm_totalDamagesBlockedReceived(): # log('log = %s' % (totalDamage + totalBlocked + DamageReceived)) return '%s' % (totalDamage + totalBlocked + DamageReceived) After corrected this, the macro is working, I tested it in game. 2/ Can you export and def "DamageReceived" macro in order to be use alone in battletemplates ? --------------- @ktulho Can you put in the first post of this new topic, all the last version of files (totalEfficiency.py, myDamageLog.py, damageLog.xc ...) and "updated date" because it's difficult to find each update in all the topic. You should mix totalEfficiency.py and myDamageLog.py in one file. Thanks. Edited October 9, 2016 by panteror 1 Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #357806 Posted October 9, 2016 (edited) @Slava7572, "type-shell": { "armor_piercing": "<img src='img:xvm://res/icons/damagelog/bb.png' width='27' height='9' align='baseline' vspace='2'>{{dl.costShell}}", Красным выделил лишние 1/ there is a mistake in the py files for new macro : not totalAssist but totalBlocked , исправил 2/ Can you export and def "DamageReceived" macro in order to be use alone in battletemplates ? , добавил {{py:xvm.DamageReceived()}} сделайте, пожалуйста, суммарный натанкованный урон (DamageReceived + totalBlocked) , добавил {{py:xvm.totalBlockedReceived()}} Обновил шапку. You should mix totalEfficiency.py and myDamageLog.py in one file , не вижу в этом смысла. Edited October 9, 2016 by ktulho 1 Quote Share this post Link to post Short link Share on other sites
ger Gauf 0 #357810 Posted October 9, 2016 (edited) Как именно прописывал? примерно надо как то так <font size='16'>{{dl.vtype}}</font> Чёт не пойму, у меня по другому прописано... Твою строку куда вставлять ? Я так понимаю , она должна изменить зараз все маркеры для всех типов техники ? //класс техники (макрос {{dl.vtype}}) "vtype": { "mediumTank": "<font face='xvm' size='20'>;</font>", "lightTank": "<font face='xvm'>:</font>", "heavyTank": "<font face='xvm'>?</font>", "AT-SPG": "<font face='xvm'>.</font>", "SPG": "<font face='xvm'>-</font>" Edited October 9, 2016 by ger Gauf Quote Share this post Link to post Short link Share on other sites
panteror 54 #357811 Posted October 9, 2016 (edited) @Slava7572, Красным выделил лишние , исправил , добавил {{py:xvm.DamageReceived()}} , добавил {{py:xvm.totalBlockedReceived()}} Обновил шапку. , не вижу в этом смысла. perfect, it works like a charm the 4 column : damage received and totalDamagesBlockedReceived in ALT Edited October 9, 2016 by panteror Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #357816 Posted October 9, 2016 Есть у кого нибудь риплей с пожаром? Желательно, чтобы во время пожара, еще и другие попадания были? Quote Share this post Link to post Short link Share on other sites
daftGear 33 #357818 Posted October 9, 2016 (edited) Чёт не пойму, у меня по другому прописано... Твою строку куда вставлять ? Я так понимаю , она должна изменить зараз все маркеры для всех типов техники ? Кинь строку куда ты прописал макрос {{dl.vtype}} ps а ты хочешь все маркеры увеличить или не все? а так да, моя строка увеличивает все маркеры pss я перепроверил разные варианты, и что в твоем варианте что в моем, все прекрасно работает Edited October 9, 2016 by NagibMan Quote Share this post Link to post Short link Share on other sites
panteror 54 #357819 Posted October 9, 2016 Есть у кого нибудь риплей с пожаром? Желательно, чтобы во время пожара, еще и другие попадания были? ;) http://www.koreanrandom.com/forum/topic/31856-%D0%B4%D0%B8%D0%BD%D0%B0%D0%BC%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B5-%D0%BC%D0%B0%D0%BA%D1%80%D0%BE%D1%81%D1%8B-%D0%B2-python/page-34?do=findComment&comment=357154 Quote Share this post Link to post Short link Share on other sites
BuSH 174 #357820 Posted October 9, 2016 сделайте, пожалуйста, суммарный натанкованный урон (DamageReceived + totalBlocked) Для каких целей можно использовать подобную инфу? Quote Share this post Link to post Short link Share on other sites
ger Gauf 0 #357821 Posted October 9, 2016 Кинь строку куда ты прописал макрос {{dl.vtype}} ps а ты хочешь все маркеры увеличить или не все? а так да, моя строка увеличивает все маркеры pss я перепроверил разные варианты, и что в твоем варианте что в моем, все прекрасно работает Да как скинул , так и прописано... Всё остальное по дефолту , как скачал... Quote Share this post Link to post Short link Share on other sites
BuSH 174 #357822 Posted October 9, 2016 3) Надо ли относить py_macros TotalEfficiency к damagLog, или рассматривать их отдельно.Единственная связь этих, так сказать, модов - предыдущая реализация в одном. Выкладывать либо раздельно, либо в одной теме с двумя названиями. И поправь название темы damagElog. Quote Share this post Link to post Short link Share on other sites
loafer 16 #357823 Posted October 9, 2016 (edited) the 4 column : damage received and totalDamagesBlockedReceived in ALT Покажите ваши настройки, plz Edited October 9, 2016 by loafer Quote Share this post Link to post Short link Share on other sites
daftGear 33 #357826 Posted October 9, 2016 (edited) del Edited October 9, 2016 by NagibMan Quote Share this post Link to post Short link Share on other sites
ger Gauf 0 #357827 Posted October 9, 2016 Для каких целей можно использовать подобную инфу? ЛБЗ 1 1 Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #357838 Posted October 9, 2016 xvm://res/icons/damagelog/bb.png Кстати, может стоит необходимые иконки сразу кинуть в ресурсы XVM? 1 Quote Share this post Link to post Short link Share on other sites