P.S.Enot 416 #445352 Posted November 19, 2018 Подскажите кто нибудь. по чему калькулятор не считает вообще одни нули все время Всем спасибо. решил проблему этим скриптом battleEfficiency.py Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #445374 Posted November 19, 2018 @P.S.Enot, возьмите скрипт из шапки. Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #445375 Posted November 19, 2018 7 минут назад, Kotyarko_O сказал: @P.S.Enot, возьмите скрипт из шапки. да уже решил проблему . кстати брал из папки вчера не работало. Сегодня взял у товарища вместе сборки хвм собираем все заработало. Может что не так делал щас еще раз скачаю Он в самом бою показывает или после боя уже. просто судя по файлам настройки у меня совсем все другое Нет не работает серавно . ток вот работает с этим файлом battleEfficiency.py чем он отличается я не знаю не особо в этих формулах рабираюсь Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #445379 Posted November 19, 2018 2 hours ago, P.S.Enot said: Нет не работает серавно . Логи нужны, конфиг тоже. Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #445380 Posted November 19, 2018 24 минуты назад, Kotyarko_O сказал: Логи нужны, конфиг тоже. А что у меня какой то не правильный конфиг или что Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #445382 Posted November 19, 2018 40 minutes ago, P.S.Enot said: А что у меня какой то не правильный конфиг или что Вы предлагаете мне угадать? Quote Share this post Link to post Short link Share on other sites
SicFunzler 57 #445383 Posted November 19, 2018 Have Problem with Live WN8 and EFF Ingame, in the Garage go TOP no problems but in Live only Red-Zero This is my script: //============================================ Live WN8 und EFF=================================================== "battleEfficiency": { "enabled": true, "updateEvent": "PY(ON_BATTLE_EFFICIENCY)", "x": 135, "y": 39, "width": 215, "height": 50, "align": "center", "screenHAlign": "left", "screenVAlign": "top", "textFormat": { "font": "$TitleFont", "size": 15 }, "shadow": { "distance": 1, "angle": 90, "color": "0x000000", "alpha": 90, "blur": 3, "strength": 2 }, "format": "WN8: <font color='{{py:efficiencyWN8Color}}'>{{py:efficiencyWN8}}</font> EFF: <font color='{{py:efficiencyEFFColor}}'>{{py:efficiencyEFF}}</font>" }, With my old go and with the new config is only Red Zero Ingame Live Exact so: Pls help me THX MFG SicFunzler new-no go-battleEfficiency.py old-go-battleEfficiency.py Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #445384 Posted November 19, 2018 (edited) 46 минут назад, Kotyarko_O сказал: Вы предлагаете мне угадать? Да нет я же выкладывал свой скрипт который у меня заработал. думал вы видели . но то что в шапке я раз пять пробовал все проверял не запустилось. надписи и цифру ноль показывает красным цветом и все. Смотрел другие файлы вроде все вроде нормально . не каких зависимостей нет. Все ровно так как вот только что парень прислал скрин. у меня также показывает Edited November 19, 2018 by P.S.Enot 1 Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #445388 Posted November 20, 2018 Скрипт из шапки (18.11.2018) бой/ангар ---- проверяйте с последним скриптом только с xvm (без других модов) Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #445389 Posted November 20, 2018 @sicfunzler , attach logs, please. Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #445390 Posted November 20, 2018 Все разобрался со скриптом из шапки. все заработало. Просто у меня под модпак заточен конфиг по этому не везде были прописаны пути к дополнительной папке Всем спасибо за помощь Quote Share this post Link to post Short link Share on other sites
SicFunzler 57 #445395 Posted November 20, 2018 Her the logs THX for help python.log xvm.log Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #445396 Posted November 20, 2018 @sicfunzler , you have an error somewhere in your config: SyntaxError: invalid syntax arg='sub(, )' 2018-11-20 11:26:36: [ERROR] Traceback (most recent call last): File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 156, in process_python_macro (func, deterministic) = get_function(arg) File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 144, in get_function args = ast.literal_eval(args_string) File "scripts/common/Lib/ast.py", line 49, in literal_eval File "scripts/common/Lib/ast.py", line 37, in parse File "<unknown>", line 1 (, ) ^ Find a "sub(, )"-string and fix it. It can be the reason of your problem. Quote Share this post Link to post Short link Share on other sites
SicFunzler 57 #445424 Posted November 20, 2018 I have find the problem in scrip and i have fix it :) But no go when i made the new-no go-battleEfficiency.py in ??? her the XVM log xvm.log Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #445428 Posted November 20, 2018 @sicfunzler , did you try without other modifications (WOT-client + XVM + this addon)? You can test it on replays. Quote Share this post Link to post Short link Share on other sites
SicFunzler 57 #445431 Posted November 20, 2018 Okay i will test it. wher came this problem: 2018-11-20 20:40:46.985: INFO: 2018-11-20 20:40:46: [ERROR] mods/xfw/python/xfw/events.pyc 2018-11-20 20:40:46.985: ERROR: Traceback (most recent call last): 2018-11-20 20:40:46.985: ERROR: File "mods/xfw/python/xfw/events.py", line 57, in __event_handler 2018-11-20 20:40:46.985: ERROR: File "mods/xfw/python/xfw/events.py", line 23, in fire 2018-11-20 20:40:46.986: ERROR: ValueError: BigWorld.delModel: Not added as a global model. THX FOR ALL MFG SicFunzler Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #445435 Posted November 20, 2018 19 minutes ago, sicfunzler said: wher came this problem This errors isn`t important. Quote Share this post Link to post Short link Share on other sites
SicFunzler 57 #445454 Posted November 21, 2018 Thx now all go !!! Have find the Problem wher with Yasenkrasen ;) now it is okay THX MFG SicFunzler Quote Share this post Link to post Short link Share on other sites
alex_alex 35 #446047 Posted November 30, 2018 ваш скрипт не дает отображаться послебоевой статистике и все равно считает не совсем правильно Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #446048 Posted November 30, 2018 33 минуты назад, alex_alex сказал: ваш скрипт не дает отображаться послебоевой статистике Если бы вы прикрепили логи и скрин, это бы ускорило исправление ошибки. Quote Share this post Link to post Short link Share on other sites