Tey 34 Posted May 5, 2017 I did something similar to compensate the lake of win chance. It shows the accumulated WN8 of both team and the ratio (it looks ugly on screenshot but not in game): If you want to use it: download that script and put it in res_mods\configs\xvm\py_macro edit battleLabels.xc and change it that way: { "labels": { ... "formats": [ ... , ${ "battleLabelsTemplates.xc":"def.teamRating"} ] } } edit battleLabelsTemplates.xc and change it that way (and customize to your needs): { ... "def": { ... ,"teamRating": { "enabled": true, "updateEvent": "PY(ON_UPDATE_TEAM_RATING)", "x": 230, "y": 2, "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 }, "textFormat": { "size": 15 }, "format": "Team WN8: <font color='{{py:alliesAliveRatingRatio>=0?#00EE00|#EE0000}}'>{{py:alliesAliveRating}} {{py:alliesAliveRatingRatio=0?=|{{py:alliesAliveRatingRatio>0?>|<}}}} {{py:enemiesAliveRating}} ({{py:alliesAliveRatingRatio}}%)</font>" } } } Note that this takes into account the WN8 of the current vehicle of each player instead of the overall WN8 of each player, unless the player played less than 100 battles with that vehicle. 8 Quote Share this post Link to post Short link Share on other sites
Grey_Mouser 0 #389803 Posted May 9, 2017 (edited) I did something similar to compensate the lake of win chance. It shows the accumulated WN8 of both team and the ratio (it looks ugly on screenshot but not in game): team_wn8.jpg Excellent! It took me a couple of tries, but I finally got it to work! Thanks man! Edited May 9, 2017 by Grey_Mouser Quote Share this post Link to post Short link Share on other sites
RakoLbIGa 0 #390129 Posted May 10, 2017 How this script can be connected to the Protanki XVM Quote Share this post Link to post Short link Share on other sites
vlad_cs_sr 1,575 #390133 Posted May 11, 2017 The same way as described Quote Share this post Link to post Short link Share on other sites
RakoLbIGa 0 #390146 Posted May 11, 2017 There is no file battleLabelsTemplates.xc (I do not know in this Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390148 Posted May 11, 2017 There must be, in your config. Quote Share this post Link to post Short link Share on other sites
RakoLbIGa 0 #390150 Posted May 11, 2017 That's what I have there Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390160 Posted May 11, 2017 That's weird config. You have battleLabels.xc but not battleLabelsTemplates.xc. Attach the whole folder. 1 Quote Share this post Link to post Short link Share on other sites
RakoLbIGa 0 #390214 Posted May 11, 2017 Where it to write? ( ProTanki.rar Quote Share this post Link to post Short link Share on other sites
Grey_Mouser 0 #390399 Posted May 13, 2017 Note that this takes into account the WN8 of the current vehicle of each player instead of the overall WN8 of each player, unless the player played less than 100 battles with that vehicle. If I wanted to change it to count the overall win8, instead of the current vehicle, what would I change? Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390476 Posted May 13, 2017 Where it to write? ( Check battleLabels.xc If I wanted to change it to count the overall win8, instead of the current vehicle, what would I change? I'm not familiar with this stuff, but I managed to do something. It seems to calculate the sum of the overall WN8 now, but incorrectly calculates the ratio. Unless the author replies, you may try it if you want mod_wn8_chance.zip 3 Quote Share this post Link to post Short link Share on other sites
Tey 34 #390487 Posted May 13, 2017 (edited) If I wanted to change it to count the overall win8, instead of the current vehicle, what would I change? Apply the following changes or just use konrad509's version (he did exactly the same thing). Remove that part from mod_wn8_chance.py (lines 116 to 133): if 'wn8expDamage' in info and all(k in stats['v'] for k in ('b', 'frg', 'dmg', 'w', 'spo', 'def')): if stats['v']['b'] >= 100: # Compute WN8 for that vehicle rDAMAGE = stats['v']['dmg'] / (stats['v']['b'] * info['wn8expDamage']) rSPOT = stats['v']['spo'] / (stats['v']['b'] * info['wn8expSpot']) rFRAG = stats['v']['frg'] / (stats['v']['b'] * info['wn8expFrag']) rDEF = stats['v']['def'] / (stats['v']['b'] * info['wn8expDef']) rWIN = stats['v']['w'] / (stats['v']['b'] * info['wn8expWinRate']) * 100.0 rWINc = max(0, (rWIN - 0.71) / (1 - 0.71) ) rDAMAGEc = max(0, (rDAMAGE - 0.22) / (1 - 0.22) ) rFRAGc = max(0, min(rDAMAGEc + 0.2, (rFRAG - 0.12) / (1 - 0.12))) rSPOTc = max(0, min(rDAMAGEc + 0.1, (rSPOT - 0.38) / (1 - 0.38))) rDEFc = max(0, min(rDAMAGEc + 0.1, (rDEF - 0.10) / (1 - 0.10))) WN8 = 980*rDAMAGEc + 210*rDAMAGEc*rFRAGc + 155*rFRAGc*rSPOTc + 75*rDEFc*rFRAGc + 145*min(1.8,rWINc) vehicle['wn8'] = WN8 I'm not familiar with this stuff, but I managed to do something. It seems to calculate the sum of the overall WN8 now, but incorrectly calculates the ratio. Unless the author replies, you may try it if you want mod_wn8_chance.zipI would have done the exact same changes :) Do you have an example of wrong ratio (like which sums produce which wrong ratio)? My graphic card died, so I can't check it out with WoT currently, but I can probably figure out what's wrong from samples. BTW, this macro does not handle players with no WN8 very well. It just ignores them, which is probably wrong as it's like considering they have a WN8 of 0 (they are probably newbies, but 0 is still too low). Of course, this impacts the WN8 sums comparison and ratio. I'm open to suggestions... Edited May 13, 2017 by Tey Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390489 Posted May 13, 2017 (edited) Do you have an example of wrong ratio (like which sums produce which wrong ratio)? It seems to be showing 100% all the time if allies' WN8 > enemies' WN8 and -100% otherwise. I don't know if it matters, but I checked it on replay only. Edited May 13, 2017 by konrad509 1 Quote Share this post Link to post Short link Share on other sites
Tey 34 #390499 Posted May 13, 2017 (edited) It seems to be showing 100% all the time if allies' WN8 > enemies' WN8 and -100% otherwise. Aw right, typical float/integer programming mistake. It's fixed in latest version, which also uses overall WN8 by default now (set useTankRating config key to True for the old behavior). Edited May 13, 2017 by Tey 3 Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390545 Posted May 14, 2017 (set useTankRating config key to True for the old behavior). Where do you put that line in the config? Quote Share this post Link to post Short link Share on other sites
soulza 14 #390592 Posted May 14, 2017 (edited) i think you add it to the .py file Konrad? Edited May 14, 2017 by soulza 2 Quote Share this post Link to post Short link Share on other sites
Tey 34 #390596 Posted May 14, 2017 Indeed, I was too lazy to decide in which XC file to put the settings, so it's only in the Python file yet <_< Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390614 Posted May 14, 2017 Aha, ok then :D Quote Share this post Link to post Short link Share on other sites
refaol 223 #390645 Posted May 14, 2017 (edited) If you want to use it: Спасибо за реализацию. Edited May 14, 2017 by refaol 2 Quote Share this post Link to post Short link Share on other sites
Maxan 0 #390910 Posted May 17, 2017 Thank you! Quote Share this post Link to post Short link Share on other sites