ktulho 5,790 #538832 Posted December 4, 2023 18 минут назад, 2rokk сказал: @ktulho, подскажите пожалуйста, а есть какая-то возможность вывести в прицел информацию о разбросе орудия на 100 м? Разброс для своей техники? Quote Share this post Link to post Short link Share on other sites
2rokk 79 #538834 Posted December 4, 2023 4 часа назад, ktulho сказал: Разброс для своей техники? да, разумеется Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #538978 Posted December 8, 2023 (edited) 04.12.2023 в 16:14, Aslain сказал: Yup, this fixed all errors in logs, the bots however have 0.0sec reload, is it possible to display their static reload at all? https://kr.cm/f/t/39885/c/538977/ Edited December 8, 2023 by ktulho Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #538980 Posted December 8, 2023 04.12.2023 в 20:03, 2rokk сказал: @ktulho, подскажите пожалуйста, а есть какая-то возможность вывести в прицел информацию о разбросе орудия на 100 м? Обновлен скрипт aiming.py из аддона Сведение, добавлен макрос: {{py:sight.dispersion}} - разброс на расстоянии 100 метров (в метрах); 3 Quote Share this post Link to post Short link Share on other sites
2rokk 79 #538987 Posted December 8, 2023 47 минут назад, ktulho сказал: Обновлен скрипт aiming.py из аддона Сведение, добавлен макрос: {{py:sight.dispersion}} - разброс на расстоянии 100 метров (в метрах); Супер! Спасибо большое! Quote Share this post Link to post Short link Share on other sites
2rokk 79 #538989 Posted December 8, 2023 3 часа назад, ktulho сказал: добавлен макрос: {{py:sight.dispersion}} ещё один вопрос - как сделать отображение этого элемента только в снайперском режиме? Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #538991 Posted December 9, 2023 С помощью макроса {{py:aim.mode(v1, v2, v3)}} из аддона Режим прицела. {{py:aim.mode=sn?{{py:sight.dispersion%1.2f}}}} Quote Share this post Link to post Short link Share on other sites
2rokk 79 #539000 Posted December 9, 2023 4 часа назад, ktulho сказал: С помощью макроса {{py:aim.mode(v1, v2, v3)}} из аддона Режим прицела. {{py:aim.mode=sn?{{py:sight.dispersion%1.2f}}}} Большое спасибо. значит в updateEvent надо добавить PY(ON_AIM_MODE) ? Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #539002 Posted December 9, 2023 11 минут назад, 2rokk сказал: значит в updateEvent надо добавить PY(ON_AIM_MODE) ? Да. Quote Share this post Link to post Short link Share on other sites
2rokk 79 #539003 Posted December 9, 2023 Благодарю Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #540254 Posted March 3 @ktulho с теста WG: 2024-03-03 18:37:54.389: INFO: ============================= 2024-03-03 18:37:54.389: INFO: 2024-03-03 18:37:54: [ERROR] mods/xfw_libraries/xfw/events.pyc 2024-03-03 18:37:54.389: ERROR: Traceback (most recent call last): 2024-03-03 18:37:54.389: ERROR: File "./xfw/events.py", line 60, in __event_handler 2024-03-03 18:37:54.389: DEBUG: [DEBUG] (scripts/client/account_helpers/CustomFilesCache.py, 298): readRemoteFile, there is no file in cache. ('http://ce-ct.worldoftanks.net/dcont/clans/emblems/500220553/emblem_64x64_tank.png',) 2024-03-03 18:37:54.391: ERROR: File "./xfw/events.py", line 27, in fire 2024-03-03 18:37:54.392: ERROR: File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 168, in infoChargedShell_onShellsAdded 2024-03-03 18:37:54.393: ERROR: shellsUpdatedOrAdd(intCD, quantity) 2024-03-03 18:37:54.393: ERROR: File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 152, in shellsUpdatedOrAdd 2024-03-03 18:37:54.393: ERROR: updateCurrentShell(intCD, ammoCtrl) 2024-03-03 18:37:54.393: ERROR: File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 131, in updateCurrentShell 2024-03-03 18:37:54.393: ERROR: damage = shotDescr.damage[0] 2024-03-03 18:37:54.393: ERROR: AttributeError: 'Shell' object has no attribute 'damage' 2024-03-03 18:37:54.393: INFO: ============================= 2024-03-03 19:09:17.864: INFO: ============================= 2024-03-03 19:09:17.864: INFO: 2024-03-03 19:09:17: [ERROR] mods/xfw_libraries/xfw/events.pyc 2024-03-03 19:09:17.864: ERROR: Traceback (most recent call last): 2024-03-03 19:09:17.864: ERROR: File "./xfw/events.py", line 60, in __event_handler 2024-03-03 19:09:17.864: ERROR: File "./xfw/events.py", line 27, in fire 2024-03-03 19:09:17.865: ERROR: File "res_mods/configs/xvm/py_macro\reloading.py", line 240, in updateVehicleGunReloadTime 2024-03-03 19:09:17.865: ERROR: autoReloading(timeLeft, baseTime) 2024-03-03 19:09:17.865: ERROR: File "res_mods/configs/xvm/py_macro\reloading.py", line 110, in autoReloading 2024-03-03 19:09:17.865: ERROR: _currentReloadTimeInClip = autoReloadTimes[quantityInClipShells] 2024-03-03 19:09:17.865: ERROR: TypeError: list indices must be integers, not NoneType 2024-03-03 19:09:17.865: INFO: ============================= 2024-03-03 19:09:55.545: INFO: ============================= 2024-03-03 19:09:55.545: INFO: 2024-03-03 19:09:55: [ERROR] mods/xfw_libraries/xfw/events.pyc 2024-03-03 19:09:55.545: ERROR: Traceback (most recent call last): 2024-03-03 19:09:55.545: ERROR: File "./xfw/events.py", line 60, in __event_handler 2024-03-03 19:09:55.545: ERROR: File "./xfw/events.py", line 27, in fire 2024-03-03 19:09:55.545: ERROR: File "res_mods/configs/xvm/py_macro\reloading.py", line 195, in __onGunAutoReloadTimeSet 2024-03-03 19:09:55.545: ERROR: autoReloading(state.getActualValue(), state.getBaseValue()) 2024-03-03 19:09:55.545: ERROR: File "res_mods/configs/xvm/py_macro\reloading.py", line 110, in autoReloading 2024-03-03 19:09:55.545: ERROR: _currentReloadTimeInClip = autoReloadTimes[quantityInClipShells] 2024-03-03 19:09:55.545: ERROR: TypeError: list indices must be integers, not NoneType 2024-03-03 19:09:55.545: INFO: ============================= 2024-03-03 19:10:43.242: INFO: ============================= 2024-03-03 19:10:43.242: INFO: 2024-03-03 19:10:43: [ERROR] mods/xfw_libraries/xfw/events.pyc 2024-03-03 19:10:43.242: ERROR: Traceback (most recent call last): 2024-03-03 19:10:43.242: ERROR: File "./xfw/events.py", line 60, in __event_handler 2024-03-03 19:10:43.242: ERROR: File "./xfw/events.py", line 27, in fire 2024-03-03 19:10:43.242: ERROR: File "res_mods/configs/xvm/py_macro\reloading.py", line 195, in __onGunAutoReloadTimeSet 2024-03-03 19:10:43.242: ERROR: autoReloading(state.getActualValue(), state.getBaseValue()) 2024-03-03 19:10:43.242: ERROR: File "res_mods/configs/xvm/py_macro\reloading.py", line 110, in autoReloading 2024-03-03 19:10:43.242: ERROR: _currentReloadTimeInClip = autoReloadTimes[quantityInClipShells] 2024-03-03 19:10:43.242: ERROR: TypeError: list indices must be integers, not NoneType 2024-03-03 19:10:43.242: INFO: ============================= вот ещё логи с нескольких боёв: python.log xvm.log ---- На тесте у Лесты все установленные скрипты работают, ошибок в логах нет Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #540348 Posted March 6 С последним билдом reloading.py работает без ошибок infoChargedShell.py на WG клиенте не работает: 03.03.2024 в 18:52, HEKPOMAHT сказал: 2024-03-03 18:37:54.389: INFO: ============================= 2024-03-03 18:37:54.389: INFO: 2024-03-03 18:37:54: [ERROR] mods/xfw_libraries/xfw/events.pyc 2024-03-03 18:37:54.389: ERROR: Traceback (most recent call last): 2024-03-03 18:37:54.389: ERROR: File "./xfw/events.py", line 60, in __event_handler 2024-03-03 18:37:54.389: DEBUG: [DEBUG] (scripts/client/account_helpers/CustomFilesCache.py, 298): readRemoteFile, there is no file in cache. ('http://ce-ct.worldoftanks.net/dcont/clans/emblems/500220553/emblem_64x64_tank.png',) 2024-03-03 18:37:54.391: ERROR: File "./xfw/events.py", line 27, in fire 2024-03-03 18:37:54.392: ERROR: File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 168, in infoChargedShell_onShellsAdded 2024-03-03 18:37:54.393: ERROR: shellsUpdatedOrAdd(intCD, quantity) 2024-03-03 18:37:54.393: ERROR: File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 152, in shellsUpdatedOrAdd 2024-03-03 18:37:54.393: ERROR: updateCurrentShell(intCD, ammoCtrl) 2024-03-03 18:37:54.393: ERROR: File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 131, in updateCurrentShell 2024-03-03 18:37:54.393: ERROR: damage = shotDescr.damage[0] 2024-03-03 18:37:54.393: ERROR: AttributeError: 'Shell' object has no attribute 'damage' 2024-03-03 18:37:54.393: INFO: ============================= 1 Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #540361 Posted March 6 1 час назад, HEKPOMAHT сказал: infoChargedShell.py на WG клиенте не работает: Исправил. Обновил скрипт infoChargedShell.py из аддона Информация о текущем снаряде. 2 Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #540404 Posted March 7 @ktulho у классического барабана {{py:sight.leftTime}} после выстрела показывает таймер перезарядки внутри барабана. То есть выстрелил - и таймер отчситывает условно с 3 сек. до 0 сек. А у техники с механизмом дозарядки - таймер перезарядки внутри барабана не срабатывает, а показывает таймер зарядки текущего снаряда. Можно составить такое условие - тогда срабатывает норм: ... {{py:sight.leftTimeShot=0?{{py:sight.leftTime%3.1f}}|{{py:sight.leftTimeShot%3.1f}}}} но думаю можно переделать {{py:sight.leftTime}} (как когда-то переделывали под обычный барабан). Это и двухстволок касается. Если гемор - буду использовать эту конструкцию Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #541059 Posted April 8 с теста WG: 2024-04-08 22:34:43.879: INFO: ============================= 2024-04-08 22:34:43.879: INFO: 2024-04-08 22:34:43: [ERROR] mods/xfw_libraries/xfw/events.pyc 2024-04-08 22:34:43.879: ERROR: Traceback (most recent call last): 2024-04-08 22:34:43.879: ERROR: File "./xfw/events.py", line 60, in __event_handler 2024-04-08 22:34:43.880: ERROR: File "./xfw/events.py", line 27, in fire 2024-04-08 22:34:43.881: ERROR: TypeError: infoChargedShell_onShellsAdded() takes exactly 6 arguments (7 given) 2024-04-08 22:34:43.881: INFO: ============================= python.log 1 Quote Share this post Link to post Short link Share on other sites
Aslain 403 #541067 Posted April 9 19 hours ago, HEKPOMAHT said: с теста WG: 2024-04-08 22:34:43.879: INFO: ============================= 2024-04-08 22:34:43.879: INFO: 2024-04-08 22:34:43: [ERROR] mods/xfw_libraries/xfw/events.pyc 2024-04-08 22:34:43.879: ERROR: Traceback (most recent call last): 2024-04-08 22:34:43.879: ERROR: File "./xfw/events.py", line 60, in __event_handler 2024-04-08 22:34:43.880: ERROR: File "./xfw/events.py", line 27, in fire 2024-04-08 22:34:43.881: ERROR: TypeError: infoChargedShell_onShellsAdded() takes exactly 6 arguments (7 given) 2024-04-08 22:34:43.881: INFO: ============================= python.log 598.6 kB · 0 downloads Try: infoChargedShell.py @registerEvent(ConsumablesPanel, '_onShellsAdded') def infoChargedShell_onShellsAdded(self, intCD, descriptor, quantity, *args, **kwargs): if config.get('sight/enabled', True) and battle.isBattleTypeSupported: shellsUpdatedOrAdd(intCD, quantity) Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #541071 Posted April 9 21 час назад, HEKPOMAHT сказал: с теста WG: 2024-04-08 22:34:43.879: INFO: ============================= 2024-04-08 22:34:43.879: INFO: 2024-04-08 22:34:43: [ERROR] mods/xfw_libraries/xfw/events.pyc 2024-04-08 22:34:43.879: ERROR: Traceback (most recent call last): 2024-04-08 22:34:43.879: ERROR: File "./xfw/events.py", line 60, in __event_handler 2024-04-08 22:34:43.880: ERROR: File "./xfw/events.py", line 27, in fire 2024-04-08 22:34:43.881: ERROR: TypeError: infoChargedShell_onShellsAdded() takes exactly 6 arguments (7 given) 2024-04-08 22:34:43.881: INFO: ============================= python.log 598 kB · 0 скачиваний Исправил в шапке скрипт infoChargedShell.py. 2 Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #541072 Posted April 9 4 минуты назад, ktulho сказал: Исправил в шапке скрипт infoChargedShell.py. проверил на репке - ошибок нет Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #541091 Posted April 10 @ktulho {{py:sight.intuition}} иногда не срабатывает до начала боя, когда ещё отсчёт идёт. И на двухстволке и на цикличке встречался баг. Реплей воспроизводит. replay_last_battle.wotreplay Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #541222 Posted April 16 10.04.2024 в 18:12, HEKPOMAHT сказал: {{py:sight.intuition}} иногда не срабатывает до начала боя, когда ещё отсчёт идёт. И на двухстволке и на цикличке встречался баг. Реплей воспроизводит. вполне вероятно - это из-за бага в самом клиенте Quote Share this post Link to post Short link Share on other sites