# Mod Hot Reloader

> This mod enables developers to hot reload mod DLLs. It's not suitable for UI work.

Mod for [Sons of the Forest](https://store.steampowered.com/app/1326470/Sons_Of_The_Forest/) by [OhMyJeeves](https://sotf-mods.com/profile/ohmyjeeves). Page: https://sotf-mods.com/mods/ohmyjeeves/mod-hot-reloader

## At a glance

- **Version:** 1.0.1 (released 2024-07-03)
- **Category:** Other
- **Game compatibility:** untested on the current patch
- **Loader:** RedLoader
- **Multiplayer:** not stated
- **Dependencies:** none
- **Downloads:** 1,264 (as of 2026-10-01)
- **Followers:** 0
- **First published:** 2024-07-01
- **Last release:** 2024-07-03

## Install

1. Install RedLoader, the Sons of the Forest mod loader (RedManager can do it for you).
2. Download the mod and put it in the `_RedLoader/Mods` folder inside the game directory.
3. Launch the game and press F1 to confirm it loaded.

Download 1.0.1: https://sotf-mods.com/mods/ohmyjeeves/mod-hot-reloader/download/1.0.1
Full guide: https://sotf-mods.com/install

## Compatibility

untested on the current patch.
Details and field reports: https://sotf-mods.com/mods/ohmyjeeves/mod-hot-reloader#compatibility

## Description

### Mod Hot Reloader User Guide[#](#md-mod-hot-reloader-user-guide)

The **Mod Hot Reloader** allows developers to hot reload mods without restarting the game. Follow this guide to configure and use the tool.

#### Prerequisites[#](#md-prerequisites)

- **Mod Not Installed:** Add a `Directory.Build.props` file to prevent automatic installation.
- **Backend Code Only:** The tool does not support UI components, allowing you to rebuild and debug backend code without reloading the game.
- **Correct Settings:** Configure settings, then use `InvokeMethodWithinHotLoadedMod` to trigger code within your mod. Check Unity Explorer Log for troubleshooting.

#### How To Use `ModHotReloader`[#](#md-how-to-use-modhotreloader)

1. Create a new mod project via Red Mod Manager.
2. Add the `Directory.Build.props` file to your project:
  `\<Project\>\<PropertyGroup\>\<DisableCopyToGame\>True\</DisableCopyToGame\>\</PropertyGroup\>\</Project\>`
3. Configure the settings to point to the new mod, ensuring the DLL name and path are correct.
4. Load up the game.
5. Verify the mod is loaded via Unity Explorer Log.
6. Add a method to your mod that prints to the log:

  `private void HelloWorld() {
   RLog.Msg("Hello From Your Mod!");
   }`
7. Rebuild the mod project while the game is running. The hot reloader will detect changes and reload the mod.
8. Check Unity Explorer Log to confirm the mod was reloaded.
9. Add a breakpoint to the method. Attach your debugger using Unity Explorer.
10. Invoke the method using `InvokeMethodWithinHotLoadedMod HelloWorld` and check the log for your message.

## Changelog 1.0.1 (2024-07-03)

Changed dll path to be a single field with an increased character limit

All versions: https://sotf-mods.com/mods/ohmyjeeves/mod-hot-reloader/versions

## FAQ

### Does Mod Hot Reloader work in multiplayer?

The author has not stated multiplayer support yet. Check the comments and the field reports of other players.

### How do I install Mod Hot Reloader?

Install RedLoader (RedManager can do it for you), download Mod Hot Reloader 1.0.1 from this page and put it in the \_RedLoader/Mods folder inside your game directory. Launch the game and press F1 to confirm it loaded.

### What does Mod Hot Reloader need?

Only Sons of the Forest on Steam and RedLoader. It has no other dependencies.

### Does Mod Hot Reloader work on the current game patch?

There are no compatibility reports yet. If you try it, add a field report.

---

Source: https://sotf-mods.com/mods/ohmyjeeves/mod-hot-reloader · SOTF Mods, the home of Sons of the Forest modding.
