-
Notifications
You must be signed in to change notification settings - Fork 31
Mod Loader Self Setup
If the game you want to mod does not natively use this ModLoader, you will have to complete a few steps to set it up:
Note:
Folder locations listed below
- Download the latest release of the ModLoader
- Place the
/addons
folder from the ModLoader next to the executable of the game you want to mod. - set this flag
--script addons/mod_loader/mod_loader_setup.gd
- Steam: right-click the game in the game list > press
properties
> enter instartup options
- Other: Search for "set launch (or command line) parameters [your platform]"
- Steam: right-click the game in the game list > press
If the game window shows (Modded)
in the title, setup was successful.
It is possible to add additional setup arguments, but only do so if a game-specific setup documentation advises it. More install arguments
In more detail:
The ModLoader comes with a helper script to properly install itself without having to recompile a game's source. There are two options to make this work:
-
Inject a custom
project.binary
file into the games main.pck
To do this, GodotPckTool is used.
This approach is currently only supported on Windows and with games that have a.pck
file that is not embedded.
Using this method allows us to add the ModLoader at the top of the autoload chain.
This is important, because it allows mods to add Script Extensions to autoloads. -
Use Godot's
override.cfg
functionality to override the game project settings
This is the ideal solution if mods for a game don't require extensions of autoloads.
It uses the built-in way to override project settings via anoverride.cfg
in the game directory.
If you prefer this method or are using an operating system that doesn't support the binary injection yet,
you can set this CLI argument--setup-create-override-cfg
.
For more details check Godot's ProjectSettings Docs at Overriding
We hope to only use the override.cfg
in the future - that's why we opened a feature proposal that allows the overriding of the autoload order.
Please consider upvoting this proposal so modding becomes easier for everyone :)
Game Executable:
Right-click the game in Steam > Click Manage > Browse Local Files. This will open the game's folder.
Note: For MacOS, you are also at the right place even though the actual executable is in /Contents/MacOS
within that folder. The override.cfg will be placed there, everything else (like the mods folder) goes right here.
User Data:
- Windows:
%appdata%\Godot\app_userdata\<game name>
- Linux:
~/.local/share/godot/app_userdata/<game name>
- Mac:
~/Library/Application Support/Godot/app_userdata/<game name>
Home ~ Setup ~ Mod Structure ~ Mod Files ~ API Methods ~ Logging