remove buildings via mod?

Started by cy-one, August 06, 2015, 05:01:59 AM

Previous topic - Next topic

cy-one

Heya,

I was wondering if and how it is possible to remove buildings introduced by one mod with another mod.
When mycomputer is repaired, I want to get back into rimworld. With mods like superior crafting, industrialisation, apothecarius and crafted medicine,  there will be quite some overlap and cluttered building menues.

Is there a was to remove tech and buildings with a patch-mod without changing the original mod (so i can update them normally)?

1000101

For that you can create your own "post patch" which you would load last and overrides the buildings with your versions.  Then in the patch, set the required research for the building to a research project which has a self prerequisite which will keep the research hidden as well as hide the building.

ie:  Setup a research project "foo" which lists "foo" as a prerequisite of itself.  Then override the building to use "foo" as it's prerequisite research.  The Community Core Library uses this method to allow various features of unlocking and locking buildings and recipes based on multiple research requirements.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

cy-one

Do i Neid the ccl for that, or. Can i do it without?

1000101

You don't need CCL, I was just pointing out a working example of a mod which uses the technique.  Also, it was a chance to plug CCL.  :P
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

cy-one

As i have no idea how to mod rimworld, I will take a look at ccl ;-)
Can you give me an example, so i don't have to search for long?

1000101

Well, using CCL for this won't help really.  But I basically explained what you need to do in a previous post.  Just look at the core xml and mods xml files.  You'll quickly get the idea of what's going on.  There's no short-cuts to knowledge.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By