Jump to content
Korean Random

PzSniper

User
  • Content Count

    30
  • Joined

  • Last visited

Posts posted by PzSniper


  1. 5 hours ago, Ress said:


    Above your post you already got your answer: "...we do not show per vehicle global ratings."

    .It's impossible to display actual wn8/eff per tank, you can try multipling mutiple macros and still won't get it accurate (only fake coloring, at best).

    There is xte and that's about only "rating" per tank there is available....and everything else is something random you put on your screen just to keeps your epeen going.  :hiding:

     

    So your best guess, aka the best formula in your opinion, is?


  2. I suspect it's related to your mod and posting my logs here. Running WOT 1.4.0.1 with xvm 8784 official, NO nightlybuild

     

    Quote

    2019-02-24 21:04:43.148: ERROR: Traceback (most recent call last):
    2019-02-24 21:04:43.148: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTabNavigator.py", line 33, in registerFlashComponent
    2019-02-24 21:04:43.148: ERROR:   File "scripts/client/gui/Scaleform/framework/entities/BaseDAAPIComponent.py", line 76, in registerFlashComponent
    2019-02-24 21:04:43.149: ERROR:   File "scripts/client/gui/Scaleform/framework/entities/DisposableEntity.py", line 63, in create
    2019-02-24 21:04:43.149: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTechniquePage.py", line 12, in _populate
    2019-02-24 21:04:43.150: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTechnique.py", line 66, in _populate
    2019-02-24 21:04:43.150: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileSection.py", line 33, in _populate
    2019-02-24 21:04:43.151: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileSection.py", line 42, in requestDossier
    2019-02-24 21:04:43.151: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTechniquePage.py", line 79, in invokeUpdate
    2019-02-24 21:04:43.151: ERROR:   File "mods/xfw/python/xfw/events.py", line 71, in <lambda>
    2019-02-24 21:04:43.152: ERROR:   File "res_mods/mods/xfw_packages\xvm_profile\python\__init__.py", line 78, in ProfileTechnique_receiveVehicleDossier
    2019-02-24 21:04:43.158: ERROR:     base(self, vehCD, accountDBID)
    2019-02-24 21:04:43.159: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTechnique.py", line 324, in _receiveVehicleDossier
    2019-02-24 21:04:43.159: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTechnique.py", line 416, in __showMarksOnGun
    2019-02-24 21:04:43.160: ERROR: TypeError: int() argument must be a string or a number, not 'NoneType'
    2019-02-24 21:04:43.250: ERROR: Traceback (most recent call last):
    2019-02-24 21:04:43.250: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileSection.py", line 42, in requestDossier
    2019-02-24 21:04:43.251: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTechniquePage.py", line 79, in invokeUpdate
    2019-02-24 21:04:43.251: ERROR:   File "mods/xfw/python/xfw/events.py", line 71, in <lambda>
    2019-02-24 21:04:43.251: ERROR:   File "res_mods/mods/xfw_packages\xvm_profile\python\__init__.py", line 78, in ProfileTechnique_receiveVehicleDossier
    2019-02-24 21:04:43.252: ERROR:     base(self, vehCD, accountDBID)
    2019-02-24 21:04:43.252: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTechnique.py", line 324, in _receiveVehicleDossier
    2019-02-24 21:04:43.252: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileTechnique.py", line 416, in __showMarksOnGun
    2019-02-24 21:04:43.253: ERROR: TypeError: int() argument must be a string or a number, not 'NoneType'

    2019-02-24 21:08:52.302: WARNING: [gui.Scaleform.framework.entities.BaseDAAPIComponent] Class with alias `teamBasesPanel` already registered in object ClassicPage[0x49c84db0]=[key=ViewKey[alias=classicBattlePage, name=classicBattlePage], scope=SimpleScope[0x1d393710]=[scopeType=view, parentScope=GlobalScope[0x1d3936d0]=[scopeType=global, parentScope=None]], state=2]. It will be rewritten.

    2019-02-24 21:15:38.059: WARNING: [gui.Scaleform.framework.managers.containers] Loading of view Hangar[0x4ce0aaf0]=[key=ViewKey[alias=hangar, name=hangar], scope=SimpleScope[0x1d393790]=[scopeType=subView, parentScope=SimpleScope[0x1d393710]=[scopeType=view, parentScope=GlobalScope[0x1d3936d0]=[scopeType=global, parentScope=None]]], state=0] is requested but the container subView is still not exist!
    2019-02-24 21:15:39.241: WARNING: [WARNING] (scripts/client/gui/game_control/ranked_battles_controller.py, 1026): Ranked Overlay windows will not be shown, received arenaBonusType:  (1,)

     

     


  3. I thought was sufficient use the  {{v.wn8effd}}   │ X │ X │ WN8 effective tank damage (avgdmg / expected_dmg) but seems it's not possible coz it show only "1" for all tanks in carousel.

     

    My goal was to show UP my actual per-ehicle WN8 and DOWN the Expected Wn8

     

    nkVJU6x4RGCOeAMx7VjETg.png

     

    i actually used in carouselNormal.xc this 2 formulasd:

     

          { "x": 158, "y": 15, "align": "right",
            "format": "<b><font face='$FieldFont' size='12' color='{{v.c_wn8effd|#C8C8B5}}'>WN8:{{py:math.mul({{v.wn8effd}},1000)%-4d|--}}</font></b>",
            "shadow": ${ "def.textFieldShadow" }
          },
    	        { "x": 158, "y": 29, "align": "right",
            "format": "<b><font face='$FieldFont' size='12' color='{{v.c_wn8effd|#C8C8B5}}' alpha='#B2'>WN8Exp:{{v.wn8expd%-4d}}</font></b>",
            "shadow": ${ "def.textFieldShadow" }
          },

    Is that any good?


  4. Ok i fixed it, just forgot a comma after "null,"

     

    How here's my color scheme:

     "damage": {
          // Format: src_dst_type.
          // Src:  ally, squadman, enemy, unknown, player.
          // Dst:  ally, squadman, allytk, enemytk, enemy.
          // Type: hit, kill, blowup.
          // ----
          // Формат: источник_получатель_тип.
          // Источник:   ally - союзник, squadman - взводный, enemy - противник, unknown - неизвестный (не виден игроку), player - игрок.
          // Получатель: ally, squadman, enemy, allytk - союзник тимкиллер, enemytk - противник тимкиллер.
          // Тип:        hit - попадание, kill - убийство, blowup - боеукладка.
          "ally_ally_hit":              "0x00CCFF",
          "ally_ally_kill":             "0x00CCFF",
          "ally_ally_blowup":           "0x00CCFF",
          "ally_squadman_hit":          "0x00CCFF",
          "ally_squadman_kill":         "0x00CCFF",
          "ally_squadman_blowup":       "0x00CCFF",
          "ally_enemy_hit":             "0x36AD00",
          "ally_enemy_kill":            "0x36AD00",
          "ally_enemy_blowup":          "0x36AD00",
          "ally_allytk_hit":            "0x00CCFF",
          "ally_allytk_kill":           "0x00CCFF",
          "ally_allytk_blowup":         "0x00CCFF",
          "ally_enemytk_hit":           "0x36AD00",
          "ally_enemytk_kill":          "0x36AD00",
          "ally_enemytk_blowup":        "0x36AD00",
          "enemy_ally_hit":             "0xFF0000",
          "enemy_ally_kill":            "0xFF0000",
          "enemy_ally_blowup":          "0xFF0000",
          "enemy_squadman_hit":         "0xFF0000",
          "enemy_squadman_kill":        "0xFF0000",
          "enemy_squadman_blowup":      "0xFF0000",
          "enemy_enemy_hit":            "0x36AD00",
          "enemy_enemy_kill":           "0x36AD00",
          "enemy_enemy_blowup":         "0x36AD00",
          "enemy_allytk_hit":           "0xFF0000",
          "enemy_allytk_kill":          "0xFF0000",
          "enemy_allytk_blowup":        "0xFF0000",
          "enemy_enemytk_hit":          "0x36AD00",
          "enemy_enemytk_kill":         "0x36AD00",
          "enemy_enemytk_blowup":       "0x36AD00",
          "unknown_ally_hit":           "0xFF0000",
          "unknown_ally_kill":          "0xFF0000",
          "unknown_ally_blowup":        "0xFF0000",
          "unknown_squadman_hit":       "0xFF0000",
          "unknown_squadman_kill":      "0xFF0000",
          "unknown_squadman_blowup":    "0xFF0000",
          "unknown_enemy_hit":          "0xFF0000",
          "unknown_enemy_kill":         "0xFF0000",
          "unknown_enemy_blowup":       "0xFF0000",
          "unknown_allytk_hit":         "0xFF0000",
          "unknown_allytk_kill":        "0xFF0000",
          "unknown_allytk_blowup":      "0xFF0000",
          "unknown_enemytk_hit":        "0xFF0000",
          "unknown_enemytk_kill":       "0xFF0000",
          "unknown_enemytk_blowup":     "0xFF0000",
          "squadman_ally_hit":          "0x00CCFF",
          "squadman_ally_kill":         "0x00CCFF",
          "squadman_ally_blowup":       "0x00CCFF",
          "squadman_squadman_hit":      "0x00CCFF",
          "squadman_squadman_kill":     "0x00CCFF",
          "squadman_squadman_blowup":   "0x00CCFF",
          "squadman_enemy_hit":         "0x36AD00",
          "squadman_enemy_kill":        "0x36AD00",
          "squadman_enemy_blowup":      "0x36AD00",
          "squadman_allytk_hit":        "0x00CCFF",
          "squadman_allytk_kill":       "0x00CCFF",
          "squadman_allytk_blowup":     "0x00CCFF",
          "squadman_enemytk_hit":       "0x36AD00",
          "squadman_enemytk_kill":      "0x36AD00",
          "squadman_enemytk_blowup":    "0x36AD00",
          "player_ally_hit":            "0xFFFF00",
          "player_ally_kill":           "0xFFFF00",
          "player_ally_blowup":         "0xFFFF00",
          "player_squadman_hit":        "0xFFFF00",
          "player_squadman_kill":       "0xFFFF00",
          "player_squadman_blowup":     "0xFFFF00",
          "player_enemy_hit":           "0xFF00FF",
          "player_enemy_kill":          "0xFF00FF",
          "player_enemy_blowup":        "0xFF00FF",
          "player_allytk_hit":          "0xFFFF00",
          "player_allytk_kill":         "0xFFFF00",
          "player_allytk_blowup":       "0xFFFF00",
          "player_enemytk_hit":         "0xFF00FF",
          "player_enemytk_kill":        "0xFF00FF",
          "player_enemytk_blowup":      "0xFF00FF"
        },
    
    

    I chose to set player enemy hits with a different color, what do u think Demon?


  5. Thanx demon i edited this section following your files:

    "damage": {
          // Format: src_dst_type.
          // Src:  ally, squadman, enemy, unknown, player.
          // Dst:  ally, squadman, allytk, enemytk, enemy.
          // Type: hit, kill, blowup.
          // ----
          // Формат: источник_получатель_тип.
          // Источник:   ally - союзник, squadman - взводный, enemy - противник, unknown - неизвестный (не виден игроку), player - игрок.
          // Получатель: ally, squadman, enemy, allytk - союзник тимкиллер, enemytk - противник тимкиллер.
          // Тип:        hit - попадание, kill - убийство, blowup - боеукладка.
          "ally_ally_hit":              "0x00CCFF",
          "ally_ally_kill":             "0x00CCFF",
          "ally_ally_blowup":           "0x00CCFF",
          "ally_squadman_hit":          "0x00CCFF",
          "ally_squadman_kill":         "0x00CCFF",
          "ally_squadman_blowup":       "0x00CCFF",
          "ally_enemy_hit":             "0x36AD00",
          "ally_enemy_kill":            "0x36AD00",
          "ally_enemy_blowup":          "0x36AD00",
          "ally_allytk_hit":            ${"def.tk"},
          "ally_allytk_kill":           ${"def.tk"},
          "ally_allytk_blowup":         ${"def.tk"},
          "ally_enemytk_hit":           ${"def.en"},
          "ally_enemytk_kill":          ${"def.en"},
          "ally_enemytk_blowup":        ${"def.en"},
          "enemy_ally_hit":             ${"def.al"},
          "enemy_ally_kill":            ${"def.al"},
          "enemy_ally_blowup":          ${"def.al"},
          "enemy_squadman_hit":         ${"def.al"},
          "enemy_squadman_kill":        ${"def.al"},
          "enemy_squadman_blowup":      ${"def.al"},
          "enemy_enemy_hit":            ${"def.en"},
          "enemy_enemy_kill":           ${"def.en"},
          "enemy_enemy_blowup":         ${"def.en"},
          "enemy_allytk_hit":           ${"def.al"},
          "enemy_allytk_kill":          ${"def.al"},
          "enemy_allytk_blowup":        ${"def.al"},
          "enemy_enemytk_hit":          ${"def.en"},
          "enemy_enemytk_kill":         ${"def.en"},
          "enemy_enemytk_blowup":       ${"def.en"},
          "unknown_ally_hit":           ${"def.al"},
          "unknown_ally_kill":          ${"def.al"},
          "unknown_ally_blowup":        ${"def.al"},
          "unknown_squadman_hit":       ${"def.al"},
          "unknown_squadman_kill":      ${"def.al"},
          "unknown_squadman_blowup":    ${"def.al"},
          "unknown_enemy_hit":          ${"def.en"},
          "unknown_enemy_kill":         ${"def.en"},
          "unknown_enemy_blowup":       ${"def.en"},
          "unknown_allytk_hit":         ${"def.al"},
          "unknown_allytk_kill":        ${"def.al"},
          "unknown_allytk_blowup":      ${"def.al"},
          "unknown_enemytk_hit":        ${"def.en"},
          "unknown_enemytk_kill":       ${"def.en"},
          "unknown_enemytk_blowup":     ${"def.en"},
          "squadman_ally_hit":          ${"def.sq"},
          "squadman_ally_kill":         ${"def.sq"},
          "squadman_ally_blowup":       ${"def.sq"},
          "squadman_squadman_hit":      ${"def.sq"},
          "squadman_squadman_kill":     ${"def.sq"},
          "squadman_squadman_blowup":   ${"def.sq"},
          "squadman_enemy_hit":         ${"def.sq"},
          "squadman_enemy_kill":        ${"def.sq"},
          "squadman_enemy_blowup":      ${"def.sq"},
          "squadman_allytk_hit":        ${"def.sq"},
          "squadman_allytk_kill":       ${"def.sq"},
          "squadman_allytk_blowup":     ${"def.sq"},
          "squadman_enemytk_hit":       ${"def.sq"},
          "squadman_enemytk_kill":      ${"def.sq"},
          "squadman_enemytk_blowup":    ${"def.sq"},
          "player_ally_hit":            ${"def.pl"},
          "player_ally_kill":           ${"def.pl"},
          "player_ally_blowup":         ${"def.pl"},
          "player_squadman_hit":        ${"def.pl"},
          "player_squadman_kill":       ${"def.pl"},
          "player_squadman_blowup":     ${"def.pl"},
          "player_enemy_hit":           ${"def.pl"},
          "player_enemy_kill":          ${"def.pl"},
          "player_enemy_blowup":        ${"def.pl"},
          "player_allytk_hit":          ${"def.pl"},
          "player_allytk_kill":         ${"def.pl"},
          "player_allytk_blowup":       ${"def.pl"},
          "player_enemytk_hit":         ${"def.pl"},
          "player_enemytk_kill":        ${"def.pl"},
          "player_enemytk_blowup":      ${"def.pl"}
        },
    
    

    But i still see ONLY red damaged numbers, what's wrong?

    "damageText": {
        // false - disable / не отображать.
        "visible": true,
        // Axis field coordinates
        // Положение поля по осям
        "x": 0,
        "y": -65,
        // Opacity (dynamic transparency allowed, see readme-en.txt).
        // Прозрачность (допускается использование динамической прозрачности, см. readme-ru.txt)
        "alpha": 100,
        // Color (dynamic colors allowed, see readme-en.txt).
        // Цвет (допускается использование динамического цвета, см. readme-ru.txt)
        "color": null,
        // Параметры шрифта.
        "font": {
          "name": "$FieldFont",           // Font name      / Название
          "size": 15,                     // Font size      / Размер
          "align": "center",              // Text alignment (left, center, right) /   Выравнивание текста (left, center, right)
          "bold": false,                  // True - bold    / Жирный.
          "italic": false                 // True - italic  / Курсив.
        },
        // Параметры тени.
        "shadow": {
          "alpha": 100,                   // Opacity          / Прозрачность.
          "color": "0x000000",            //                    Цвет.
          "angle": 0,                    // Offset angle     / Угол смещения.
          "distance": 0,                  // Offset distance  / Дистанция смещения.
          "size": 2,                      //                    Размер.
          "strength": 1000                 // Intensity        / Интенсивность.
        },
        // Rising speed of displayed damage (float up speed).
        // Время отображения отлетающего урона.
        "speed": 2,
        // Maximum distance of target for which damage rises.
        // Расстояние, на которое отлетает урон.
        "maxRange": 60,
        // Text for normal damage (see description of macros in the readme-en.txt).
        // Текст при обычном уроне (см. описание макросов в readme-ru.txt).
        "damageMessage": "-{{dmg}}",
        // Text for ammo rack explosion (see description of macros in the readme-en.txt).
        // Текст при взрыве боеукладки (см. описание макросов в readme-ru.txt).
        "blowupMessage": "{{l10n:blownUp}}\n{{dmg}}"
      },
    

  6. I add that code and then edit these path 

        "damageTextPlayer": {
          "$ref": { "path":"damageText" }
        },
        "damageTextSquadman": {
          "$ref": { "path":"damageText" }
    

    to point at them?

     

    OK.

     

    BUT the question is... what's the fastest and clean way to color ally damage dealt to GREEN and enemy damage received to RED?

     

    Renaming damageText to "damageEnemy"

     

    ...and pointing it from "ally" code sections with this? Same edit for "enemy" code section of course...

       "damageText": {
          "$ref": { "path":"damageEnemy" }
        }, 

    please it's first time i work with xvm code.. try to be clear :)


  7. Mhh...  in a clean markersAliveNormal.xc ehere can i add this?

              "damageTextPlayer": {
                "alpha": 100,
                "blowupMessage": "Alleato Distrutto!",
                "color": "0xFF0000",
                "damageMessage": "-{{dmg}}",
                "font": { "align": "center", "bold": true, "italic": false, "name": "$FieldFont", "size": 15 },
                "maxRange": 60,
                "shadow": { "alpha": 100, "angle": 84, "color": "0x000000", "distance": 0, "size": 2, "strength": 1000 },
                "speed": 2,
                "visible": true,
                "x": 0,
                "y": -65
              },
              "damageTextSquadman": {
                "alpha": 100,
                "blowupMessage": "Alleato Distrutto!",
                "color": "0xFF0000",
                "damageMessage": "-{{dmg}}",
                "font": { "align": "center", "bold": false, "italic": false, "name": "$FieldFont", "size": 15 },
                "maxRange": 60,
                "shadow": { "alpha": 100, "angle": 0, "color": "0x000000", "distance": 0, "size": 2, "strength": 1000 },
                "speed": 2,
                "visible": true,
                "x": 0,
                "y": -65
              },
    

    or... is there any other way to set GREEN damage when ally hit enemy, and RED damage when enemy hit ally? I had a colored number popping out from damaged tank in previous config.xc.. it was different not unique.

     

    Here's enemy code:

             "damageTextPlayer": {
                "alpha": 100,
                "blowupMessage": "Nemico Distrutto!",
                "color": "0x00FF00",
                "damageMessage": "-{{dmg}}",
                "font": { "align": "center", "bold": false, "italic": false, "name": "$FieldFont", "size": 15 },
                "maxRange": 60,
                "shadow": { "alpha": 100, "angle": 0, "color": "0x000000", "distance": 0, "size": 2, "strength": 1000 },
                "speed": 2,
                "visible": true,
                "x": 0,
                "y": -65
              },
              "damageTextSquadman": {
                "alpha": 100,
                "blowupMessage": "Nemico Distrutto!",
                "color": "0x00FF00",
                "damageMessage": "-{{dmg}}",
                "font": { "align": "center", "bold": false, "italic": false, "name": "$FieldFont", "size": 15 },
                "maxRange": 60,
                "shadow": { "alpha": 100, "angle": 0, "color": "0x000000", "distance": 0, "size": 2, "strength": 1000 },
                "speed": 2,
                "visible": true,
                "x": 0,
                "y": -65
              },
    

    Should i just edit these lines maybe?

        "damageText": {
          "$ref": { "path":"damageText" }
        },
        "damageTextPlayer": {
          "$ref": { "path":"damageText" }
        },
        "damageTextSquadman": {
          "$ref": { "path":"damageText" }
    

    Please help me step by step i don't wanna "break" my file... 2 days i work on this config porting

×
×
  • Create New...