ame of fashion: statistics per session in a hangar
Version: 0.8.8.5
Author: STL1te, Dellux Translated by CBARoughneck -G-
Description: this MOD adds to the list of service messages (created by screenshot, ended the fight, something bought in a store, and so on) various statistics for the session.
There is a settings file for customizing the appearance of the simplest fashion. Has the ability to store up to reset statistics button.
Installation: Copy the contents of the archive in-"res_mods \ x.x.x, where x.x.x is the current version of the game
Setting:
The file SessionStatConfig.cfg is responsible for setting the fashion. It is recommended that you edit it with a text editor Notepad ++.
Standard config:
{
' saveStats ': true,//whether to save the statistics after you restart a client? true, false, Yes, no.
"resetDayStats": true//Reset the stats every day in UTC time (04:00 GMT). Does not work with "saveStats": false.
' forcedReset ': false,//whether to reset stats force when running client if it is time to reset. true, false, Yes, no. Does not work with "resetDayStats": false.
"message":
{
"icon": "./maps/icons/library/BattleResultIcon-1.png,//message Icon with statistics.
"type": "red",//the background color of the message statistics. Can be: grey, lightGrey, red, green, yellow, and the format {{c:winsRate}} macros, etc. If there are sections
with the winsRate, etc. in the section "typeColor". Learn more about macros colors below.
"typeColor"://color macro settings for ' type '
{
"winsRate": [
{ "value": 50, "color": "red" }, // < 50%Wins
{ "value": 60, "color": "yellow" }, // < 60%Wins
{ "value": 101, "color": "green" } // < 101%Wins
]
},
"statsColor":
{
"winsRate": [
{ "value": 50, "color": "#CC0000" }, // < 50%Wins
{ "value": 60, "color": "#FFCC00" }, // < 60%Wins
{ "value": 101, "color": "#00CC00" } // < 101%Wins
],
"credits": [
{ "value": 0, "color": "#CC0000" }, // < 0 credits
{ "value": 999999999, "color": "#00CC00" } // < 999999999 credits
]
}
}
}
The format of the message ("format" tag):
The format is a plain HTML string with the ability to insert a macro. Each macro has the form: {{macro name}}.
Instead of these macros is eventually placed a value of statistics.
Macros: statistics values
{{winsCount}}-voWins
{{battlesCount}} — number of fights
{{winsRate}}-ProcentWins
{{totalXP}}-number experience without increasing conversion rates
{{avgTotalXP}}-the average number of experience without taking account of the increasing coefficients for battle
{{totalXPRatio}}-number of experience taking into account increasing conversion rates
{{avgTotalXPRatio}}-the average number of experience, taking into account the increasing coefficients for battle
{{freeXP}}-number free experience
{{credits}}-number of credits
{{gold}}-quantity of gold
{{damageDealt}}-number of damage dealt
{{damageReceived}}-number of received damage
{{avgDmgDealt}}-Average damage per fight
{{damageRatio}}-coefficient of damage ({{damageDealt}}/{{damageReceived}})
{{fragsCount}}-number of Frags
{{avgFragsCount}}-the average number of Frags per fight
{{deathsCount}}-number of deaths
{{fragsRatio}}-coefficient of destruction ({{fragsCount}}/{{deathsCount}})
{{shotsCount}}-number of shots
{{hitsCount}}-number of hits
{{hitsRate}}-the percentage of hits
{{spottedCount}}-number of opponents
Macros/colors:
If the "statsColor" of a subsection named macro values (winsCount, winsRate, credits, etc.)
macros can use color format {{c:winsCount}}, {{c:credits}}, {{c:winsRate}}, etc.
Number of block type {"value": 50, "color": "#CC0000"} is not limited, the "color" is color for
the value of the parameter < value.
For example, in the standard config above to set dynamic color for the "winsRate" we set in the partition
"format" the following HTML code: <font color='{{c:winsRate}}'>{{winsRate}}</font>