Repository navigation
FH3 Mod Platform v1.0.0
First release of the FH3 Mod Platform, a fork of Trinculo54's FH2 Mod Platform for Forza Horizon 3 (Azimuth), mod API version 15.
- Loads every mod DLL in
fh3-mods; hooks, byte patches, hotkeys, commands (fh3mod.exe), mods calling each other, sessions, save snapshots, crash reports that name the mod involved, a full log. - Mods in the game's menus: a MODS tile on the Home tab with Installed mods, Updates, About and All settings; mods add On/Off, slider and choice rows in the game's own style; update checks of mods on GitHub; "Load when playing online" for FH2MP setups.
- Game files, text and database: the
mediaoverrideandmediapcfolders are mounted by the platform itself (or by Extra Options when it is loaded);add_sqlpatches the game's database;add_string_keyadds strings to FH3's hashed string tables. - Upgrade bridge (
register_upgrade, API 11;upgrade_car_model, API 12): mods add garage upgrades with stages, prices, icons and per-car state, and the platform does the id allocation, shop, purchase and save handling the way the game does it for its own parts:- bridge parts are kept out of the game's part set, so they can never overwrite the car's tuning (brake balance, handbrake);
- the shop's own credit check counts them: not enough Credits gives the game's "You do not have enough Credits" message, and the "install?" prompt shows the whole basket;
- owned stages (and Stock) go into the basket at 0 CR and replace what was waiting for that slot;
- shop preview: while the cursor is on a stage,
upgrade_stagereturns it for the car, and a stage in the basket stays on the shop's car until the setup is installed or abandoned; camera_partin the upgrade definition points the shop's camera at a part of the car while the upgrade's list is open (the front or rear wheel for wheel spacers, as for rim size);upgrade_car_model(garage)returns the model recorded for a garage car, so a mod can tell when the player sits in another car (a mission loaner);- the log says which query switched the driven car, and traces basket, commit and abandon steps.
- The platform follows the player's car (API 14): it reads the player's garage from the save, watches the car the player drives and every car the game builds, so for every mod:
- a car chosen at an event's car select has its custom upgrades from the start;
- a car that isn't the player's (a showcase car, a loaner, a test drive) gets stage 0 and garage 0;
- an AI car of the player's model (a one-make race) gets none of the player's upgrades;
upgrade_garage_for_car/upgrade_stage_for_caranswer, from a hook in the game's car building, whose car is being built and your stage on it. docs/car-mods.md is the guide for mods that change the car.
- Tuning rows (API 13):
add_tuning_rowadds a slider row to the car's Tuning > Springs page, with a header band in the game's style (title, minimum, maximum, unit), per-car visibility, and up to 64 rows (the page scrolls). - Shop preview for effects outside the car's data (API 15):
upgrade_preview_stageis the stage the upgrade list shows while the cursor stays on it,upgrade_shop_serialgoes up with every step the list takes. - Speed unit and Power unit rows under Units in Settings > HUD and Gameplay: km/h or mph, horsepower or kilowatts, whatever Units is set to.
- Sell Car: SELL CAR after Remove car from garage in a car's action menu; pays a share of the model's price and of what was paid for its upgrades (
platform-sellcar.ini). - Exit to Desktop shows the game's own saving popup.
- The start-up videos are skipped.
- A short
platform.logby default (start-up, mods, problems);fh3-mods\platform.ini[log] Verbose=1adds the detailed lines (hooks, file overrides, shop steps, garage reads, car builds, units).