Jump to content
Korean Random
PzSniper

damageTextSquadman deprecated?

Recommended Posts

Are damageTextSquadman or damageTextPlayer deprecated in 5.3.4?

 

Sorry for dumb question but i'm porting old single .config.xc to the new multiple file format, and in new markersAliveNormal.xc those liens aren't present anymore.

 

is there a doc where we can see what commands or macro are deprecated now?

Share this post


Link to post

Short link
Share on other sites

Look for example markersAliveNormal.xc in default config folder and add missing sections to yours

is there a doc where we can see what commands or macro are deprecated now?

in "doc" folder of XVM's archive

Share this post


Link to post

Short link
Share on other sites

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

Edited by PzSniper

Share this post


Link to post

Short link
Share on other sites

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 :)

Share this post


Link to post

Short link
Share on other sites

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

edit colors.xc:

"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":              ${"def.tk"},
      "ally_ally_kill":             ${"def.tk"},
      "ally_ally_blowup":           ${"def.tk"},
      "ally_squadman_hit":          ${"def.tk"},
      "ally_squadman_kill":         ${"def.tk"},
      "ally_squadman_blowup":       ${"def.tk"},
      "ally_enemy_hit":             ${"def.en"},
      "ally_enemy_kill":            ${"def.en"},
      "ally_enemy_blowup":          ${"def.en"},
      "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"}
    },

then use this color macro in markers:

"damageText": {
...
"color": "{{c:dmg}}",
    "damageTextPlayer": {
      "$ref": { "path":"damageText" }
    },
    "damageTextSquadman": {
      "$ref": { "path":"damageText" }

This is reference to fixed format section of config.

 

If you want change format seperatly for squadman, player and ally/enemy you may use full type format in ally/enemy blocks :

 

 "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
      },

 

Edited by leecher88

Share this post


Link to post

Short link
Share on other sites
is there any other way to set GREEN damage when ally hit enemy, and RED damage when enemy hit ally?

there is "damage" section in colors.xc for this. you have to write colors there and in the "damageText" sections the color must be written as "null' or "{{c:dmg}}". See default or my config for example 

Edited by demon2597

Share this post


Link to post

Short link
Share on other sites

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}}"
  },

Share this post


Link to post

Short link
Share on other sites
should not that be "system" color?

no, null is the same as {{c:dmg}} here

 

set GREEN damage when ally hit enemy, and RED damage when enemy hit ally

 for example in my config it's red damage when ally hits enemy: 

"ally_enemytk_hit":           ${"def.en"},

if you need the green one you have to set:

"ally_enemytk_hit":           ${"def.al"},

 

... or attach your files

Edited by demon2597

Share this post


Link to post

Short link
Share on other sites

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?

Share this post


Link to post

Short link
Share on other sites
I chose to set player enemy hits with a different color

you could change this much easier: just change the color code in section "def" in file colors.xc: "al" to "en" vice versa

"def": {

    "al": "0x96FF00",  // ally       / союзник

    "sq": "0xFFB964", // squadman   / взводный

    "tk": "0x00EAFF", // teamKiller / тимкиллер

    "en": "0xF50800", // enemy      / противник

    "pl": "0xFFDD33", // player     / игрок 

Edited by Duv21
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

 

 

I chose to set player enemy hits with a different color, what do u think Demon?
It is just as you wish:) 

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