Jump to content
Korean Random

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


Recommended Posts

1 час назад, ddar сказал:

Подскажите, пожалуйста, как записать условие в эту строку


"alpha" : "100",

100, если кто-то есть в прицеле

0, если никого нет в прицеле

 

Например так:

"alpha" : "{{py:sight.nameTarget?100|0}}" 

 

Link to comment
Short link
Share on other sites

  • 2 weeks later...



2017-11-13 17:35:14: [VM]    initialized
2017-11-13 17:37:36: 1275, ammoBay
2017-11-13 17:38:57: [ERROR] Traceback (most recent call last):
  File "./res_mods/mods/packages\xvm_main\python\python_macro.py", line 157, in process_python_macro
    return (func(), deterministic)
  File "./res_mods/mods/packages\xvm_main\python\python_macro.py", line 150, in <lambda>
    return (lambda: func(*args), deterministic)
  File "res_mods/configs/xvm/py_macro\sight.py", line 701, in sight_health
    return health if _health is None else int(_health * health // maxHealth)
TypeError: unsupported operand type(s) for //: 'int' and 'NoneType'
arg='sight.health(100)'
2017-11-13 17:38:57: [ERROR] Traceback (most recent call last):
  File "./res_mods/mods/packages\xvm_main\python\python_macro.py", line 157, in process_python_macro
    return (func(), deterministic)
  File "./res_mods/mods/packages\xvm_main\python\python_macro.py", line 150, in <lambda>
    return (lambda: func(*args), deterministic)
  File "res_mods/configs/xvm/py_macro\sight.py", line 701, in sight_health
    return health if _health is None else int(_health * health // maxHealth)
TypeError: unsupported operand type(s) for //: 'int' and 'NoneType'
arg='sight.health(100)'
2017-11-13 17:38:57: [ERROR] Traceback (most recent call last):
  File "./res_mods/mods/packages\xvm_main\python\python_macro.py", line 157, in process_python_macro
    return (func(), deterministic)
  File "./res_mods/mods/packages\xvm_main\python\python_macro.py", line 150, in <lambda>
    return (lambda: func(*args), deterministic)
  File "res_mods/configs/xvm/py_macro\sight.py", line 701, in sight_health
    return health if _health is None else int(_health * health // maxHealth)
TypeError: unsupported operand type(s) for //: 'int' and 'NoneType'
arg='sight.health(100)'
2017-11-13 17:39:03: [L:000] onLibLoaded: ../../res_mods/mods/packages/xvm_lobby/as_lobby/xvm_lobby.swf

сборка 8049

Link to comment
Short link
Share on other sites

8 часов назад, ktulho сказал:

обновил скрипт.

C этой версий поломалась у меня окраска суммарного урона в TotalEfficiency

Откатился - все нормально становится в TotalEfficiency

Link to comment
Short link
Share on other sites

8 часов назад, refaol сказал:

C этой версий поломалась у меня окраска суммарного урона в TotalEfficiency

Откатился - все нормально становится в TotalEfficiency

Огромное спасибо за очень полезную и исчерпывающую информацию. 

Link to comment
Short link
Share on other sites

Скрипт из шапки. Build 8067

ERROR:

Цитата

2017-11-14 17:48:24.660: INFO: =============================
2017-11-14 17:48:24.660: INFO: 2017-11-14 17:48:24: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-11-14 17:48:24.660: ERROR: Traceback (most recent call last):
2017-11-14 17:48:24.660: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2017-11-14 17:48:24.661: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-11-14 17:48:24.661: ERROR:   File "res_mods/configs/xvm/py_macro\sight.py", line 482, in Vehicle_onEnterWorld
2017-11-14 17:48:24.662: ERROR:     isNotEvent = player.arenaGuiType not in [ARENA_GUI_TYPE.EVENT_BATTLES, ARENA_GUI_TYPE.EVENT_BATTLES_2]
2017-11-14 17:48:24.662: ERROR: AttributeError: 'NoneType' object has no attribute 'arenaGuiType'
2017-11-14 17:48:24.662: INFO: =============================

Link to comment
Short link
Share on other sites

2 минуты назад, ktulho сказал:

@H_E_K_P_O_M_A_H_T_ , это постоянно вылезает, или иногда?

3 боя сыграл, в логах в каждом бою присутствует. Прицел загружается дефолтный.

> ошибка только эта, остальные все исправлены (дамаглог тоже функционирует).

> прогнал реплей - ошибка и на реплее имеется.

 

Link to comment
Short link
Share on other sites

  • 2 weeks later...

никак не разберусь, как минимально прикрутить время полета к любому прицелу?

 

 /  // {{py:sight.timeFlight}}

 

насколько актуальное описание в шапке?

 

 

 

Link to comment
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...