Module category defaults


Makes vanilla module categories as the default for allowed_module_categories.

2 days ago
2.0 - 2.1
9.41K

i Opt-out vs Opt-in

a month ago

I had a report saying that this mod is preventing some of Bob's modules from being used, probably the ones with a pollution effect.

Is there a reason you went with an opt-in approach rather than opt-out?
If an entity has no allowed_module_categories set, then list ALL module categories except for the ones that want to be excluded. That way you won't break other mods. And the mods that need special handling can get it.

a month ago

Hi there. There is a long discussion on this topic on the Foundry Discord which resulted in this mod being made. The problem is multiple mods adding modules that should be white-listed for a selected list of buildings. By default these mods break the feature for each other when applying their logic in final-fixes (as would your proposal). The compat code for that requires each mod to know about all other mods that need special handling. This mod centralizes that so each mod only handles its own behavior. The downside is, that mods not using this logic are forced to use it as well to be compatible.

I can help out if you provide me a specific example (mod combination and building-module-combination) so I know what could be a suitable fix for your case. Or link me the discussion that brought the topic up.

Btw. I'm now releasing a version that excludes recipes from the logic of this mod.

a month ago

Btw. feel free to contact me in Discord. I'll respond faster there.

a month ago

I added two examples to the description of this mod on how to use it. That probably covers 90% of all use cases.

New response