Jump to content
Korean Random
ktulho

Сборник py_macro

Recommended Posts

03.08.2022 в 18:32, ktulho сказал:

скрипт collection.py

пару раз выскакивала:

2022-08-12 11:18:06.933: INFO: =============================
2022-08-12 11:18:06.933: INFO: 2022-08-12 11:18:06: [ERROR] mods/xfw_libraries/xfw/events.pyc
2022-08-12 11:18:06.933: ERROR: Traceback (most recent call last):
2022-08-12 11:18:06.933: ERROR:   File "./xfw/events.py", line 53, in __event_handler
2022-08-12 11:18:06.937: ERROR:   File "./xfw/events.py", line 24, in fire
2022-08-12 11:18:06.939: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 76, in _BattleFieldCtrl__setAllyMaxHealth
2022-08-12 11:18:06.939: ERROR:     updateHardening(vehicleID, newMaxHealth)
2022-08-12 11:18:06.939: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 41, in updateHardening
2022-08-12 11:18:06.939: ERROR:     players[vehicle.publicInfo.name]['hardening'] = 'hardening' if newMaxHealth >= int(vehicle.typeDescriptor.maxHealth * 1.08) else None
2022-08-12 11:18:06.939: ERROR: KeyError: 'SEVER_374'
2022-08-12 11:18:06.939: INFO: =============================

 

Share this post


Link to post

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

пару раз выскакивала:


2022-08-12 11:18:06.933: INFO: =============================
2022-08-12 11:18:06.933: INFO: 2022-08-12 11:18:06: [ERROR] mods/xfw_libraries/xfw/events.pyc
2022-08-12 11:18:06.933: ERROR: Traceback (most recent call last):
2022-08-12 11:18:06.933: ERROR:   File "./xfw/events.py", line 53, in __event_handler
2022-08-12 11:18:06.937: ERROR:   File "./xfw/events.py", line 24, in fire
2022-08-12 11:18:06.939: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 76, in _BattleFieldCtrl__setAllyMaxHealth
2022-08-12 11:18:06.939: ERROR:     updateHardening(vehicleID, newMaxHealth)
2022-08-12 11:18:06.939: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 41, in updateHardening
2022-08-12 11:18:06.939: ERROR:     players[vehicle.publicInfo.name]['hardening'] = 'hardening' if newMaxHealth >= int(vehicle.typeDescriptor.maxHealth * 1.08) else None
2022-08-12 11:18:06.939: ERROR: KeyError: 'SEVER_374'
2022-08-12 11:18:06.939: INFO: =============================

 

Поправил. Обновил в шапке скрипт collection.py.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@ktulho можно ли написать скрипт, что бы при нажатии одной клавиши, назначенной в настройках на "Перезарядить кассету" начиналась перезарядка и через задержку отправлялась команда в чат "Перезаряжаюсь!"

 

То есть получается так:

  • нажал на Перезарядить кассету (клавиша С к примеру)
  • задержка
  • автоматически нажимается Перезаряжаюсь! и отправляется сообщение в чат

* если танк цикличный - то первые 2 пункта пропускаются. Срабатывает как Перезаряжаюсь! (и отправляется сообщение в чат)

 

В клиенте невозможно назначить 2 события на 1 клавишу.

 

----

c настройкой "Вкл/выкл" и если нужно с указанием клавиш, назначенных на "Перезарядить кассету" и "Перезарядка!"

----

Хотя эта хотелка скорее всего относится к теме battleMessages, но автору думаю не до модов

Там что-то о перезарядке есть с барабаном:

    "clipCooldownTimeMsgOnReload": {
      // Available macroses: \ Доступные макросы:
      // {{clipReloadTime}} - clip reload time \ время перезарядки барабана
      //
      // false - disable clip cooldown time message on reload (on "C"-key) \ отключить отправку времени заряжания при перезарядке барабана (по клавише "C")
      "enabled": false,
      // Text format (will use default client command if emtpy) \ Формат текста (если пусто, будет использоваться стандартная клиентская команда)
      "format": ""
    },

хз - может это и есть то что нужно... 

 

 

Хотя чат отключён - может мод вообще не работает...

Share this post


Link to post

Short link
Share on other sites

@ktulho по заявке отбой

 

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

Хотя эта хотелка скорее всего относится к теме battleMessages, но автору думаю не до модов

Там что-то о перезарядке есть с барабаном:

Пока писал вспомнил, что Дима что-то делал с перезарядкой, но тогда я так и не понял что и для чего :hiding:

 

Теперь просто нужно отключить весь функционал аддона и оставить только "clipCooldownTimeMsgOnReload"

Share this post


Link to post

Short link
Share on other sites

@ktulho нашёл в одном месте:

2022-08-26 15:27:57.154: INFO: =============================
2022-08-26 15:27:57.154: INFO: 2022-08-26 15:27:57: [ERROR] mods/xfw_libraries/xfw/events.pyc
2022-08-26 15:27:57.154: ERROR: Traceback (most recent call last):
2022-08-26 15:27:57.154: ERROR:   File "./xfw/events.py", line 53, in __event_handler
2022-08-26 15:27:57.156: ERROR:   File "./xfw/events.py", line 24, in fire
2022-08-26 15:27:57.158: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 77, in _BattleFieldCtrl__setAllyMaxHealth
2022-08-26 15:27:57.158: ERROR:     updateHardening(vehicleID, newMaxHealth)
2022-08-26 15:27:57.158: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 41, in updateHardening
2022-08-26 15:27:57.159: ERROR:     update(vehicle)
2022-08-26 15:27:57.159: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 18, in update
2022-08-26 15:27:57.159: ERROR:     vehType = vehicle['vehicleType']
2022-08-26 15:27:57.159: ERROR: TypeError: 'Vehicle' object has no attribute '__getitem__'
2022-08-26 15:27:57.159: INFO: =============================

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
26.08.2022 в 19:32, HEKPOMAHT сказал:

@ktulho нашёл в одном месте:


2022-08-26 15:27:57.154: INFO: =============================
2022-08-26 15:27:57.154: INFO: 2022-08-26 15:27:57: [ERROR] mods/xfw_libraries/xfw/events.pyc
2022-08-26 15:27:57.154: ERROR: Traceback (most recent call last):
2022-08-26 15:27:57.154: ERROR:   File "./xfw/events.py", line 53, in __event_handler
2022-08-26 15:27:57.156: ERROR:   File "./xfw/events.py", line 24, in fire
2022-08-26 15:27:57.158: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 77, in _BattleFieldCtrl__setAllyMaxHealth
2022-08-26 15:27:57.158: ERROR:     updateHardening(vehicleID, newMaxHealth)
2022-08-26 15:27:57.158: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 41, in updateHardening
2022-08-26 15:27:57.159: ERROR:     update(vehicle)
2022-08-26 15:27:57.159: ERROR:   File "res_mods/configs/xvm/py_macro\collection.py", line 18, in update
2022-08-26 15:27:57.159: ERROR:     vehType = vehicle['vehicleType']
2022-08-26 15:27:57.159: ERROR: TypeError: 'Vehicle' object has no attribute '__getitem__'
2022-08-26 15:27:57.159: INFO: =============================

 

 

Возможно исправил. Обновлен скрипт из аддона Макросы для "ушей", маркеров и миникарты.

  • Upvote 2

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

Share this post


Link to post

Short link
Share on other sites
2 минуты назад, SicFunzler сказал:

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

вот профильная тема: battleMessages средствами XVM :announce:

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

pls update  Таймер для шестого чувства for 1.18.0.0

 

sixthSense.py

 

46d704cb99.png

 

   "sixthSenseTimer": {
      "enabled": true,
      "updateEvent": "PY(ON_SIXTH_SENSE_SHOW)",
      "x": 0,
      "y": 246,
      "width": 60,
      "height": 50,
      "screenHAlign": "center",
      "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
      "textFormat": {"align": "center", "size": 30 },
      "format": "{{py:xvm.sixthSenseTimer(10)}}"
    },

 

 

THX

 

MFG

SicFunlzer

Edited by SicFunzler

Share this post


Link to post

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

pls update  Таймер для шестого чувства for 1.18.0.0

не работает?

 

у меня норм:

EzIQb3h.jpg

Share this post


Link to post

Short link
Share on other sites

I have the problem the:

  "battleMessages": {
    "enabled": false,

wher the problem. Now all go ;)

 

MFG

SicFunzler

Edited by SicFunzler

Share this post


Link to post

Short link
Share on other sites

@ktulho есть предложение:

 

если будет желание сделать полезный мод средствами XVM - аналог винтика (ремонт и лечение экипажа) с конфигом

----

В самом моде там куча ненужного: кнопки, окна настроек и прочего. А так был бы скрипт + файл-конфиг для настроек.

Типо этого:

 

{
    "class_specific": {
        "AT-SPG": {
            "crew": [
                "loader",
                "gunner",
                "commander",
                "driver"
            ],
            "device": [
                "ammoBay",
                "gun",
                "engine",
                "turretRotator",
                "chassis"
            ]
        },
        "None": {
            "crew": [
                "commander",
                "driver",
                "loader",
                "gunner"
            ],
            "device": [
                "turretRotator",
                "ammoBay",
                "engine",
                "gun",
                "chassis"
            ]
        },
        "SPG": {
            "crew": [
                "commander",
                "loader",
                "gunner",
                "driver"
            ],
            "device": [
                "ammoBay",
                "engine",
                "gun",
                "turretRotator",
                "chassis"
            ]
        },
        "heavyTank": {
            "crew": [
                "commander",
                "loader",
                "gunner",
                "driver"
            ],
            "device": [
                "turretRotator",
                "ammoBay",
                "engine",
                "gun",
                "chassis"
            ]
        },
        "lightTank": {
            "crew": [
                "driver",
                "commander",
                "gunner",
                "loader"
            ],
            "device": [
                "engine",
                "chassis",
                "ammoBay",
                "gun",
                "turretRotator"
            ]
        },
        "mediumTank": {
            "crew": [
                "loader",
                "driver",
                "commander",
                "gunner"
            ],
            "device": [
                "turretRotator",
                "engine",
                "ammoBay",
                "gun",
                "chassis"
            ]
        }
    },

содержание можно обсудить. 

Но точно должна быть отключалка, один или два хоткея (один гуслю, второй остальное).

----

100% будет востребован :great:

  • Upvote 3

Share this post


Link to post

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

будет желание сделать полезный мод средствами XVM - аналог винтика (ремонт и лечение экипажа) с конфигом

Такие моды очень неудобно разрабатывать, приходится играть.

Share this post


Link to post

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

Такие моды очень неудобно разрабатывать, приходится играть.

да тут же не к спеху. Будет время - сделаешь заготовку, а мы будет тестить потиху.

я смотрю сам пакет ремонта repair.wotmod работает и не обновлялся аж с марта 2021. Обновляются только настроечный пакет modsettingsapi

 

Share this post


Link to post

Short link
Share on other sites
49 минут назад, sergey spb сказал:

Добрый день.

shell_damage.py есть у кого, для 1.18.0.0 ?

 

а чего Юша его не адаптировал, хотя пак с включенными маркерами уже выкатил?

Share this post


Link to post

Short link
Share on other sites
4 минуты назад, steaxch сказал:

 

а чего Юша его не адаптировал, хотя пак с включенными маркерами уже выкатил?

Пак выкатил, там не активно (галочку не поставить, чтобы скачать маркеры).

Edited by sergey spb

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