FM27 match engine: what we know so far

I had time for some more tests, here is the summary:

Personality, traits and stamina​

Some updates on personality, traits and stamina following the discussion above.

Each condition sets one value for the whole squad and replays the same 10 matches on 30 seeds against the unchanged squad (1.97 points a game). Points per game:

Change (whole squad)Points per gameWhat changes
Pressure 1−0.68 (t −6.8)finishing collapses: 1.9 fewer shots on target, goals 0.43 below xG
Professionalism 1−0.41 (t −4.2)less possession, fewer passes and shots
Sportsmanship 1−0.26 (t −2.7)more fouls and cards, broken-up play
Temperament 1−0.14 (not clear)+0.4 cards a match
Any of these at 20within ±0.1nothing clear
Stamina −5−0.33 (t −3.4)mostly goals and chances conceded
Stamina +5+0.13 (not clear)
Natural Fitness ±50.00600 replays identical to the unchanged squad
Any of 25 traitsall within chancestyle only (see below)

These are reported in studies 27 (https://github.com/caiograco289/Fm-Match-Lab/blob/main/docs/studies/27-personality.md), 28 (Fm-Match-Lab/docs/studies/28-stamina-natural-fitness.md at main · caiograco289/Fm-Match-Lab) and 26 (Fm-Match-Lab/docs/studies/26-traits.md at main · caiograco289/Fm-Match-Lab).

Why is Pressure so much bigger than what I posted before?
I wrote that Pressure 1 costs 0.15 a game. That was expected points (from xG). In actual points it costs 0.68 a game, because the damage is in finishing, which xPts misses. The chances still get created, then get missed or badly struck. Professionalism I had listed under "no measurable effect". With more matches, Professionalism 1 costs 0.41 a game. It works through the same pre-match state as Pressure (players start the match a bit below their attributes). For both, the cost is at the bottom: at 10 neither cost anything measurable, so the damage starts somewhere below 10.

Do traits change results? (for @DRAGN)
No. 25 traits were added to the whole squad or removed from the players who had them, with no difference in points or xG difference beyond chance. They clearly change the style, the way their names say: Shoots From Distance adds 4.6 shots and 21 fewer passes a game, Crosses Early 1.7 fewer shots, Runs With Ball Often 17 fewer passes. The extra long shots are worth little each, so xG doesn't rise. One caveat: I gave each trait to the whole squad, which isn't how traits are used. A trait on one well-suited player (a good long-shot taker with Shoots From Distance) wasn't tested and could still matter.

Why is Stamina lopsided?
Players run on a sprint-energy tank that Stamina drains and refills. A full tank lasts about 16 seconds of sprinting, and an empty one makes a player a lot slower and stops him closing down, pressing and making forward runs. Five points less empties it noticeably late in matches, which is where the cost shows (goals conceded). Five more mostly adds energy the squad wasn't using.

And Natural Fitness?
It isn't used inside a match at all. 600 replays came out identical, pass for pass. It belongs to recovery between matches, which a single match can't show, so it may still matter over a season.
 

Position ratings​

@berkss asked a while ago whether a player who can't play a position costs more, and I offered a single-player test. Here it is, with the line-up locked (no substitutions or changes) so the player stays where he is: 20,000 random configurations where each starter's rating for his own and other positions is set at random, plus whole-team levels with and without in-match management. Results on the 27.1 engine.

Position ratingCost
16 or morenothing measurable
15, whole team−0.05 xPts a game (too small to call)
10, one outfield player−0.04 xPts a game, about 1.4 points a season
10, whole team and keeper−0.35 xPts and −0.64 points a game, about 24 points a season
10, goalkeeper only−0.27 points a game, 0.42 more goals conceded

Does it get worse below 10?
No. The cost starts at 15, grows from 14 down and stops growing at about 10. A player at 5 costs about the same as at 10. For the keeper it's different, the cost keeps growing down to 5.

Which positions cost most?
Strikers (about 1.9 points a season at 10), then attacking midfielders. For defenders and full-backs, one player out of position costs little.

Does the in-match management change it?
No, the cost is the same with the assistant managing live.

So is it the area of the pitch he is in?
No, and this corrects my guess in the reply above. The engine reads his rating for the position his tactic gives him in the current phase (the better of the positions in that slot, in or out of possession). Where he happens to be on the pitch doesn't come into it. It also corrects study 17b a bit: with the assistant managing I found the other positions mattered more, but with the line-up locked his own position matters more, and other positions count about a third as much per player. The whole-team cost of everything at 10 is about the same in both tests (−0.30 and −0.35 xPts).

Why is the goalkeeper different?
His rating is basically shot-stopping: at 10 he stops fewer shots, while the xG he faces doesn't change. My earlier number (0.7 more goals at 10) had the assistant managing on 27.0.1. With the line-up locked it's 0.42, which I think is the cleaner number.

So in practice: a player at 15 or better is as good as natural. Below that the cost is real but modest for one outfield player, so playing a clearly better player out of position can be worth it. Just don't play an unconvincing goalkeeper.
 

Patch 27.1 and quick result​

@FMMaster5 asked whether tactics stopped working after the patch, and @Chitta and @Rains wondered whether the new patch is behind their results. I compared the 27.1 engine with 27.0.1 on the same 300 matches and seeds (per match, both teams):
27.0.127.1Change
Pass completion86.6%85.8%−0.8 points (clear)
Shots27.328.8+1.6 (clear)
xG per shot0.1270.122slightly lower
Total xG3.453.49unchanged
Cards4.65.0+0.4 (borderline)
Team's points a game1.971.85−0.12 (within noise)

So did 27.1 change the engine?
A little. Matches are scrappier: slightly fewer completed passes, and more but worse shots, mostly by the opponent. Total xG and results didn't move beyond noise. Nothing here says a tactic that worked before stopped working, although a tactic built around very safe passing could lose a bit.

Are my earlier results still valid?
Yes. Every 27.1 change sits behind a version switch inside the game. Set to 27.0.1's version, the 27.1 engine replays all 300 matches exactly as 27.0.1 did, goal for goal. The attribute and tactic results were measured on 27.0.1, and the changes since are small. These are reported in study 30: Fm-Match-Lab/docs/studies/30-game-update-27-1.md at main · caiograco289/Fm-Match-Lab

And quick result? (for Chitta and Rains)
To add to my reply above: there is no separate quick simulation in the game's code. A quick-result match is set up and played by exactly the same engine, and quick-result matches I saved replay exactly through it. Attributes and familiarity count the same way in both. What differs is who makes decisions during the match. With quick result the assistant keeps your tactic and only substitutes, while when you manage, every shout, mentality change and switch of shape is yours. Over a few dozen matches luck is also big: 0.4 points a game between two sets of 20 games can be chance alone. Chitta, your point about two-DM tactics doing worse when you manage is interesting, and it would fit the idea that our in-match changes are what differs. But I'd need to test it before saying more.
 

Some of the "why" from the engine thread​


For those not following the other thread, a short summary of what the engine work says about results in this thread, plus one more correction.

Why are Pace and Acceleration worth so much?
The busiest calculation in the engine is "who gets there first": for every run, chase, loose ball and pass, players work out who would reach it. Once the ball is kicked, who intercepts it is pure physics, with no separate roll. Pace and Acceleration sit under all of it, plus the tackle on both sides. And they work through the real attribute directly (top speed, acceleration), not through the dice.

Why do most mental and technical attributes show so little?
Many of them work mainly through occasional lapses (a bad read, a missed man, a poor decision) when a die comes up zero. The engine keeps attributes on a compressed scale, so that's a 2-4% chance at any level, and going from 12 to 17 changes it very little. Anticipation is the exception that pays everywhere: it's how far ahead a player reads play, used for what he notices, where his man is going and who will get the ball. Vision only helps together with Anticipation.

Where does xG come from?
The engine has its own xG model that reads no attributes (distance, angle, defenders in the way), and players use it to decide when to shoot. Finishing, Long Shots and Heading then decide how well the shot is struck. That's why Finishing moves goals and not xG. Keepers are the same: their attributes act only at the save, so they change goals conceded and not xG faced, which is why xG tables miss them.

The correction: Strength
I wrote above that Strength adds about 0.5 goals a game above xG from 1 to 20. In the engine Strength is read in only a few places during play, mainly the body contest (with Balance), plus kick power. Nothing in the shot or the save reads it in a way that would add goals above xG. A paired retest found no goals-above-xG effect (+5 Strength: +0.07, not significant, while Finishing as a control did show one). So I'd treat that line as wrong.

Where does home advantage come from?
Mostly the crowd, like Purity and LightningFlik said. Each player gets a crowd term from his own side's share of the attendance, with his morale and Pressure, and away fans count for the away side. Club strength and a home flag add a bit more. Swapping all three between identical sides brings the home advantage within noise of a full mirror, with the crowd the biggest part. The numbers are in the engine thread.

Where do nerves and form come from? (for @Forsti37)
Thanks for the FM24 write-up, it was really useful to check against. In FM27 there are two separate pre-match inputs, and I think we're both partly right:
  • A "form on the day" roll from Consistency in ordinary matches and Important Matches in big ones, blended by how big the match is for the player. That's what you found in FM24, and it looks the same in FM27.
  • A nerves term that does depend on Pressure in FM27. We measured it live in a match (away at Man City): 17 for the squad as it is, 40 at Pressure 1, 0 at Pressure 20. It lowers every effective attribute, about 1.8 points on the 1-20 scale at Pressure 1. Professionalism feeds the same state.
So either FM27 changed this, or it was there in FM24 under another name. Choking on kicks is separate again, and that's where most of Pressure 1's cost in results comes from (finishing). I'd happily compare offsets if you get to FM27.
 

Patch 27.1 and quick result​

@FMMaster5 asked whether tactics stopped working after the patch, and @Chitta and @Rains wondered whether the new patch is behind their results. I compared the 27.1 engine with 27.0.1 on the same 300 matches and seeds (per match, both teams):
27.0.127.1Change
Pass completion86.6%85.8%−0.8 points (clear)
Shots27.328.8+1.6 (clear)
xG per shot0.1270.122slightly lower
Total xG3.453.49unchanged
Cards4.65.0+0.4 (borderline)
Team's points a game1.971.85−0.12 (within noise)

So did 27.1 change the engine?
A little. Matches are scrappier: slightly fewer completed passes, and more but worse shots, mostly by the opponent. Total xG and results didn't move beyond noise. Nothing here says a tactic that worked before stopped working, although a tactic built around very safe passing could lose a bit.

Are my earlier results still valid?
Yes. Every 27.1 change sits behind a version switch inside the game. Set to 27.0.1's version, the 27.1 engine replays all 300 matches exactly as 27.0.1 did, goal for goal. The attribute and tactic results were measured on 27.0.1, and the changes since are small. These are reported in study 30: Fm-Match-Lab/docs/studies/30-game-update-27-1.md at main · caiograco289/Fm-Match-Lab

And quick result? (for Chitta and Rains)
To add to my reply above: there is no separate quick simulation in the game's code. A quick-result match is set up and played by exactly the same engine, and quick-result matches I saved replay exactly through it. Attributes and familiarity count the same way in both. What differs is who makes decisions during the match. With quick result the assistant keeps your tactic and only substitutes, while when you manage, every shout, mentality change and switch of shape is yours. Over a few dozen matches luck is also big: 0.4 points a game between two sets of 20 games can be chance alone. Chitta, your point about two-DM tactics doing worse when you manage is interesting, and it would fit the idea that our in-match changes are what differs. But I'd need to test it before saying more.
This is excellent stuff, really helpful!
 
Do you guys think there is interest in a mod that changes what player attributes matter? I think it is something we can easily do now that I understand and have decompiled the engine. See for example, one change that I did. I also managed to play in-game with these changes.

AttributeBeforeAfterChange
Anticipation+0.55+1.48×2.7
Concentration+0.48+0.80up
Stamina+0.94+0.76slightly down
Jumping Reach+1.38+0.69halved
Pace+1.55+0.69halved
Acceleration+1.58+0.65more than halved
Dribbling+0.45+0.64up
Passing0.00+0.46from nothing
Balance+0.29+0.35same
First Touch0.00+0.33from nothing
Agility+0.28+0.26same
Composure+0.09+0.20up (t ≈ 3)
Vision+0.11+0.18up (t ≈ 2.6)
Marking0.00+0.16small (t ≈ 2.4)
Technique0.00+0.16small (t ≈ 2.3)
Strength, Decisions, Off The Ball, Work Rate, Positioningabout 0.1about 0.1not clearly above zero
Finishing, Crossing, Flair, Heading, Tackling, Long Shots, Bravery, Aggression, Teamworkabout 0about 0no clear effect either way

I am trying to understand if anyone would care for that, and what that would mean exactly.
 
I think unless you're applying different weights to different positions, it's not worth the trouble. Just my two cents though.
 
Do the pre match team talks have much effect on the nerve scoring or is that calculated before that? It seems to me that team talks to lower pressure on players would always be a positive thing?
 
Hi @caiograco ,

Do you see any conflict or potential influence on your testing based on the ME modding attempts and their difficulties regarding the qme tables and the 3D match engine?

Sorry if you've already answered that question either here or in the other thread - I've tried to read through and make sure that you at least hadn't done so in this thread.

Kind regards,
 
Do you guys think there is interest in a mod that changes what player attributes matter? I think it is something we can easily do now that I understand and have decompiled the engine. See for example, one change that I did. I also managed to play in-game with these changes.

AttributeBeforeAfterChange
Anticipation+0.55+1.48×2.7
Concentration+0.48+0.80up
Stamina+0.94+0.76slightly down
Jumping Reach+1.38+0.69halved
Pace+1.55+0.69halved
Acceleration+1.58+0.65more than halved
Dribbling+0.45+0.64up
Passing0.00+0.46from nothing
Balance+0.29+0.35same
First Touch0.00+0.33from nothing
Agility+0.28+0.26same
Composure+0.09+0.20up (t ≈ 3)
Vision+0.11+0.18up (t ≈ 2.6)
Marking0.00+0.16small (t ≈ 2.4)
Technique0.00+0.16small (t ≈ 2.3)
Strength, Decisions, Off The Ball, Work Rate, Positioningabout 0.1about 0.1not clearly above zero
Finishing, Crossing, Flair, Heading, Tackling, Long Shots, Bravery, Aggression, Teamworkabout 0about 0no clear effect either way

I am trying to understand if anyone would care for that, and what that would mean exactly.
Also, I'd be extremely interested to see this mod, if nothing else just to witness how the game plays out and looks in the (2D and 3D) ME!
I've longed for the physicals to take more of a back seat in FM.

Kind regards and happy modding! ;)
 
Back
Top