ktulho Posted June 27, 2017 Author Share Posted June 27, 2017 Я понял. Подумаю. 2 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted June 28, 2017 Author Share Posted June 28, 2017 Работает,но ощущение что отстает на 1 бой. , вроде исправил. Если сегодня (после 3:00) уже играли, то будет показывать неправильно. Чтобы сбросить статистику за сутки нужно удалить файл: %appdata%\Wargaming.net\WorldOfTanks\xvm\statistics\data.dat 4 @ Quote Link to comment Short link Share on other sites More sharing options...
krok65 Posted June 28, 2017 Share Posted June 28, 2017 (edited) , вроде исправил. Если сегодня (после 3:00) уже играли, то будет показывать неправильно. Чтобы сбросить статистику за сутки нужно удалить файл: %appdata%\Wargaming.net\WorldOfTanks\xvm\statistics\data.dat Странно,вообще не отображаются показатели.3 боя скатал,даже не работают к-во побед и поражений.Все по 0. Эти макросы перестали работать даже {{py:xvm.winsSessionDay}} {{py:xvm.lossSessionDay}} Edited June 28, 2017 by krok65 1 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted June 28, 2017 Author Share Posted June 28, 2017 Странно,вообще не отображаются показатели.3 боя скатал,даже не работают к-во побед и поражений.Все по 0. , теперь вроде точно исправил.)) 2 @ Quote Link to comment Short link Share on other sites More sharing options...
krok65 Posted June 28, 2017 Share Posted June 28, 2017 (edited) , теперь вроде точно исправил.)) Ну теперь все как надо отображает!!!И %,и все остальное.Спасибо Вам огромное!!! Еще позже потестирую,но думаю что все норм будет работать!!! Edited June 28, 2017 by krok65 @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted June 28, 2017 Share Posted June 28, 2017 А процент побед до сотых как округлить подскажите plz %2.2f~% не получилось @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted June 28, 2017 Author Share Posted June 28, 2017 А процент побед до сотых как округлить подскажите plz %2.2f~% не получилось Должно получиться, покажите всю строчку. @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted June 28, 2017 Share Posted June 28, 2017 {{py:xvm.winRateSessionDay>0?{{py:xvm.winRateSessionDay}}%2.2f~%| 00.00 %}} @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted June 28, 2017 Author Share Posted June 28, 2017 Надо так: {{py:xvm.winRateSessionDay>0?{{py:xvm.winRateSessionDay%2.2f~%}}| 00.00 %}} 2 @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted June 28, 2017 Share Posted June 28, 2017 Ааа. Семён Семёныч... @ Quote Link to comment Short link Share on other sites More sharing options...
krok65 Posted June 29, 2017 Share Posted June 29, 2017 (edited) , теперь вроде точно исправил.)) Все корректно отображает,еще и сегодня проверил и на всяк отпишусь!!! Еще раз огромное спасибо!!! Edited June 29, 2017 by krok65 @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted July 1, 2017 Share Posted July 1, 2017 А где почитать, какие "updateEvent": кроме "ON_EVERY_SECOND", можно использовать? Например, в поле с процентом побед и количеством боёв. @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted July 1, 2017 Share Posted July 1, 2017 А где почитать, какие "updateEvent": кроме "ON_EVERY_SECOND", можно использовать? Например, в поле с процентом побед и количеством боёв. в доке │ "updateEvent" │ │ │ │ │ │ X │ события по которому обновляется поле, используйте динамические макросы; для отключения используйте значение null или удалите параметр;│ │ │ │ │ │ │ │ несколько событий разделяются запятой │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ доступные события: │ │ │ │ │ │ │ │ ON_BATTLE_STATE_CHANGED │ │ │ │ │ │ │ │ ON_PLAYERS_HP_CHANGED │ │ │ │ │ │ │ │ ON_VEHICLE_DESTROYED │ │ │ │ │ │ │ │ ON_CURRENT_VEHICLE_DESTROYED │ │ │ │ │ │ │ │ ON_MODULE_CRITICAL │ │ │ │ │ │ │ │ ON_MODULE_DESTROYED │ │ │ │ │ │ │ │ ON_MODULE_REPAIRED │ │ │ │ │ │ │ │ ON_DAMAGE_CAUSED │ │ │ │ │ │ │ │ ON_DAMAGE_CAUSED_ALLY │ │ │ │ │ │ │ │ ON_TARGET_IN - aim at the vehicle │ │ │ │ │ │ │ │ ON_TARGET_OUT - aim not at the vehicle │ │ │ │ │ │ │ │ ON_PANEL_MODE_CHANGED │ │ │ │ │ │ │ │ ON_EVERY_FRAME * can reduce performance │ │ │ │ │ │ │ │ ON_EVERY_SECOND * can reduce performance │ │ │ │ │ │ │ │ PY(event_name) - event from python, sent by as_event(event_name) extra-field_ru.txt C:\Games\World_of_Tanks\res_mods\mods\shared_resources\xvm\doc 1 @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted July 1, 2017 Share Posted July 1, 2017 в доке Спасибо. Но в доке написано, это все для "BLb - пользовательские текстовые поля в окне боевого интерфейса". Или я не так понимаю. По сути мне бы понять, какой updateEvent выставить (если он вообще нужен) для двух параметров в ангаре: процента боев и их количества, . @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted July 1, 2017 Author Share Posted July 1, 2017 По сути мне бы понять, какой updateEvent выставить (если он вообще нужен) для двух параметров в ангаре: процента боев и их количества, . , добавил событие: PY(ON_STATISTICS) - предназначен для обновление следующих макросов: {{py:xvm.winsSession}}, {{py:xvm.winsSessionDay}}, {{py:xvm.lossSession}}, {{py:xvm.lossSessionDay}}, {{py:xvm.winRateSession}}, {{py:xvm.winRateSessionDay}}. 2 @ Quote Link to comment Short link Share on other sites More sharing options...
CrazyST Posted July 1, 2017 Share Posted July 1, 2017 Ребята, а можно скрины с примерами как оно у вас выглядит. @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted July 1, 2017 Share Posted July 1, 2017 (edited) Вот так вывел процент побед, общее количество боёв и время в игре (перед бонами) - всё за сутки 'widgetsTemplates.xc' "sessionTime": { // Show session time in hangar. // Показывать время сессии в ангаре. "enabled": true, "layer": "top", "type": "extrafield", "formats": [ { "updateEvent": "ON_EVERY_SECOND", "x": -322, "y": -13, "width": 100, "height": 80, "screenHAlign": "right", "screenVAlign": "top", "shadow": { "enabled": true, "distance": 0, "angle": 0, "color": "0x000000", "alpha": 70, "blur": 4, "strength": 2 }, "textFormat": { "align": "left", "valign": "center", "color": "0xffcc66" }, "format": "<textformat tabstops='[17]' leading='0'><font face='xvm' size='15' color='#cbcab7'>V</font>\t<font face='$FieldFont' size='14' color='#aba98b'>{{py:xvm.timeSessionDay}}</font></textformat>" } ] }, "sessionWinsPercent": { // Show the percentage of wins in the hangar. // Показывать процент побед в ангаре. "enabled": true, "layer": "top", "type": "extrafield", "formats": [ { "updateEvent": "PY(ON_STATISTICS)", "x": 312, "y": -13, "width": 100, "height": 80, "screenHAlign": "left", "screenVAlign": "top", "shadow": { "enabled": true, "distance": 0, "angle": 0, "color": "0x000000", "alpha": 70, "blur": 4, "strength": 2 }, "textFormat": { "align": "left", "valign": "center", "color": "0xffcc66" }, "format": "<textformat tabstops='[17]' leading='0'><font face='xvm' size='19' color='#cbcab7'>r</font>\t<font face='$FieldFont' size='14' color='#aba98b'>{{py:xvm.winRateSessionDay>0?{{py:xvm.winRateSessionDay%2.2f~%}}| 00.00 %}}</font></textformat>" } ] }, "sessionBattlesCount": { // Show battles count in hangar. // Показывать количество боёв в ангаре. "enabled": true, "layer": "top", "type": "extrafield", "formats": [ { "updateEvent": "PY(ON_STATISTICS)", "x": 400, "y": -13, "width": 100, "height": 80, "screenHAlign": "left", "screenVAlign": "top", "shadow": { "enabled": true, "distance": 0, "angle": 0, "color": "0x000000", "alpha": 70, "blur": 4, "strength": 2 }, "textFormat": { "align": "left", "valign": "center", "color": "0xffcc66" }, "format": "<textformat tabstops='[17]' leading='0'><font face='xvm' size='17' color='#cbcab7'>s</font>\t<font face='$FieldFont' size='14' color='#aba98b'>{{py:xvm.countBattleDay}}</font></textformat>" } ] } Edited July 1, 2017 by refaol 3 @ Quote Link to comment Short link Share on other sites More sharing options...
CrazyST Posted July 2, 2017 Share Posted July 2, 2017 а если в sessionWinsPercent и sessionBattlesCount сделать ... "x": "{{py:math.sum({{py:xvm.screenHCenter}},-360)}}" ... "x": "{{py:math.sum({{py:xvm.screenHCenter}},-280)}}" ... то отображаться будет нормально при любом разрешении :) единственное нужно еще кнопку премиум магазина отключить чтобы не мешалась :) @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted July 2, 2017 Share Posted July 2, 2017 (edited) то отображаться будет нормально при любом разрешении :) Да, но только "моим конфигом" пользуемся только я и мой друг Коля :) единственное нужно еще кнопку премиум магазина отключить чтобы не мешалась :) Эту я сразу отключил, как возможность XVM представил Edited July 2, 2017 by refaol @ Quote Link to comment Short link Share on other sites More sharing options...
CrazyST Posted July 2, 2017 Share Posted July 2, 2017 "моим конфигом" пользуемся только я и мой друг Коля ну всякое бывает ))) @ 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.