Jump to content
Korean Random
ktulho

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

Recommended Posts

6 минут назад, HEKPOMAHT сказал:

обнови скрипты - должно всё работать

обновил,все равно так

Share this post


Link to post

Short link
Share on other sites
Только что, bes1 сказал:

обновил,все равно так

тогда конфиг прикрепляй или хотя бы проблемнный текстовый блок :hmm:

+ логи не помешали бы.

Share this post


Link to post

Short link
Share on other sites
4 минуты назад, HEKPOMAHT сказал:

тогда конфиг прикрепляй или хотя бы проблемнный текстовый блок :hmm:

+ логи не помешали бы.

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 by bes1

Share this post


Link to post

Short link
Share on other sites
4 минуты назад, bes1 сказал:

{{py:sight.c_piercingChance}}

Цвета для макроса {{py:sight.piercingChanceColor}} настраиваются в файле sight.xc:

Share this post


Link to post

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

Цвета для макроса {{py:sight.piercingChanceColor}} настраиваются в файле sight.xc:

 Там у меня прописано так

  //цвет шанса на пробитие ({{py:sight.c_piercingChance}})
    "c_piercingChance": {
      "not_pierced":    "#FF0303",
      "little_pierced": "#FFF300",
      "great_pierced":  "#01FF01",
      "not_target":     ""
    },

Share this post


Link to post

Short link
Share on other sites
Только что, 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) в твоём блоке не нужно

Share this post


Link to post

Short link
Share on other sites
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) в твоём блоке не нужно

ок спасибо сейчас попробую

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Может ли кто-нибудь обьяснить, как с нуля установить и настроить индикатор бронепробития в xvm?

Share this post


Link to post

Short link
Share on other sites

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 by Aslain
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
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

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Да, те же проблемы, пожалуйста, помогите нам, весь мой мод, к сожалению, не без этих файлов 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 by SicFunzler

Share this post


Link to post

Short link
Share on other sites
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

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Обновил в шапке скрипты:

markerPosition.py
sphere.py
reloading.py
aiming.py

  • Upvote 6

Share this post


Link to post

Short link
Share on other sites

:biggrin:только заметил калькулятор бронипробития так и не заработал после всех манипуляция ,что выше рекомендовали.Сечас глянул сам  собой после обновы заработал ,цифры брони начали раскрашиваться в цвета в зависимости от пробития

Share this post


Link to post

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

:biggrin:только заметил калькулятор бронипробития так и не заработал после всех манипуляция ,что выше рекомендовали.Сечас глянул сам  собой после обновы заработал ,цифры брони начали раскрашиваться в цвета в зависимости от пробития

сам собой работать не будет, если не обновить старые названия.

Share this post


Link to post

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

сам собой работать не будет, если не обновить старые названия.

Ну так я тогда обновил названия и цифры не красились все равно.После обновы почемуто заработало

Share this post


Link to post

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

Ну так я тогда обновил названия и цифры не красились все равно.После обновы почемуто заработало

не работает - логи + конфиг :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...