Ramblings on game analytics

Game Balance: Analyzing curves, machinations, idle optimization, and obfuscation

My previous post was ramblings about curves and level curves were also mentioned. Character progression in terms of level is a pretty standard way to indicate character growth in modern games and they usually follow a somewhat recognizable format. I don’t know of a game that would use an exponential curve for required experience points from level to level since that would end up in ludicrous numbers quite quick. Typically these curves are triangular or just completely hand-made. Here’s how South Park: The Fractured But Whole hero ranks look like plotted.

If we look at the total xp required for the next rank, it looks fairly smooth but clearly isn’t exponential still. Now, if we look at the delta of experience points between two levels and graph that out (on the right) we get a completely different looking plot. This doesn’t seem to follow any formula as there’s a big spike between levels 9 and 10, and the levels gained from 0 to 4 are quite fast compared to 4 to 9. This is how that data looks as a table:

Rank Xp from previous Total xp
1 0 0
2 75 75
3 270 345
4 500 845
5 600 1445
6 700 2145
7 800 2945
8 900 3845
9 1000 4845
10 1600 6445
11 1800 8245
12 2000 10245
13 2200 12445
14 2400 14845
15 2600 17445

Hero rank progression in South Park: The Fractured But Whole

Now let’s examine another game’s level curve. I’ll take Fallout: New Vegas as an example since it has a decent level cap (50 if you have all the DLC, 30 without). If we plot out the level vs. experience points as a scatter plot and then try to fit different trend lines on that scatter plot we got figures and R2 values that look like this:

As we can see, the polynomial (degree of polynomial n=2) trend line fits perfectly onto the curve with an R2 of 1. It’s clear this isn’t a pure linear curve nor an exponential one, but those trend lines also have quite high R2 values of over 0,9.

Machinations

There’s a really cool design tool for simulating games systems called Machinations.io which allows designers to model just about anything, although the node graph might get quite complex and hard to read for people who don’t understand it. Here’s for example my attempt in modelling the first phase of a German card game called KuhHandel and you can find the machination here.

This is really simplified in that there’s only two players who have 100 tokens to bet against each other to get more animals for themselves. The one with the bigger bet discards their bet and gets one animal whereas the one with the lower bet gets to keep the money they offered.

Idle game optimization

I’ll return and rewrite this section after I’ve done a bit more optimization on my model. I have the game ready in a spreadsheet but haven’t yet gotten around to optimize it.

Solving obfuscation problems in F2P

One thing that I’ve already touched on is the resource pack subject in F2P games. F2P games typically try to obfuscate the real costs of resources by making non-linear relationships between gold and acquired in-game currency or by using unintuitive numbers such as 6.58 € for 27 Shingles. It’s not very easy for a human to calculate how much their paying for a single Shingle in this case and then again it’s even harder for them to determine which resource bundle they should buy if the numbers and relationships differ. Then it’s easier for the player to accidentally overpay for resources if they only want a certain amount and are just taking the easiest route of paying for the biggest bundle. Let’s look at an example of optimization:

Gold Cost in euros
10 0.99
35 2.99
125 9.99
300 19.99
1000 49.99
2500 99.99

Cost of gold bundles

Gold Supplies
10 50
20 115
40 250

Cost of supply bundles

Here we’ve got two tables, one indicating how much real world money (euros) in-game gold bundles cost and the other indicating how much supply bundles cost in in-game gold. If you’d be tasked to tell me what the cheapest way for a player to get 500 gold is, what would you do? You could try to do it in your head but it takes a bit of time.

This is a minimization problem and luckily we don’t need to reinvent the wheel here. You can put all those numbers in a spreadsheet (I used Google Sheets) and use some add-on (I used OpenSolver). Here’s what the numbers look like:

MINIMIZATION PROBLEM
Names x1 x2 x3 x4 x5 x6
Vars value 1 2 0 0 0 0
Obj min 0.99 2.99 9.99 19.99 49.99 99.99
Gold 10 35 125 300 1000 2500
0 0 2
Supply cost 10 20 40
Supplies 50 115 250

Buying 500 supplies for the cheapest

So we’d need to buy 1 pack of 10 gold and 2 packs of 35 gold. Then we’d buy two 250 supply packs and we’re solid.

Next, if we have 20 % discount on supply packs and gain 20 % more resources, the numbers would look like this:

20% DISCOUNT + 20% MORE SUPPLIES
Names x1 x2 x3 x4 x5 x6
Vars value 3 1 0 0 0 0
Obj min 0.99 2.99 9.99 19.99 49.99 99.99
Gold 10 35 125 300 1000 2500
0 0 2
Supply cost 8 16 32
Supplies 60 138 300

20% discount + 20% supplies for 500 supplies

Now we would still buy the biggest supply pack but we change the gold packs to 3 of type one and 1 of type two.

Unmatched - resource flow diagram

As more practice on Machinations and an ongoing effort to design an expansion for the game Unmatched, I made a very very simplified model of how combat works between King Arthur and Medusa. You can find the machination here. If you’re not that interested on clicking that link, then here’s just a sneak peek of how it looks like - what a beautiful mess.