Skip to content

Releases: ow-mods/owml

2.9.7

21 Aug 22:21
13280bd
Compare
Choose a tag to compare

Removed the in-depth type checks on enums in API methods.

  • This means that enums in APIs will accept any value, as long as the enum has the same name as uses the same underlying type.
  • API providers can add entries to their enums or change entry names.
  • Mods that use an old version of the enum will still work (provided that no entries were deleted and no value of any entries were changed).
  • It will be up to the API vendors / consumers to handle unknown/deprecated/new values.

2.9.6

17 Aug 22:36
b79c05c
Compare
Choose a tag to compare

APIs can now use custom enums. The enums need to be identical on both sides. That means the :

  • Type name
  • Amount of entries in the enum
  • The underlying type (int, uint, ulong, etc.)
  • Value of each entry

has to be the same.

Here's an example from the QSB TTS addon :

public interface ITTSAPI
{
    void PlayTTS(string text, TTSVoice voice);

    public enum TTSVoice : uint
    {
        Paul,
        Betty,
        Harry,
        Frank,
        Dennis,
        Kit,
        Ursula,
        Rita,
        Wendy
    }
}

2.9.5

30 Jul 20:21
33eb3d7
Compare
Choose a tag to compare
  • Improved API to make more parameters work. For example :
    • Action<int, T> now works
    • Action<Action<int>, T> should now work, if you want to commit a sin.
    • Action<Action<Action<int, T, Action<T>>, T> should work, but only if you want to lose all your friends.

2.9.4

29 Jul 18:26
fad21f0
Compare
Choose a tag to compare
  • The mod list is now pre-sorted by the unique name, so mods with the same dependents (addons) will be loaded in the same order every time.
  • Mod APIs now support generic parameters.

2.9.3

03 Jul 20:32
5d59545
Compare
Choose a tag to compare

actually fix the nuget (please)

2.9.2

03 Jul 20:05
edeae66
Compare
Choose a tag to compare

Fix nuget packing

2.9.1

02 Jul 18:49
f07c2c3
Compare
Choose a tag to compare
  • Fixes cyclic dependency of disabled mods breaking load order

2.9.0

26 Dec 18:37
d8c689b
Compare
Choose a tag to compare
  • Fix incorrect Obsolete attributes.
  • If assembly loading fails, continue normally.
  • Add dlcOnly property to mod options, so the option only appears in menus if the player owns the DLC.
  • Change incremental GC option to default to enabled.
  • Better dialogue for GameVersionHandler.

2.8.0

01 Dec 15:31
000e3b3
Compare
Choose a tag to compare
  • Deprecated OWML.ModHelper.Events. Use HarmonyHelper instead, it's better and more reliable.
  • Added incremental GC option to in-game OWML config menu.
  • Added tooltips to in-game OWML config menu.

2.7.5

18 Nov 23:01
3ef0fb7
Compare
Choose a tag to compare
  • Updated the minimum, maximum, and latest game versions.
  • Added option to enable Incremental GC in OWML.Config.json. It is disabled by default. Enabling this will help smooth out lag spikes caused by some mods, but it is unknown how it may affect some big mods like QSB or NomaiVR. Please let us know! (Method to enable Incremental GC discovered by @SkutteOleg)