Mod managers and profiles¶
A mod manager installs, updates, removes, orders and turns mods on or off by changing the mods folder alone. The game never writes anywhere else for mods, and never changes a mod's files, except when the player presses Fix it on a mod with loose files.
The mods folder¶
mods in the data folder, beside settings.ini:
| System | Folder |
|---|---|
| Windows | %LOCALAPPDATA%\Soulbrandt\mods |
| Linux | $XDG_DATA_HOME/Soulbrandt/mods (else ~/.local/share/Soulbrandt/mods) |
| Mac | ~/Library/Application Support/Soulbrandt/mods |
| A portable install | data\mods beside the program |
An earlier version's settings folder is used when it holds anything (%APPDATA%\DemonsSoulsRecomp\DemonsSouls).
DES_MODS_DIR points the game elsewhere.
Installing is unpacking into a new folder; updating is replacing that folder; rolling back is putting the old folder back.
The order file¶
mods\load_order.txt, UTF-8, one line per mod, the first one first:
# The mods, the first one first. When two mods that are on change the same file, the higher one wins.
on HD Textures
off Old Fonts
on Rebalanced Weapons
- Each line is
onoroff, spaces or a tab, then the folder's name exactly as on disk. - Lines starting with
#, blank lines and lines that start with any other word are passed over. - Folders the file doesn't name come after, A to Z, off.
- The game reads the file at start, so change it while the game is closed. The Mods screen writes it at every
change, keeping only
onandofflines.
A mod profile¶
Mod managers for the later PC games of this series write a mod profile for me3, their mod loader: a small TOML file
that lists the mods (packages) and their order. Soulbrandt reads the same format, in mods\soulbrandt.me3 (or the
file DES_MODS_PROFILE names). When it is there, it decides which mods are on and their order, and
load_order.txt isn't read.
profileVersion = "v1"
[[supports]]
game = "demonssouls"
[[packages]]
id = "armour"
path = 'Armour' # relative to the profile's folder, or a full path
[[packages]]
id = "textures"
path = 'D:\Mods\Textures'
load_after = [{ id = "armour", optional = true }]
[[packages]]
path = 'Old Fonts'
enabled = false
[[natives]]
path = 'plugins\something.dll'
- Packages load in the file's order, moved by
load_afterandload_before. Where two packages have the same file, the one that loads later gives it, as in me3. The Mods screen lists them the other way round. - A package may be a folder of the mods folder, or any folder elsewhere.
- The profile is read once, at start. The Mods screen shows its mods and can't change them.
- Natives are native plugins.
- When the profile can't be used (it isn't valid TOML, it lists only other games, a package must load after one that isn't there, or the order goes round in a circle), the log says why, and the order file is used as before.
Online play¶
Online play is decided from the files, not from anything a mod or a manager says about itself. A mod that changes how the game plays keeps the session offline.