OpenFM2007 v27.0.0 (In Progress) - Football Manager 2007 with full 26/27 makeover

paokkerkir

League 1
 
Joined
14 August 2005
Location
Greece
Team
PAOK FC

OpenFM07 v27.0.0 (In Progress)​


Current progress: UEFA Competitions, Economy, VAR, 2d pitch Stadium art and many more​


A video is 1000 words :)



For the past few weeks I've been working on a mod for FM 2007 (v7.0.2 - no-cd exe). For some reason, FM2007 was always my favourite version, before FM became in general more convoluted. I wanted to keep FM07's flow and put it in today's football world, and not a plain database update, which only gets you so far because FM07 hard-codes most of its competitions, a proper update. The actual rules as they are now, in everything that is possible.

It is AI assisted, obviously. I utilize claude as a team of agents. They decompile and trace fm.exe in Ghidra, write the C code for the dll mod and the Python tools, and run the tests. I decide what gets built and how it should behave, check the code, check their findings, and playtest everything in the game. Without that, a project this size wouldn't be realistic for me in my free time. If that puts you off, fair enough.

Screenshots

1795639778889.png1795639588781.png1795639639540.png1795639665671.png1795639687387.png1795639728929.png1795639750183.png1795639834741.png

How it works


It's a DLL (dsound.dll) that FM07 loads at startup. It hooks into the game's own code and replaces or extends parts of it. Everything is behind switches in an ini file. No game files are shipped; you need your own FM07. The game's original files are never modified.

Every change gets tested offline first. There's a test program that loads fm.exe's own code and runs whole seasons through it without the interface: leagues, cups, European draws, the season roll-over. It checks the results against the FM27 data and has deliberate wrong cases that must fail. Only after that does it go into a real game.

The database

A converter reads the FM27 database and writes it in FM07's format. The game starts in 2026/27; The dll shifts the year by 20 everywhere it matters (dates, ages, contracts, competition cycles, history).

What comes over from FM27 so far: the whole world's players, staff, clubs and nations with real names; contracts and wages, including clauses like yearly wage rises; loans and transfer history with fees; career histories; injuries at the start date; preferred moves; player relations (favoured and disliked people and clubs); nation trained in; owner types; kit colours and styles; FM27 formations mapped to the nearest FM07 shape; currencies; B, reserve and youth sides as teams of their parent club.

No women's football, sorry, yet.

Competitions

This is most of the work. FM07 builds each competition from a class in its code, with 2006 rules baked in. The dll replaces those code classes with its own, which build each competition from FM27's competition records: league sizes, how many times teams meet, promotion, relegation, play-offs and play-outs, split seasons, cup rounds, one or two legs, seeding, byes, who enters where.

Europe is the furthest along. The Champions League, Europa League and Conference League run properly in the current format: the qualifying paths (champions and league path), the 36-team league phase with the draw done as UEFA's regulations describe, the 9th to 24th play-off, the fixed knockout bracket and proper draws , no away goals, and tie-breakers including cards. Entry comes from the access list by country coefficient, with the European Performance Spots and the rebalancing when a cup winner already qualified through its league. Club and country coefficients update every season, with the same one-season lag UEFA uses for the access list. Qualifying draws are made on their real dates and seeded by club coefficient, with placeholders for ties not yet played. I'm pleased to say that OpenFM07 v27.0.0 runs the European competitions even MORE accurately than FM27. There is not such extensive detail in rebalancing and the draw system in FM27. These have run three full seasons in tests and been played in the game into the fourth season.

Domestically, so far ten nations' leagues (England, Spain, Italy, Germany, France, Portugal, Netherlands, Scotland, Greece, Sweden) run from FM27's records, all 142 of their senior divisions. B teams follow the real rules. Italian Primavera 1 and 2 run with promotion, relegation, play-offs and play-out. The domestic cups are being worked right now. The French cup is done and the Italian one is being tested.

FM27 has 863 men's competitions in the database. Appx 200 of them are fully run from FM27 rules now in OpenFM07. A couple hundred more still play, since they match FM07's own competition rules. The plan is all of them, worldwide, will run with current rules, regulations, squad restrictions and formats, including all continents (Libertadores, Sudamericana, AFC, CAF, CONCACAF, OFC), the Club World Cup and the Intercontinental Cup, and the national-team calendar 2026 to 2030: World Cup and Euro qualifiers and finals, the Nations League, the CONCACAF Nations League, all derived from FM27 data.

Other things already done

- UI 4K scaling update. Window size options, borderless fullscreen, and interface zoom up to 4x with sharp text and images. (From my FM07HD previous work) (Screenshots attached are in 2K)

- A full port of the FM24 and the FM17 skin: colours, position ratings, buttons, the 2D ball and pitch, scoreboard and match banners.

- The 27 logo, face and kit megapacks, and the bundled FM27 logos,faces and kits converted for FM07 (over 350,000 faces and 220,000 logos). FM07 counts the pictures in one folder's config with a 16-bit number, so anything over 32,767 in one config breaks, and the packs are laid out to stay under it.

- FM executable LAA aware (uses up to 4gb of ram instead of the original 2)

- Up to 26-man matchday squads (11 + 15), for human and AI teams, with tournament squad sizes from the competition's rules. Played and saved and reloaded in the game. 5 Subs, in 3 windows.

- A switch to turn off the away goals rule.

- Fixes for old FM07 bugs: a manager who manages a club and a national team at the same time lost his club titles in the history and Hall of Fame; a player who retired sometimes lost his last season's stats. Save game corruption original game issues are fixed.

- Huge DB setting

- Updated Match Events - Text Commentary

- Various UI fixes - Fixing the positions widget in player profile, fixing Height/Weight transition in Physical stats, positions per player like FM27 shows them (No more AMC that also plays DM showing only as AMC in squad)

- Dynamic club and league reputation.

- Adjusted player decline development variations

- New injury types

- Homegrown status per player, club-trained and association-trained, building up during the game, shown on the profile and used for UEFA List A and B and domestic quotas, including the UEFA long-term injury replacement rule.

- Finances, wages, prize, TV money and transfer fees brought up to today's inflation/standards.

- Things lifted for real players that FM07 only allows for regens: negative personality labels, bust-ups between teammates, players going AWOL, and so on, each with its own switch.

- More formations available as preferred formations

- the Japan lock on national team and club screens lifted

- processing speed-ups (ported from FM17 which is the last 32bit FM game)

- VAR as events in the commentary, for VAR enabled competitions and stages. VAR is "working" through match commentary and match events. In VAR enabled competitions/stages, every commentary line that was a protested goal, a disallowed goal, second yellow card , red card, penalty or penalty protest gets the VAR treatment. I have also found the referee error rate values in the match engine, so I will make the referees less prone to errors in the VAR enabled matches.

- Updated FM Modifier v2.27a (Real-time editor), with more features and full compatibility.

- Game made portable, saves user data into it's own folder.

- Many other bits here and there that I'm forgetting

Planned

- (Not yet started) Awards

- (Not yet started) Matches picked for TV routine

- (Good progress) Saving and loading with the new competitions mid-season (this is next after the competitions, and before any release).

- (Good progress) Rule updates from newer FM versions: registration, loans, transfer windows, points deductions brought up to today's levels instead of 2007's;

- (Good progress) Match engine tweaks; already mapped with settings but needs testing

- (Medium progress) An UEFA screen that shows the access-list rebalancing;

- (Good progress) 2006-only mechanisms turned off (Italian co-ownership, Intertoto, Fair Play places)

- (Not yet started) Financial Fair Play

- (Not yet started) Greek language

- a proper installer



Where it is now

Not released, and will not be released before it is fully and properly playable
, and I find a proper way to distribute it. I'm not going to release half-botched versions and update constantly with save-breaking versions, and I'm contemplating if I can upload the db and facepacks, or if I'll add an installer that converts from an FM27 install and the logo/face/kitpack zips.

This is NOT going to be behind any paywall or donation or whatever scheme.

Happy to answer questions though about how FM07 works inside, and the progress that is (not) made in the codebase since then :). I've learned a lot about it.

In the 80s, Alfa Romeo had a partnership with Nissan. And the outcome was Alfa Romeo Arna, a Japanese looking car with Italian electrics. Worst of both worlds.

That is what happened with FM26 and FM27.

Because Unity is a very bad fit in principle for a UI-centric game like FM.

But that happens when you prioritize console-porting over proper design.

And before someone says "BUT THE ENGINE REACHED ITS LIMITS" no it did not. Right now FM is a Unity UI layer with the old engine below working in conjuction.

And if you do not trust me, trust the devs that worked on FM26.

https://pinglestudio.com/cases/football-manager-26/

FM26/27 is not a Unity game in the usual sense.

Pingle worked directly with SI for FM26

They explicitly describe FM26 as a hybrid of: a) a legacy C++ game core b) a newly built Unity interface c) a custom integration layer connecting the two.

They worked on connecting the existing C++ core to Unity, rather than replacing their "in-house" engine.
This whole "engine reaching the limit" is a simplification that ends up wrong. The same engine is still used now and was perfectly capable to be updated, but it had become a bit of spaghetti over the years, so they thought they could easily port and have a better base for future upgrades. I think this was valid, but they went to Unity in order to have the game more easily ported to consoles which backfired due to a lot of reasons and SI is now in a lose-lose situation with their game.

I have been studying CM4, FM2007,2008,17,23,24 and 27 code and structure for OpenFM07, and everything I found during this also supports the above fully.
 
Last edited:
Back
Top Bottom