War Statistics from screenshots

Hello World!

I created a script that processes a series of war score screenshots, finds all the alliances players and attack/defense scores, and generates a summary. All of that is automatic and takes under 10 seconds.

Summary generated for one war:

A second script loops through all the single war summaries, and generates a summary for all the wars.

Summary for all wars:

The output is a csv file and is pretty raw, meaning the scripts doesn’t do a lot of post-processing with the data. There are already a couple of interesting tools developed by other players to do that (see links below), so my script could be used in conjunction with those.

The script is provided at the link below for anyone who might have a use for it. There’s even a How-To and everything. It’s coded in Python. If you’re thinking of the snake, you’ll probably have a hard time because small adjustments will be required to use it for your alliance. But I’m not a programmer, it’s just something I learned by myself, so anyone with basic programming skills should be able to make sense of it.

Let me know if you have questions!

Compressed file that contains the scripts, example files and How-To:

Example of the summary I generate for my fellow alliance members:

References for post-processing tools from other players (that require manual entry):

10 Likes

This sounds very cool, thank you for sharing your hard work! Can’t wait to try it out :slightly_smiling_face:

1 Like

I’m excited to check these out this weekend! Thank you for sharing!!

1 Like

@Goupil This looks very useful! I’m going to give it a try! I wanted to get more stats on my alliance’s war performance. Thank you! :wink:

1 Like

Download Anaconda, it’s free and comes with a graphical interface called Spyder which works really well. You’ll just need to install OpenCV separately, I found instructions on the web on how to install it with Anaconda

2 Likes

Did you get it to work?

Haven’t tried yet, but will report back

I will give it a try. Currently I’m using the war tracker and part of the war tracker support group. War stats take about 30 - 40 minutrs for me now using that program, it’s always longer if we’re fighting a Korean Alliance for example. The war tracker is attached to line not Google Drive. I’ve been playing E&P now for almost 5 years and I have come across multiple programs and scripts over that period of time for stats, and so I think it’s really great to have another one because it’s always better to have one with more utility and it looks like this one is free. I’m very interested to see how well it does.

@Goupil I tried the script but I am getting a few issues specially with the rtree library import but researching a bit I found another way to do it. It does not take long just a few minutes to take the pictures and make a few minor changes
This is my work on progress:

That looks great, seems like you built a lot from the original script

I try to reuse it but I could not, the original script uses pictures of numbers and names to compare, this script does not do that, it grab the picture and extract the text from the picture. Of course some basic things like reading files from directory and cropping the picture follow the same concept

Everything worked! Thank you.