Jump to content
Korean Random

Сборник py_macro


Recommended Posts

  • 1 month later...

WG 1.21.1.0:

2023-07-18 15:50:44: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 101, in __load_lib
    __execute(code, file_name, {'xvm': XvmNamespace})
  File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 93, in __execute
    raise ExecutionException("{} at file '{}' line {}: {}".format(error_name, file_name, line_number, message))
ExecutionException: AttributeError at file 'res_mods/configs/xvm/py_macro\collection.py' line 42: type object 'PlayerMessages' has no attribute '_onShowPlayerMessageByCode'

 

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

16 часов назад, Aslain сказал:

WG 1.21.1.0:


2023-07-18 15:50:44: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 101, in __load_lib
    __execute(code, file_name, {'xvm': XvmNamespace})
  File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 93, in __execute
    raise ExecutionException("{} at file '{}' line {}: {}".format(error_name, file_name, line_number, message))
ExecutionException: AttributeError at file 'res_mods/configs/xvm/py_macro\collection.py' line 42: type object 'PlayerMessages' has no attribute '_onShowPlayerMessageByCode'

 

Обновил скрипт collection.py для WG 1.21.1.0. Не проверял.

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

  • 2 months later...
  • 2 weeks later...

 @ktulho на тесте всё из конфига работает, кроме ХП (до первого попадания 0 возвращает):

 

2023-10-16 14:57:29.360: INFO: =============================
2023-10-16 14:57:29.360: INFO: 2023-10-16 14:57:29: [ERROR] mods/xfw_libraries/xfw/events.pyc
2023-10-16 14:57:29.360: ERROR: Traceback (most recent call last):
2023-10-16 14:57:29.360: ERROR:   File "./xfw/events.py", line 57, in __event_handler
2023-10-16 14:57:29.361: ERROR:   File "./xfw/events.py", line 24, in fire
2023-10-16 14:57:29.361: ERROR:   File "res_mods/configs/xvm/py_macro\myHP.py", line 24, in DamagePanel__onVehicleControlling
2023-10-16 14:57:29.361: ERROR:     maxHealth = health = self._DamagePanel__maxHealth
2023-10-16 14:57:29.361: ERROR: AttributeError: 'DamagePanel' object has no attribute '_DamagePanel__maxHealth'
2023-10-16 14:57:29.361: INFO: =============================

 

Link to comment
Short link
Share on other sites

13 часов назад, HEKPOMAHT сказал:

2023-10-16 14:57:29.361: ERROR: File "res_mods/configs/xvm/py_macro\myHP.py", line 24, in DamagePanel__onVehicleControlling 2023-10-16 14:57:29.361: ERROR: maxHealth = health = self._DamagePanel__maxHealth

Предположу, что они опять занялись переименованием. Если не лень, попробуй в скрипте myHP.py в строках 17 и 24 переименовать 

self._DamagePanel__maxHealth

в

self._maxHealth

 

Link to comment
Short link
Share on other sites

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

Предположу, что они опять занялись переименованием. Если не лень, попробуй в скрипте myHP.py в строках 17 и 24 переименовать 


self._DamagePanel__maxHealth

в


self._maxHealth

 

вечером гляну.

 

Сравнительно недавно уже правили этот баг:

27.11.2022 в 10:46, HEKPOMAHT сказал:

с теста 1.19.0.0:


2022-11-27 10:39:20.709: INFO: =============================
2022-11-27 10:39:20.709: INFO: 2022-11-27 10:39:20: [ERROR] mods/xfw_libraries/xfw/events.pyc
2022-11-27 10:39:20.709: ERROR: Traceback (most recent call last):
2022-11-27 10:39:20.709: ERROR:   File "./xfw/events.py", line 57, in __event_handler
2022-11-27 10:39:20.712: ERROR:   File "./xfw/events.py", line 24, in fire
2022-11-27 10:39:20.713: ERROR:   File "res_mods/configs/xvm/py_macro\myHP.py", line 24, in DamagePanel__onVehicleControlling
2022-11-27 10:39:20.714: ERROR:     maxHealth = health = self._maxHealth
2022-11-27 10:39:20.714: ERROR: AttributeError: 'DamagePanel' object has no attribute '_maxHealth'
2022-11-27 10:39:20.714: INFO: =============================

до первого урона возвращает 0

один в один :hmm:

Link to comment
Short link
Share on other sites

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

Туда-сюда переименовывают.

до правки в 1.19.0.0:

 

FtCtoej.png

Скорее всего можно возвращать старый скрипт - будет работать :repair:

Link to comment
Short link
Share on other sites

@ktulho зашёл проверить - клиент теста что-то докачал и обновил. 

Теперь опять скрипт из шапки работает :heh:

----

с конфигом какая-то странная ошибка выскакивает:

2023-10-17 20:50:36.755: ERROR: [root] xfw_limits/onXfwCommand
Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_limits\python\__init__.py", line 104, in onXfwCommand
    handlersInvalidate("_PersonalCase__onClientChanged({'stats': 'gold'})", PersonalCase_handlers)
NameError: global name 'PersonalCase_handlers' is not defined

с дефолтом ошибки нет...

----

хотел было проверить методом исключения скриптов... тест отключили :sad:

Link to comment
Short link
Share on other sites

14 часов назад, HEKPOMAHT сказал:

с конфигом какая-то странная ошибка выскакивает:


2023-10-17 20:50:36.755: ERROR: [root] xfw_limits/onXfwCommand
Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_limits\python\__init__.py", line 104, in onXfwCommand
    handlersInvalidate("_PersonalCase__onClientChanged({'stats': 'gold'})", PersonalCase_handlers)
NameError: global name 'PersonalCase_handlers' is not defined

с дефолтом ошибки нет...

Тут надо @Mixaill позвать, он быстрее разберется.

Link to comment
Short link
Share on other sites

22 hours ago, ktulho said:

Для скрытия чата используете


"hideBattleChat":        { "enabled": true, "keyCode": 35, "modifier": "none"}

?

I mean it was always working fine, I press key defined to hide, and it was working, now they key is hidding it, I see the OFF message but some messages still showing up...

Link to comment
Short link
Share on other sites

Same Problem at collection.py

 

2023-10-18 15:02:19: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 101, in __load_lib
    __execute(code, file_name, {'xvm': XvmNamespace})
  File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 93, in __execute
    raise ExecutionException("{} at file '{}' line {}: {}".format(error_name, file_name, line_number, message))
ExecutionException: AttributeError at file 'res_mods/configs/xvm/py_macro\collection.py' line 42: type object 'PlayerMessages' has no attribute '_PlayerMessages__onShowPlayerMessageByCode'

 

 

Link to comment
Short link
Share on other sites

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

ExecutionException: AttributeError at file 'res_mods/configs/xvm/py_macro\collection.py' line 42: type object 'PlayerMessages' has no attribute '_PlayerMessages__onShowPlayerMessageByCode'

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

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

 

1 hour ago, ktulho said:

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

 

 

THX for help no more problems

 

MFG

SicFunzler

Edited by SicFunzler
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...