Skip to content

banished-mods ​

The mod list of Banished 1.0.7 (IO::Modification), shared by the Un-Banished game and its mod manager, so both read and write the same settings in the same way.

ItemWhat it is
ModificationThe .pkm packages found, with which are enabled (ModEnabled_<file>), their order (ModIndex_<file>) and their conflicts; refresh (RefreshList), save_list (SaveList), enable, swap, add
ModOne package: name, author, description, versions, crc, icon and files
SettingsWhere the list keeps its values: the game's Persistence, or a TextSettings
text::TextSettingsThe settings file as name=value lines, keeping every value it does not set
findThe .pkm files in a folder (native)
rust,ignore
use banished_mods::{text::TextSettings, Modification};

let path = banished_mods::text::settings_path().unwrap();
let mut settings = TextSettings::load(&path)?;
let mut mods = Modification::refresh(banished_mods::find("WinData".as_ref()), &settings);
mods.enable(0, true);
mods.save_list(&mut settings);
settings.save(&path)?;

Un-Banished 0.4.0-99617f9 is free software under the MIT or Apache-2.0 licence. It is not affiliated with or endorsed by Shining Rock Software.