Jump to content
Korean Random
Kotyarko_O

battleMessages средствами XVM.

Recommended Posts

04.09.2020 в 06:28, ZloyYurich сказал:

в чат скидывал команду о перезарядке?

Если вы игрок на барабане, у вас это в крови уже должно было выработаться. Последний снаряд и ты уже жмёшь "C" машинально потому что привык. 
¯\_(ツ)_/¯

Share this post


Link to post

Short link
Share on other sites

get this error in xvm.log with 1.10.1 CT and XVM 8.6.5 0029

 

2020-10-17 14:29:54: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 136, in load_macros_lib
    execute(code, file_name, {'xvm': XvmNamespace})
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 119, in execute
    raise ExecutionException("{} at file '{}' line {}: {}".format(error_name, file_name, line_number, message))
ExecutionException: ImportError at file 'res_mods/configs/xvm/py_macro\battleMessages.py' line 14: cannot import name ViewTypes

 

 

 

 

Share this post


Link to post

Short link
Share on other sites

@Kotyarko_O обновлять под тест нужно?

с текущим скриптом ошибка:

2021-01-24 13:20:20.788: INFO: =============================
2021-01-24 13:20:20.788: INFO: 2021-01-24 13:20:20: [ERROR] mods/xfw_libraries/xfw/events.pyc
2021-01-24 13:20:20.788: ERROR: Traceback (most recent call last):
2021-01-24 13:20:20.788: ERROR:   File "./xfw/events.py", line 57, in __event_handler
2021-01-24 13:20:20.789: ERROR:   File "./xfw/events.py", line 24, in fire
2021-01-24 13:20:20.790: ERROR: TypeError: onHealthChanged() takes exactly 4 arguments (5 given)
2021-01-24 13:20:20.790: INFO: =============================

и часть функционала мода перестаёт работать... хз

тест колесо.wotreplay тест ТТ италия.wotreplay

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
9 minutes ago, HEKPOMAHT said:

обновлять под тест нужно?

Нужно)

Версия для 1.11.1.0_CT (не проверял): battleMessages.py

Edited by Kotyarko_O
  • Upvote 3

Share this post


Link to post

Short link
Share on other sites

0a68fc2727bc3feb127e52dd8e82fa30.jpg

{
  "battleMessages": {
    "enabled": false,
    "iAmSpotted": {
      ...
      "enabled": false,
      ...
      "format": "ТЕСТ ТЕСТ ТЕСТ"
    },

@Kotyarko_O в ББ спамит, не отключается. При вкл. настройках формат не меняется.

 

Может его вовсе отключить для этого режима?

 

 

ББ.wotreplay

----

проверял на реплее. Попробовал в бою - отключился.

а, стоп. Ты же вроде говорил, что нельзя проверять изменения на реплее ges_slap.gif... забыл.

Share this post


Link to post

Short link
Share on other sites
32 minutes ago, HEKPOMAHT said:

проверял на реплее. Попробовал в бою - отключился.

а, стоп. Ты же вроде говорил, что нельзя проверять изменения на реплее ges_slap.gif... забыл.

Да, в реплее сообщения записаны и мод на них не влияет.

Share this post


Link to post

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

Да, в реплее сообщения записаны и мод на них не влияет.

попробую отключить мкросом {{battletype-key}}. По идее должно отключиться. ББ - это же спецрежим вроде?

Только что, HEKPOMAHT сказал:

ББ - это же спецрежим вроде?

нашёл - "bob" :hmm:

Share this post


Link to post

Short link
Share on other sites

@Kotyarko_O не помнишь,  должен ли работать {{battletype-key}}?

"iAmSpotted": {
  "enabled": "{{battletype-key=bob?false|true}}",
  "showWhenLess": 15,

включено во всех режимах

----

"iAmSpotted": {
  "enabled": true,
  "showWhenLess": "{{battletype-key=regular?15|0}}",

отключено во всех режимах

 

хз...

Share this post


Link to post

Short link
Share on other sites
04.09.2020 в 16:44, Kotyarko_O сказал:

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

приветсвую, хотел поинтересоваться, не появилось ли время на небольшую хотелочку насчет команды после разрядки барабана?)

Share this post


Link to post

Short link
Share on other sites

@Kotyarko_O обнови для 1.13

  

21.06.2021 в 18:57, HEKPOMAHT сказал:

 


2021-06-21 18:49:51.378: INFO: =============================
2021-06-21 18:49:51.378: INFO: 2021-06-21 18:49:51: [ERROR] mods/xfw_libraries/xfw/events.pyc
2021-06-21 18:49:51.378: ERROR: Traceback (most recent call last):
2021-06-21 18:49:51.378: ERROR:   File "./xfw/events.py", line 57, in __event_handler
2021-06-21 18:49:51.379: ERROR:   File "./xfw/events.py", line 24, in fire
2021-06-21 18:49:51.380: ERROR: TypeError: showDamageFromShot() takes exactly 5 arguments (6 given)
2021-06-21 18:49:51.380: INFO: =============================

 

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

problem with the battleMessages.py

 

2022-08-31 14:13:17.366: INFO: =============================
2022-08-31 14:13:17.366: INFO: 2022-08-31 14:13:17: [ERROR] mods/xfw_libraries/xfw/events.pyc
2022-08-31 14:13:17.366: ERROR: Traceback (most recent call last):
2022-08-31 14:13:17.366: ERROR:   File "./xfw/events.py", line 57, in __event_handler
2022-08-31 14:13:17.368: ERROR:   File "./xfw/events.py", line 24, in fire
2022-08-31 14:13:17.370: ERROR:   File "res_mods/configs/xvm/py_macro\battleMessages.py", line 107, in _SixthSenseIndicator__show
2022-08-31 14:13:17.370: ERROR:     iAmSpotted()
2022-08-31 14:13:17.370: ERROR:   File "res_mods/configs/xvm/py_macro\battleMessages.py", line 98, in iAmSpotted
2022-08-31 14:13:17.371: ERROR:     message = message.replace('{{position}}', getSquarePosition())
2022-08-31 14:13:17.371: ERROR:   File "res_mods/configs/xvm/py_macro\battleMessages.py", line 53, in getSquarePosition
2022-08-31 14:13:17.371: ERROR:     relPos = positionRect - bottomLeft
2022-08-31 14:13:17.371: ERROR: TypeError: unsupported operand type(s) for -: 'tuple' and 'Math.Vector2'
2022-08-31 14:13:17.371: INFO: =============================

 

MFG

SicFunzler

  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

подтверждаю ошибку:

2022-09-01 09:42:57.506: INFO: =============================
2022-09-01 09:42:57.506: INFO: 2022-09-01 09:42:57: [ERROR] mods/xfw_libraries/xfw/events.pyc
2022-09-01 09:42:57.506: ERROR: Traceback (most recent call last):
2022-09-01 09:42:57.506: ERROR:   File "./xfw/events.py", line 57, in __event_handler
2022-09-01 09:42:57.508: ERROR:   File "./xfw/events.py", line 24, in fire
2022-09-01 09:42:57.510: ERROR:   File "res_mods/configs/xvm/py_macro\battleMessages.py", line 107, in _SixthSenseIndicator__show
2022-09-01 09:42:57.510: ERROR:     iAmSpotted()
2022-09-01 09:42:57.510: ERROR:   File "res_mods/configs/xvm/py_macro\battleMessages.py", line 98, in iAmSpotted
2022-09-01 09:42:57.510: ERROR:     message = message.replace('{{position}}', getSquarePosition())
2022-09-01 09:42:57.510: ERROR:   File "res_mods/configs/xvm/py_macro\battleMessages.py", line 53, in getSquarePosition
2022-09-01 09:42:57.510: ERROR:     relPos = positionRect - bottomLeft
2022-09-01 09:42:57.510: ERROR: TypeError: unsupported operand type(s) for -: 'tuple' and 'Math.Vector2'
2022-09-01 09:42:57.510: INFO: =============================

@ktulho  глянь по возможности :smile:

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Не проверял: 

Извиняюсь, какая то древняя версия версия battleMessages.py у меня была.

Перезалил battleMessages.py

Edited by ktulho
  • Upvote 3

Share this post


Link to post

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

Не проверял

Ошибок нет.  

"Засветился в квадрате" - работает.

non_banana2.gif

Share this post


Link to post

Short link
Share on other sites

Доброго времени суток! Может кто подскажет возможно прикрутить к этому моду сообщения о помощи в случае, если ты перевернулся. В последнее время это стало актуально в связи с новой физикой.

  • Upvote 1

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...