Jump to content
Korean Random
ktulho

Прицел (без сведения) средствами XVM

Recommended Posts

18 минут назад, 2rokk сказал:

@ktulho, подскажите пожалуйста, а есть какая-то возможность вывести в прицел информацию о разбросе орудия на 100 м?

Разброс для своей техники?

Share this post


Link to post

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

Разброс для своей техники?

да, разумеется

 

Share this post


Link to post

Short link
Share on other sites

 

04.12.2023 в 20:03, 2rokk сказал:

@ktulho, подскажите пожалуйста, а есть какая-то возможность вывести в прицел информацию о разбросе орудия на 100 м?

 

Обновлен скрипт aiming.py из аддона Сведение, добавлен макрос:

{{py:sight.dispersion}} - разброс на расстоянии 100 метров  метрах);

 

  • Upvote 3

Share this post


Link to post

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

 

 

Обновлен скрипт aiming.py из аддона Сведение, добавлен макрос:


{{py:sight.dispersion}} - разброс на расстоянии 100 метров  метрах);

 

Супер! Спасибо большое!

 

Share this post


Link to post

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

 

добавлен макрос: {{py:sight.dispersion}}

 

ещё один вопрос - как сделать отображение этого элемента только в снайперском режиме?

Share this post


Link to post

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

С помощью макроса {{py:aim.mode(v1, v2, v3)}} из аддона Режим прицела.


{{py:aim.mode=sn?{{py:sight.dispersion%1.2f}}}}

 

Большое спасибо.
значит в updateEvent   надо добавить PY(ON_AIM_MODE) ?

Share this post


Link to post

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

значит в updateEvent   надо добавить PY(ON_AIM_MODE) ?

Да.

Share this post


Link to post

Short link
Share on other sites

@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

----

На тесте у Лесты все установленные скрипты работают, ошибок в логах нет :announce:

Share this post


Link to post

Short link
Share on other sites

С последним билдом 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: =============================

 

 

  • Upvote 1

Share this post


Link to post

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

infoChargedShell.py на WG клиенте не работает:

 

Исправил. Обновил скрипт infoChargedShell.py из аддона  Информация о текущем снаряде.

  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

@ktulho у классического барабана {{py:sight.leftTime}} после выстрела показывает таймер перезарядки внутри барабана. То есть выстрелил - и таймер отчситывает условно с 3 сек. до 0 сек.

А у техники с механизмом дозарядки - таймер перезарядки внутри барабана не срабатывает, а показывает таймер зарядки текущего снаряда.

 

Можно составить такое условие - тогда срабатывает норм:

... {{py:sight.leftTimeShot=0?{{py:sight.leftTime%3.1f}}|{{py:sight.leftTimeShot%3.1f}}}}

но думаю можно переделать {{py:sight.leftTime}} (как когда-то переделывали под обычный барабан).

 

Это и двухстволок касается.

Если гемор - буду использовать эту конструкцию :hmm:

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