Jump to content

`DevTools` class missing on OSX makes it impossible to use mods that have dev tools


asquared31415
  • Branch: Live Branch Version: OSX Pending

The DevTools class is entirely missing on OSX (as is the cimgui native library that it would use). However, this means that modders cannot distribute a mod that references the dev tools at all, even if the user never presses the enable dev tools button. This is extremely unfortunate and means that several mods that intend to provide a platform for other modders to build on cannot be used on Mac at all.

Even if the dev tools can't be made to function on Mac (though ImGui.NET seems to support it) it would be useful if the classes could be re-added even if the bodies of each method were stubbed out with NotImplementedException and/or the dev tools are unable to be activated. This would allow Mac users to use mods that contain dev tools, as long as the users never need to use the dev tools themselves.



Note: when reading the log below, the important lines are:

[10:21:10.747] [1] [ERROR] [DebugNotIncluded] Exception while loading mod DecorPackA at /Users/Zilla/Library/Application Support/unity.Klei.Oxygen Not Included/mods/Steam/2660131829.
[10:21:10.801] [1] [ERROR] [DebugNotIncluded] Exception(s) when loading types:
TypeLoadException: Could not resolve type with token 01000005 (from typeref, class/assembly DevTool, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)

which are added by DebugNotIncluded, which patches the mod loader to provide more info when other mods fail. (it would be nice if this were a feature of the default mod loader, but that's a separate request)


Steps to Reproduce

0. Build a mod referencing the Windows or Linux assemblies of the game that has a class inheriting from DevTool (one is provided below)
1. Enable the mod on a Mac system
2. Mod crashes

DevToolsCrash.zip

  • Like 1



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...