Jump to content
Korean Random

"Калькулятор эффективности" средствами XVM.


Recommended Posts

7 минут назад, Kotyarko_O сказал:

@P.S.Enot, возьмите скрипт из шапки.

да уже решил проблему . кстати брал из папки вчера не работало. Сегодня взял у товарища вместе сборки хвм собираем все заработало. Может что не так делал щас еще раз скачаю

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

Нет не работает серавно . ток вот работает с этим файлом battleEfficiency.py    чем он отличается я не знаю не особо в этих формулах рабираюсь

Link to comment
Short link
Share on other sites

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:

 

shot_025.jpg

 

Pls help me THX

 

MFG

SicFunzler

 

new-no go-battleEfficiency.py

old-go-battleEfficiency.py

Link to comment
Short link
Share on other sites

46 минут назад, Kotyarko_O сказал:

Вы предлагаете мне угадать?

Да нет я же выкладывал свой скрипт который у меня заработал. думал вы видели . но то что в шапке я раз пять пробовал все проверял не запустилось. надписи и цифру ноль показывает красным цветом и все. Смотрел другие файлы вроде все вроде нормально . не каких зависимостей нет. Все ровно так как вот только что парень прислал скрин. у меня также показывает

Edited by P.S.Enot
  • Upvote 1
Link to comment
Short link
Share on other sites

Все разобрался со скриптом из шапки. все заработало. Просто у меня под модпак заточен конфиг по этому не везде были прописаны пути к дополнительной папке 

Всем спасибо за помощь 

Link to comment
Short link
Share on other sites

@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.

Link to comment
Short link
Share on other sites

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

Link to comment
Short link
Share on other sites

  • 2 weeks later...
33 минуты назад, alex_alex сказал:

ваш скрипт не дает отображаться послебоевой статистике

Если бы вы прикрепили логи и скрин, это бы ускорило исправление ошибки.

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...