INFO: colors.xc
Published by ORT on
BLACKWOT › Forums › Stats & Other Mods for World of Tanks › XVM: eXtended Visualization Mod › Everything XVM › XVM .xc files › INFO: colors.xc
- This topic has 0 replies, 1 voice, and was last updated 10 years, 3 months ago by ORT.
-
AuthorPosts
-
07.05.2016 at 09:19 #109816ORTMember
(Due to the lack of an official wiki and thorough public documentation of the XVM mod, this is an attempt to publish the ins and outs of XVM and cover all of the .xc files. This is intended to be a live document. Everytime there are changes to XVM, the finalized changes will be incorporated in the document. Additions/comments/corrections to the information here are welcome. If you have any comment, or noticed anything missing or needing more clarification, or anything that is wrong, please post a comment.)
It is in colors.xc where you customize the colors of players (allies, enemies, platoonmates, teamkillers), vehicle types, health, ratings (WN8, WN6, WR, etc.), and most anything in the game.
Default XVM colors.xc config file explained
Spoiler(default colors.xc config file)
/**
* Color settings.
*/
{
// Color values for substitutions.
“def”: {“al”: “0x96FF00”, // ally <<<< green
“sq”: “0xFFB964”, // squadman <<<< tan/flesh
“tk”: “0x00EAFF”, // teamKiller <<<< cyan
“en”: “0xF50800”, // enemy <<<< red
“pl”: “0xFFDD33”, // player <<<< gold
// Dynamic color by various statistical parameters. <<<< For the purpose of convenience, colors for statistics are defined here for ease of use for different statistical ratings, e.g., WN8, WGR, WR, etc. The advantage of using “defs” is to avoid editing the same value in several locations repetitively.
“colorRating”: {
“very_bad”: “0xFE0E00”, <<<< red
“bad”: “0xFE7903”, <<<< orange
“normal”: “0xF8F400”, <<<< yellow
“good”: “0x60FF00”, <<<< green
“very_good”: “0x02C9B3”, <<<< blue
“unique”: “0xD042F3” <<<< purple
},
// Dynamic color by remaining health points. <<<< Similarly, colors for health-related values (e.g., health and health percent) are defined here for convenience.
“colorHP”: {
“very_low”: “0xFF0000”, <<<< red
“low”: “0xDD4444”, <<<< pale red
“average”: “0xFFCC22”, <<<< dull yellow
“above_average”: “0xFCFCFC” <<<< white
}
},
“colors”: {
// System colors.
“system”: {
// Format: object_state
// Object: ally, squadman, teamKiller, enemy
// State: alive, dead, blowedup
“ally_alive”: ${“def.al”},
“ally_dead”: “0x009900”,
“ally_blowedup”: “0x007700”,
“squadman_alive”: ${“def.sq”},
“squadman_dead”: “0xCA7000”,
“squadman_blowedup”: “0xA45A00”,
“teamKiller_alive”: ${“def.tk”},
“teamKiller_dead”: “0x097783”,
“teamKiller_blowedup”: “0x096A75”,
“enemy_alive”: ${“def.en”},
“enemy_dead”: “0x840500”,
“enemy_blowedup”: “0x5A0401”,
“ally_base”: ${“def.al”},
“enemy_base”: ${“def.en”}
},// Dynamic color by damage kind.
“dmg_kind”: {
“shot”: “0xFFAA55”, <<<< tan/flesh
“fire”: “0xFF6655”, <<<< dull red
“ramming”: “0x998855”, <<<< brown
“world_collision”: “0x228855”, <<<< dark green
“death_zone”: “0xCCCCCC”, <<<< grey
“drowning”: “0xCCCCCC”, <<<< grey
“other”: “0xCCCCCC” <<<< grey
},// Dynamic color by vehicle type.
“vtype”: {
“LT”: “0xA2FF9A”, <<<< pale green
“MT”: “0xFFF198”, <<<< very pale yellow
“HT”: “0xFFACAC”, <<<< pink/very pale red
“SPG”: “0xEFAEFF”, <<<< light purple
“TD”: “0xA0CFFF”, <<<< pale blue
“premium”: “0xFFCC66”, <<<< dull gold
“usePremiumColor”: false
},
// Dynamic color by spotted status
“spotted”: {
“neverSeen”: “0x000000”, <<<< black
“lost”: “0xD9D9D9”, <<<< grey
“spotted”: “0xFFBB00”, <<<< yellow
“dead”: “0xFFFFFF”, <<<< white
“neverSeen_arty”: “0x000000”, <<<< black
“lost_arty”: “0xD9D9D9”, <<<< grey
“spotted_arty”: “0xFFBB00”, <<<< yellow
“dead_arty”: “0xFFFFFF” <<<< white
},// Color settings for damage.
“damage”: {
// Format: src_dst_type.
// Src: ally, squadman, enemy, unknown, player.
// Dst: ally, squadman, allytk, enemytk, enemy.
// Type: 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”}
},// Values below should be from smaller to larger.
// Dynamic color by remaining absolute health.
“hp”: [
{ “value”: 201, “color”: ${“def.colorHP.very_low” } },
{ “value”: 401, “color”: ${“def.colorHP.low” } },
{ “value”: 1001, “color”: ${“def.colorHP.average” } },
{ “value”: 9999, “color”: ${“def.colorHP.above_average”} }
],// Dynamic color by remaining health percent.
“hp_ratio”: [
{ “value”: 10, “color”: ${“def.colorHP.very_low” } },
{ “value”: 25, “color”: ${“def.colorHP.low” } },
{ “value”: 50, “color”: ${“def.colorHP.average” } },
{ “value”: 101, “color”: ${“def.colorHP.above_average”} }
],// Dynamic color for XVM Scale
// http://www.koreanrandom.com/forum/topic/2625-/
“x”: [
{ “value”: 16.5, “color”: ${“def.colorRating.very_bad” } }, // 00 – 16.5 – very bad (20% of players)
{ “value”: 33.5, “color”: ${“def.colorRating.bad” } }, // 16.5 – 33.5 – bad (better than 20% of players)
{ “value”: 52.5, “color”: ${“def.colorRating.normal” } }, // 33.5 – 52.5 – normal (better than 60% of players)
{ “value”: 75.5, “color”: ${“def.colorRating.good” } }, // 52.5 – 75.5 – good (better than 90% of players)
{ “value”: 92.5, “color”: ${“def.colorRating.very_good”} }, // 75.5 – 92.5 – very good (better than 99% of players)
{ “value”: 999, “color”: ${“def.colorRating.unique” } } // 92.5 – XX – unique (better than 99.9% of players)
],// Dynamic color by efficiency
“eff”: [
{ “value”: 615, “color”: ${“def.colorRating.very_bad” } }, // 0 – 614 – very bad (20% of players)
{ “value”: 870, “color”: ${“def.colorRating.bad” } }, // 615 – 869 – bad (better than 20% of players)
{ “value”: 1175, “color”: ${“def.colorRating.normal” } }, // 870 – 1174 – normal (better than 60% of players)
{ “value”: 1525, “color”: ${“def.colorRating.good” } }, // 1175 – 1524 – good (better than 90% of players)
{ “value”: 1850, “color”: ${“def.colorRating.very_good”} }, // 1525 – 1849 – very good (better than 99% of players)
{ “value”: 9999, “color”: ${“def.colorRating.unique” } } // 1850 – * – unique (better than 99.9% of players)
],// Dynamic color by WN6 rating
“wn6”: [
{ “value”: 460, “color”: ${“def.colorRating.very_bad” } }, // 0 – 459 – very bad (20% of players)
{ “value”: 850, “color”: ${“def.colorRating.bad” } }, // 460 – 849 – bad (better than 20% of players)
{ “value”: 1215, “color”: ${“def.colorRating.normal” } }, // 850 – 1214 – normal (better than 60% of players)
{ “value”: 1620, “color”: ${“def.colorRating.good” } }, // 1215 – 1619 – good (better than 90% of players)
{ “value”: 1960, “color”: ${“def.colorRating.very_good”} }, // 1620 – 1959 – very good (better than 99% of players)
{ “value”: 9999, “color”: ${“def.colorRating.unique” } } // 1960 – * – unique (better than 99.9% of players)
],// Dynamic color by WN8 rating
“wn8”: [
{ “value”: 380, “color”: ${“def.colorRating.very_bad” } }, // 0 – 379 – very bad (20% of players)
{ “value”: 860, “color”: ${“def.colorRating.bad” } }, // 380 – 859 – bad (better than 20% of players)
{ “value”: 1420, “color”: ${“def.colorRating.normal” } }, // 860 – 1419 – normal (better than 60% of players)
{ “value”: 2105, “color”: ${“def.colorRating.good” } }, // 1420 – 2104 – good (better than 90% of players)
{ “value”: 2770, “color”: ${“def.colorRating.very_good”} }, // 2105 – 2769 – very good (better than 99% of players)
{ “value”: 9999, “color”: ${“def.colorRating.unique” } } // 2770 – * – unique (better than 99.9% of players)
],INFO: Wotlabs has a 9-color scale for WN8, and winrate as opposed to XVM’s 6-color scale. http://wotlabs.net/
// Dynamic color by WG rating
“wgr”: [
{ “value”: 2495, “color”: ${“def.colorRating.very_bad” } }, // 0 – 2494 – very bad (20% of players)
{ “value”: 4345, “color”: ${“def.colorRating.bad” } }, // 2495 – 4344 – bad (better than 20% of players)
{ “value”: 6425, “color”: ${“def.colorRating.normal” } }, // 4345 – 6424 – normal (better than 60% of players)
{ “value”: 8625, “color”: ${“def.colorRating.good” } }, // 6425 – 8624 – good (better than 90% of players)
{ “value”: 10040, “color”: ${“def.colorRating.very_good”} }, // 8625 -10039 – very good (better than 99% of players)
{ “value”: 99999, “color”: ${“def.colorRating.unique” } } //10040 – * – unique (better than 99.9% of players)
],// Dynamic color for win chance
“winChance”: [
{ “value”: 24.5, “color”: ${“def.colorRating.very_bad” } },
{ “value”: 39.5, “color”: ${“def.colorRating.bad” } },
{ “value”: 59.5, “color”: ${“def.colorRating.normal” } },
{ “value”: 74.5, “color”: ${“def.colorRating.good” } },
{ “value”: 89.5, “color”: ${“def.colorRating.very_good”} },
{ “value”: 101, “color”: ${“def.colorRating.unique” } }
],// Dynamic color by win percent
“winrate”: [
{ “value”: 46.5, “color”: ${“def.colorRating.very_bad” } }, // 0 – 46.5 – very bad (20% of players)
{ “value”: 48.5, “color”: ${“def.colorRating.bad” } }, // 46.5 – 48.5 – bad (better than 20% of players)
{ “value”: 52.5, “color”: ${“def.colorRating.normal” } }, // 48.5 – 52.5 – normal (better than 60% of players)
{ “value”: 57.5, “color”: ${“def.colorRating.good” } }, // 52.5 – 57.5 – good (better than 90% of players)
{ “value”: 64.5, “color”: ${“def.colorRating.very_good”} }, // 57.5 – 64.5 – very good (better than 99% of players)
{ “value”: 101, “color”: ${“def.colorRating.unique” } } // 64.5 – 100 – unique (better than 99.9% of players)
],
INFO: Wotlabs has a 9-color scale for WN8, and winrate as opposed to XVM’s 6-color scale. http://wotlabs.net/// Dynamic color by kilo-battles
“kb”: [
{ “value”: 2, “color”: ${“def.colorRating.very_bad” } }, // 0 – 2
{ “value”: 6, “color”: ${“def.colorRating.bad” } }, // 2 – 6
{ “value”: 16, “color”: ${“def.colorRating.normal” } }, // 6 – 16
{ “value”: 30, “color”: ${“def.colorRating.good” } }, // 16 – 30
{ “value”: 43, “color”: ${“def.colorRating.very_good”} }, // 30 – 43
{ “value”: 999, “color”: ${“def.colorRating.unique” } } // 43 – *
],// Dynamic color by average level of player tanks
“avglvl”: [
{ “value”: 2, “color”: ${“def.colorRating.very_bad” } },
{ “value”: 3, “color”: ${“def.colorRating.bad” } },
{ “value”: 5, “color”: ${“def.colorRating.normal” } },
{ “value”: 7, “color”: ${“def.colorRating.good” } },
{ “value”: 9, “color”: ${“def.colorRating.very_good”} },
{ “value”: 11, “color”: ${“def.colorRating.unique” } }
],// Dynamic color by battles on current tank
“t_battles”: [
{ “value”: 100, “color”: ${“def.colorRating.very_bad” } }, // 0 – 99
{ “value”: 250, “color”: ${“def.colorRating.bad” } }, // 100 – 249
{ “value”: 500, “color”: ${“def.colorRating.normal” } }, // 250 – 499
{ “value”: 1000, “color”: ${“def.colorRating.good” } }, // 500 – 999
{ “value”: 1800, “color”: ${“def.colorRating.very_good”} }, // 1000 – 1799
{ “value”: 99999, “color”: ${“def.colorRating.unique” } } // 1800 – *
],// Dynamic color by average damage on current tank
“tdb”: [
{ “value”: 500, “color”: ${“def.colorRating.very_bad” } },
{ “value”: 750, “color”: ${“def.colorRating.bad” } },
{ “value”: 1000, “color”: ${“def.colorRating.normal” } },
{ “value”: 1800, “color”: ${“def.colorRating.good” } },
{ “value”: 2500, “color”: ${“def.colorRating.very_good”} },
{ “value”: 9999, “color”: ${“def.colorRating.unique” } }
],// Dynamic color by average damage efficiency on current tank
“tdv”: [
{ “value”: 0.6, “color”: ${“def.colorRating.very_bad” } },
{ “value”: 0.8, “color”: ${“def.colorRating.bad” } },
{ “value”: 1.0, “color”: ${“def.colorRating.normal” } },
{ “value”: 1.3, “color”: ${“def.colorRating.good” } },
{ “value”: 2.0, “color”: ${“def.colorRating.very_good”} },
{ “value”: 15, “color”: ${“def.colorRating.unique” } }
],// Dynamic color by average frags per battle on current tank
“tfb”: [
{ “value”: 0.6, “color”: ${“def.colorRating.very_bad” } },
{ “value”: 0.8, “color”: ${“def.colorRating.bad” } },
{ “value”: 1.0, “color”: ${“def.colorRating.normal” } },
{ “value”: 1.3, “color”: ${“def.colorRating.good” } },
{ “value”: 2.0, “color”: ${“def.colorRating.very_good”} },
{ “value”: 15, “color”: ${“def.colorRating.unique” } }
],// Dynamic color by average number of spotted enemies per battle on current tank
“tsb”: [
{ “value”: 0.6, “color”: ${“def.colorRating.very_bad” } },
{ “value”: 0.8, “color”: ${“def.colorRating.bad” } },
{ “value”: 1.0, “color”: ${“def.colorRating.normal” } },
{ “value”: 1.3, “color”: ${“def.colorRating.good” } },
{ “value”: 2.0, “color”: ${“def.colorRating.very_good”} },
{ “value”: 15, “color”: ${“def.colorRating.unique” } }
],// Dynamic color by WN8 effective damage
“wn8effd”: [
{ “value”: 0.6, “color”: ${“def.colorRating.very_bad” } },
{ “value”: 0.8, “color”: ${“def.colorRating.bad” } },
{ “value”: 1.0, “color”: ${“def.colorRating.normal” } },
{ “value”: 1.3, “color”: ${“def.colorRating.good” } },
{ “value”: 2.0, “color”: ${“def.colorRating.very_good”} },
{ “value”: 15, “color”: ${“def.colorRating.unique” } }
],// Dynamic color by damage rating (percents for marks on gun)
“damageRating”: [
{ “value”: 20, “color”: ${“def.colorRating.very_bad” } }, // 20% of players
{ “value”: 60, “color”: ${“def.colorRating.bad” } }, // better than 20% of players
{ “value”: 90, “color”: ${“def.colorRating.normal” } }, // better than 60% of players
{ “value”: 99, “color”: ${“def.colorRating.good” } }, // better than 90% of players
{ “value”: 99.9, “color”: ${“def.colorRating.very_good”} }, // better than 99% of players
{ “value”: 101, “color”: ${“def.colorRating.unique” } } // better than 99.9% of players
],// Dynamic color by hit ratio (percents of hits)
“hitsRatio”: [
{ “value”: 47.5, “color”: ${“def.colorRating.very_bad” } },
{ “value”: 60.5, “color”: ${“def.colorRating.bad” } },
{ “value”: 68.5, “color”: ${“def.colorRating.normal” } },
{ “value”: 74.5, “color”: ${“def.colorRating.good” } },
{ “value”: 78.5, “color”: ${“def.colorRating.very_good”} },
{ “value”: 101, “color”: ${“def.colorRating.unique” } }
]
}
}When customizing colors, it is preferred to choose colors that contrast well for all types (summer, desert, winter) of map backgrounds.
Colors are almost all the time used with the parameters “alpha” (transparency/opacity) and “shadow”.One of the things you are able to do within XVM is substitute the colors for images , to explain , looking at the winrate scale above , there is a color assigned to certain percentage values , you are able to assign an image to the value as well .
Related config file: alpha.xc
Related topic: <a href="/index.php?/topic/494-setting-colors-and-alpha-in-xvm/” rel=””>Setting colors and alpha in XVM. -
AuthorPosts
- You must be logged in to reply to this topic.