Hawk1983x Posted October 16, 2023 Share Posted October 16, 2023 Помогите разобраться, почему перестал отображаться блок с {{py:sight.quantityShells}} : Цитата "shells": { "enabled": true, "updateEvent": "PY(ON_AMMO_COUNT), PY(ON_AMMO_CHANGED), PY(ON_AIM_MODE), PY(ON_BEGIN_BATTLE), ON_CURRENT_VEHICLE_DESTROYED, PY(ON_VEHICLE_MODE)", // "scaleX": -1, "x": "{{py:mode.siege?{{py:aim.mode({{py:mode.siege?339|123}},439,295)}}|{{py:aim.mode(123,239,295)}}}}", "y": "{{py:aim.y({{py:aim.mode(27,30,41)}})}}", //"rotation": 0, //"borderColor": "0x000000", "width": 100, "height": 45, "layer": "substrate", "antiAliasType": "advanced", "screenHAlign": "center", "screenVAlign": "center", "alpha" : "{{alive?{{py:aim.mode=arc?100|{{py:aim.mode=sn?100|{{py:aim.mode=str?100}}}}}}|0}}", "shadow": { "distance": 0, "angle": 45, "color": "0x000000", "alpha": 90, "blur": 2, "strength": 3 }, "textFormat": { "align": "right", "font": "$UniversCondC", "color": "{{py:sight.quantityShells<=4?#F50800|#ffffff}}", "bold": true }, "format": "<font size='19'>{{py:isBattle?{{py:sight.quantityShells?{{py:sight.quantityShells}}}}|{{py:sight.quantityShells?{{py:sight.quantityShells}}}}}}</font>" } ? Может скрипт для лесты нужен отдельный? python.log xvm.log @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 16, 2023 Share Posted October 16, 2023 25 минут назад, Hawk1983x сказал: Помогите разобраться, почему перестал отображаться блок с {{py:sight.quantityShells}} : ? Может скрипт для лесты нужен отдельный? python.log 581 kB · 0 скачиваний xvm.log 32 kB · 0 скачиваний в шапке универсальные скрипты для двух кластеров - всё работает. 2023-10-16 22:29:40: [ERROR] Traceback (most recent call last): File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 156, in process (func, deterministic) = __get_function(arg) File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 120, in __get_function (func, deterministic) = _container.get(func_name) TypeError: 'NoneType' object is not iterable arg='bst.typeCR(1)' а это отсюда @ Quote Link to comment Short link Share on other sites More sharing options...
Hawk1983x Posted October 16, 2023 Share Posted October 16, 2023 4 минуты назад, HEKPOMAHT сказал: в шапке универсальные скрипты для двух кластеров - всё работает. Я просил помочь, я не писал что он не работает у кого-то. @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 17, 2023 Author Share Posted October 17, 2023 11 часов назад, Hawk1983x сказал: Я просил помочь, я не писал что он не работает у кого-то. Вам ответили на этот вопрос: 12 часов назад, Hawk1983x сказал: Может скрипт для лесты нужен отдельный? @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 17, 2023 Author Share Posted October 17, 2023 12 часов назад, Hawk1983x сказал: {{py:isBattle?{{py:sight.quantityShells?{{py:sight.quantityShells}}}}|{{py:sight.quantityShells?{{py:sight.quantityShells}}}}}} Не совсем понятно, какая задумка данной конструкции? @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 17, 2023 Author Share Posted October 17, 2023 Эта конструкция: 12 часов назад, Hawk1983x сказал: {{alive?{{py:aim.mode=arc?100|{{py:aim.mode=sn?100|{{py:aim.mode=str?100}}}}}}|0}} Равносильна: {{alive?{{py:aim.mode?100|0}}|0}} И скорее всего так тоже будет нормально работать: {{py:aim.mode?100|0}} @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 17, 2023 Author Share Posted October 17, 2023 12 часов назад, Hawk1983x сказал: "x": "{{py:mode.siege?{{py:aim.mode({{py:mode.siege?339|123}},439,295)}}|{{py:aim.mode(123,239,295)}}}}", Тоже не понятна задумка. @ Quote Link to comment Short link Share on other sites More sharing options...
Hawk1983x Posted October 17, 2023 Share Posted October 17, 2023 1 час назад, ktulho сказал: Вам ответили на этот вопрос: На первый вопрос не ответили, почему не работает у меня макрос {{py:sight.quantityShells}} без каких либо манипуляций перестал работать. @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 17, 2023 Author Share Posted October 17, 2023 5 минут назад, Hawk1983x сказал: На первый вопрос не ответили, почему не работает у меня макрос {{py:sight.quantityShells}} без каких либо манипуляций перестал работать. Он что, написал, что ответил на все вопросы? @ Quote Link to comment Short link Share on other sites More sharing options...
SicFunzler Posted October 18, 2023 Share Posted October 18, 2023 i think py:reloadVehicle have problem pls Update I have this problem and can not shot with the TANK when i take other bulet 2023-10-18 17:04:06: [ERROR] Traceback (most recent call last): File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 100, in __load_lib code = parser.parse(__read_file(file_name), file_name) File "res_mods/mods/xfw_packages\xvm_pymacro\python\parser.py", line 78, in parse v.visit(node) File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 249, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 249, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 251, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "res_mods/mods/xfw_packages\xvm_pymacro\python\parser.py", line 67, in visit_Call if node.func.id in self.illegal_functions: AttributeError: 'Call' object has no attribute 'id' THX for help MFG SicFunzler @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 18, 2023 Share Posted October 18, 2023 @ktulho с евросервера: 4 минуты назад, HEKPOMAHT сказал: и вот ещё с ВГ: 2023-10-18 18:44:48.655: INFO: ============================= 2023-10-18 18:44:48.655: INFO: 2023-10-18 18:44:48: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-18 18:44:48.655: ERROR: Traceback (most recent call last): 2023-10-18 18:44:48.655: ERROR: File "./xfw/events.py", line 57, in __event_handler 2023-10-18 18:44:48.656: ERROR: File "./xfw/events.py", line 24, in fire 2023-10-18 18:44:48.656: ERROR: TypeError: reloading_setGunReloadTime() got an unexpected keyword argument 'clipTime' 2023-10-18 18:44:48.656: INFO: ============================= Эта походу с прицела reloading.py @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 18, 2023 Author Share Posted October 18, 2023 1 час назад, HEKPOMAHT сказал: и вот ещё с ВГ: 2023-10-18 18:44:48.655: INFO: ============================= 2023-10-18 18:44:48.655: INFO: 2023-10-18 18:44:48: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-18 18:44:48.655: ERROR: Traceback (most recent call last): 2023-10-18 18:44:48.655: ERROR: File "./xfw/events.py", line 57, in __event_handler 2023-10-18 18:44:48.656: ERROR: File "./xfw/events.py", line 24, in fire 2023-10-18 18:44:48.656: ERROR: TypeError: reloading_setGunReloadTime() got an unexpected keyword argument 'clipTime' 2023-10-18 18:44:48.656: INFO: ============================= Эта походу с прицела reloading.py Обновил скрипт reloading.py из аддона Перезарядка орудия. @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 18, 2023 Author Share Posted October 18, 2023 3 часа назад, SicFunzler сказал: i think py:reloadVehicle have problem pls Update I have this problem and can not shot with the TANK when i take other bulet 2023-10-18 17:04:06: [ERROR] Traceback (most recent call last): File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 100, in __load_lib code = parser.parse(__read_file(file_name), file_name) File "res_mods/mods/xfw_packages\xvm_pymacro\python\parser.py", line 78, in parse v.visit(node) File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 249, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 249, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 251, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "res_mods/mods/xfw_packages\xvm_pymacro\python\parser.py", line 67, in visit_Call if node.func.id in self.illegal_functions: AttributeError: 'Call' object has no attribute 'id' THX for help MFG SicFunzler Нужны файлы python.log и xvm.log @ Quote Link to comment Short link Share on other sites More sharing options...
SicFunzler Posted October 18, 2023 Share Posted October 18, 2023 (edited) 8 minutes ago, ktulho said: Нужны файлы python.log и xvm.log her the LOGS BIG THX MFG SicFunzler python.log xvm.log Edited October 18, 2023 by SicFunzler @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 18, 2023 Share Posted October 18, 2023 10 минут назад, ktulho сказал: Обновил скрипт reloading.py из аддона Перезарядка орудия. проверил на реплее: 2023-10-18 20:49:40.026: INFO: ============================= 2023-10-18 20:49:40.026: INFO: 2023-10-18 20:49:40: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-18 20:49:40.026: ERROR: Traceback (most recent call last): 2023-10-18 20:49:40.026: ERROR: File "./xfw/events.py", line 57, in __event_handler 2023-10-18 20:49:40.027: ERROR: File "./xfw/events.py", line 24, in fire 2023-10-18 20:49:40.027: ERROR: TypeError: updateVehicleGunReloadTime() takes exactly 4 arguments (5 given) 2023-10-18 20:49:40.027: INFO: ============================= @ Quote Link to comment Short link Share on other sites More sharing options...
SicFunzler Posted October 18, 2023 Share Posted October 18, 2023 13 minutes ago, ktulho said: Обновил скрипт reloading.py из аддона Перезарядка орудия. No go MFG SicFunzler @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 18, 2023 Author Share Posted October 18, 2023 5 минут назад, HEKPOMAHT сказал: проверил на реплее: 2023-10-18 20:49:40.026: INFO: ============================= 2023-10-18 20:49:40.026: INFO: 2023-10-18 20:49:40: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-18 20:49:40.026: ERROR: Traceback (most recent call last): 2023-10-18 20:49:40.026: ERROR: File "./xfw/events.py", line 57, in __event_handler 2023-10-18 20:49:40.027: ERROR: File "./xfw/events.py", line 24, in fire 2023-10-18 20:49:40.027: ERROR: TypeError: updateVehicleGunReloadTime() takes exactly 4 arguments (5 given) 2023-10-18 20:49:40.027: INFO: ============================= Ещё раз поправил reloading.py 2 @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 18, 2023 Share Posted October 18, 2023 3 минуты назад, ktulho сказал: Ещё раз поправил reloading.py проверил на двух кластерах - порядок @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted October 18, 2023 Author Share Posted October 18, 2023 6 часов назад, SicFunzler сказал: 2023-10-18 17:04:06: [ERROR] Traceback (most recent call last): File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 100, in __load_lib code = parser.parse(__read_file(file_name), file_name) File "res_mods/mods/xfw_packages\xvm_pymacro\python\parser.py", line 78, in parse v.visit(node) File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 249, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 249, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "scripts/common/Lib/ast.py", line 251, in generic_visit File "scripts/common/Lib/ast.py", line 241, in visit File "res_mods/mods/xfw_packages\xvm_pymacro\python\parser.py", line 67, in visit_Call if node.func.id in self.illegal_functions: AttributeError: 'Call' object has no attribute 'id' Проверьте на последнем build @ Quote Link to comment Short link Share on other sites More sharing options...
SicFunzler Posted October 18, 2023 Share Posted October 18, 2023 (edited) 26 minutes ago, ktulho said: Проверьте на последнем build 2023-10-19 00:08:52.805: INFO: ============================= 2023-10-19 00:08:52.805: INFO: 2023-10-19 00:08:52: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-19 00:08:52.805: ERROR: Traceback (most recent call last): 2023-10-19 00:08:52.805: ERROR: File "./xfw/events.py", line 56, in __event_handler 2023-10-19 00:08:52.812: ERROR: File "scripts/client/gui/mods/mod_SoundEventInjector.py", line 319, in updateVehicleGunReloadTime 2023-10-19 00:08:52.818: ERROR: TypeError: updateVehicleGunReloadTime() takes exactly 5 arguments (6 given) 2023-10-19 00:08:52.818: INFO: ============================= 2023-10-19 00:08:53.006: INFO: [Scaleform] Create GUI Component: 'gui/flash/battleCrosshairsApp.swf' 2023-10-19 00:08:53.008: INFO: [Scaleform] Create GUI Component: 'gui/flash/battleCrosshairsApp.swf' 2023-10-19 00:08:53.151: INFO: [Scaleform] Create GUI Component: 'gui/flash/battleVehicleMarkersApp.swf' 2023-10-19 00:08:53.727: WARNING: [Scaleform] Image 'img://../configs/xvm/SicFunzler/images/Turret/al*.png' wasn't created in ProcessImageTags 2023-10-19 00:08:54.485: WARNING: [Scaleform] An image in TextLayout is NULL 2023-10-19 00:08:54.598: WARNING: [Scaleform] Image 'img://../configs/xvm/SicFunzler/images/Turret/al*.png' wasn't created in ProcessImageTags 2023-10-19 00:08:54.688: WARNING: [Scaleform] An image in TextLayout is NULL 2023-10-19 00:08:54.701: WARNING: [Scaleform] WGSysAlloc Scaleform memory usage is increased to size: 427188 KB (usage 81%) Scaleform(default): 80 MB (15%) Scaleform (lobby): 0 MB (0%) Scaleform (battle): 336 MB (65%) 2023-10-19 00:09:20.091: INFO: [Scaleform] Create GUI Component: 'WindowGUIComponent' 2023-10-19 00:09:20.097: INFO: [Scaleform] Create GUI Component: 'TextGUIComponent' 2023-10-19 00:09:20.266: INFO: ============================= 2023-10-19 00:09:20.266: INFO: 2023-10-19 00:09:20: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-19 00:09:20.266: ERROR: Traceback (most recent call last): 2023-10-19 00:09:20.266: ERROR: File "./xfw/events.py", line 56, in __event_handler 2023-10-19 00:09:20.267: ERROR: File "scripts/client/gui/mods/mod_SoundEventInjector.py", line 319, in updateVehicleGunReloadTime 2023-10-19 00:09:20.269: ERROR: TypeError: updateVehicleGunReloadTime() takes exactly 5 arguments (6 given) 2023-10-19 00:09:20.269: INFO: ============================= 2023-10-19 00:09:30.281: INFO: ============================= 2023-10-19 00:09:30.281: INFO: 2023-10-19 00:09:30: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-19 00:09:30.281: ERROR: Traceback (most recent call last): 2023-10-19 00:09:30.281: ERROR: File "./xfw/events.py", line 56, in __event_handler 2023-10-19 00:09:30.284: ERROR: File "scripts/client/gui/mods/mod_SoundEventInjector.py", line 319, in updateVehicleGunReloadTime 2023-10-19 00:09:30.285: ERROR: TypeError: updateVehicleGunReloadTime() takes exactly 5 arguments (6 given) 2023-10-19 00:09:30.286: INFO: ============================= 2023-10-19 00:09:30.286: INFO: ============================= 2023-10-19 00:09:30.286: INFO: 2023-10-19 00:09:30: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-19 00:09:30.286: ERROR: Traceback (most recent call last): 2023-10-19 00:09:30.286: ERROR: File "./xfw/events.py", line 56, in __event_handler 2023-10-19 00:09:30.287: ERROR: File "scripts/client/gui/mods/mod_SoundEventInjector.py", line 319, in updateVehicleGunReloadTime 2023-10-19 00:09:30.288: ERROR: TypeError: updateVehicleGunReloadTime() takes exactly 5 arguments (6 given) 2023-10-19 00:09:30.288: INFO: ============================= 2023-10-19 00:09:46.025: INFO: ============================= 2023-10-19 00:09:46.025: INFO: 2023-10-19 00:09:46: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-19 00:09:46.025: ERROR: Traceback (most recent call last): 2023-10-19 00:09:46.025: ERROR: File "./xfw/events.py", line 56, in __event_handler 2023-10-19 00:09:46.026: ERROR: File "scripts/client/gui/mods/mod_SoundEventInjector.py", line 319, in updateVehicleGunReloadTime 2023-10-19 00:09:46.027: ERROR: TypeError: updateVehicleGunReloadTime() takes exactly 5 arguments (6 given) 2023-10-19 00:09:46.027: INFO: ============================= 2023-10-19 00:10:13.601: INFO: [Vehicle] __onAppearanceReady(53283767) 2023-10-19 00:10:19.192: INFO: [Vehicle] __onAppearanceReady(53283787) 2023-10-19 00:10:26.696: ERROR: [EXCEPTION] (scripts/common/Event.py, 46): Traceback (most recent call last): File "scripts/common/Event.py", line 44, in __call__ File "./xfw/events.py", line 71, in <lambda> TypeError: PlayerMessages__onShowPlayerMessageByCode() takes exactly 7 arguments (8 given) 2023-10-19 00:10:26.696: INFO: ============================= 2023-10-19 00:10:26.697: INFO: 2023-10-19 00:10:26: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-19 00:10:26.697: ERROR: Traceback (most recent call last): 2023-10-19 00:10:26.697: ERROR: File "./xfw/events.py", line 56, in __event_handler 2023-10-19 00:10:26.698: ERROR: File "scripts/client/Avatar.py", line 3988, in __onArenaVehicleKilled 2023-10-19 00:10:26.700: ERROR: File "scripts/client/gui/battle_control/controllers/msgs_ctrl.py", line 168, in showVehicleKilledMessage 2023-10-19 00:10:26.701: ERROR: File "scripts/common/Event.py", line 44, in __call__ 2023-10-19 00:10:26.703: ERROR: File "./xfw/events.py", line 71, in <lambda> 2023-10-19 00:10:26.704: ERROR: TypeError: PlayerMessages__onShowPlayerMessageByCode() takes exactly 7 arguments (8 given) 2023-10-19 00:10:26.704: INFO: ============================= 2023-10-19 00:10:41.095: INFO: [Vehicle] __onAppearanceReady(53283787) 2023-10-19 00:10:41.683: ERROR: [EXCEPTION] (scripts/common/Event.py, 46): Traceback (most recent call last): File "scripts/common/Event.py", line 44, in __call__ File "./xfw/events.py", line 71, in <lambda> TypeError: PlayerMessages__onShowPlayerMessageByCode() takes exactly 7 arguments (8 given) 2023-10-19 00:10:41.683: INFO: ============================= 2023-10-19 00:10:41.683: INFO: 2023-10-19 00:10:41: [ERROR] mods/xfw_libraries/xfw/events.pyc 2023-10-19 00:10:41.683: ERROR: Traceback (most recent call last): 2023-10-19 00:10:41.683: ERROR: File "./xfw/events.py", line 56, in __event_handler 2023-10-19 00:10:41.684: ERROR: File "scripts/client/Avatar.py", line 3988, in __onArenaVehicleKilled 2023-10-19 00:10:41.686: ERROR: File "scripts/client/gui/battle_control/controllers/msgs_ctrl.py", line 168, in showVehicleKilledMessage 2023-10-19 00:10:41.688: ERROR: File "scripts/common/Event.py", line 44, in __call__ 2023-10-19 00:10:41.690: ERROR: File "./xfw/events.py", line 71, in <lambda> 2023-10-19 00:10:41.692: ERROR: TypeError: PlayerMessages__onShowPlayerMessageByCode() takes exactly 7 arguments (8 given) 2023-10-19 00:10:41.692: INFO: ============================= Same problem python.log xvm.log Edited October 18, 2023 by SicFunzler @ 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.