<< Back to Warzone Classic Forum   Search

Posts 1 - 3 of 3   
XP per level: 2025-09-03 23:18:05


JK_3 
Level 64
Report
Thanks to global chat I figured out how the total xp per level is calculated.

It took a lot of trial and error, especially since it changes formula after a player has unlocked everything (after level 54), but the current formula basically gives what https://www.warzone.com/wiki/Levels lists as the currently known total xp per level.

I'm mostly dropping this in a forum so I can just look it up next time instead of having to figure it out again.
Perhaps it will be useful for someone else too :)



Python code:
import math
LAST_UNLOCK_LEVEL = 54

def xp(level):
    x = level - 1
    base = 133410
    power = 0.05113961609486111
    multiplier = math.exp(power * x) - 1
    xp = math.floor(base * multiplier)
    return xp - xp % 100 # round down to nearest 100

def xp_corrected(level):
    if level <= LAST_UNLOCK_LEVEL:
        return xp(level)
    # else:
    levels_over_last_unlock = level - LAST_UNLOCK_LEVEL
    level_to_use = level + 5 * levels_over_last_unlock 
    correction = 500_000 * levels_over_last_unlock
    return xp(level_to_use) - correction


Edited 2025-09-05 11:26:03
XP per level: 2025-09-05 02:43:03


riskboy88 
Level 63
Report
Great Job JK! Excellent work

For us non-code folks out there (simplified some parts for the maths):

Total XP needed for Level x where x≤54:

XP = (133410e^0.05113961609486111(x-1)) - 133410

round down to nearest hundred*

Total XP needed for Level x where x≥54:

XP = (13340e^0.05113961609486111(6x-271)) - 500000x + 26866590

round down to nearest hundred*

* = There are some levels where the value actually rounds up instead of rounding down.

Here are all the levels where it rounds up rather than round down. The level is given, followed by the value of the XP calculated without rounding.


2: 6999.99932028
21: 237596.437826
26: 237596.437826
38: 751594.64068
55: 2092791.26946
64: 38006494.7456
67: 101672694.895

As you can see, these values are all very close to rounding up, all within 10 points of the following hundred. My hypothesis is that the XP number rounds up if the calculated number is within 10 of the next higher hundred, and that it rounds down otherwise.

Level 28 has a calculated value of 397289.913983, and it rounds down. This is the highest value I could find for the distance between a calculated XP and the hundred multiple below, for which it rounded down. So this is consistent with my hypothesis.

Edited 2025-09-05 03:00:31
XP per level: 2025-09-05 03:15:17


riskboy88 
Level 63
Report
Values for total XP as calculated with formula

70: 263,777,500
71: 360,926,300 (this one rounds up)
72: 493,142,700
73: 673,020, 200
74: 917,675,100
75: 1,250,370,000
76: 1,702,722,100 (this one rounds up)
77: 2,317,702,500 (this one rounds up)
78: 3,153,714,400
79: 4,290,134,800
80: 5,834,846,600

If the levelup formula continued as it were before level 54, I would be level 106 now. And the top leveled player would be level 145.
Not sure why Fizzer wouldn't have it like that. Maybe I'll ask that in next AMA.

Edited 2025-09-05 03:24:26
Posts 1 - 3 of 3