What a save holds¶
A save holds players, clubs and competitions across the game world. The available history varies by career; it is not a complete archive of every match or injury.
Each reader returns a Table of records from the save you open.
People¶
players(), contracts(), suspensions(), staff(), staff_lists(), staff_candidates()
Players carry names, birth date and age, nationality, club, height, positions, 52 attributes,
the 8 personality attributes, current and potential ability, reputation, transfer value,
condition, traits, contract and any unserved ban. contracts() is the same contract record as a
table of its own, which is what you want when you are looking across every deal in the save
rather than at the players at a particular club. Staff records include names, ability, personality,
and how each person prefers a side to be run.
In FM26 and FM27, Staff.attributes, StaffCandidate.attributes, and staff exports use
the stored scales. adaptability, authority, and working_with_youngsters use a
20-point scale. The other staff attributes use a scale of 1 to 100. On FM26, only the
meaning of adaptability is verified. On FM27, the other ratings have been checked
against the game’s labels.
In Python, call row.attributes.to_display_scale() when row.attributes is available
to get whole-number ratings out of 20. The method rounds each 100-point rating with
(raw + 2) // 5 and bounds the result to 1 through 20. It preserves ratings already
out of 20 and leaves individual missing ratings as None.
Use staff_candidates() when comparing people across clubs. Each unambiguous person appears
once and carries its current club appointment records. The reader also looks for profiles
outside club lists. Club-list membership alone and unresolved teams can leave employment
unknown.
FM27 excludes recognizable offers and can infer free_agent for some profiles with a staff
role hint and no evidence of an appointment. The inference has limited in-game checks.
On FM26, contract offers can appear as appointments. Profiles without a readable current
contract remain unknown.
suspensions() includes recognized European bans. These rows use scope="europe" and
leave the competition and nation IDs empty.
Staff search in the web app¶
Choose a hiring preset to sort candidates by a weighted score out of 20. The staff profile shows the weight and rating for each input to the score. A missing input leaves the candidate unscored. The Attacking, Defending, and Possession coach searches give the higher of Tactical and Technical more weight. The Youth coach search gives Working With Youngsters the most weight and also uses coaching and people skills.
Use More staff roles to look for a Recruitment Analyst, Technical Director, Loan Manager, Head of Youth Development, or another specialist. Recruitment Analyst scores give more weight to Analysing Data and also use Judging Player Ability. Director of Football scores use Negotiating, Judging Player Ability, and Judging Player Potential. Use Confirmed job to show staff with a recorded appointment in the selected job.
The app uses its own weights, informed by Sports Interactive’s FM26 delegation guide and observations from FM27 staff profiles. Sports Scientist and Head of Sports Science scores use Sports Science. You can compare other ratings, such as Motivating, with the attribute filters.
To narrow a Staff search, choose an attribute and select Add filter. Set Min, Max, or both on the displayed scale out of 20. A bound excludes candidates whose rating is missing. Player lists use the same controls and also offer Top % for ranked columns.
Clubs¶
clubs(), managed_clubs(), finances(), sponsorships(), facilities(), stadiums(),
affiliates(), job_vacancies()
managed_clubs() is the club you run, and is empty between jobs. finances() is monthly figures
per club, in the save’s own unit. sponsorships() includes historical contracts, so a row
does not necessarily describe current income: an ended contract can keep a non-zero annual
value, so filter on end against the save’s date. A running contract can still sit outside
the screen’s sponsorship income. A contract’s length is total_value / annual_value years, not
the span between start and end. stadiums() holds capacities and ownership; names are
available for only some grounds.
Club data still has limits. The meaning of some sponsorship amounts is unconfirmed, and some finance histories still fail continuity checks. Passing the reader checks does not confirm every field’s meaning. See Trusting a number before using these fields in an analysis.
Nations¶
Player and club nation fields use ids within that save. nations() gives the matching
game database id for looking up a nation in an external list. Join a nation field to
Nation.nation_id, then use Nation.database_id as the key in your own nation-name map.
Nation names are not stored in the save.
Club.nation_id is the nation whose league a club plays in. It is None for clubs the game
stores with no league nation, such as some school and university teams. Their
Club.fa_nation_id still names their football association’s nation.
Competitions¶
stages(), competitions(), fixtures(), officials(), league_tables(), competition_rules(),
transfer_windows(), player_match_stats(), team_match_stats(), player_season_stats(),
player_season_history()
Fixtures provide dates, teams, rounds and scores where fmsave can decode an unambiguous result.
league_tables() holds a table only once its clubs have played in it. Before a division’s
first match it has no table for that division, although the game shows one with every club on
zero, and fmsave export league-tables notes on standard error when it writes no table. Use
fixtures() for the division’s clubs and matches until then. competition_rules() takes a
rules block’s competition from the table stored after it, so before the season starts fewer
blocks carry a competition_id.
On registered FM26 and FM27 builds, join a played fixture’s referee_id to
Official.referee_id from officials() in the same save. A referee can appear in many
fixtures. An unplayed fixture has no referee ID, and a played fixture can carry an ID
with no matching official in the table. Official.person_uid is the person’s separate UID.
player_season_stats() is each player’s current season, as the squad and player screens show it:
one row per competition type and team, with counts such as minutes, xG, passes and tackles, and
the per-90 and percentage figures the game shows. player_match_stats() reads individual match
histories stored within player records. Coverage varies by save and player; it is not a complete
career match log. Empty output passes validation when every player explicitly has no stored
history.
Incomplete or unresolved histories fail the reader checks.
Current overall club statistics include minutes_since_last_goal for players who have scored.
Retained match histories include entered_at_minute and left_at_minute when stored. Their
ratings can differ from the full match report, which records ratings at higher precision.
team_match_stats() gives each side’s figures from the game’s match stats screen: shots, xG,
possession, passes, crosses, tackles, aerials, fouls, cards, corners, and distance. A match has
2 rows, 1 per team. Join them to fixtures() on competition_id, home_team_id,
away_team_id, and date. The game keeps these reports for some matches only, mostly recent
ones, so older fixtures often have no rows. Progressive passes appear only on matches the game
kept in its detailed format. The reader supports FM26 builds 26.3.1 and 26.3.2 and FM27 builds
27.0.0+2486695 and 27.1.0+2505117. A save updated from 27.0 can hold reports from both
FM27 versions.
Injuries¶
injury_types(), injuries()
injuries() reads retained injury history, not a complete career medical record.
Only a TYPED row, a recent or current episode, carries an injury type_id. A HISTORY row
never does, so a save with no recent injuries has no types on any row. The names come from
injury_types(), which the save keeps only in per-match files. On the saves measured, a new
career and a pre-season save held none, so injury_types() was empty and type_name stayed
None even where type_id was set; they appeared after the first competitive match.
Your own club’s work¶
training(), mentoring(), tactics(), set_pieces(), selections()
These readers return data for the club you manage. Other clubs return no rows. tactics()
includes stored preset and alternate tactics; a row is a copy for one team, so the same tactic
can appear more than once. selections() holds each team’s stored starters and substitutes.
A starter’s slot points to the in-possession slot in the selected tactic. Its
out_of_possession_position_index gives the player’s defending slot in tactic.slots, counting
from 0. Before following the index, check that the tactic has 11 slots and their indexes
include each value from 0 through 10 exactly once. Read the defending slot’s
out_of_possession_positions.
The selected tactic is unknown. The stored substitutes can include players beyond the next
match’s bench size.
Training sessions and sponsorship types use labels confirmed for the save’s edition. Both retain the original codes, including codes without a confirmed label.
squad_planner() reads numbered slots for the current season and the next 2 seasons
on FM27 build 27.0.0+2486695 with a single human manager.
Limits and missing values¶
Names from the installed game database. fmsave ships no competition, league, nation or city names and reads nothing from your game install. Some stadium names are available in the save. See Competition names below.
Unresolved links. Some rules blocks cannot be linked to a competition. A club’s home ground
is inferred from fixtures where possible. Missing links remain None.
Unconfirmed meanings. Most tactic settings and roles have no confirmed labels; staff jobs are labelled on FM27 only. They keep their raw numbers. Other fields can have a value whose meaning is still unconfirmed; Trusting a number explains how to check.
Partial history. A missing score can mean the result was not retained, is not yet decoded, or could not be joined unambiguously. Injury history also has limits. Neither reader promises complete career coverage.
Unsupported fields. fmsave does not expose today’s availability, a full matchday lineup
(selections() holds the stored picks), club debt, or asking prices.
That does not establish whether the save stores them. Season statistics do include yellow and
red cards; check each field’s status before using it.
Unreadable values remain None. Empty tables need context: the save may explicitly have no
records, or the reader may have failed to recover them. Use validation and table coverage to
check the distinction.
Competition names¶
Competitions carry a database_id, the id every outside name source is keyed on. Supply a map and
fmsave fills in name and every denormalised competition_name:
import fmsave
name_map = fmsave.read_competition_names("competition-names.csv")
with fmsave.open("career.fm", competition_names=name_map) as career_save:
for row in career_save.competitions():
print(row.database_id, row.name) # 12345 "Example League"
The file is UTF-8, 2 columns, database_id then name; a leading header row is skipped. Any
mapping of database id to name works in its place, and fmsave export --competition-names PATH
takes the same file.
Without a matching map entry, name and competition_name remain None. Competitions without
a database_id cannot use this map; competitions created during a career may have no entry in
an outside name source.
Which reader has the field you want¶
The reference lists every record type and every field. If you are not sure a number means what you think it means, read Trusting a number first.
player_season_history() reads archived statistics for each player and team. It keeps the
archive’s order and includes an unconfirmed candidate season year and competition reference.
Imported history can omit detailed counts. See exporting for those limits and
for the player-season-history CLI table.