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
CoH2 stat Visualizer
22 Jun 2020, 19:45 PM
#1
Posts: 3114 | Subs: 2
22 Jun 2020, 20:17 PM
#2
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
Posts: 13496 | Subs: 1
Nice work. Well done
23 Jun 2020, 11:38 AM
#4
1
Posts: 247 | Subs: 2
Always impressive to see people going through the efforts. Great little app. Thanks man!
24 Jun 2020, 04:04 AM
#5
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
Posts: 1003
Thank You
24 Jun 2020, 19:23 PM
#7
Posts: 3114 | 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.
- 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.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
49 | |||||
752 | |||||
37 | |||||
32 | |||||
25 | |||||
17 | |||||
8 | |||||
3 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.35057.860+15
- 3.1110614.644+11
- 4.624225.735+2
- 5.276108.719+27
- 6.306114.729+2
- 7.919405.694+3
- 8.262137.657+3
- 9.722440.621+4
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1236
Board Info
717 users are online:
717 guests
0 post in the last 24h
5 posts in the last week
33 posts in the last month
5 posts in the last week
33 posts in the last month
Registered members: 49151
Welcome our newest member, pawlicmarg44
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, pawlicmarg44
Most online: 2043 users on 29 Oct 2023, 01:04 AM