Kurzdor Posted May 31, 2023 Share Posted May 31, 2023 @eug.ramires быстрый фикс - _PlayerMessages__onShowPlayerMessageByCode -> _onShowPlayerMessageByCode в коде 2 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted June 7, 2023 Author Share Posted June 7, 2023 Обновил скрипт в аддоне Макросы для "ушей", маркеров и миникарты. 1 @ Quote Link to comment Short link Share on other sites More sharing options...
justdj Posted June 7, 2023 Share Posted June 7, 2023 @ktulho а там случайно не PlayerMessages_onShowPlayerMessageByCode, вместо PlayerMessages__onShowPlayerMessageByCode? (одно подчеркивание) @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted June 7, 2023 Author Share Posted June 7, 2023 39 минут назад, justdj сказал: @ktulho а там случайно не PlayerMessages_onShowPlayerMessageByCode, вместо PlayerMessages__onShowPlayerMessageByCode? (одно подчеркивание) Без разницы. 1 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted June 9, 2023 Author Share Posted June 9, 2023 Исправил совместимость с WG скрипт из аддона Режим прицела. 3 @ Quote Link to comment Short link Share on other sites More sharing options...
Aslain Posted July 18, 2023 Share Posted July 18, 2023 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' 1 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted July 19, 2023 Author Share Posted July 19, 2023 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. Не проверял. 2 @ Quote Link to comment Short link Share on other sites More sharing options...
Aslain Posted October 3, 2023 Share Posted October 3, 2023 (edited) @ktulho Something is off with hideBattleChat.py, it's not hidding the chat on WG client. I didn't notice any errors in logs. python.log xvm.log Edited October 3, 2023 by Aslain @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 16, 2023 Share Posted October 16, 2023 @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: ============================= @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 17, 2023 Author Share Posted October 17, 2023 03.10.2023 в 20:03, Aslain сказал: it's not hidding the chat on WG client. Для скрытия чата используете "hideBattleChat": { "enabled": true, "keyCode": 35, "modifier": "none"} ? @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 17, 2023 Author Share Posted October 17, 2023 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 @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 17, 2023 Share Posted October 17, 2023 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 один в один @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 17, 2023 Author Share Posted October 17, 2023 Туда-сюда переименовывают. @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 17, 2023 Share Posted October 17, 2023 8 минут назад, ktulho сказал: Туда-сюда переименовывают. до правки в 1.19.0.0: Скорее всего можно возвращать старый скрипт - будет работать @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 17, 2023 Share Posted October 17, 2023 @ktulho зашёл проверить - клиент теста что-то докачал и обновил. Теперь опять скрипт из шапки работает ---- с конфигом какая-то странная ошибка выскакивает: 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 с дефолтом ошибки нет... ---- хотел было проверить методом исключения скриптов... тест отключили @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 18, 2023 Author Share Posted October 18, 2023 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 позвать, он быстрее разберется. @ Quote Link to comment Short link Share on other sites More sharing options...
Aslain Posted October 18, 2023 Share Posted October 18, 2023 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... @ Quote Link to comment Short link Share on other sites More sharing options...
SicFunzler Posted October 18, 2023 Share Posted October 18, 2023 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' @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 18, 2023 Author Share Posted October 18, 2023 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 из аддона Макросы для "ушей", маркеров и миникарты. Не проверял. 1 @ Quote Link to comment Short link Share on other sites More sharing options...
SicFunzler Posted October 18, 2023 Share Posted October 18, 2023 (edited) 1 hour ago, ktulho said: Обновил скрипт collection.py из аддона Макросы для "ушей", маркеров и миникарты. Не проверял. THX for help no more problems MFG SicFunzler Edited October 18, 2023 by SicFunzler @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.