Jump to content
Korean Random

Динамические макросы в Python


Recommended Posts

1 минуту назад, ktulho сказал:

Мне нужен лог после того как высветиться:

там в двух местах высветилось: как защёл в ангар + вышел из боя. В ангаре было ещё 2 сообщения из прошлого боя. Всего 4.

 

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

Link to comment
Short link
Share on other sites

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

и вот что теперь выскакивает при первом заходе в ангар

0939edaa9bdc0fd30cacfb3f4794d03c.png

 

Надо определиться. Будут ли шаблоны действовать на всплывающие сообщения.

Link to comment
Short link
Share on other sites

5 минут назад, ktulho сказал:

Надо определиться. Будут ли шаблоны действовать на всплывающие сообщения.

ну меня изначально уверили, что скрываются только в системном канале, а в пу-пах скрипт не скрывает. Если есть возможность скрывать и там - то сделай конечно.

----

пришёл танк из сыгранного боя - всё чётко, всё скрыто! non_banana1.gif

----

либо как вариант массив разделить на "системный" и "пу-пы" для универсальности

Link to comment
Short link
Share on other sites

18 минут назад, HEKPOMAHT сказал:

ну меня изначально уверили, что скрываются только в системном канале, а в пу-пах скрипт не скрывает. Если есть возможность скрывать и там - то сделай конечно.

Попробуй hideMessagePatterns.py

 

19 минут назад, HEKPOMAHT сказал:

либо как вариант массив разделить на "системный" и "пу-пы" для универсальности

Это надо?

  • Upvote 1
Link to comment
Short link
Share on other sites

50 минут назад, ktulho сказал:

Убрал логирование

откатал по-быстрому 10 боёв - всё чётко :no1:

Если что всплывёт, тогда в процессе отпишусь. А тут тогда всё.

Link to comment
Short link
Share on other sites

  • 3 weeks later...

@ktulho кто-то активировал клановый резерв (или как там у них), интерфейс ангара.

фигурирует скрипт hideMessagePatterns.py 

2020-03-03 17:15:56.279: ERROR: [EXCEPTION] (scripts/common/Event.py, 47):
Traceback (most recent call last):
  File "scripts/common/Event.py", line 45, in __call__
  File "scripts/client/notification/NotificationPopUpViewer.py", line 125, in __onNotificationReceived
  File "scripts/client/notification/NotificationPopUpViewer.py", line 141, in __sendMessageForDisplay
  File "./xfw/events.py", line 71, in <lambda>
  File "res_mods/configs/xvm/py_macro\hideMessagePatterns.py", line 68, in as_appendMessageS
    base(self, data)
  File "scripts/client/gui/Scaleform/daapi/view/meta/NotificationPopUpViewerMeta.py", line 38, in as_appendMessageS
TypeError: 'NoneType' object is not callable

2020-03-03 17:15:56.287: ERROR: [EXCEPTION] (scripts/common/Event.py, 47):
Traceback (most recent call last):
  File "scripts/common/Event.py", line 45, in __call__
  File "scripts/client/notification/listeners.py", line 190, in __onMessageReceived
  File "scripts/client/notification/NotificationsModel.py", line 52, in addNotification
  File "scripts/common/Event.py", line 45, in __call__
  File "scripts/client/notification/NotificationPopUpViewer.py", line 125, in __onNotificationReceived
  File "scripts/client/notification/NotificationPopUpViewer.py", line 141, in __sendMessageForDisplay
  File "./xfw/events.py", line 71, in <lambda>
  File "res_mods/configs/xvm/py_macro\hideMessagePatterns.py", line 68, in as_appendMessageS
    base(self, data)
  File "scripts/client/gui/Scaleform/daapi/view/meta/NotificationPopUpViewerMeta.py", line 38, in as_appendMessageS
TypeError: 'NoneType' object is not callable

2020-03-03 17:15:56.300: ERROR: [EXCEPTION] (scripts/common/Event.py, 47):
Traceback (most recent call last):
  File "scripts/common/Event.py", line 45, in __call__
  File "scripts/client/messenger/formatters/service_channel.py", line 360, in __onSyncCompleted
  File "scripts/common/adisp.py", line 141, in callback
  File "scripts/client/messenger/formatters/service_channel.py", line 560, in format
  File "scripts/common/adisp.py", line 141, in callback
  File "scripts/client/messenger/proto/bw/ServiceChannelManager.py", line 193, in __addServerMessage
  File "scripts/common/Event.py", line 45, in __call__
  File "scripts/client/notification/listeners.py", line 190, in __onMessageReceived
  File "scripts/client/notification/NotificationsModel.py", line 52, in addNotification
  File "scripts/common/Event.py", line 45, in __call__
  File "scripts/client/notification/NotificationPopUpViewer.py", line 125, in __onNotificationReceived
  File "scripts/client/notification/NotificationPopUpViewer.py", line 141, in __sendMessageForDisplay
  File "./xfw/events.py", line 71, in <lambda>
  File "res_mods/configs/xvm/py_macro\hideMessagePatterns.py", line 68, in as_appendMessageS
    base(self, data)
  File "scripts/client/gui/Scaleform/daapi/view/meta/NotificationPopUpViewerMeta.py", line 38, in as_appendMessageS
TypeError: 'NoneType' object is not callable

2020-03-03 17:15:56.318: ERROR: [EXCEPTION] (scripts/client/gui/Scaleform/daapi/view/login/EULADispatcher.py, 83):Traceback (most recent call last):
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/login/EULADispatcher.py", line 103, in processLicense
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/gui/shared/personality.py", line 144, in onAccountShowGUI
2020-03-03 17:15:56.318: ERROR:   File "scripts/common/Event.py", line 45, in __call__
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/messenger/formatters/service_channel.py", line 360, in __onSyncCompleted
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/messenger/formatters/service_channel.py", line 560, in format
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/messenger/proto/bw/ServiceChannelManager.py", line 193, in __addServerMessage
2020-03-03 17:15:56.318: ERROR:   File "scripts/common/Event.py", line 45, in __call__
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/notification/listeners.py", line 190, in __onMessageReceived
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/notification/NotificationsModel.py", line 52, in addNotification
2020-03-03 17:15:56.318: ERROR:   File "scripts/common/Event.py", line 45, in __call__
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/notification/NotificationPopUpViewer.py", line 125, in __onNotificationReceived
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/notification/NotificationPopUpViewer.py", line 141, in __sendMessageForDisplay
2020-03-03 17:15:56.318: ERROR:   File "./xfw/events.py", line 71, in <lambda>
2020-03-03 17:15:56.318: ERROR:   File "res_mods/configs/xvm/py_macro\hideMessagePatterns.py", line 68, in as_appendMessageS
2020-03-03 17:15:56.318: ERROR:     base(self, data)
2020-03-03 17:15:56.318: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/meta/NotificationPopUpViewerMeta.py", line 38, in as_appendMessageS
2020-03-03 17:15:56.318: ERROR: TypeError: 'NoneType' object is not callable
2020-03-03 17:15:56.329: ERROR: [EXCEPTION] (scripts/client/account_helpers/SyncController.py, 136):
Traceback (most recent call last):
  File "scripts/client/account_helpers/SyncController.py", line 134, in __onSyncStreamComplete
  File "scripts/client/account_helpers/DossierCache.py", line 188, in <lambda>
  File "scripts/client/account_helpers/DossierCache.py", line 256, in __onGetResponse
  File "scripts/client/gui/shared/utils/requesters/DossierRequester.py", line 359, in <lambda>
  File "scripts/client/gui/shared/utils/requesters/abstract.py", line 73, in _response
  File "scripts/common/adisp.py", line 141, in callback
  File "scripts/client/gui/shared/utils/requesters/abstract.py", line 42, in request
  File "scripts/common/adisp.py", line 141, in callback
  File "scripts/common/adisp.py", line 131, in call
  File "scripts/common/adisp.py", line 188, in caller
  File "scripts/common/adisp.py", line 156, in doCall
AdispException: ('There was an error during processLicense async call.', TypeError("'NoneType' object is not callable",))

 

 

логи hideMessagePatterns.zip

----

- из боя в ангар не попал

- интерфейс ангар пропал

----

да, удалил скрипт - интерфейс появился :blink:

Link to comment
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...