GlobalConfigRedirect
Share BepInEx config files across all your profiles
模組介紹 作者原文
Global Config Redirect
Share BepInEx config files across all your profiles
For feedback and issues, DM @uwufood on the GTFO Modding Discord Server
Quick Start
- Install this mod to one of your modded profiles and launch the game once.
- A profile with configs you actually want is a good choice.
- A folder will be created at %APPDATA%\GTFO.GlobalConfigRedirect\config where all your global config files will be stored.
- By default, all config files in the profile you installed this mod to will be copied to the global folder.
- You can copy over other configs you wish to be global to the global folder.
- Optionally, you can set up an editor profile to edit the global configs in your mod manager (see below).
What it does
This mod adds a preloader patcher to BepInEx that redirects plugin config files (/BepInEx/config/*.cfg) to a single global folder.
Default global config folder: %APPDATA%\GTFO.GlobalConfigRedirect\config
On first use, if a redirected file doesn't exist globally yet, it is copied from the current profile.
Profile copies are never deleted or modified.
Config
BepInEx/config/io.takina.gtfo.GlobalConfigRedirect.cfg (this stays per-profile):
| Setting | Default | |
|---|---|---|
| Enabled | true | |
| Global Folder | (empty = default) | environment variables are expanded |
| Include | ** | comma-separated globs, relative to the profile config folder (Skins.cfg, *.cfg, Hikaria/**) |
| Exclude | (empty) | wins over Include |
| Copy Existing | true | grabs missing global files from the profile |
Glob syntax (case-insensitive, \ and / both work as separators):
| Pattern | Matches |
|---|---|
| * | any characters within one file/folder name |
|? | one character within a name |
| `` | anything, across folders |
| / | zero or more folders (**/Foo.cfg matches Foo.cfg and a/b/Foo.cfg) |
Everything else is literal. [...] classes and {a,b} alternatives are not supported; list alternatives
as separate globs instead.
Editing global configs in your mod manager (optional)
Mod managers only edit the config folder of the selected profile. To edit the global configs with the
mod manager's config editor, make a dedicated "editor" or "global" profile whose BepInEx/config folder is a link to
the global folder. This profile is only for editing; you never need to launch it, and it isn't needed
for the redirect to work.
Folders can't be hard-linked. Use a junction on Windows and a symlink on Linux; both act
like a shortcut the mod manager can't tell apart from a normal folder.
- Launch the game once with this mod installed so the global folder exists and is populated.
- Create a new profile in your mod manager (e.g. Global Config). You might want to install the BepInEx pack.
- Close the mod manager.
- Open the profile folder (e.g. in Gale: File -> Open Profile Folder) and delete the BepInEx/config
folder.
- Create the link as below, then reopen the mod manager.
Placeholders: ` is the editor profile's folder, ` is the global folder.
Windows
Default ` is %APPDATA%\GTFO.GlobalConfigRedirect\config`. In a Command Prompt (no admin
needed; replace `` with the editor profile's path):
mklink /J "\BepInEx\config" "%APPDATA%\GTFO.GlobalConfigRedirect\config"
To remove the link later (removes only the link, not the global files):
rmdir "\BepInEx\config"
Linux (Proton)
The game runs in Proton, so ` is the AppData/Roaming/GTFO.GlobalConfigRedirect/config`
folder inside GTFO's Proton prefix, not in your Linux home. Find it once, then:
ln -s "" "/BepInEx/config"
To remove the link later (no trailing slash, or rm targets the folder contents):
rm "/BepInEx/config"
Notes
- Remove the link before deleting the editor profile. Deleting a profile through some tools can
follow the link and delete the global configs too.
- BepInEx.cfg and this mod's own config are never redirected, so editing them in the editor
profile does nothing for your other profiles. Edit those per profile.
- Changes made in the editor profile apply to eve
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: