Jump to content
Korean Random
ktulho

assistLog (py_macro)

Recommended Posts

Почти 4 месяца играю без модов, за изменениями не слежу, боюсь что уже многое не работает!

Share this post


Link to post

Short link
Share on other sites
14.05.2019 в 17:49, ktulho сказал:

Собирается статистика и высчитывается.

А по ассисту стата собирается?

Share this post


Link to post

Short link
Share on other sites
4 часа назад, xZirus сказал:

А по ассисту стата собирается?

Наверно. Но макроса такого нет.

Share this post


Link to post

Short link
Share on other sites

Подскажите знающие, все сделал как в первом посту, а в бою не появляется лог. В чем может быть причина?

 

python.log xvm.log

Share this post


Link to post

Short link
Share on other sites

@GT_22rus Для начала устраните ошибки. Скорее всего не обновлен скрипт battleEfficiency.py:

2019-05-29 16:35:52.773: INFO: =============================
2019-05-29 16:35:52.773: INFO: 2019-05-29 16:35:52: [ERROR] mods/xfw/python/xfw/events.pyc
2019-05-29 16:35:52.773: ERROR: Traceback (most recent call last):
2019-05-29 16:35:52.773: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2019-05-29 16:35:52.774: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2019-05-29 16:35:52.774: ERROR: TypeError: _addRibbon() got an unexpected keyword argument 'bonusRibbonLabelID'
2019-05-29 16:35:52.774: INFO: =============================

Не установлен скрипт chancePenetration.py:

2019-05-29 16:28:57: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 156, in process_python_macro
    (func, deterministic) = get_function(arg)
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 147, in get_function
    (func, deterministic) = _container.get(func_name)
TypeError: 'NoneType' object is not iterable
arg='sight.c_piercingChance'
2019-05-29 16:28:57: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 156, in process_python_macro
    (func, deterministic) = get_function(arg)
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 147, in get_function
    (func, deterministic) = _container.get(func_name)
TypeError: 'NoneType' objec

Затем прикрепите еще раз конфиг и логи.

Share this post


Link to post

Short link
Share on other sites
3 часа назад, ktulho сказал:

@GT_22rus Для начала устраните ошибки. Скорее всего не обновлен скрипт battleEfficiency.py:


2019-05-29 16:35:52.773: INFO: =============================
2019-05-29 16:35:52.773: INFO: 2019-05-29 16:35:52: [ERROR] mods/xfw/python/xfw/events.pyc
2019-05-29 16:35:52.773: ERROR: Traceback (most recent call last):
2019-05-29 16:35:52.773: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2019-05-29 16:35:52.774: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2019-05-29 16:35:52.774: ERROR: TypeError: _addRibbon() got an unexpected keyword argument 'bonusRibbonLabelID'
2019-05-29 16:35:52.774: INFO: =============================

Не установлен скрипт chancePenetration.py:


2019-05-29 16:28:57: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 156, in process_python_macro
    (func, deterministic) = get_function(arg)
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 147, in get_function
    (func, deterministic) = _container.get(func_name)
TypeError: 'NoneType' object is not iterable
arg='sight.c_piercingChance'
2019-05-29 16:28:57: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 156, in process_python_macro
    (func, deterministic) = get_function(arg)
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 147, in get_function
    (func, deterministic) = _container.get(func_name)
TypeError: 'NoneType' objec

Затем прикрепите еще раз конфиг и логи.

battleEfficiency.py обновил

chancePenetration.py установил

 

python.log xvm.log

 

Edited by GT_22rus

Share this post


Link to post

Short link
Share on other sites
1 час назад, GT_22rus сказал:

battleEfficiency.py обновил

Не обновили. Рекомендую обновить все скрипты и почитать соответствующие темы за последние пару месяцев.

По поводу assistLog. Если вы хотите выравнивать его по правому краю (в файле battleLabelsTemplates.xc параметр "screenHAlign": "right"),

"assistLog": {
      "enabled": true,
      "updateEvent": "PY(ON_ASSIST_LOG)",
      "x": "{{py:xvm.assistLog_x}}",
      "y": "{{py:xvm.assistLog_y}}",
      "width": 300,
      "height": 500,
      "layer": "bottom",
      "screenHAlign": "right",
      "textFormat": { "color": "0xF4EFE8", "size": 15},
      "format": "{{py:xvm.assistLog}}",
      "mouseEvents": {
        "mouseDown": "assistLog_mouseDown",
        "mouseUp": "assistLog_mouseUp",
        "mouseMove": "assistLog_mouseMove"
      }
    },

то координату "х" в файле assistLog.xc надо делать отрицательной.

      //true - allow to move log in battle and disallow macros for "x" and "y" settings
      //false - disallow to move log in battle and allow macros for "x" and "y" settings
      //true - разрешить перемещение лога в бою и запретить макросы в настройках "x" и "y"
      //false - запретить перемещение лога в бою и разрешить макросы в настройках "x" и "y"
      "moveInBattle": false,
      "x": 314,
      "y": 274,

 

Share this post


Link to post

Short link
Share on other sites
1 час назад, ktulho сказал:

Не обновили. Рекомендую обновить все скрипты и почитать соответствующие темы за последние пару месяцев.

По поводу assistLog. Если вы хотите выравнивать его по правому краю (в файле battleLabelsTemplates.xc параметр "screenHAlign": "right"),


"assistLog": {
      "enabled": true,
      "updateEvent": "PY(ON_ASSIST_LOG)",
      "x": "{{py:xvm.assistLog_x}}",
      "y": "{{py:xvm.assistLog_y}}",
      "width": 300,
      "height": 500,
      "layer": "bottom",
      "screenHAlign": "right",
      "textFormat": { "color": "0xF4EFE8", "size": 15},
      "format": "{{py:xvm.assistLog}}",
      "mouseEvents": {
        "mouseDown": "assistLog_mouseDown",
        "mouseUp": "assistLog_mouseUp",
        "mouseMove": "assistLog_mouseMove"
      }
    },

то координату "х" в файле assistLog.xc надо делать отрицательной.


      //true - allow to move log in battle and disallow macros for "x" and "y" settings
      //false - disallow to move log in battle and allow macros for "x" and "y" settings
      //true - разрешить перемещение лога в бою и запретить макросы в настройках "x" и "y"
      //false - запретить перемещение лога в бою и разрешить макросы в настройках "x" и "y"
      "moveInBattle": false,
      "x": 314,
      "y": 274,

 

скачал из этой темы и заменил. 

 

Ассист лог так и не появился. Млин, куда копать?

1 час назад, ktulho сказал:

Не обновили. Рекомендую обновить все скрипты и почитать соответствующие темы за последние пару месяцев.

По поводу assistLog. Если вы хотите выравнивать его по правому краю (в файле battleLabelsTemplates.xc параметр "screenHAlign": "right"),


"assistLog": {
      "enabled": true,
      "updateEvent": "PY(ON_ASSIST_LOG)",
      "x": "{{py:xvm.assistLog_x}}",
      "y": "{{py:xvm.assistLog_y}}",
      "width": 300,
      "height": 500,
      "layer": "bottom",
      "screenHAlign": "right",
      "textFormat": { "color": "0xF4EFE8", "size": 15},
      "format": "{{py:xvm.assistLog}}",
      "mouseEvents": {
        "mouseDown": "assistLog_mouseDown",
        "mouseUp": "assistLog_mouseUp",
        "mouseMove": "assistLog_mouseMove"
      }
    },

то координату "х" в файле assistLog.xc надо делать отрицательной.


      //true - allow to move log in battle and disallow macros for "x" and "y" settings
      //false - disallow to move log in battle and allow macros for "x" and "y" settings
      //true - разрешить перемещение лога в бою и запретить макросы в настройках "x" и "y"
      //false - запретить перемещение лога в бою и разрешить макросы в настройках "x" и "y"
      "moveInBattle": false,
      "x": 314,
      "y": 274,

 

Сейчас вроде обновил battleEfficiency.py

 

python.log xvm.log

Share this post


Link to post

Short link
Share on other sites
45 минут назад, GT_22rus сказал:

Млин, куда копать?

я же написал

1 час назад, ktulho сказал:

координату "х" в файле assistLog.xc надо делать отрицательной.

 

Share this post


Link to post

Short link
Share on other sites

Судя по всему, его полечили на 3 хп.

Поделись реплеем, тоже  хочу на такое чудо глянуть.

Edited by aster

Share this post


Link to post

Short link
Share on other sites

Приветствую!

Как-то раньше не замечал или такого не было вовсе, в общем заметил, что после того как меня убивают лог перестает фиксировать урон по ассисту:

1394597459_.jpg.51eee9db046128aede9e7396b9d73847.jpg

 

Это исправляется или как?

Edited by xZirus

Share this post


Link to post

Short link
Share on other sites
2 часа назад, ktulho сказал:

@xZirus реплей остался?

В личку скинул.

PS Пересмотрев реплей понял, что я был живой, когда добили танк по которому не подсчитался урон!

Share this post


Link to post

Short link
Share on other sites
3 часа назад, xZirus сказал:

Приветствую!

Как-то раньше не замечал или такого не было вовсе, в общем заметил, что после того как меня убивают лог перестает фиксировать урон по ассисту:

1394597459_.jpg.51eee9db046128aede9e7396b9d73847.jpg

 

Это исправляется или как?

 

Такая же фигня с ассистом и на чистом клиенте происходит, я на рекруте играл и заметил.

Share this post


Link to post

Short link
Share on other sites
5 часов назад, xZirus сказал:

Это исправляется или как?

Не исправляется, на чистом клиенте отображается те же 819 ассиста.

Share this post


Link to post

Short link
Share on other sites

Похоже, что  картошка сама перестала отдавать  ассист по "непроверенным" целям

Раньше всё было нормально

Edited by aster

Share this post


Link to post

Short link
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...