Jump to content

Charts Mod


Recommended Posts

This started as Numerus Bot and became a Mod. It give you a visual end of game summary. The screenshots are from a 2 hour game with Aegis, Petra and me on the Gallic Fields. There is something wrong with the buildings, I have to investigate, but otherwise it would help if other players give it a try. So far it was only tested with a recent SVN on Linux. Would love to make the mod, well, battleproof.

post-16051-0-86287400-1401802960_thumb.ppost-16051-0-50750900-1401802811_thumb.ppost-16051-0-16989500-1401802835_thumb.p

post-16051-0-38155900-1401802854_thumb.ppost-16051-0-17374200-1401802879_thumb.ppost-16051-0-81822400-1401802903_thumb.p

charts-mod.zip

Link to comment
Share on other sites

> What is the color code in this example ?

Quite unexpected question. :) Petra is already greedy enough in terms of area. The map is per cent explored. Looping over 65k tiles takes ~1 msec, that's acceptable once per minute, but probably not on bigger maps. Lines are not easily available, on the other hand players can be toggled on/off, with only one color left it is acceptable. And it is only the units screen with huge jumps.

The game itself was interesting, Petra chose me for the first two rushes and then hit Aegis very hard. Aegis never attacked me, just some tiny border conflicts. However, at some point both bots stopped training, otherwise I'd had no chance. I've seen Mimo's patch, but couldn't test so far. I think if bots continue training, there is no chance for humans, except may be a network of defense towers and fortresses packed with units to pile up resources and finally launch 250 champions armies one after the other. Sometimes I can manage to build traps with strongly guarded honey pots walled on three sides. But that doesn't work always. Anyway I think multiple bots are great to learn and improve tactics. The game is rich enough so there is no ultimate strategy in sight.

I forgot the food chart, Petra went up to ~70,000 and did barter like hell, although metal was always above 30 or so. I've compared the buildings chart against the other panel and apparently Aegis lost 71 buildings more than constructed ???.

There is still room for more charts, proposals are welcome. I'm thinking about technologies, but that could end in a screen full of tiny icons or a wall of text...

  • Like 1
Link to comment
Share on other sites

Interesting insights. Thanks for the creation.

I think we don't really need straight connection lines as interpolating those might be not really a true representation (because surely the units might die or be created in batches! thus it would be a very steep almost vertical line. thus interpolating would be misleading.).

The points show all what is need and they are accurate.

I see you have a better feel for colors than me. I picked blue for the highlight of the active tab but your grey + white looks like a good fit.

I think it's another mod I will have permanently installed and will start with at all times. Thank you!

Link to comment
Share on other sites

> only refresh it when loading this screen unless you want to see the exploration

Not sure I understand, the screen reuses the dots, so switching metrics refreshes/moves the dots. The data itself is only processed once. Difficulty was default.

Link to comment
Share on other sites

There is still room for more charts, proposals are welcome. I'm thinking about technologies, but that could end in a screen full of tiny icons or a wall of text...

as already mentionned, % of territory would be useful. I guess it can be computed with no cost inside CCmpTerritoryManager.cpp

an "army strength" : weighted sum of units (for example start with 0 for female, 1 for soldiers, 2 for champions and 5 for heros, and later refine these weights using attack stats)

a "defensive strength" : weighted sum of buildings (for example, start with 3 for civcentre or fortress, 1 for tower, 0 for others)

these strengths would be quite arbitrary, but would allow a better comparison of military power than the numbers of units or buildings

Link to comment
Share on other sites

I think indexes like "defense strength" and "attack strength" are a bit opinionated, although I understand the use case. It might happen a player looses despite the fact the opponent had only half of the strength. Let's say this first set of charts is about building a working economy. Making the charts revealing why a game was lost requires more and probably should take balances into account. What might work as a first approach is relative health, reminding the player not to send half dead warriors into battle and accumulated attack strength separated by infantry and cavalry.

Is there somewhere a doc explaining the math of hitpoints, pierce, crush, hack, etc.

Link to comment
Share on other sites

It's not that hard. The damage for each statistic is calculated as

AttackValue * 0.9^ArmourValue

Then the resulting number is summed for the 3 possible stats (pierce, crush and hack), and together, it's the reduce in hitpoints. If an AttackValue for a certain stat is zero, then it causes no reduce in HP. If an ArmourValue is zero, then the reduce in HP is just the amount of the AttackValue.

Then you have the bonuses. Which are just multiplicators if the damage in HP.

More elaborate damage (like splash damage) is a bit more difficult, as it takes the distance between the two into account.

Link to comment
Share on other sites

Did I ever say that the attack strength would tell you if you will win or not ? No, it was only supposed to be an indicator of your strength.

Then if you want to split it in infantry and cavalry, and health and whatever you like, and combine hitpoints, pierce, crush or whatever you like for the weight, that's fine.

But what I would like from such an indicator is for it to stay simple to interpret, and to allow you to have a snapshot of your global strength relative to your opponents without having to look at 20 charts.

Link to comment
Share on other sites

From nowhere ;) just as a starting point (as said in my post), it would already be much better than what is available now (i.e. the number of units). Of course, this would be just a starting point and we will have to improve these weight using unit stats (as also said in the post). But this improved weight will certainly take quite some time and trials before having something which suits the most people. So the idea was to start with something simple (to check and implement the concept) and improve it later.

But I've nothing against implementing already a better unit weight ! The only thing I would like to avoid is that this "simple summary estimator" transforms in a "lot of complementary estimators".

Link to comment
Share on other sites

I think, there should be a method to find out these numbers upfront by reasoning or stochastically and backed by stats. Otherwise each player simply proposes numbers based on his very own experience and tactics leading to endless discussions or a GUI to enter your favorites. What would be an approach to have an objective indicator?

PS: Did I mention there is a ticket proposing headless testing to get numbers like this?

PPS: Any useful data collected at the lobby?

Link to comment
Share on other sites

> Maybe your object can also be send, if it's not too big.

Great idea! 120 dots * 12 metrics * 64bit jsnumbers * x players = 92k max + whatever makes it an object. All needed is convincing players to install it and allow sending data. Well, it would improve the bots a lot and it opens door to visualize individual learning curves or something similar.

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...