A Football Manager 27 companion that judges your squad and transfer targets mainly on match data, against the tactic you actually play. The attributes the roles ask for are the starting point; as minutes build, match output takes over.
It comes in two halves:
- A BepInEx mod that lives inside FM27. One key press walks the game's own screens and writes JSON exports: your tactic, squad, player database, transfer history, finances and Data Hub figures.
- A local web app that scores every player for every slot in your tactic, ring-marks the weak slots, finds affordable upgrades, and shows what selling a player would free up. It runs at
localhost; there is no account, no database and no server.
| Screen | What it is for |
|---|---|
| Home | The best eleven for your tactic, with every weak slot ringed in red. The biggest gaps, cases to sell and contracts ending first. |
| Eleven | The eleven you have actually picked in the game, beside the eleven the data would pick. |
| Slots | One slot in depth: what the role needs, every player who can play there ranked on one scale, and a head-to-head compare. |
| Targets | Every scored transfer target in one sortable table, filtered by slot, budget and whether he is actually an upgrade. |
| Sell | The case for selling each squad player, and a what-if that shows the wages and fees ticked sales would free. |
| Transfers | Every deal in and out, with net spend by season. |
| Team | Your Data Hub figures against the league, form, the dressing room, and the team review. |
| Tactic | The tactic as read from the game: both roles per slot, team instructions, and a review against your results. |
| Style | What the squad can do from its attributes and match output, and the style of play that suits it. |
| Player | One player: his fit in every slot he can play, the stats behind it, and his percentiles. |
- The mod reads the game. It uses BepInEx and reads the game's own UI Toolkit screens. Nothing is injected into FM's code or save file; it clicks through the screens the same way you would, then writes what it sees into
BepInEx/fm-export. - The app turns the exports into decisions. The analysis step scores every player for every slot, computes league percentiles, and builds the page's data. The page itself only draws: one hand-written HTML page with plain CSS and JavaScript, no framework and no build step.
- Nothing leaves your machine except the optional Claude drafts described below.
| Game | Football Manager 27 on Windows (Steam), in English. The mod follows the game's English menu labels. |
| BepInEx | BepInEx 6 bleeding edge, IL2CPP, 64-bit — tested with 6.0.0-be.793. |
| Python | 3.11 or newer for the web app. No third-party packages. |
| .NET | The .NET 6 SDK or newer, only if you build the mod from source. The release download needs no SDK. |
| Claude Code | Optional, but needed for automatic stat-profile drafting. See Stat profiles. |
The full step-by-step guide, with the exact file layout and troubleshooting, is in INSTALL.md. The short version:
-
Install BepInEx into your FM27 folder, so
winhttp.dllandBepInEx\sit next tofm.exe. Run FM once and quit, so BepInEx generates the game's interop assemblies. -
Install FM Moneyball from the latest release by extracting the zip into the same folder, or build it from source (below). The two files end up in:
BepInEx\plugins\FmMoneyball\FmMoneyball.Loader.dllBepInEx\fm-moneyball\FmMoneyball.Exporter.dll
-
Start FM.
BepInEx\LogOutput.logshould say[Info:FM Moneyball] Exporter ready. -
Collect data in the game: press F11 for the tactic, F10 for the squad, player database and finances, and F6 for the Data Hub.
-
Run the app from the project folder and open http://localhost:8765:
python -m analysis serve
On Windows:
py -m analysis serve. In WSL or Git Bash:./serve.sh.
The app finds the usual Steam install automatically. If your game is somewhere else, set FM_EXPORT_DIR to the BepInEx\fm-export folder.
| Key | What it does |
|---|---|
| F11 | Reads the tactic: formation, both roles per slot, team instructions and role descriptions. Press it again after changing tactics. |
| F10 | Reads the squad, player database, transfer history and finances. Hold Shift with F10 to force a full player-database read. |
| F6 | Reads the Data Hub: the team's figures against the league, plus goals, assists, positions, key findings and charts. Do this every few weeks. |
| F9 | Creates the recruitment focuses the report asks for, up to three at a time. Open the web page once first so it can write the focus plan. |
| F8 | Applies the saved Moneyball view to the table on the current screen. |
| F7 | Turns the developer debug link on or off and dumps the current screen. Not needed for normal use. |
| Esc | Stops a collection that is running. |
Keep FM as the focused window while a key is running, and leave the mouse alone: the mod drives the real game menus. A banner at the top of the game shows its progress.
Exports land in BepInEx\fm-export. When the mod detects a new club or save, it moves the earlier exports into a previous-<club>-<timestamp> folder rather than deleting them.
A fit score needs to know which match statistics matter for each slot. The app asks Claude Code to draft one profile per slot from the two roles and the team instructions in your tactic; the draft is saved to data/profiles.json and can be read and edited by hand. This happens:
- the first time a tactic is read;
- whenever the tactic changes.
You need the claude CLI on your PATH and signed in for the automatic draft. The fit-profile draft sends only the tactic, roles and team instructions. Once there are enough matches, the app also drafts team, style and tactic-review commentary; those calls add a summary of your squad and results, including player names, minutes, ratings and match figures. They go to Anthropic through your own Claude Code account. Nothing is stored outside data/.
If you would rather not use Claude at all:
- run the app with
--no-redraft, which turns off every automatic draft; and - write
data/profiles.jsonyourself (the schema is shown by any existing file;analysis/stats.pylists the stat IDs), or copy a profile file you already have.
The page will show the profiles as missing until a matching data/profiles.json is there. The fit scores are the only part that needs it; when it is present the rest of the app works from it.
git clone https://github.com/CallumVass/fm-moneyball.git
cd fm-moneyballThen point the build at your game folder.
Windows (PowerShell):
.\deploy.ps1 -GameDir "C:\Program Files (x86)\Steam\steamapps\common\Football Manager 27"
WSL / Git Bash:
GAME_DIR="/mnt/c/Program Files (x86)/Steam/steamapps/common/Football Manager 27" ./deploy.shThe build needs BepInEx\core and the generated BepInEx\interop assemblies, so run BepInEx once with the game before building. The exporter is hot-reloadable: run the deploy script again while FM is open and the loader picks the new build up within a second. A change to the loader needs a game restart.
python -m unittest discover -s analysis/tests -v
The tests use the recorded game exports in fixtures/base, so they need no game install and no network. The project's verify skill (.claude/skills/verify/) launches the real page against seeded exports and drives each journey in Chromium; see its SKILL.md.
| Path | What it holds |
|---|---|
exporter/ |
The mod's logic: screen reader, table export, tactic reader, menu tours, view installer. |
loader/ |
The small BepInEx plugin the game loads once. It loads and hot-reloads the exporter. |
analysis/ |
The scoring, dataset and local web server, plus the page's CSS and JavaScript. |
data/ |
Profiles and generated reports for your save (not in git). |
fixtures/ |
Recorded FM exports used by the tests. |
docs/ |
The approved design (design/), the journeys (journeys/) and the decisions (decisions/). |
tools/verify/ |
Seeded scenes for the verify skill's drives. |
- FM27 only, and English only. The mod reads the UI by its labels, so a game update can move something; check
LogOutput.logand the troubleshooting in INSTALL.md. - It reads the screens you can see. If a table's columns are hidden in the game, they are not exported.
- Fit scores are evidence, not a guarantee. Players under 450 minutes are marked as first impressions by default, and the minimum-minutes selector applies everywhere.
- The automatic profiles and reviews are Claude's interpretation of the tactic; the weights are meant to be edited.
- Back up your save before modding, as with any FM mod.
Built by Callum Vass. Uses BepInEx and the game's own UI Toolkit screens.
Not affiliated with, endorsed by, or supported by Sports Interactive or Sega. Football Manager is a trademark of Sports Interactive. No game files are included in this repository.


