Jump to content
Korean Random
ktulho

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

Recommended Posts

2 часа назад, H_E_K_P_O_M_A_H_T_ сказал:

Ну что ж, ждём тогда обновления скрипта.

Добавлю после выхода патча, а то я запутаюсь в скриптах.

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

скрипт из шапки

[0.9.21/Build: 8091]  ERROR

Цитата

2017-12-04 19:40:31.930: INFO: =============================
2017-12-04 19:40:31.930: INFO: 2017-12-04 19:40:31: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-12-04 19:40:31.930: ERROR: Traceback (most recent call last):
2017-12-04 19:40:31.930: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2017-12-04 19:40:31.930: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-12-04 19:40:31.931: ERROR:   File "res_mods/configs/xvm/py_macro\sight.py", line 127, in __onGunMarkerStateChanged
2017-12-04 19:40:31.931: ERROR:     if markerType != GUN_MARKER_TYPE.SUB:
2017-12-04 19:40:31.931: ERROR: AttributeError: type object 'GUN_MARKER_TYPE' has no attribute 'SUB'
2017-12-04 19:40:31.931: INFO: =============================

 

Share this post


Link to post

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

Исправил.

 

Цитата

2017-12-04 20:13:18.065: INFO: =============================
2017-12-04 20:13:18.065: INFO: 2017-12-04 20:13:18: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-12-04 20:13:18.065: ERROR: Traceback (most recent call last):
2017-12-04 20:13:18.065: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2017-12-04 20:13:18.066: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-12-04 20:13:18.066: ERROR:   File "res_mods/configs/xvm/py_macro\sight.py", line 481, in Vehicle_onEnterWorld
2017-12-04 20:13:18.067: ERROR:     isNotEvent = player.arenaGuiType not in [ARENA_GUI_TYPE.EVENT_BATTLES, ARENA_GUI_TYPE.EVENT_BATTLES_2]
2017-12-04 20:13:18.067: ERROR: AttributeError: class ARENA_GUI_TYPE has no attribute 'EVENT_BATTLES_2'
2017-12-04 20:13:18.067: INFO: =============================

 

глянь - может от текущего патча скрипт прикрепил.

Share this post


Link to post

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

глянь - может от текущего патча скрипт прикрепил.

Я же говорил, что запутаюсь.)) Обновил.

  • Upvote 1

Share this post


Link to post

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

@ktulho , глянь ещё разок - без изменений icon_sad.gif

Теперь точно обновил.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

увы, проверить пока нет возможности

fb7bdcadbcd49cfed0c40689ff15040c.png

отпишусь, когда сервер заработает

Share this post


Link to post

Short link
Share on other sites

скрипт для 0.9.21_CT

[0.9.21/Build: 8094]  ERROR

Цитата

2017-12-07 09:23:45.374: INFO: =============================
2017-12-07 09:23:45.374: INFO: 2017-12-07 09:23:45: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-12-07 09:23:45.374: ERROR: Traceback (most recent call last):
2017-12-07 09:23:45.374: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2017-12-07 09:23:45.374: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-12-07 09:23:45.374: ERROR:   File "res_mods/configs/xvm/py_macro\sight.py", line 483, in Vehicle_onEnterWorld
2017-12-07 09:23:45.375: ERROR:     isNotEvent = player.arenaGuiType not in [ARENA_GUI_TYPE.EVENT_BATTLES, ARENA_GUI_TYPE.EVENT_BATTLES_2]
2017-12-07 09:23:45.375: ERROR: AttributeError: class ARENA_GUI_TYPE has no attribute 'EVENT_BATTLES_2'
2017-12-07 09:23:45.375: INFO: =============================

ext_cigar.gif

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
11 часов назад, H_E_K_P_O_M_A_H_T_ сказал:

скрипт для 0.9.21_CT

Перезалил.

  • Upvote 3

Share this post


Link to post

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

Перезалил.

Прицел работает. Ошибок нет. good.gif

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

2017-12-07 21:40:31.460: ERROR: [EXCEPTION] (scripts/client/account_helpers/settings_core/options.py, 229):
Traceback (most recent call last):
  File "scripts/client/account_helpers/settings_core/options.py", line 227, in __forEach
  File "scripts/client/account_helpers/settings_core/options.py", line 304, in <lambda>
  File "scripts/client/account_helpers/settings_core/options.py", line 517, in dump
  File "scripts/client/BattleReplay.py", line 1224, in setSetting
  File "scripts/common/Event.py", line 44, in __call__
  File "scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/plugins.py", line 232, in __onSettingsChanged
ReferenceError: weakly-referenced object no longer exists

2017-12-07 21:40:31.461: ERROR: [EXCEPTION] (scripts/common/Event.py, 46):
Traceback (most recent call last):
  File "scripts/common/Event.py", line 44, in __call__

как я уже сказал, левой стороны нет или у вас уже есть решение ;)

 

MFG

SicFunzler

 

 

shot_001.jpg

Share this post


Link to post

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

как я уже сказал, левой стороны нет или у вас уже есть решение ;)

будет только в 0.9.21.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

хорошо, тогда мы ждем обновления 9.21 извините, не хочу быть плохой мыслью, может быть, вы что-то оптимизировали

 

Теперь я не спрашиваю, как глупо, как я сказал, извините

  • Upvote 1

Share this post


Link to post

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

Перезалил.

А возможно добавить угол вхождения в броню на маркере?Само значение.Есть такая возможность выудить этот параметр из клиента,маркер бронепробития же сейчас высчитывает угол?С этими новыми шведоПТ этот параметр очень роляет,приходится кумули рядить,у них порог рикошета 85",а не 70" как у ББ,БП.Если бы ты видел какой именно угол,то можно понять какой снаряд рядить.На будущее к примеру))

Edited by Slava7572

Share this post


Link to post

Short link
Share on other sites

@ktulho , привет.

Решил прокачать ПТ-САУ Швеции, и после первого боя на UDES 03 вопрос возник:

0e32c5b548df7b51aaf912fd3771b8a3.png

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

 

 

Edited by H_E_K_P_O_M_A_H_T_
очистка вложений

Share this post


Link to post

Short link
Share on other sites

Сейчас все работает, только дисплей проникновения не помогает

 

    "piercingChance": {
      "enabled": true,
      "flags": [ "alive" ],
      "updateEvent": "PY(ON_CALC_ARMOR), PY(ON_CAMERA_MODE)",
      "x": 0,
      "y": "{{py:sight.cameraMode=arc?-49|{{py:sight.cameraMode=sn?39|44}}}}",
      "width": 100,
      "height": 26,
      "screenHAlign": "center",
      "screenVAlign": "center",
      "alpha" : 100,
      "shadow": { "distance": 1, "angle": 90, "alpha": 90, "blur": 5, "strength": 3 },
      "textFormat": { "align": "center", "valign": "center" },
      "format": "<font color='{{py:sight.c_piercingChance}}' size='16'>{{py:sight.piercingActual~/}}{{py:sight.armorActual}}</font>"
    }, 

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