tsunamods-codes/7th-Heaven

[Feature Request] Possibility to CHECK if mod is active and/or DISABLE mod if some option is active.

Open

#97 opened on Jun 23, 2022

 (6 comments) (0 reactions) (0 assignees)C# (45 forks)auto 404
enhancementhelp wantedpriority/P2

Repository metrics

Stars
 (269 stars)
PR merge metrics
 (PR metrics pending)

Description

I was asking if It could be possible to CHECK if a mod is active in Compatibilty section, and then Forbid or Request some features of the own mod to be active or inactive.

Let's say I want to Check if Ninostyle Chibis .IRO is installed and active. If it is not active, I would like to have active mandatory the Kaldarasha models mod, for example.

<Compatibility> 
<Setting>
<CheckActive ModID="05d57b82-b506-4097-aeb6-cca0062f2a43">Chibi Ninostyle</CheckActiveModID>
<MyID>modelsKaldarasha</MyId>
<Forbid>1</Forbid>  (or <Request>0</Request>
</Setting>
</Compatibility> 

With this, we could enable/disable options in our mod knowing if other mod is active or not.

We could do something similar by DISABLING a mod if some of the options of our mod is enabled or something:

<Compatibility>
	<Setting>
	  <MyID>MySettingVariable</MyID>
	  <MyValue>1</MyValue>
	  <Disable ModID>fae201ee-9fa5-4163-ab56-2b478111449d</ModID>
	</Setting>
</Compatibility>

But these are only suggestions.

I'm asking this because if one of the compatibility checks of our mod means that another mod needs to have an option with a precise value, BUT, that mod is not installed, the check is not performed and it is not useful.

Contributor guide