Jump to content
Korean Random
ktulho

DamageIndicator средствами XVM

Recommended Posts

6 минут назад, Antoshkaaa сказал:

@ktulho  День добрый. Возможно как-то сделать привязку координат к центру экрана?

Да.

"screenHAlign": "center",
"screenVAlign": "center",

 

P.S. Хотя, наверное я вас не правильно понял. Что вы хотите привязать к центру?

Edited by ktulho
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Обновил battleDamageIndicatorApp.swf в шапке для WoT 1.16.1.0.

  • Upvote 5

Share this post


Link to post

Short link
Share on other sites

Приветствую
А как в конфиги от Юши правильно вписать макрос? А то я как ни пробовал,  что-то да ломаю.
Последней попыткой было заменить параметры damageIndicator в markersAliveNormal.xc
работает, но ломает много чего остального

Share this post


Link to post

Short link
Share on other sites

@teamon А зачем вы меняете параметры в "markersAliveNormal.xc", к данной теме он никакого отношения не имеет.

Делайте все так, как написано в шапке. Если нет файла "battleLabelsTemplates.xc", то создаете его или берете этот. battleLabelsTemplates.xc

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
15 часов назад, Wild_RNB сказал:

Делайте все так, как написано в шапке. Если нет файла "battleLabelsTemplates.xc", то создаете его или берете этот. battleLabelsTemplates.xc

Создавал. Видимо, фигурных скобок маловато ставил. 
С вашим файлом всё робит как надо

Share this post


Link to post

Short link
Share on other sites
05.05.2022 в 21:58, ktulho сказал:

Обновил battleDamageIndicatorApp.swf в шапке для WoT 1.16.1.0.

Приветствую!

До сих пор без флэша не обойтись ?

Share this post


Link to post

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

Приветствую!

До сих пор без флэша не обойтись ?

Скорее всего не обойтись. Хотя я давно не смотрел.

  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

Обновил battleDamageIndicatorApp.swf в шапке для WoT 1.17.1.0.

  • Upvote 3

Share this post


Link to post

Short link
Share on other sites

Обновил damage_indicator.py и battleDamageIndicatorApp.swf в шапке для WoT 1.18.0.2.

  • Upvote 6

Share this post


Link to post

Short link
Share on other sites

Обновил damage_indicator.py и battleDamageIndicatorApp.swf в шапке для WoT 1.18.1.0.

  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

Broken in 1.22.0.1 WG

 

2023-09-22 08:34:14: [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: ImportError at file 'res_mods/configs/xvm/py_macro\damage_indicator.py' line 4: cannot import name _DamageIndicator

2023-09-22 08:34:20: [X:000] [XFW/XfwComponent] loadMods: Loading swf mods:
2023-09-22 08:34:20: [X:001]   xvm_battle/as_battle_classic/xvm_battle_classic.swf
2023-09-22 08:34:21: [B:002] [XFW/XfwComponent] onLibLoaded: ../res_mods/mods/xfw_packages/xvm_battle/as_battle_classic/xvm_battle_classic.swf
2023-09-22 08:34:21: [B:003] [XVM:BATTLE] processView: classicBattlePage
2023-09-22 08:34:21: [B:004] UI_fullStats
2023-09-22 08:34:21: [B:005] UI_PlayersPanel()
2023-09-22 08:34:21: [B:006] [XVM INFO]
                               XVM_VERSION=10.7.0 #0056 for WoT 1.22.0.1
                               gameRegion=EU
                               configVersion=6.1.0
                               autoReloadConfig=false
                               markers.enabled=false
                               servicesActive=true
                               xmqp=true
                               statBattle=true
2023-09-22 08:34:21: [B:007] [XFW/XfwComponent] onLibLoaded: Mod loaded: xvm_battle_classic.swf
2023-09-22 08:34:21: [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='xvm.damageIndicator'
2023-09-22 08:34:21: [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='xvm.damageIndicator_aim'

 

Share this post


Link to post

Short link
Share on other sites
12 часов назад, Aslain сказал:

Broken in 1.22.0.1 WG

Обновил в шапке скрипт. Не проверял.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
40 minutes ago, ktulho said:

Обновил в шапке скрипт. Не проверял.

Seem to work now, thank you. No errors at least.

Share this post


Link to post

Short link
Share on other sites

It seems that the indicator doesn't stay on screen for 12 seconds; instead, it appears to be around 6 seconds. I attempted to use the 'battleDamageIndicatorApp.swf' from the 1st post, but the game didn't load at all with that file. I also tried modifying the original SWF file by changing the frame rate from 24 to 10 using jpexes, but it doesn't appear to have made any difference. I've attached the original SWF file from the WG client if you'd like to take a look.

 

original battleDamageIndicatorApp.zip 

modded battleDamageIndicatorApp_modded.zip

Edited by Aslain

Share this post


Link to post

Short link
Share on other sites
11 часов назад, Aslain сказал:

Looks like the indicator doesn't stay 12 seconds on screen, more like 6.

Исправил, обновил в шапке скрипт.

  • Upvote 2

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