Repository navigation
Troubleshooting
First, open fh2-mods\platform.log, or press ~ in the game for the console. Almost every problem is explained there.
Hosted mods and scripts need the .NET 10 runtime (x64). Install it and restart the game. NativeAOT mods and C++ mods keep working without it.
Platform.NET looks for the runtime in this order:
-
fh2-mods\dotnet\runtime\(a private copy) DOTNET_ROOT- the registry
C:\Program Files\dotnet
The FH2 classes check the game's code before they touch it. On any build other than the 24 November 2015 one, they switch themselves off and platform.log names the feature. The rest of the mod, and the platform, keep working.
Another mod hooking the same function is fine: the check allows for that.
Compile errors go to platform.log and the console, with the file, line and column:
RepairButton.vb(12,9): error BC30451: 'Playr' is not declared.
Fix it and restart the game, or save it again with auto-reload on. The other mods carry on either way.
The same mod is installed both hosted (fh2-mods-dotnet\<Name>\) and NativeAOT (fh2-mods\<Name>.dll). Remove one of them.
A script and a folder mod with the same name don't load twice: the folder wins.
The platform writes a crash dump and names the DLL the crash came from. A crash inside a hosted mod's own code shows no mod name, because that code isn't in a DLL. To find the cause:
- Note what you were doing.
- Turn hosted mods off one at a time (rename the folder to
<Name>.disabled) until it stops. -
Open an issue with
platform.log, the mods you had installed and what you were doing.
The MODS tab lists one entry per DLL, so every hosted mod sits under Platform.NET. A hosted mod's settings are on Pause > Settings > Mods, or on a tile of their own if the mod has one.
Also see Known issues.
Playing
Getting started
Writing mods
The FH2 classes
- Game
- Player
- Vehicle
- World
- Garage, CarCatalog, Profile
- UI and Hud
- Camera
- Audio
- ANNA
- DebugOverlay
- Controller
- GameInput
- GameWindow
- Menus and UiElement
- SettingsTile
- ButtonIcons and Picture
- MapView, PhotoCamera, GarageCamera
More