Repository navigation
Releases
FH3 Mod Platform v1.4.2
Requirements: Forza Horizon 3 on PC through Azimuth (tested with 1.0.4), the Xbox One exe of 5 Jun 2018. Extra Options (winmm.dll) is optional; 0.6.0 is tested. Azimuth must load a DINPUT8.dll from its own folder (it does by default). Copy DINPUT8.dll over the old one.
- API 17: the ENGINE tab in Tune Car.
FH3TuningRow.page = "Engine"puts a tuning row on a new ENGINE tab (after Differential). The platform adds the tab (a tenth entry in the game's tuning tab table, with its own list, description and visual state) when a mod asks for it; older mods and rows without a page stay at the end of Springs. - The tab waits for the game to fill in its tuning tab table, and the tab focus reads the lists, so the tabs can be navigated; the title is ENGINE, in capitals like the others.
FH3 Mod Platform v1.3.0
Requirements: Forza Horizon 3 on PC through Azimuth (tested with 1.0.4), the Xbox One exe of 5 Jun 2018. Extra Options (winmm.dll) is optional; 0.6.0 is tested. Azimuth must load a DINPUT8.dll from its own folder (it does by default; another tool's DINPUT8.dll there can't share the name).
Install: copy DINPUT8.dll next to azimuth.exe. Updating from 1.2.x or older: delete DWrite.dll and d3dcompiler_47.dll first, or the old copy keeps running (platform.log says so).
- The platform is now
DINPUT8.dll, one file (it wasDWrite.dllandd3dcompiler_47.dll). Every Azimuth imports DINPUT8.dll; the platform forwardsDirectInput8Createand the rest to the real one. The reason: Azimuth 1.0.3 and later import only one of the old two names,DWrite.dll, which is also the FH2 platform's, so the FH2 and FH3 platforms could not share an Azimuth folder. Now they can: leave the FH2 platform'sDWrite.dlland addDINPUT8.dll; each loads the mods of its own game (fh3-mods/fh2-mods) and leaves the other game alone.platform.lognames the other platform when it finds one. - The platform no longer shows up as one of the FH2 platform's own copies: its restart entry point is
FH3RestartHelper(it wasRestartHelper, which the FH2 platform looks for), and an older FH3 copy still in the folder (1.2.x or older) runs instead of this one, with a line inplatform.logandplatform-standby.log.
FH3 Mod Platform v1.2.1
- Custom upgrades could be missing after a slow start. The shop hooks (and the save clean-up that runs through them) started as soon as the first mod registered an upgrade. When a mod listed earlier took long in
fh3mod_init(a few hundred Livery Decals take about a minute), the mods after it, such as Nitro System II and Universal Wheel Spacers, registered only after the game had loaded the car, and their parts did nothing until the car was changed in the shop. The hooks now wait until everyfh3mod_inithas returned.
FH3 Mod Platform v1.2.0
- Hot reload for mod makers (API 16, off by default). With
fh3-mods\platform.ini[dev] HotReload=1(andReloadKey=F9), the platform loads every mod from a copy infh3-mods\.reload, so a build can overwritefh3-mods\<Mod>.dllwhile the game runs, and F9 swaps in the mods whose DLL changed and which exportfh3mod_shutdown: the platform calls it (8 seconds, on its own thread), switches the mod's hooks off, loads the new copy and runs itsfh3mod_initagain.register_modreturns the same handle;add_setting,add_hotkey,add_command,register_upgrade,add_tuning_row,add_pageandadd_title_entrywith a key that exists already swap the callbacks instead of adding a second entry;add_sqlignores a statement it already has. The old DLL stays loaded for good, so nothing can run into unmapped code. What the game reads once at startup (texts, files, SQL, a row's label, an upgrade's stages) is not applied again.is_reloading()tells the second start from the first. A beep says how it went;platform.logsays why. Players never see any of it: withHotReload=0mods load fromfh3-modsas before. Seedocs/writing-a-mod.md. examples/hello_modshowsfh3mod_shutdown; the docs list the mods built on the platform (Launch Control, DualSense, Drag and Drift Tires and Livery Decals now too).
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).