ktulho Posted November 1, 2017 Author Share Posted November 1, 2017 1 час назад, ddar сказал: Подскажите, пожалуйста, как записать условие в эту строку "alpha" : "100", 100, если кто-то есть в прицеле 0, если никого нет в прицеле Например так: "alpha" : "{{py:sight.nameTarget?100|0}}" @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted November 1, 2017 Share Posted November 1, 2017 и событие для обновления макроса дописать нужно: "updateEvent": "PY(ON_TARGET)", @ Quote Link to comment Short link Share on other sites More sharing options...
ddar Posted November 1, 2017 Share Posted November 1, 2017 спасибо! @ Quote Link to comment Short link Share on other sites More sharing options...
fgcwsxjegcbk2014 Posted November 13, 2017 Share Posted November 13, 2017 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 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 13, 2017 Author Share Posted November 13, 2017 @fgcwsxjegcbk2014 , прикрепите полностью оба лога. @ Quote Link to comment Short link Share on other sites More sharing options...
fgcwsxjegcbk2014 Posted November 13, 2017 Share Posted November 13, 2017 12 минуты назад, ktulho сказал: @fgcwsxjegcbk2014 , прикрепите полностью оба лога. основной питон большой,,, xvm.zip python.zip @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 13, 2017 Author Share Posted November 13, 2017 Сначала вам надо разобраться с другими модами. @fgcwsxjegcbk2014 , обновил скрипт. 1 @ Quote Link to comment Short link Share on other sites More sharing options...
fgcwsxjegcbk2014 Posted November 13, 2017 Share Posted November 13, 2017 Только что, ktulho сказал: Сначала вам надо разобраться с другими модами. @fgcwsxjegcbk2014 , обновил скрипт. пытаюсь ... на предыдущей сборке не было, либо не отловил просто @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted November 13, 2017 Share Posted November 13, 2017 8 часов назад, ktulho сказал: обновил скрипт. C этой версий поломалась у меня окраска суммарного урона в TotalEfficiency Откатился - все нормально становится в TotalEfficiency @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 14, 2017 Author Share Posted November 14, 2017 8 часов назад, refaol сказал: C этой версий поломалась у меня окраска суммарного урона в TotalEfficiency Откатился - все нормально становится в TotalEfficiency Огромное спасибо за очень полезную и исчерпывающую информацию. @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted November 14, 2017 Share Posted November 14, 2017 Скрипт из шапки. 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: ============================= @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 14, 2017 Author Share Posted November 14, 2017 @H_E_K_P_O_M_A_H_T_ , это постоянно вылезает, или иногда? @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted November 14, 2017 Share Posted November 14, 2017 2 минуты назад, ktulho сказал: @H_E_K_P_O_M_A_H_T_ , это постоянно вылезает, или иногда? 3 боя сыграл, в логах в каждом бою присутствует. Прицел загружается дефолтный. > ошибка только эта, остальные все исправлены (дамаглог тоже функционирует). > прогнал реплей - ошибка и на реплее имеется. @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 14, 2017 Author Share Posted November 14, 2017 Обновил скрипт @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted November 14, 2017 Share Posted November 14, 2017 8 минут назад, ktulho сказал: Обновил скрипт всё работает, больше ошибок нет @ Quote Link to comment Short link Share on other sites More sharing options...
rommanx Posted November 24, 2017 Share Posted November 24, 2017 никак не разберусь, как минимально прикрутить время полета к любому прицелу? / // {{py:sight.timeFlight}} насколько актуальное описание в шапке? @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted November 24, 2017 Share Posted November 24, 2017 @ktulho , периодически после уничтожения: В 18.11.2017 в 14:31, H_E_K_P_O_M_A_H_T_ сказал: надпись 100% от прицела появилось (макрос {{py:sight.health(100)}}). Логи чистые. @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 24, 2017 Author Share Posted November 24, 2017 5 часов назад, H_E_K_P_O_M_A_H_T_ сказал: @ktulho , периодически после уничтожения: Исправил, наверно. @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted November 24, 2017 Share Posted November 24, 2017 2 часа назад, ktulho сказал: Исправил, наверно. ща 0% (при затоплении сейчас и раньше норм) @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 24, 2017 Author Share Posted November 24, 2017 2 минуты назад, H_E_K_P_O_M_A_H_T_ сказал: ща 0% (при затоплении сейчас и раньше норм) А что надо? Пусто? @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.