Forum Discussion

EE_Elephterion's avatar
7 years ago

How your Offense Level is calculated

Level Calculation
For calculating the Offense Level of your army, the value of every unit is considered and transferred into an arbitrary score. That score is based on the level, its Army Point Cost and a magic number that acts as a modifier to balance powerful units against weaker units. That score then gets calculated against a theoretical army score on a given level to find out how close you are to your army’s hypothetical power potential of that level.

Unit Score
First, the individual score of every of your fielded units is calculated.

All Unit Scores add up to the final Player Army Score

Offense Level Modifiers
The strongest units of a faction have a magic number they bring into the formula. This ensures that, due to their power, these units are also weighted heavier in the calculation of the Offense Level.

GDI Offense Level Modifiers:

  • Commando: 2,6
  • Mammoth: 2,6
  • Juggernaut: 1,5
  • Kodiak: 2,6

Nod Offense Level Modifiers:

  • Confessor: 1,5
  • Commando: 2,4
  • Avatar: 1,5
  • Specter: 2,6
  • Salamander: 2,6

Any unit not listed can be assumed to have an OLM of 0 (in words: Zero)

Theoretical Army Score
For calculating the Final Army level another value is needed, the value of an theoretical army using all available army points and has all units at its available max level. This does not take the magical numbers of the OLM into account.

Army Score Fraction
Before the Final Army Level, a Fraction is calculated based on the Player Army Score compared against the Theoretical Army Score of a given level.

The game calculates the Theoretical Army Score from level 1 to 200 (just in case) and then checks the Player Army Score against that array of values. The TAS that is the next lower value to the PAS is then chosen as the Theoretical Army Score for the calculation. Both are subtracted with the TAS that is one level below the TAS corresponding to the PAS.

Final Army Level
Ultimately the Final Army Level is calculated with the formula below and rounded to two digits after the comma.

If the TAS and PAS are identical, this value will return 1, which will result in an even Offense Level equal to the Command Center level, as intended.
In some rare cases the Offense level may exceed the CC level. That is when fielding only endgame units with an OLM greater than 0 (see list) in a low-level army; like 6x level 10 Salamanders at a level 10 CC.

Naturally, the mix of units is what ultimately decides the effectiveness of your army in combat, not the raw Offense Level alone. The strongest units won't be worth their repair costs if they are not used effectively.

  • "SpeirFein;c-2100363" wrote:
    @EE_Elephterion,

    Could you please update the post with the correct math? Currently, the equations and methodology given is incorrect in providing an accurate calculation of a player's offense level.

    The main is reason is the Army Score Fraction. In general, the Army Score Fraction should be a negative. With the current equation and methodology, the ASF is a positive number.

    Let's assume a Command Center Level of 31. Next let's assume a Player Score Value of 65,000.

    You state that the theoretical army value is the calculation that is the maximum value that is less than the player's value. In this case, that is the number 61,717. Then, for the maximum value minus 1 level, you state that is the maximum value below the number 61,717 which is 56,970.

    Calculating that we get:

    (65,000 - 61,717) / ( 61,717 - 56,970) = .6916

    This number is nowhere near correct when added to (31- 1) + .6916. = 30.69 where in the game the OL shows 28.91.



    tested the formula also and i get wrong results...
    did anyone have any luck "discovering" it?
  • "EE_Elephterion;d-227222" wrote:
    Level Calculation
    For calculating the Offense Level of your army, the value of every unit is considered and transferred into an arbitrary score. That score is based on the level, its Army Point Cost and a magic number that acts as a modifier to balance powerful units against weaker units. That score then gets calculated against a theoretical army score on a given level to find out how close you are to your army’s hypothetical power potential of that level.

    Unit Score
    First, the individual score of every of your fielded units is calculated.

    All Unit Scores add up to the final Player Army Score

    Offense Level Modifiers
    The strongest units of a faction have a magic number they bring into the formula. This ensures that, due to their power, these units are also weighted heavier in the calculation of the Offense Level.

    GDI Offense Level Modifiers:

    • Commando: 2,6
    • Mammoth: 2,6
    • Juggernaut: 1,5
    • Kodiak: 2,6

    Nod Offense Level Modifiers:

    • Confessor: 1,5
    • Commando: 2,4
    • Avatar: 1,5
    • Specter: 2,6
    • Salamander: 2,6

    Any unit not listed can be assumed to have an OLM of 0 (in words: Zero)

    Theoretical Army Score
    For calculating the Final Army level another value is needed, the value of an theoretical army using all available army points and has all units at its available max level. This does not take the magical numbers of the OLM into account.

    Army Score Fraction
    Before the Final Army Level, a Fraction is calculated based on the Player Army Score compared against the Theoretical Army Score of a given level.

    The game calculates the Theoretical Army Score from level 1 to 200 (just in case) and then checks the Player Army Score against that array of values. The TAS that is the next lower value to the PAS is then chosen as the Theoretical Army Score for the calculation. Both are subtracted with the TAS that is one level below the TAS corresponding to the PAS.

    Final Army Level
    Ultimately the Final Army Level is calculated with the formula below and rounded to two digits after the comma.

    If the TAS and PAS are identical, this value will return 1, which will result in an even Offense Level equal to the Command Center level, as intended.
    In some rare cases the Offense level may exceed the CC level. That is when fielding only endgame units with an OLM greater than 0 (see list) in a low-level army; like 6x level 10 Salamanders at a level 10 CC.

    Naturally, the mix of units is what ultimately decides the effectiveness of your army in combat, not the raw Offense Level alone. The strongest units won't be worth their repair costs if they are not used effectively.


    Army Score Fraction
    - TAS - first higher value to the PAS
    - TAS_1 - first lower value to the PAS

    - ASF has values from 0 to 1 (1 excluded).



    Final Army Level
    Command Center Level that corresponds to the TAS_1
    +
    ASF (
    rounded truncated to 2 digits)

    note:0.999 rounded to 2 digits would be 1 which is wrong.
    ________________________________________________________________
    Many moments later...I got this formula to get proper results... :tongue:

    The only instances it fails to show the proper levels is when only the army is 1 level 1 unit that has 5 army points:
    - formula sais OL=0.5
    - game sais OL=1 (2 level 1 units that are using 5 army points each is still OL=1 here though)
    ________________________________________________________________
    @EE_Elephterion: thanks for the info...