Update Information:
Today's hotfix updates the version of Harmony on the public testing branch. The 0Harmonly.dll was updated from 2.2 to 2.4.2. This should provide greater support for targeting mods towards .NET Standard 2.1.
Given the changes to Unity in version 6, we feel the best starting point for mod development is .NET Standard 2.1. We believe this because some uses of .NET Framework are not cross-platform compatible, and we expect future changes will make increased use of types that require .NET Standard 2.1, such as Span. See https://docs.unity3d.com/6000.3/Documentation/Manual/dotnet-profile-support.html.
We will, however, continue to build ONI using Unity’s .NET Framework API Compatibility Target. This will provide some level of backwards compatibility. Note that this is in addition to .NET Standard, not instead of.
We would appreciate feedback from modders on this course of action. Please let us know if it seems reasonable, and what hurdles you see to updating your mods in this model.
Fixes
-
All versions
- Fixed a bug where irrigated plants using the Hydroponic Farm were growing unbothered by the lack of irrigation when loading a save where those plants had been wilted due to insufficient amounts of liquid in the farm tile.
Modding
- Upgraded Harmony to 2.4.2
- Added a Mod Safe Mode. If the game crashes before the main menu it will load into Mod Safe Mode next time the game starts. In safe mode, mods are not loaded. This offers an opportunity to disable mods before restarting.
- Added TMP_InputField.DeactivateInputField() with no parameters as this was a common failure of a number of mods.
- Added a helper function Texture2D ModUtil.LoadTexture(string) to allow .NET Framework targeting mods an alternative to Texture2D.LoadImage(byte[]) which has a Span overload causing compilation issues.
You can join in the Discussion Topic here.
If you run into a bug, please visit the Klei Bug Tracker.