

- #Car mechanic simulator 2018 mods swiss knife mod#
- #Car mechanic simulator 2018 mods swiss knife update#
- #Car mechanic simulator 2018 mods swiss knife Patch#
- #Car mechanic simulator 2018 mods swiss knife code#

The Harmony docs are really well written and complete, including several examples at each stage.
#Car mechanic simulator 2018 mods swiss knife mod#
With UMM though you only really need a JSON file for UMM, and then the Harmony documentation for the mod itself. Initially it looks better than UMM's docs but if you actually try and use it you'll quickly realise several critical elements just aren't explained. I couldn't get Patchwork working in the end as I hit several reinforced concrete walls with the documentation, or rather the lack thereof.

It's still possible to replace them though, in which case the UMM mod would overwrite the hard mod (and other UMM mods with lower priority).
#Car mechanic simulator 2018 mods swiss knife code#
This is because Harmony is geared towards adding code before/after the patched method, rather than replacing it outright. My mod just changed the Credits button to show the Showroom instead, and it worked normally.Īs long as the UMM mods are developed well, you should be able to integrate multiple mod features even if they affect the same method. I used the "Modder's Swiss Knife" as I figured it would have a larger overhaul and was more likely to show any issues. Instead it will work as normal provided the hard mod hasn't removed the method targeted by UMM (which happened in my case, so changing the UMM config was necessary). Granted my testing is very limited here, but I would think if there was an issue related to the compressed binary nature of the dll it would have exploded as soon as it tried. The best news: It seems to be compatible with existing hard mods. This could just be my fault, and mod makers don't generally need to edit this file as it's only done once per game, and for the other compatible games it seems to be configured by the UMM developer.
#Car mechanic simulator 2018 mods swiss knife Patch#
It was fairly simple to make the mod itself, though I did hit an issue configuring UMM which has to target a method within the game to patch itself into. Update: I managed to get a (very simple) mod working using the Unity Mod Manager, which is basically just a GUI and wrapper around something called Harmony. Might find out some problems with either one that pushes me to the other, but nothing's fixed yet. It's also likely that you couldn't use both loaders side by side, so everyone would have to agree on one. If it turns out to be the best case above then I'll start modding with one of them, if it's the worst case then you'd need each mod maker to rewrite a loader compatible version.

I'll see if I can make some tests using both of these managers (need to learn how they work first though, as I've only ever hard-modded the dll). Worst case is it tries to rewrite the dll in some other way, either preventing one or more mods from working properly, or causing the game to crash completely. Best case scenario is they use reflection at library load time, meaning you could take an existing hard-modded dll and still use the injector for the passive mods. I haven't had chance to look into how well these play with an already updated dll.
#Car mechanic simulator 2018 mods swiss knife update#
With any mod manager though, you need to write your code in such a way that it can be injected later (usually involves referencing the specific library from the manager), meaning that you'd have to re-write any mods that update the dll directly. I found this but it's the same principle, rather than editing the dll and providing it, you provide the patch file (and possibly launcher) to the user and let them patch the game themselves. I was looking into a patch manager of sorts, since I want to make a mod that would require changing the firstpass dll, and therefore wouldn't (easily) be mergeable with any others that also change it.
