bes1 115 #536510 Posted August 24, 2023 6 минут назад, HEKPOMAHT сказал: обнови скрипты - должно всё работать обновил,все равно так Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #536511 Posted August 24, 2023 Только что, bes1 сказал: обновил,все равно так тогда конфиг прикрепляй или хотя бы проблемнный текстовый блок + логи не помешали бы. Quote Share this post Link to post Short link Share on other sites
bes1 115 #536512 Posted August 24, 2023 (edited) 4 минуты назад, HEKPOMAHT сказал: тогда конфиг прикрепляй или хотя бы проблемнный текстовый блок + логи не помешали бы. xvm.log "piercingChance": { "enabled": true, "updateEvent": "PY(ON_CALC_ARMOR), PY(ON_AIMING)", "x": 0, "y": 150, "width": 100, "height": 26, "alpha" : "{{alive?100|0}}", "screenHAlign": "center", "screenVAlign": "center", "shadow": { "distance": 1, "angle": 90, "alpha": 90, "blur": 5, "strength": 3 }, "textFormat": { "align": "center", "valign": "center" }, "format": "<font color='{{py:sight.c_piercingChance}}' size='18'>{{py:sight.piercingActual}} {{py:sight.piercingActual?/|}} {{py:sight.armorActual}}</font>" } Edited August 24, 2023 by bes1 Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #536513 Posted August 24, 2023 4 минуты назад, bes1 сказал: {{py:sight.c_piercingChance}} Цвета для макроса {{py:sight.piercingChanceColor}} настраиваются в файле sight.xc: Quote Share this post Link to post Short link Share on other sites
bes1 115 #536514 Posted August 24, 2023 8 минут назад, HEKPOMAHT сказал: Цвета для макроса {{py:sight.piercingChanceColor}} настраиваются в файле sight.xc: Там у меня прописано так //цвет шанса на пробитие ({{py:sight.c_piercingChance}}) "c_piercingChance": { "not_pierced": "#FF0303", "little_pierced": "#FFF300", "great_pierced": "#01FF01", "not_target": "" }, Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #536515 Posted August 24, 2023 Только что, bes1 сказал: Там у меня прописано так //цвет шанса на пробитие ({{py:sight.c_piercingChance}}) "c_piercingChance": { "not_pierced": "#FF0303", "little_pierced": "#FFF300", "great_pierced": "#01FF01", "not_target": "" }, Цвета для макроса {{py:sight.piercingChanceColor}} настраиваются в файле sight.xc: //цвет шанса на пробитие ({{py:sight.piercingChanceColor}}) "c:piercingChance": { "not_pierced": "#E82929", "little_pierced": "#E1C300", "great_pierced": "#2ED12F", "not_target": "" }, и PY(ON_AIMING) в твоём блоке не нужно Quote Share this post Link to post Short link Share on other sites
bes1 115 #536518 Posted August 24, 2023 23 минуты назад, HEKPOMAHT сказал: Цвета для макроса {{py:sight.piercingChanceColor}} настраиваются в файле sight.xc: //цвет шанса на пробитие ({{py:sight.piercingChanceColor}}) "c:piercingChance": { "not_pierced": "#E82929", "little_pierced": "#E1C300", "great_pierced": "#2ED12F", "not_target": "" }, и PY(ON_AIMING) в твоём блоке не нужно ок спасибо сейчас попробую 1 Quote Share this post Link to post Short link Share on other sites
Mizafix 0 #536557 Posted August 27, 2023 Может ли кто-нибудь обьяснить, как с нуля установить и настроить индикатор бронепробития в xvm? Quote Share this post Link to post Short link Share on other sites
Aslain 403 #536642 Posted September 6, 2023 (edited) WG 1.22: 2023-09-06 08:49:18.362: INFO: ============================= 2023-09-06 08:49:18.362: INFO: 2023-09-06 08:49:18: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-09-06 08:49:18.362: ERROR: Traceback (most recent call last): 2023-09-06 08:49:18.362: ERROR: File "./xfw/events.py", line 57, in __event_handler 2023-09-06 08:49:18.366: ERROR: File "./xfw/events.py", line 24, in fire 2023-09-06 08:49:18.369: ERROR: File "res_mods/configs/xvm/py_macro\aiming.py", line 53, in aiming_getOwnVehicleShotDispersionAngle 2023-09-06 08:49:18.369: ERROR: aimingStartTime, aimingFactor, shotDispMultiplierFactor, _1, _2, _3, _4, aimingTime = self._PlayerAvatar__aimingInfo 2023-09-06 08:49:18.369: ERROR: ValueError: need more than 4 values to unpack 2023-09-06 08:49:18.369: INFO: ============================= 2023-09-06 08:49:52.703: ERROR: [EXCEPTION] (scripts/common/Event.py, 46): Traceback (most recent call last): File "scripts/common/Event.py", line 44, in __call__ File "scripts/client/Avatar.py", line 3966, in __onArenaPeriodChange File "scripts/client/Avatar.py", line 3751, in __setIsOnArena File "scripts/client/VehicleGunRotator.py", line 183, in start File "scripts/client/VehicleGunRotator.py", line 688, in __updateGunMarker File "./xfw/events.py", line 71, in <lambda> File "res_mods/configs/xvm/py_macro\sphere.py", line 120, in _VehicleGunRotator__getGunMarkerPosition endPos, direction, markerDiameter, idealMarkerDiameter, collData = base(self, shotPos, shotVec, dispersionAngles) File "./xfw/events.py", line 71, in <lambda> File "res_mods/configs/xvm/py_macro\markerPosition.py", line 99, in _VehicleGunRotator__getGunMarkerPosition return base(self, shotPos, shotVec, dispersionAngles) File "scripts/client/VehicleGunRotator.py", line 966, in __getGunMarkerPosition TypeError: 'NoneType' object has no attribute '__getitem__' 2023-09-06 08:49:52.703: ERROR: Traceback (most recent call last): 2023-09-06 08:49:52.703: ERROR: File "scripts/client/Avatar.py", line 2606, in updateArena 2023-09-06 08:49:52.703: ERROR: File "scripts/client_common/ClientArena.py", line 352, in update 2023-09-06 08:49:52.703: ERROR: File "scripts/client_common/ClientArena.py", line 530, in __onPeriodInfoUpdate 2023-09-06 08:49:52.703: ERROR: File "scripts/common/Event.py", line 44, in __call__ 2023-09-06 08:49:52.703: ERROR: File "scripts/client/Avatar.py", line 3966, in __onArenaPeriodChange 2023-09-06 08:49:52.703: ERROR: File "scripts/client/Avatar.py", line 3751, in __setIsOnArena 2023-09-06 08:49:52.703: ERROR: File "scripts/client/VehicleGunRotator.py", line 183, in start 2023-09-06 08:49:52.703: ERROR: File "scripts/client/VehicleGunRotator.py", line 688, in __updateGunMarker 2023-09-06 08:49:52.703: ERROR: File "./xfw/events.py", line 71, in <lambda> 2023-09-06 08:49:52.703: ERROR: File "res_mods/configs/xvm/py_macro\sphere.py", line 120, in _VehicleGunRotator__getGunMarkerPosition 2023-09-06 08:49:52.703: ERROR: endPos, direction, markerDiameter, idealMarkerDiameter, collData = base(self, shotPos, shotVec, dispersionAngles) 2023-09-06 08:49:52.703: ERROR: File "./xfw/events.py", line 71, in <lambda> 2023-09-06 08:49:52.703: ERROR: File "res_mods/configs/xvm/py_macro\markerPosition.py", line 99, in _VehicleGunRotator__getGunMarkerPosition 2023-09-06 08:49:52.703: ERROR: return base(self, shotPos, shotVec, dispersionAngles) 2023-09-06 08:49:52.703: ERROR: File "scripts/client/VehicleGunRotator.py", line 966, in __getGunMarkerPosition 2023-09-06 08:49:52.703: ERROR: TypeError: 'NoneType' object has no attribute '__getitem__' 2023-09-06 08:50:26.199: INFO: [Vehicle] __onAppearanceReady(787473) 2023-09-06 08:50:27.899: INFO: [Vehicle] __onAppearanceReady(787464) Edited September 6, 2023 by Aslain 1 Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #536643 Posted September 6, 2023 2023-09-06 10:11:07.515: INFO: ============================= 2023-09-06 10:11:07.515: INFO: 2023-09-06 10:11:07: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-09-06 10:11:07.515: ERROR: Traceback (most recent call last): 2023-09-06 10:11:07.515: ERROR: File "./xfw/events.py", line 57, in __event_handler 2023-09-06 10:11:07.519: ERROR: File "./xfw/events.py", line 24, in fire 2023-09-06 10:11:07.522: ERROR: File "res_mods/configs/xvm/py_macro\aiming.py", line 53, in aiming_getOwnVehicleShotDispersionAngle 2023-09-06 10:11:07.522: ERROR: aimingStartTime, aimingFactor, shotDispMultiplierFactor, _1, _2, _3, _4, aimingTime = self._PlayerAvatar__aimingInfo 2023-09-06 10:11:07.522: ERROR: ValueError: need more than 4 values to unpack 2023-09-06 10:11:07.522: INFO: ============================= 2023-09-06 10:08:53: [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\reloading.py' line 42: type object 'AmmoPlugin' has no attribute '_AmmoPlugin__onShellChangeTimeUpdated' python.log xvm.log 1 Quote Share this post Link to post Short link Share on other sites
SicFunzler 57 #536646 Posted September 6, 2023 (edited) Да, те же проблемы, пожалуйста, помогите нам, весь мой мод, к сожалению, не без этих файлов PY. 2023-09-06 12:38:17: [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\reloading.py' line 42: type object 'AmmoPlugin' has no attribute '_AmmoPlugin__onShellChangeTimeUpdated'^ MFG SicFunzler Edited September 6, 2023 by SicFunzler Quote Share this post Link to post Short link Share on other sites
Kurzdor 460 #536651 Posted September 6, 2023 (edited) @HEKPOMAHT @SicFunzler Вроде исправил по ошибкам из логов. Попробуйте. Если будут ещё ошибки, то также - кидайте логи, помогу. aiming.py markerPosition.py reloading.py Edited September 6, 2023 by Kurzdor 3 Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #536652 Posted September 6, 2023 @Kurzdor прогнал по-быстрому реплей - всё работает. В логах - пусто 1 Quote Share this post Link to post Short link Share on other sites
SicFunzler 57 #536655 Posted September 6, 2023 13 minutes ago, Kurzdor said: @HEKPOMAHT @SicFunzler Вроде исправил по ошибкам из логов. Попробуйте. Если будут ещё ошибки, то также - кидайте логи, помогу. aiming.py 2.97 kB · 2 downloads markerPosition.py 4.72 kB · 2 downloads reloading.py 20.75 kB · 2 downloads THX all go now YOU ARE THE BEST !!! MFG SicFunzler 2023-09-06 16:20:57.500: ERROR: ValueError: too many values to unpack 2023-09-06 16:20:57.570: ERROR: Traceback (most recent call last): 2023-09-06 16:20:57.570: ERROR: File "scripts/client/GunMarkerComponent.py", line 14, in set_gunMarker 2023-09-06 16:20:57.571: ERROR: File "scripts/client/Avatar.py", line 2144, in updateGunMarker 2023-09-06 16:20:57.571: ERROR: File "scripts/client/VehicleGunRotator.py", line 296, in setShotPosition 2023-09-06 16:20:57.572: ERROR: File "./xfw/events.py", line 71, in <lambda> 2023-09-06 16:20:57.572: ERROR: File "res_mods/configs/xvm/py_macro\sphere.py", line 120, in _VehicleGunRotator__getGunMarkerPosition 2023-09-06 16:20:57.572: ERROR: endPos, direction, markerDiameter, idealMarkerDiameter, collData = base(self, shotPos, shotVec, dispersionAngles) pls update sphere.py MFG SicFunzler 1 Quote Share this post Link to post Short link Share on other sites
Kurzdor 460 #536658 Posted September 6, 2023 (edited) @SicFunzler updated sphere.py Edited September 6, 2023 by Kurzdor 2 Quote Share this post Link to post Short link Share on other sites
ktulho 5,791 #536737 Posted September 7, 2023 Обновил в шапке скрипты: markerPosition.py sphere.py reloading.py aiming.py 6 Quote Share this post Link to post Short link Share on other sites
bes1 115 #536818 Posted September 10, 2023 только заметил калькулятор бронипробития так и не заработал после всех манипуляция ,что выше рекомендовали.Сечас глянул сам собой после обновы заработал ,цифры брони начали раскрашиваться в цвета в зависимости от пробития Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #536820 Posted September 10, 2023 2 минуты назад, bes1 сказал: только заметил калькулятор бронипробития так и не заработал после всех манипуляция ,что выше рекомендовали.Сечас глянул сам собой после обновы заработал ,цифры брони начали раскрашиваться в цвета в зависимости от пробития сам собой работать не будет, если не обновить старые названия. Quote Share this post Link to post Short link Share on other sites
bes1 115 #536821 Posted September 10, 2023 7 минут назад, HEKPOMAHT сказал: сам собой работать не будет, если не обновить старые названия. Ну так я тогда обновил названия и цифры не красились все равно.После обновы почемуто заработало Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #536822 Posted September 10, 2023 9 минут назад, bes1 сказал: Ну так я тогда обновил названия и цифры не красились все равно.После обновы почемуто заработало не работает - логи + конфиг Quote Share this post Link to post Short link Share on other sites