Navigation
Browse the developer docs

FH2 Mod Platform for .NET

Troubleshooting

What to check when a .NET mod does not load or the game says something is missing.

By Bartholomew Ho (qiangqiang101) · MIT license · v0.12.0 · 15 Nov 2026 · repository · original page

On this page

First, open fh2-mods\platform.log, or press ~ in the game for the console. Almost every problem is explained there.

The title screen says .NET is missing

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:

  1. fh2-mods\dotnet\runtime\ (a private copy)
  2. DOTNET_ROOT
  3. the registry
  4. C:\Program Files\dotnet

A mod is listed but does nothing, and the log says the game's code is different

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.

A script doesn't start

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.

A mod loads twice

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 game crashed

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:

  1. Note what you were doing.
  2. Turn hosted mods off one at a time (rename the folder to <Name>.disabled) until it stops.
  3. Open an issue with platform.log, the mods you had installed and what you were doing.

A mod's settings aren't on the MODS tab

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.

Copied from the wiki page Troubleshooting at commit 7396a07 · MIT license
MIT License

Copyright (c) 2026 Bartholomew Ho

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.