Jump to content
Korean Random

Aslain

User
  • Content Count

    733
  • Joined

  • Last visited

  • Days Won

    66

Posts posted by Aslain


  1. @ktulho

    Two problems:

    1. Why does {{v.levelPostProgress}} return 'None' when a tank has any level of Field Modifications but has not yet played any random battles? Is this intended behavior or a bug?

    2. {{v.levelPostProgress}} returns 'None' when carousel.xc "enabled": false. Let's say I would like to use this macro in the garage widgets when the carousel.xc is disabled, I cannot do it now.


  2. There is this problem, where when I have Auto scale and 4K resolution, the consumable bar is gone and only HP bar is visible:

    image.png.e30ac3cd5dd102d7f232ab79f45b44b0.png

     

     @ktulho Can this be fixed to support scale x2 (Auto) in 4K resolution, maybe other high resolutions as well? Is there universal code for all resolutions and UI scales?

     

          "consumablesPanel": {
            "$delay": 4000,
            "y": "{{py:math.sub({{py:xvm.screenHeight}}, 80)}}"
          } 

    Added "$interval": 5000 but it doesn't make any difference.


  3. Errors in xvm.log @ktulho
     

    2024-04-26 19:33:34: [ERROR] Traceback (most recent call last):
      File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 144, in process
        return (func(), deterministic)
      File "res_mods/mods/xfw_packages\xvm_pymacro\python\__init__.py", line 110, in <lambda>
        return (lambda: func(*args), deterministic)
    TypeError: math_sub() takes exactly 2 arguments (1 given)


            "format": "{{v.levelPostProgress?{{v.level=6?{{v.levelPostProgress=5?<img src='xvm://res/postprogress/Full.png'>|}}|{{py:sub({{v.level|0}},{{v.levelPostProgress}})<3?<img src='xvm://res/postprogress/Full.png'>|}}}}|}}"

     

    The same here:

     

            "format": "{{v.levelPostProgress?{{v.level=6?{{v.levelPostProgress=5?<img src='xvm://res/postprogress/Full.png'>|}}|{{py:sub({{v.level}},{{v.levelPostProgress}})<3?<img src='xvm://res/postprogress/Full.png'>|}}}}|}}"

     

     


  4. 19 hours ago, HEKPOMAHT said:

    с теста WG:

    
    2024-04-08 22:34:43.879: INFO: =============================
    2024-04-08 22:34:43.879: INFO: 2024-04-08 22:34:43: [ERROR] mods/xfw_libraries/xfw/events.pyc
    2024-04-08 22:34:43.879: ERROR: Traceback (most recent call last):
    2024-04-08 22:34:43.879: ERROR:   File "./xfw/events.py", line 60, in __event_handler
    2024-04-08 22:34:43.880: ERROR:   File "./xfw/events.py", line 27, in fire
    2024-04-08 22:34:43.881: ERROR: TypeError: infoChargedShell_onShellsAdded() takes exactly 6 arguments (7 given)
    2024-04-08 22:34:43.881: INFO: =============================

     

    python.log 598.6 kB · 0 downloads

     

    Try:

    infoChargedShell.py

    @registerEvent(ConsumablesPanel, '_onShellsAdded')
    def infoChargedShell_onShellsAdded(self, intCD, descriptor, quantity, *args, **kwargs):
        if config.get('sight/enabled', True) and battle.isBattleTypeSupported:
            shellsUpdatedOrAdd(intCD, quantity)

     


  5. On the WG XVM 1.24: 


    2024-03-05 11:57:49.944: INFO: =============================
    2024-03-05 11:57:49.944: INFO: 2024-03-05 11:57:49: [ERROR] mods/xfw_libraries/xfw/events.pyc
    2024-03-05 11:57:49.944: ERROR: Traceback (most recent call last):
    2024-03-05 11:57:49.944: ERROR:   File "./xfw/events.py", line 60, in __event_handler
    2024-03-05 11:57:49.945: ERROR:   File "./xfw/events.py", line 27, in fire
    2024-03-05 11:57:49.945: ERROR:   File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 175, in infoChargedShell_onShellsUpdated
    2024-03-05 11:57:49.945: ERROR:     shellsUpdatedOrAdd(intCD, quantity)
    2024-03-05 11:57:49.945: ERROR:   File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 152, in shellsUpdatedOrAdd
    2024-03-05 11:57:49.945: ERROR:     updateCurrentShell(intCD, ammoCtrl)
    2024-03-05 11:57:49.945: ERROR:   File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 131, in updateCurrentShell
    2024-03-05 11:57:49.945: ERROR:     damage = shotDescr.damage[0]
    2024-03-05 11:57:49.945: ERROR: AttributeError: 'Shell' object has no attribute 'damage'
    2024-03-05 11:57:49.945: INFO: =============================

     

    2024-03-05 11:59:17.836: INFO: =============================
    2024-03-05 11:59:17.836: INFO: 2024-03-05 11:59:17: [ERROR] mods/xfw_libraries/xfw/events.pyc
    2024-03-05 11:59:17.836: ERROR: Traceback (most recent call last):
    2024-03-05 11:59:17.836: ERROR:   File "./xfw/events.py", line 60, in __event_handler
    2024-03-05 11:59:17.837: ERROR:   File "./xfw/events.py", line 27, in fire
    2024-03-05 11:59:17.837: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 1124, in Vehicle_showDamageFromShot
    2024-03-05 11:59:17.837: ERROR:     data.showDamageFromShot(self, *args, **kwargs)
    2024-03-05 11:59:17.837: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 521, in showDamageFromShot
    2024-03-05 11:59:17.837: ERROR:     self.hitShell(attackerID, effectsIndex, damageFactor)
    2024-03-05 11:59:17.837: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 460, in hitShell
    2024-03-05 11:59:17.837: ERROR:     self.typeShell(effectsIndex)
    2024-03-05 11:59:17.837: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 427, in typeShell
    2024-03-05 11:59:17.837: ERROR:     self.data['shellDamage'] = _shell.damage[0]
    2024-03-05 11:59:17.837: ERROR: AttributeError: 'Shell' object has no attribute 'damage'
    2024-03-05 11:59:17.837: INFO: =============================

     

    2024-03-05 11:52:34: [ERROR] Traceback (most recent call last):
      File "res_mods/mods/xfw_packages\xvm_tooltips\python\__init__.py", line 383, in CommonStatsBlockConstructor_construct
        damageAvg_str = formatNumber(shot.shell.damage[0])
    AttributeError: 'Shell' object has no attribute 'damage'
     

    Example of fix:

    image.png (1519×108)


  6. W XVM jest taki bardzo rzadki, ale jednak błąd, w wyniku którego czasami w danej sesji grania w grę nie załaduje niektórych czcionek używanych w danej konfiguracji XVM, przejawia się to tym właśnie jak pokazałeś i zwykle restart gry (lub czasami windowsa) naprawia to na jakiś czas. Jeśli jednak masz tak nonstop co byś nie robił, to znaczy że problem jest inny, najczęściej brak zainstalowanej czcionki użytej w danym konfigu XVM.

    • Upvote 1
×
×
  • Create New...