Repository navigation
Oxidizer v0.4.0
Rust mods: the new API is in oxidizer_api 0.3.0.
Added
- Typed Rust bindings:
oxidizer --bindgen ksa.rswrites a Rust module with a type for every publicKSA.dlltype and methods for its public methods, properties, fields and constructors, plus constants for enums. Calls go by exact metadata token, so overloads are no longer guessed, and the file refuses to run against a different game build. - Hooks can read and replace the hooked method's return value:
result()/set_result(v)in Rhai,hook_result()/set_hook_result(&v)in Rust. - Hotkeys:
key_pressed(name)andkey_down(name), using the game's key names. Keys typed into text fields, the console or a dialog don't count. - Settings:
config_get(key, default)/config_set(key, value)in Rhai, saved to<documents>/oxidizer/<mod>.toml;config_path(mod_id)for Rust mods. Obj::i64(), andObj::fromfori64andbool.
Changed
- API version 2. Mods built for API version 1 keep working; mods built for version 2 need this Oxidizer or newer.
- Releases have one zip,
Oxidizer-<version>.zip, with the Windows and the Linux build. (0.4.0 was first published with separate Windows and Linux zips too; those were removed because the content index can't use them.)