PzSniper 1 Posted September 18, 2014 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? Quote Share this post Link to post Short link Share on other sites
vlad_cs_sr 1,575 #212996 Posted September 18, 2014 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 Quote Share this post Link to post Short link Share on other sites
PzSniper 1 #212997 Posted September 18, 2014 (edited) 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 September 18, 2014 by PzSniper Quote Share this post Link to post Short link Share on other sites
vlad_cs_sr 1,575 #213004 Posted September 18, 2014 can i add this? yes Quote Share this post Link to post Short link Share on other sites
PzSniper 1 #213006 Posted September 18, 2014 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 :) Quote Share this post Link to post Short link Share on other sites
vlad_cs_sr 1,575 #213007 Posted September 18, 2014 (edited) 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 September 18, 2014 by leecher88 Quote Share this post Link to post Short link Share on other sites
demon2597 5,468 #213008 Posted September 18, 2014 (edited) 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 September 18, 2014 by demon2597 Quote Share this post Link to post Short link Share on other sites
PzSniper 1 #213605 Posted September 21, 2014 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}}" }, Quote Share this post Link to post Short link Share on other sites
sech_92 469 #213608 Posted September 21, 2014 "color": null, should not that be "system" color? Quote Share this post Link to post Short link Share on other sites
demon2597 5,468 #213609 Posted September 21, 2014 (edited) 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 September 21, 2014 by demon2597 Quote Share this post Link to post Short link Share on other sites
PzSniper 1 #213610 Posted September 21, 2014 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? Quote Share this post Link to post Short link Share on other sites
Kapany3uk 948 #213616 Posted September 22, 2014 (edited) 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 September 22, 2014 by Duv21 1 Quote Share this post Link to post Short link Share on other sites
demon2597 5,468 #213622 Posted September 22, 2014 I chose to set player enemy hits with a different color, what do u think Demon? It is just as you wish:) Quote Share this post Link to post Short link Share on other sites