• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Enero

First Lieutenant
Sep 29, 2018
266
532
Hi, how to completely remove (or make unavailable) game items (like techs) without breaking the game and other mods, which could use the same game files?

Thanks
 
Moved to User Mods sub-forum.
 
Only thing I can think of is overwriting the particular items in a mod, e.g. modding that tech_climate_restoration requires a different technology prerequisite.
 
Don't remove items if you can help it. Make them unavailable by overriding them and adding always = no as a condition to the potential ={} or possible = {} wrappers. Name the file in such a way that it is almost certainly loaded last, depending on the overwriting order of the specific element, as explained in the link. Works for most items.

If you want two mods to edit the same item and have changes from both mods reflected in the final result, you'll need a compatibility patch that combines the changes from both mods.
 
Don't remove items if you can help it. Make them unavailable by overriding them and adding always = no as a condition to the potential ={} or possible = {} wrappers. Name the file in such a way that it is almost certainly loaded last, depending on the overwriting order of the specific element, as explained in the link. Works for most items.

If you want two mods to edit the same item and have changes from both mods reflected in the final result, you'll need a compatibility patch that combines the changes from both mods.
I want to remove techs (as thankfully many things are locked behind them), but one tech per a mod.

As it is written in the wiki, a tech from a file list can be overwritten, though it still triggers an error.

Thanks for your suggestion about "always = no"