Skip to content

Godot Project Setup

steen edited this page Aug 24, 2023 · 16 revisions

If you don't have your project set up yet, see Decompiling Games and GodotSteam.

Install ModLoader

To install ModLoader into your project:

  1. Create a folder called addons, and add the mod_loader and JSON_Schema_Validator folder to it.
  2. Add mod_loader.gd and mod_loader_store.gd to your project's Autoload settings:
    • Project > Project Settings > Autoload
    • At the top left, click the folder icon next to Path. Browse to res://addons/mod_loader/mod_loader.gd and select it.
    • At the top right, ModLoader will be shown in the "Node Name" field. Click Add.
    • Repeat the above steps for mod_loader_store.gd
  3. Reorder the autoloads so that ModLoaderStore is at the top and ModLoader is in the second spot.
    • Note: The ModLoader autoloads must be placed at the top of the autoload list to ensure they can affect other autoloads/singletons.
    • Note: In certain cases, you may want to make modding of an autoload more difficult, such as for cheat detection. In such cases, you can use the allow_modloader_autoloads_anywhere setting. Read more about it on the Mod Loader Options page.
  4. Click Close, and save your project.
    • Scene > Save All Scenes

Autoload Settings

Shown above: Adding ModLoaderStore and ModLoader to the autoload settings for the game Brotato

Related Examples

  • GodotModding-UserProfileUI - A mod that adds an interface to manage mod user profiles, to handle enabling and disabling of mods.
  • GodotModding-ModConfigEditor - A mod that adds an interface to edit mod configs, the user settings that mod developers can add for users to customise their experience.

Related Pages

  • Decompiling Games - Instructions for decompiling a game, for editing in Godot.
  • GodotSteam - Most games require you to use GodotSteam, instead of vanilla Godot.