Jump to content
Korean Random
ktulho

Отображение активных резервов в ангаре и в бою. (XVM)

Recommended Posts

Только что, ktulho сказал:

То есть все работает, просто в лог предупреждение один раз выводиться?

да - всё работает. Раньше в логах пусто было, теперь предупреждение

Сам скрипт работает штатно :hmm:

Share this post


Link to post

Short link
Share on other sites
1 минуту назад, HEKPOMAHT сказал:

Раньше в логах пусто было, теперь предупреждение

В какой момент появляется предупреждение? При загрузке игры, или при каждом входе в ангар, или при включении резервов, или при окончании действия резервов? 

Share this post


Link to post

Short link
Share on other sites
9 минут назад, ktulho сказал:

В какой момент появляется предупреждение? При загрузке игры, или при каждом входе в ангар, или при включении резервов, или при окончании действия резервов? 

клановые резервы уже включены:

 

  • просто зашёл в ангар - предупреждений нет
  • зашёл в бой - не появилось
  • бой закончился, танк в ангаре - тоже не появилось
  • потыкал по вкладкам - не появилось

Осталось проверить, когда резервы не активированы и кто-то из клана из подключает (либо я сам включу)

----

короче причину не нашёл. Пару боёв при активированном резерве сыграешь - появляется предупреждение. Хз...

Share this post


Link to post

Short link
Share on other sites

@ktulho во втором варианте предупреждение пропадает:

 

{{py:bst.typeCR(1)?<img src='cfg://.../{{py:bst.leftTimeMinCR(1)<1?clan|empty}}.png'>}}

{{py:bst.typeCR(1)?{{py:bst.leftTimeMinCR(1)<1?<img src='cfg://.../clan.png'>|<img src='cfg://.../empty.png'>}}}}

хз :blink:

Share this post


Link to post

Short link
Share on other sites

на тесте новые резервы:

 

uomHuol.jpg

 

или я уже слепым стал, или вооще нихрена не видно... не, пожалуй буду своими пользоваться

----

а с этими нужно будет подумать, может можно сами квадратики скрывать, оставив только кнопку доступа к окну активации :ok:

Share this post


Link to post

Short link
Share on other sites

@ktulho на тесте не работает:

2022-10-09 19:28:23: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 101, in __load_lib
    __execute(code, file_name, {'xvm': XvmNamespace})
  File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 93, in __execute
    raise ExecutionException("{} at file '{}' line {}: {}".format(error_name, file_name, line_number, message))
ExecutionException: AttributeError at file 'res_mods/configs/xvm/py_macro\boosters.py' line 70: type object 'LobbyHeaderMeta' has no attribute 'as_setBoosterDataS'
2022-10-09 19:29:06: [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.countCR'
2022-10-09 19:29:06: [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.countBoosters'
2022-10-09 19:29:06: [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 117, 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
    (,)
     ^
SyntaxError: invalid syntax
arg='sum(,)'
2022-10-09 19:29:06: [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)'
2022-10-09 19:29:06: [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(2)'
2022-10-09 19:29:06: [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.type(1)'
2022-10-09 19:29:06: [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.type(2)'
2022-10-09 19:29:06: [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.type(3)'

 

----

эти уже не нужны:

    //true - скрыть иконку и количество доступных резервов
    "hideAvailableBooster": false,
    //true - скрыть иконку и время активных резервов
    "hideActiveBooster": false,

Если возможно - добавить настройку, убирающую ВГ-шный прогресс резервов:

  

15.09.2022 в 21:18, HEKPOMAHT сказал:

 

uomHuol.jpg

 

что бы была просто кнопка с доступом к резервам (как будто резервы не активированы)

вот так:

8T5iihV.jpg

Share this post


Link to post

Short link
Share on other sites

Обновление для WoT 1.18.1.0 CT.

 

boosters.py

Немного изменен смысл параметров:

    //true - скрыть количество доступных резервов
    "hideAvailableBooster": false,
    //true - скрыть иконки включенных резервов
    "hideActiveBooster": false,

 

Edited by ktulho
  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

@ktulho работает, но при "hideActiveBooster": true и активации резервов пропадает счётчик доступных резервов:

 

BnoDDGZ.jpg

----

в конфиге нужно заменить:

"crew_xp": "Дополнительный опыт экипажа",
"free_xp": "Дополнительный свободный опыт"
->
"free_xp_and_crew_xp": "Дополнительный свободный опыт и опыт экипажа"

* точное название сам глянь

Share this post


Link to post

Short link
Share on other sites

Hello Soory for English here..

I Dont know why, but icons not shown:

 

image.thumb.png.984e345358b6d6c5e0857f04d98cc27c.png

 

As u can see i have active reserve and on the left side not shown icon only time..

 

here is my Booster xc:

 

boosters.xc

 

Any sugestion??

 

Edit:

1. Ive noticed that on the left side Icons are not those which should be.. They change sorting Criteria??

2. On The batlle Not shown Anything:image.thumb.png.d0b593e5c5892927614f5773ff0b4f5c.png

 

 

Edited by Szulson

Share this post


Link to post

Short link
Share on other sites
1 час назад, Szulson сказал:

As u can see i have active reserve and on the left side not shown icon only time..

Any sugestion??

Edit:

1. Ive noticed that on the left side Icons are not those which should be.. They change sorting Criteria??

В папке \res_mods\mods\shared_resources\xvm\res\icons\boosters\basic есть файл free_xp_and_crew_xp.png?

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

В папке \res_mods\mods\shared_resources\xvm\res\icons\boosters\basic есть файл free_xp_and_crew_xp.png?

 

:facepalmic:     Nope...

:teethhappy:      i Will check later

 

 

 

@ktulho you were right. A picture was missing.

Edited by Szulson

Share this post


Link to post

Short link
Share on other sites
2 часа назад, Prosubaru сказал:

У меня тоже пустой экран, почему по дефолту не сделали?

Уверены, что проблема в аддоне?

Edited by ktulho

Share this post


Link to post

Short link
Share on other sites

народ хэлп, может у кого остались папки с иконками из прошлых патчей, а то убрали в новом

интересует папка gui/maps/icons/boosters а конкретно вот эти две иконки

image.thumb.png.87ff26787e154281215f50aed15f39b6.png.b5eb287a9460e559d61f9c8289b0f303.png

 

ЗЫ. а вообще можно целиком папку gui/maps/icons вдруг еще что убрали/уберут, пусть валяется  на всякий случай

Share this post


Link to post

Short link
Share on other sites

1299147214_Screenshot2022-10-12201944.png.0a3442302751f6173b7bfc3244dd7642.png

 

So also the old settings go without problems you just have to rename : free_xp_and_crew_xp.png and all go SuPer

 

Big THX to ktulho

Share this post


Link to post

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