S.N Posted June 29, 2021 Share Posted June 29, 2021 (edited) Всем добрый вечер.Обновите пожалуйста скрипт dp_background. Странно поймал ошибки в логе,потом ещё сыграл пару боёв логи чистые.Так что отбой!!! Edited June 29, 2021 by S.N @ Quote Link to comment Short link Share on other sites More sharing options...
night_dragon_on Posted June 29, 2021 Share Posted June 29, 2021 1 час назад, S.N сказал: Обновите пожалуйста скрипт https://kr.cm/f/t/7378/c/504343/ Содержимое файла должно быть таким. @ Quote Link to comment Short link Share on other sites More sharing options...
S.N Posted June 29, 2021 Author Share Posted June 29, 2021 @night_dragon_on спасибо. @ Quote Link to comment Short link Share on other sites More sharing options...
S.N Posted July 6, 2021 Author Share Posted July 6, 2021 Вот такая ошибка появляется- 2021-07-06 18:58:42.543: INFO: 2021-07-06 18:58:42: [ERROR] mods/xfw_libraries/xfw/events.pyc 2021-07-06 18:58:42.543: ERROR: Traceback (most recent call last): 2021-07-06 18:58:42.543: ERROR: File "./xfw/events.py", line 57, in __event_handler 2021-07-06 18:58:42.543: ERROR: File "./xfw/events.py", line 24, in fire 2021-07-06 18:58:42.544: ERROR: File "res_mods/configs/xvm/py_macro\dp_background.py", line 7, in _PlayerAvatar_vehicle_onEnterWorld 2021-07-06 18:58:42.545: ERROR: ServicesLocator.appLoader.getApp().graphicsOptimizationManager.switchOptimizationEnabled(False) 2021-07-06 18:58:42.545: ERROR: AttributeError: 'NoneType' object has no attribute 'switchOptimizationEnabled' @ Quote Link to comment Short link Share on other sites More sharing options...
Slava7572 Posted July 7, 2021 Share Posted July 7, 2021 20 часов назад, S.N сказал: ERROR: File "res_mods/configs/xvm/py_macro\dp_background.py", line 7, in _PlayerAvatar_vehicle_onEnterWorld ты старый скрипт юзаешь,Рома же подсказал что делать @ Quote Link to comment Short link Share on other sites More sharing options...
S.N Posted July 7, 2021 Author Share Posted July 7, 2021 (edited) @Slava7572 тот,что@night_dragon_on выложил from Avatar import PlayerAvatar from gui.shared.personality import ServicesLocator from xfw import * @registerEvent(PlayerAvatar, 'vehicle_onAppearanceReady') def vehicle_onAppearanceReady(self, vehicle) ServicesLocator.appLoader.getApp().graphicsOptimizationManager.switchOptimizationEnabled(False) он не работает. Я взял у P.S.Enot который и спрашивал у @night_dragon_on по поводу этого скрипта и у него прописано так- from Avatar import PlayerAvatar from gui.shared.personality import ServicesLocator from xfw import * @registerEvent(PlayerAvatar, 'vehicle_onAppearanceReady') def _PlayerAvatar_vehicle_onEnterWorld(self, vehicle): ServicesLocator.appLoader.getApp().graphicsOptimizationManager.switchOptimizationEnabled(False) Он работает,но сыпет иногда такие ошибки 2021-07-06 18:58:42.543: INFO: 2021-07-06 18:58:42: [ERROR] mods/xfw_libraries/xfw/events.pyc2021-07-06 18:58:42.543: ERROR: Traceback (most recent call last):2021-07-06 18:58:42.543: ERROR: File "./xfw/events.py", line 57, in __event_handler2021-07-06 18:58:42.543: ERROR: File "./xfw/events.py", line 24, in fire2021-07-06 18:58:42.544: ERROR: File "res_mods/configs/xvm/py_macro\dp_background.py", line 7, in _PlayerAvatar_vehicle_onEnterWorld2021-07-06 18:58:42.545: ERROR: ServicesLocator.appLoader.getApp().graphicsOptimizationManager.switchOptimizationEnabled(False)2021-07-06 18:58:42.545: ERROR: AttributeError: 'NoneType' object has no attribute 'switchOptimizationEnabled' Ещё раз сравнил скрипты и дописал в@night_dragon_on так def _PlayerAvatar_vehicle_onAppearanceReady(self, vehicle): заработал! От катал пару боёв ошибок вроде нет. Edited July 7, 2021 by S.N @ Quote Link to comment Short link Share on other sites More sharing options...
Slava7572 Posted July 7, 2021 Share Posted July 7, 2021 (edited) 07.07.2021 в 19:43, S.N сказал: Он работает,но сыпет иногда такие ошибки 07.07.2021 в 19:43, S.N сказал: vehicle_onEnterWorld такого быть не может,ты в скриптах запутался или тебе дали старый,сам впиши как Рома исправил и все,это же обычный редактор может ________________________________ начал клиент обновлять,действительно на реплеях,что просто vehicle_onAppearanceReady,что _PlayerAvatar_vehicle_onAppearanceReady в бою работает(т.е. основную функцию выполняет),но весь лог в ошибках,надо будет в реальном бою попробовать разные варианты.Просто у тебя в ошибке присутствовала. _____________________ В бою то же самое,функцию выполняет в обоих вариантах,но ошибки все равно рисует 2021-07-18 23:07:04.256: INFO: ============================= 2021-07-18 23:07:04.256: INFO: 2021-07-18 23:07:04: [ERROR] mods/xfw_libraries/xfw/events.pyc 2021-07-18 23:07:04.256: ERROR: Traceback (most recent call last): 2021-07-18 23:07:04.256: ERROR: File "./xfw/events.py", line 57, in __event_handler 2021-07-18 23:07:04.257: ERROR: File "./xfw/events.py", line 24, in fire 2021-07-18 23:07:04.257: ERROR: File "res_mods/configs/xvm/py_macro\dp_background.py", line 7, in vehicle_onAppearanceReady 2021-07-18 23:07:04.257: ERROR: ServicesLocator.appLoader.getApp().graphicsOptimizationManager.switchOptimizationEnabled(False) 2021-07-18 23:07:04.257: ERROR: AttributeError: 'NoneType' object has no attribute 'switchOptimizationEnabled' 2021-07-18 23:07:04.257: INFO: ============================= c _PlayerAvatar_vehicle_onAppearanceReady то же самое(не считая ошибки с _PlayerAvatar_),но все остальное идентично. 2021-07-19 21:49:57.076: INFO: ============================= 2021-07-19 21:49:57.076: INFO: 2021-07-19 21:49:57: [ERROR] mods/xfw_libraries/xfw/events.pyc 2021-07-19 21:49:57.076: ERROR: Traceback (most recent call last): 2021-07-19 21:49:57.076: ERROR: File "./xfw/events.py", line 57, in __event_handler 2021-07-19 21:49:57.076: ERROR: File "./xfw/events.py", line 24, in fire 2021-07-19 21:49:57.076: ERROR: File "res_mods/configs/xvm/py_macro\dp_background.py", line 7, in _PlayerAvatar_vehicle_onAppearanceReady 2021-07-19 21:49:57.077: ERROR: ServicesLocator.appLoader.getApp().graphicsOptimizationManager.switchOptimizationEnabled(False) 2021-07-19 21:49:57.077: ERROR: AttributeError: 'NoneType' object has no attribute 'switchOptimizationEnabled' 2021-07-19 21:49:57.077: INFO: ============================= __________________________________ П.С:а в рангах вообще не работает,но зато спам из лога исчез Edited September 12, 2021 by Slava7572 @ 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.