Announcing EU4 Stats

Let me prefix this by apologizing because this post will be a mix of content for technical people as well as content for those that just want to see statistics for their save game!

Introduction

As briefly alluded to – EU4 Stats is a web application that when given a save game, will generate a series of statistics that you can share with friends.

Everything is open sourced, so if you’d like to contribute to the project (in terms of code or ideas) you are more than free to! This is a pet project of mine, so hopefully someone finds this useful/interesting besides myself!

Limitations

Behind the Scenes

In lieu of a fancy diagram detailing how the application works, I’m providing a bulleted list of chronological systems that makes everything tick.

What’s Next?

This release tests the water for an application such as this. If there is overwhelming positive feedback and suggestions for improvement, I’ll continue working on this in parallel to the next version of this project. I say “next version”, but it is little more than a fanciful thought in my head. I do believe there needs to be next version due to the limitations listed above.

Being tested on only a single version of the game is a serious downfall, but this is due to the parsing of the save game. Between expansions and patches, Paradox will change the save game (add/remove/change fields), which breaks compatibility with the parser. A better approach would be store save games whole, and then pick attributes out when a client asks for it. This would also allow for statistics for a particular game to improve as the features are released. How this should be accomplished is an interesting question. Save games could be stored in S3 as is, and ran through something akin to XQuery for Paradox files on retrieval, and pushed to the client. Alternatively, save games could be converted into JSON and possibly squirreled away in a document store such MongoDb. As you can see, there are a ton of options and this will require a lot of mulling over.

Since more information will be available to the client I’m been thinking of managing it with something like Ember.js. This would make it easier to add features such as user accounts (so one could keep track of all the save games they have uploaded) and create cross savegame analysis.

I think I’m getting too excited now. We’ll see how things pan out, but of course first things first, try out the first version and let me know what you think.

Comments

If you'd like to leave a comment, please email [email protected]

2014-10-07 - Sven

I was waiting for this for a long time, awesome work!! I would love to see “total kills by country” or something as a statistic, the more stats the better :)

2014-10-07 - Selim III

Eu4 has lack of stats. However stats are the things which makes eu more fun. Nice stat program here!! This masterpiece fulfills the enjoyment of the game!!!

2014-10-07 - Tandrium

How can I download the older EU3 Stats?

2014-10-07 - Nick

Are you talking about this one

2014-10-07 - Dr Fying Cows

Dont give up!