Login

russian armor

CoH2 stat Visualizer

22 Jun 2020, 19:45 PM
#1
avatar of Hannibal
Senior Moderator Badge

Posts: 3106 | Subs: 2

Small Visualizer script that draws graphs for a variety of stats

Download:


This is the "release" of small pieces of code that make some of the rather abstract stat numbers more visible and comparable.
Due to the DeCoHde project and previous attempts in Excel, I already had some code, data and calculations lying around. So I decided to move them into one Python file and polish them slightly. Unfortunately there are issues with making an executable file out of this, so only the Python script is available.

Usage is straight forward and simple:
1. Enter your vehicles of interest into the txt file with commas as separators (I already added some as an example). Make sure the names are exactly the same as in the "Name" column in the Unit_Data file. The first vehicle you enter will always be treated as the target for some calculations, all others are shooters. For some plots only two vehicles are used, so the first one will be target and the shooter will be the second vehicle
2. Run the script


As an example, we'll have a look at the following vehicles (these are the same vehicles as in the txt file after download):
T-34/76, PanzerIV(OKW), JagdpanzerIV, Tiger, SU-85
-> the T34 is the first in the list, so he will be the "target". For some plots, the P4 will be used as the only shooter to not clutter the graph with lines. If you only enter one vehicle, plots that need two vehicles will not be displayed.


Your output:


AoE damage profile:
Quite straight forward. Take into account that also the scatter area is important and the profile has only a limited explanatory power.


Scatter area:
Also very straight forward. These should be familiar from MMX's "Scatter This!".


Base accuracy profile
Again, bear in mind that the scatter area here is important as well. T34 and P4 have the same profile, so the T34 plot is not visible.


Damage plots
top: natural hit chance, penetration chance and the natural damage chance (bear in mind this does not calculate scatter hits!)
mid: The chance of the attacker to deliver the deadly amount of penetrations within x hits. In our example, the chance of the P4 to penetrate 4 times in 4 hits at range 40 is about 29%, the chance to pen 4 times in 5 hits is 38%. Additionally, the expected hits to kill are displayed as a vertical line. For every vehicle combination, this will be displayed at max range of the shooter and range 10 (dotted lines).
bottom: Same as mid, but additionally the "survival function" is displayed. This shows the chance that the deadly amount of penetrations occurred up to shot x. In our example at range 40, the P4 has an ~80% chance to kill the T34 within 6 shots.


Penetration chances:

The conglomeration of pen chances of all the vehicles in the list against the target



Finally a big thanks to MMX for letting me steal his data on the units and even agreeing on changing it so that my scripts run better.


Hannibal
22 Jun 2020, 20:17 PM
#2
avatar of JohnSmith

Posts: 1273

First of all; big bravo, that looks fantastic. I will download the tool and try it.
22 Jun 2020, 22:00 PM
#3
avatar of Vipper

Posts: 13476 | Subs: 1

Nice work. Well done
23 Jun 2020, 11:38 AM
#4
avatar of UberHanz
Donator 11

Posts: 247 | Subs: 2

Always impressive to see people going through the efforts. Great little app. Thanks man!
MMX
24 Jun 2020, 04:04 AM
#5
avatar of MMX

Posts: 999 | Subs: 1

didn't have the chance to test it yet, but this looks awesome, great work! especially the damage plots should be a really helpful tool for visualization and comparison of unit performance, since they contain much more info than the simple average pen chance × number of shots can give.
24 Jun 2020, 05:28 AM
#6
avatar of Aradan

Posts: 1003

Thank You
24 Jun 2020, 19:23 PM
#7
avatar of Hannibal
Senior Moderator Badge

Posts: 3106 | Subs: 2

Small update

- added missing axis' titles
- added a third penetration graph, now including the probability to kill the target within X shots

New bottom plot:
Same as mid, but additionally the "survival function" is displayed. This shows the chance that the deadly amount of penetrations occurred up to shot x. In our example at range 40, the P4 has an ~80% chance to kill the T34 within 6 shots.

1 user is browsing this thread: 1 guest

Livestreams

United Kingdom 165
unknown 4
United States 1

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

668 users are online: 668 guests
8 posts in the last 24h
17 posts in the last week
137 posts in the last month
Registered members: 45023
Welcome our newest member, resilientmind
Most online: 2043 users on 29 Oct 2023, 01:04 AM