Contributing to aoe2stats

The past half a year I was off the grid and there was no-one to fix bugs in stats for the site, or update the home page for captains mode ( I don’t want these projects to fade, when I don’t have the extra time to work on them. Last couple of weeks I’ve been working towards making contributing to my aoe2* websites easier. In order to help out, earlier, you would have to had known about web servers (nginx), databases (postgre, mysql), different programming languages (php, javascript, html), tooling (npm, gulp, bower, git, …), even before getting started. It would also require knowledge, how to set them up on a local computer. Even getting the whole stack working might have been a bit of issue. Most people don’t use linux, where it’s a tiny bit easier. There are still some things you would need to know, but hopefully I managed to reduce the number of required things to a minimum. (The next part is going to be a bit techy, I’ve tried to add explanation to techy terms 🙂 ) . If you don’t want to get into coding, just jump to the I’m not a programmer section.

Continue Reading

Even longer time, no siege and Captains mode

I’m not dead 🙂 yet. I have been programming a lot, I went to japan, quit a half job, started a new half job and enjoyed a bit of life. Sometimes things just happen all at the same time. Funny thing. When I went to japan, there was a shrine or temple with court filled with little pieces of paper tied to strings. They were some kind of prophecies. So I took out of a little box a folded one myself and it said something like: “Brace yourself, changes are coming”. Little did I know, how correct that was. Still feels like I’m only halfway until the storm blows over. Not that I believe in prophecies Kappa.

Now that you know, I’m not dead. Here is what has been happening. Robo has been amazing and organized tournaments with Captains Mode almost by himself. Kudos to him! On captains mode front – I rewrote the almost the whole backend so it’s not hackable and I moved to a new server . We also had a few problems, some very good suggestions and criticism that made me think.

One problem I saw with the site, that often somebody would just join a game, when he should’ve just spectated it. So I redid the home page, so spectating and joining is separate sections now.

The two most important changes though are more about the mechanics of the the captains mode. There was a lot of confusion and misunderstanding about the hidden option. The way it worked until now was hard to explain. So I changed it. Now every turn can be either hidden or not, and there has to be a special turn, which would reveal it. Easy to explain, and hopefully easy to grasp.hidden turns

The other important change in mechanics is what happens, when the player times out or chooses random. Until now it I just left it on random if it was a pick, and let the players choose random in-game. That was a mistake. This system should be closed, and not rely on the game settings.random turns I don’t think there is a way to check, if somebody really chose random, or full-random or team-random. So I changed this, so that the system itself generates a random pick also considering the bans of the other player.

On the aocstats front: I was thrilled it got featured on aoczone and reddit. I’m grateful for all the guys spreading news about it (looking at you iViktorious, Clemensor, ZeroEmpires and others) and I’m really grateful for the donations. I’m currently in the process of moving it to it’s own domain. It will be , when it’s done. Hopefully, I will have time to extend it even more, with civilization availability lists, upgrades and such for units.

Lots to be done. I hope I get to play a bit, too 🙂

Saracens vs bonuses against buildings mess


So I watched a Spirit of the Law video after a long while presenting saracens. As usual I got mad at the fonts (just hate comic sans style fonts :D, but that’s because I’m a programmer). And I also got mad about how he presented the attack bonuses. I was almost sure he was wrong. Turns out he was right… It was just way too simplistic for my taste hiding the real math behind the situation. So I got mad even more at myself this time and wanted to dig up the real stats. And I found a huge heap of mess in AoE concerning buildings. Here is what I’ve found:

Continue Reading