5 releases (2 stable)
Uses new Rust 2024
| 1.0.1 | Sep 30, 2026 |
|---|---|
| 0.3.1 | Sep 27, 2026 |
| 0.2.0 | May 29, 2026 |
| 0.1.0 | May 28, 2026 |
#244 in Configuration
2.5MB
24K
SLoC
Contains (WOFF font, 120KB) static/fonts/deja-vu-sans-mono.woff2, (WOFF font, 19KB) static/fonts/avqest.woff2, (WOFF font, 19KB) static/fonts/mystic-cards.woff2, (WOFF font, 8KB) static/fonts/demonic-letters.woff2, (WOFF font, 6KB) static/fonts/gal-basic.woff2, (WOFF font, 17KB) static/fonts/oxanium.woff2
dream-ini
Import Morrowind.ini into openmw.cfg.
Morrowind.ini holds what a Morrowind install reads at startup: the load order, the archives, and
hundreds of values for weather, water, moons, fonts and the level-up screen. OpenMW reads none of
it. dream-ini writes it into your openmw.cfg: every archive and content file found in your
Data Files, the content in the order Morrowind.exe would load it, and the INI's settings as
fallback= lines, with everything else in your cfg kept as you wrote it.
It reimplements OpenMW's mwiniimporter, with a GUI for desktops, controllers and handhelds, and
the importer as a Rust library and a Luau module.
Documentation, downloads and the full Rust and Luau API reference: https://dreamweave-mp.github.io/dream-ini/
Install
Download the build for your system from the releases: Windows, macOS, Linux, Android, PortMaster, and a muOS app. Or build it:
cargo install dream-ini
Use
Run dream-ini with no arguments for the GUI. On the command line, a preview goes to standard
output and changes nothing:
dream-ini --ini Morrowind.ini --cfg openmw.cfg --game-files > preview.cfg
dream-ini --ini Morrowind.ini --cfg openmw.cfg --game-files --in-place
As a library
[dependencies]
dream-ini = { version = "0.4", default-features = false }
use std::path::Path;
use dream_ini::{ImportOptions, IniImporter};
let result = IniImporter::new(ImportOptions::default())
.import_optional_cfg_path(Path::new("Morrowind.ini"), Some(Path::new("openmw.cfg")))?;
With the luau feature, dream_ini::luau::IniExtension is an
l3i extension providing the module @dream/ini.
Where to read next
- Start here: a first import
- What an import does: every key, the search order and the load order
- Command line and the GUI
- Differences from OpenMW's importer
- Rust API and Luau API
Development
cargo fmt --check
cargo clippy --all-targets --all-features -- -W clippy::pedantic -D warnings
cargo test --all-features
The luau feature needs l3i's toolchain, clang, lld and cross-language thin LTO, which
.cargo/config.toml sets; the test-only luau-analysis feature adds l3i's analysis frontend for
tests/luau_typed.rs, so cargo test --features luau builds without it. The site in content/ is a
DreamWeave Mod Template site; preview it
with zola serve.
License
dream-ini is licensed under either of MIT or Apache-2.0, at your
option.
Dependencies
~5–66MB
~1M SLoC