For example, monasteries lose their research bonus later on, but i want the player to be able to build monasteries, just without the research bonus.
Unfortunately this is not doable in XML. So I can't help you here.
Is it possible to remove only certain bonuses from a building with a tech? Also what is the simplest way of changing a tech so it does not obsolete something?
Strange, now I"m confused.
For most buildings you find this in the CIVBuildingInfos
The tag for obsoleting a building is this:
<ObsoleteTech>TECH_ECONOMICS</ObsoleteTech>
The econ tech is there because I've cut this from the Castle. Now here's the weird thing. This is the same tag for all of the monasteries:
<ObsoleteTech>NONE</ObsoleteTech>
<PrereqTech>NONE</PrereqTech>
So according to my knowledge, an previous modding of CIV (I've added my own buildings, they work fine. They obsolete and become available when I've designed them to) the monestaries should be always available, and should never go obsolete.
So, I'm confused. Can anyone tell me what's up with the monestaries, and where their obsolete and available tags are?