Author Topic: A mathematical model of the cRPG metagame  (Read 3560 times)

0 Members and 1 Guest are viewing this topic.

Offline Rhekimos

  • Duke
  • *******
  • Renown: 672
  • Infamy: 78
  • cRPG Player
  • ふふふふふ
    • View Profile
    • Forbiddena
  • Game nicks: Fallen_Rhekimos
  • IRC nick: Rhekimos
Re: A mathematical model of the cRPG metagame
« Reply #15 on: October 26, 2012, 02:49:28 pm »
0
Actually this is taken into account, this line :

fitness[myClass] = fitness[myClass] * (1-pow(pop[myClass],2))

means that the closer the current pop of the class is to 0, the higher it's fitness will remain, simulating the fact that the last players of a class will not move so easily.

I'm sorry, but that's not taking the human sitting in front of the computer into account. That's adding a parameter to your function that makes it look less flawed, while making the exact same assumption about the average player. Science wise, a cosmetic change.

Now there's a few nutjobs who are acting against their best interest in the population. Most of the population is still only after kills, and will switch over to anything that killed them. That's not how you play, is it?

Quote
Also, you are not forced to interpret the fitness matrix as a measure of battlefield effectivity of a class against a certain class. It can represent how funny playing a class is.

I won't have fun as a polearmer if I end up against a 2h player? That's what your matrix would say, isn't? Can you model different actors with different payouts? Not everyone likes the same things after all, and some have a principle of their own against going ranged for example. Can you factor culture into it?
I think it would be a little naive to claim that how a player acts can be represented with a single number for each class.

Also I applaud your efforts, but I feel I must point out that this doesn't prove much. Our interactions with the game and each other are much more complex than this, and most importantly not everyone plays only to win. Models are necessarily simpler than reality, but if they are based on an incorrect assumption, no amount of tweaking will help it make correct predictions.


Offline Vibe

  • Vibrator
  • King
  • **********
  • Renown: 2528
  • Infamy: 615
  • cRPG Player Madam White Queen A Gentleman and a Scholar
    • View Profile
Re: A mathematical model of the cRPG metagame
« Reply #16 on: October 26, 2012, 03:06:29 pm »
+6
Spends 1 hour writing a quality renown-whoring post, gets +5
Vibe posts an image of a carrot in the same thread, gets +8

learn the way of renown you must, young padawan

Offline Armpit_Sweat

  • High Lord of the Spam
  • King
  • **********
  • Renown: 1417
  • Infamy: 154
  • cRPG Player Sir White Bishop
    • View Profile
  • Game nicks: Armpit_Sweat, My_horses_name_is_Rebecca
Re: A mathematical model of the cRPG metagame
« Reply #17 on: October 26, 2012, 03:10:56 pm »
+15
I found some math too:

visitors can't see pics , please register or login


EDIT:

Spends 1 hour writing a quality renown-whoring post, gets +5

Vibe posts an image of a carrot in the same thread, gets +8

:) :) +1 for you both
visitors can't see pics , please register or login
  Spam at The Temple of Spam

Offline Moncho

  • King
  • **********
  • Renown: 1127
  • Infamy: 221
  • cRPG Player Sir Black Bishop A Gentleman and a Scholar
    • View Profile
  • Game nicks: Moncho, Some_Random_STF, Some_Random_Troll
Re: A mathematical model of the cRPG metagame
« Reply #18 on: October 26, 2012, 03:22:50 pm »
0
This is a model. A quite thought through model, but as with any model, it cannot take into account every single element of the metagame. It still does a good job imo, from the numbers I saw in agweber post. And of course it can be improved, but even in the current state, it gives an overall idea.

These seem reasonable with the biggest amounts being 2h/pole, then ranged, shield, but with cav I think there is something pretty wrong, due to the fact that cav is not the best on 1v1 with aware people, but it shines in backstabbing and group fighting. You could represent this by adding a random factor to cav (representing the awareness of the target), or just take the average and increase its effectivity against other classes by a bit. I would suggest increasing cav v cav to 3, see what this does, as after all cav fights other cav at the beginning of the round often.

Unfortunately, I cannot run the script now to check what my changes do, might do it later though

Offline Kafein

  • King
  • **********
  • Renown: 2203
  • Infamy: 808
  • cRPG Player Sir White Rook A Gentleman and a Scholar
    • View Profile
Re: A mathematical model of the cRPG metagame
« Reply #19 on: October 26, 2012, 03:53:15 pm »
+3
I'm sorry, but that's not taking the human sitting in front of the computer into account. That's adding a parameter to your function that makes it look less flawed, while making the exact same assumption about the average player. Science wise, a cosmetic change.

Now there's a few nutjobs who are acting against their best interest in the population. Most of the population is still only after kills, and will switch over to anything that killed them. That's not how you play, is it?

Actually, this tweak makes low pop classes inherently "attractive". This means if this class is getting more players, it will grow faster, but it will also lose fewer players in the opposite situation. Players do not switch classes linearly. The very hardcore single-class players will only leave if their class becomes unplayable. The most volatile, min-maxing players will switch as soon as they see an opportunity to do "better", and this represented more or less accurately. If a class is very popular, only a few players of that class are the super hardcore type, and it is therefore easy for that class to lose players. If a class is very unpopular, only the most determined will stay, and those guys are hard to convince to switch. If you discretise the population and think of each class as a stack of players, with the most volatile on top, it is easy to understand.

I won't have fun as a polearmer if I end up against a 2h player? That's what your matrix would say, isn't? Can you model different actors with different payouts? Not everyone likes the same things after all, and some have a principle of their own against going ranged for example. Can you factor culture into it?
I think it would be a little naive to claim that how a player acts can be represented with a single number for each class.

The model does not represent the behavior of an isolated player, but rather that of the whole population. Things like taste can be averaged and included in the payoff matrix.

Also I applaud your efforts, but I feel I must point out that this doesn't prove much. Our interactions with the game and each other are much more complex than this, and most importantly not everyone plays only to win. Models are necessarily simpler than reality, but if they are based on an incorrect assumption, no amount of tweaking will help it make correct predictions.

It gives an idea of how the metagame can evolve, and how things that seem unrelated (shields becoming stronger against 2h and the amount of mounted ranged for example) are connected. We lack the base data to establish correct parameters for the model, but doing simulations with values that seem "close enough" already displays interesting non-linear behavior. It also questions how do we think about the metagame, maybe helping people to formulate their ideas and suggestions better.


Valid remarks nonetheless.

Offline Polobow

  • Count
  • *****
  • Renown: 267
  • Infamy: 30
  • cRPG Player Sir White Knight A Gentleman and a Scholar
    • View Profile
  • Faction: SoA
Re: A mathematical model of the cRPG metagame
« Reply #20 on: October 26, 2012, 04:50:34 pm »
+1
Where's WaltF4 when you need him?

Offline CrazyCracka420

  • Minute Valuable Contributor
  • Strategus Councillor
  • **
  • Renown: 1950
  • Infamy: 794
  • cRPG Player Sir White Pawn A Gentleman and a Scholar
  • Welp
    • View Profile
  • Faction: Vaegirs
  • Game nicks: Huseby
  • IRC nick: Steam name: crazycracka420
Re: A mathematical model of the cRPG metagame
« Reply #21 on: October 26, 2012, 05:17:17 pm »
0
I was told there would be no maths

visitors can't see pics , please register or login
visitors can't see pics , please register or login
 - Stolen from Macropussy

Offline Lt_Anders

  • King
  • **********
  • Renown: 1049
  • Infamy: 651
  • cRPG Player Sir Black Pawn A Gentleman and a Scholar
  • Man, I still play this shit?
    • View Profile
    • Drowtales
  • Faction: Astralis
  • Game nicks: Anders_Astralis
Re: A mathematical model of the cRPG metagame
« Reply #22 on: October 26, 2012, 05:19:23 pm »
0
The numbers have pretty much stabilized. Ranged Cav are no longer around. Cav's barely holding on.

Time :  164.2
Ranged  0.24
Shield  0.20
2h      0.27
Pole    0.27
Cav     0.03
HR      8.07676550724e-09

(rounded the numbers)

Interesting. 2h=pole followed just behind by range.

Wut do we have now...Shiedless heavy servers, with a lot of range. Sheilders are there, but not as much as 2h, pole, range.

Also, you should probably break up ranged a little more, Something like archers and then xbow/throwing. Becasue xbow is bad dedicated, but a lot carry so it should be somehow weighted separately.

Also, BUFF HA, they clearly suck and this model shows it too!

@Crazy:
WUT?
visitors can't see pics , please register or login

Offline Rikthor

  • Earl
  • ******
  • Renown: 432
  • Infamy: 53
  • cRPG Player
    • View Profile
  • Faction: BOARD Clan
  • Game nicks: Historian_Rikthorrr
Re: A mathematical model of the cRPG metagame
« Reply #23 on: October 26, 2012, 05:32:15 pm »
+1
I feel this is an appropriate response to this thread

Quote from: chadz
No matter how long you guys cry - I will not give in to dumbing strategus down because some people just want battles. If all you want are battles, then play cRPG, not strat. There are other people who like advanced gameplay.

Trolololololol

Offline Leshma

  • Kickstarter Addict
  • King
  • **********
  • Renown: 2744
  • Infamy: 936
  • cRPG Player Sir White Rook A Gentleman and a Scholar
  • VOTE 2024
    • View Profile
Re: A mathematical model of the cRPG metagame
« Reply #24 on: October 26, 2012, 05:56:47 pm »
+2
Quote
I realize I should do this with matlab and post graphs but heh I did this for fun and I tought it would be nice to post it, if you are into that kind of things, enjoy

Do it with matlab and also on paper (using real math).

Offline bilwit

  • Agent provocateur
  • Count
  • *****
  • Renown: 275
  • Infamy: 181
  • cRPG Player A Gentleman and a Scholar
  • The toast is anarchy!
    • View Profile
  • Game nicks: Billy_Whitmore, Andre_Whitmore, Gideon_Stargrave
Re: A mathematical model of the cRPG metagame
« Reply #25 on: October 26, 2012, 07:42:38 pm »
0
Do it with matlab

Yeah, not sure why he would just post source code and not even have any comments explaining his reasoning on top of not showing any results or analysis either. Why do it in python and not matlab anyway where you can readily pull graphs and shit out of it if the purpose was truly to show it to the community?

No flowchart, no results, not even a detailed description outside of the vague OP. The OP is basically, "here is a wall of source code I came up with, compile and analyse it yourself if you can even though I can easily make the assumption that most people here aren't coders or mathematicians." If I was a peer reviewer and this was a presentation I would throw 0's at you.
« Last Edit: October 26, 2012, 07:49:47 pm by bilwit »
visitors can't see pics , please register or login

Most of us are currently living off relatives, friends, parttime-jobs or savings, to be able to work as much and cheaply as possible.

Offline PhigNewtenz

  • Knight
  • ***
  • Renown: 74
  • Infamy: 2
  • cRPG Player
    • View Profile
  • Faction: Literally A Clan
  • Game nicks: Literally_PhigNewtenz, Literally_Not_PhigNewtenz
Re: A mathematical model of the cRPG metagame
« Reply #26 on: October 26, 2012, 08:26:43 pm »
+7
I think it's an interesting concept. I do modeling like this for a living, and I'm going to give the approach some more thought. First blush: it's a good model. I'm not sure if the 'Payoff' matrix is set up correctly, but without real data that's difficult to know.

For people who don't speak code, here're the results of Kafein's simluation in graphical form (only plotted to time = 50, because nothing interesting happens after that):

visitors can't see pics , please register or login



For those who speak MATLAB:
(click to show/hide)

I understand that the fitness = fitness * (1-pop^2) is trying to model the resistance of 'the last, hardcore players of a certain class to change'. The relationships are definitely non-linear, and this shows some of that. Can any other math people comment on whether they think this is the right way to do it?

Offline PhigNewtenz

  • Knight
  • ***
  • Renown: 74
  • Infamy: 2
  • cRPG Player
    • View Profile
  • Faction: Literally A Clan
  • Game nicks: Literally_PhigNewtenz, Literally_Not_PhigNewtenz
Re: A mathematical model of the cRPG metagame
« Reply #27 on: October 26, 2012, 08:40:04 pm »
+3
So I made one minor change to the 'Payoff' matrix and ran it again. I changed all the diagonal elements to '3', because I think every class is break even against itself. The results were amusing, but also convinced me that this model (or my assumption that classes are equal against each other) needs some tweaking.

Are you ready for an eerie (but clearly not realistic) prediction of the future of cRPG?

(click to show/hide)



If people have their own cases they want to see plots for (a case being some combination of initial conditions and 'Payoff' matrix), post them here. I'll run them if I'm on, or maybe some else can grab the code and run with it.

Offline genric

  • Baron
  • ****
  • Renown: 102
  • Infamy: 11
  • cRPG Player
    • View Profile
  • Faction: Order of the Holy Guard
  • Game nicks: HG_Genric, HG_Sentry_GenRic, A_Chilies, Beastasaurus
Re: A mathematical model of the cRPG metagame
« Reply #28 on: October 26, 2012, 08:44:05 pm »
0
This is cool. I like it.
Not enough pure positive comments so this is mine to you :)
I am the shadow that lingers in your wake. I am four steps behind and two before you. You are trapped. Always.
I checked, the only Vagabond I found was Wolves_Vagabond_TheCruel, that guy is now unbanned. Ban reason was: "calling Zotte a cockswoggler".

Offline Kafein

  • King
  • **********
  • Renown: 2203
  • Infamy: 808
  • cRPG Player Sir White Rook A Gentleman and a Scholar
    • View Profile
Re: A mathematical model of the cRPG metagame
« Reply #29 on: October 26, 2012, 09:11:56 pm »
+4
Do it with matlab and also on paper (using real math).

I don't think anybody would like to compute each step on paper. A bullet in the head is faster. And afaik there's no easy way to directly derive results at an arbitrary time without doing all the steps with models such as this. But as PhigNewtenz showed, in matlab it's quite awesome (btw I don't have matlab at home, otherwise I would have used it in the first place :s)

Yeah, not sure why he would just post source code and not even have any comments explaining his reasoning on top of not showing any results or analysis either. Why do it in python and not matlab anyway where you can readily pull graphs and shit out of it if the purpose was truly to show it to the community?

No flowchart, no results, not even a detailed description outside of the vague OP. The OP is basically, "here is a wall of source code I came up with, compile and analyse it yourself if you can even though I can easily make the assumption that most people here aren't coders or mathematicians." If I was a peer reviewer and this was a presentation I would throw 0's at you.

I don't want to start an argument (even though this sentence is not a very good idea to acheive that goal), but when I started the thread I wasn't trying to do a presentation. If I wanted to release serious stuff only, I would have spent a lot of time, which I didn't. I only thought it would be interesting to share, and it seems to me I wasn't that far from the truth. Other than that you are right.

I think it's an interesting concept. I do modeling like this for a living, and I'm going to give the approach some more thought. First blush: it's a good model. I'm not sure if the 'Payoff' matrix is set up correctly, but without real data that's difficult to know.

For people who don't speak code, here're the results of Kafein's simluation in graphical form (only plotted to time = 50, because nothing interesting happens after that):

visitors can't see pics , please register or login



For those who speak MATLAB:
(click to show/hide)

I understand that the fitness = fitness * (1-pop^2) is trying to model the resistance of 'the last, hardcore players of a certain class to change'. The relationships are definitely non-linear, and this shows some of that. Can any other math people comment on whether they think this is the right way to do it?

Awesome :)

About that line, I tried a few alternative formulas, but that one seemed to give the closest results to what I wanted (lower pop -> better fitness). A greater exponant leads to reducing the influence of this tweak, but 2 seemed "okay" (see that, I'm being unprofessional again :lol: ).


So I made one minor change to the 'Payoff' matrix and ran it again. I changed all the diagonal elements to '3', because I think every class is break even against itself. The results were amusing, but also convinced me that this model (or my assumption that classes are equal against each other) needs some tweaking.

Are you ready for an eerie (but clearly not realistic) prediction of the future of cRPG?

(click to show/hide)



If people have their own cases they want to see plots for (a case being some combination of initial conditions and 'Payoff' matrix), post them here. I'll run them if I'm on, or maybe some else can grab the code and run with it.

I had set different values to reflect that I think some classes tend to have a better time fighting internally. Fighting other 2h when you are 2h yourself is not really a problem. But for cav or shielders it can be a tedious process. This also reflects the fact that some classes have fewer counters than others. Mounted ranged can only be fully countered by ranged and other mounted ranged. If an enormous part of the playerbase was mounted ranged, the fitness of mounted ranged would stay high because classes like 2h would be "obsolete". Some classea are self-reinforcing and some others are self-regulatory, or at least that's how I see it.