# Enabling MTFO Hot Reload

## Enabling MTFO Hot Reload

{% hint style="warning" %}
Hot reloading may not work for every datablock. If you make a change and nothing happens, you may need to restart the game instead. Additionally, hot reloading isn't quite the same as restarting your game, and may cause bugs. If in doubt, restart your game.
{% endhint %}

Hot reloading is a MTFO feature that allows you to reload datablocks without restarting the game. It can speed up your ability to test your changes quite considerably, and is definitely something you should strongly consider before trying to make your own datablock mods.

If you're using r2modman to manage your mods, then after creating a profile with MTFO (and launching the modded profile at least once to generate the config files) you can go to Config Editor in the r2modman profile, and then edit MTFO's config file.

<figure><img src="https://3973191706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1MMzImARIIXgtwqSyjDR%2Fuploads%2FWAJd4RoSWLAaq1DavOMQ%2F1.png?alt=media&#x26;token=811ce385-a88a-4527-b291-3a4806a8fa53" alt=""><figcaption><p>Accessing MTFO's config.</p></figcaption></figure>

Then simply set EnableHotReload to true and save.

<figure><img src="https://3973191706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1MMzImARIIXgtwqSyjDR%2Fuploads%2FB7UhUoSVu5OHL5BCX7As%2Fenablehotreload.png?alt=media&#x26;token=0c155dff-c066-419e-a7e3-46c588e335e9" alt=""><figcaption><p>The EnableHotReload setting in MTFO's config.</p></figcaption></figure>

You can also edit the config file with any text editor as well.

{% hint style="info" %}
Don't mind the description stating it only works for a few datablocks, it's outdated.
{% endhint %}

Now when you're in the game's level selection menus, a button will appear on the left that will reload your datablocks without having to restart the game.

<figure><img src="https://3973191706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1MMzImARIIXgtwqSyjDR%2Fuploads%2F1CHARukvCFlUOxE8uz5E%2Freloadgamedata.png?alt=media&#x26;token=ee0416dd-bddb-4b7a-83dd-999d8608237d" alt=""><figcaption><p>The Reload Game Data button.</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gtfo-modding.gitbook.io/wiki/guides/enabling-mtfo-hot-reload.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
