NOTE: The mod should work, but I don't know if it breaks anything. Please post feedback in the comments. The implementation might not be perfect as well.
Performs a check every time you open the game to see if you are playing with restoration mod.
It disables and enables certain mods based on if you're playing with or without restoration mod.
Usage:
-
Create a file named
disable.this.when.using.restorationmod
in the respective mod folder.
This mod will be disabled when you are playing with restoration mod, and it will be enabled when you are playing without restoration mod. -
Create a file named
enable.this.when.using.restorationmod
in the respective mod folder.
This mod will be enabled when you are playing with restoration mod, and it will be disabled when you are playing without restoration mod. -
If you want to use a mod when you are playing with restoration mod AND without it, you don't need to do anything. That's how it works already.
After opening the game once after switching (by switching I mean playing without restoration mod to enabling restoration mod again and vice-versa) you need to close and open the game again for this mod to take effect. You can skip this step by using the "ReLUA" mod and simply doing a ReLUA.
Notes:
-
If you are using this mod, I recommend putting the mods you want to disable in a separate folder (like you do with restoration mod already, since you can't disable it in-game). I have a folder called "disabledmods" in my payday 2 folder (that I used before for modoverrides since I didn't like the beardlib mod disabling method) that I use for this purpose. The reason for this is with this mod you won't be able to see your disabled mods in-game.
-
This in theory should work with all mods, even with mods you can't disable in-game.
-
Also works with mod_overrides mods. -
Note: It doesn't seem to be working with mod_overrides as of the moment. I'll make a fix in the future.
-
To disable restoration mod, you can't disable it in-game. You have to manually remove the mod folder from your /mods folder. My mod does not affect this, it's how it worked before.
-
If you are playing without restoration mod, have manually disabled a mod in-game and that specific mod is marked as "disable.this.when.using.restorationmod", the mod WILL be re-enabled everytime you open the game, in theory. Vice-versa for disabling a mod.
Conflicts:
It might conflict with "Disable Mods when Online" idk
Special Thanks:
Dr_Newbie for creating "Disable Mods when Online" which I used to create this mod. This mod is just a big copy and paste from that mod lol.
Offyerrocker for just general help
Agradecimentos
No futuro, abrirei doações em PIX caso meus mods fiquem populares.