Cusmtom Wall, How do I make it so that I can build vents in them=

Started by Kassidoo, August 30, 2016, 09:47:49 AM

Previous topic - Next topic

Kassidoo

Quote from: 1000101 on August 31, 2016, 01:03:22 PM
Yup, and as I said before, you are looking for the allowed thingDefs in CompProperties_RestrictedPlacement.

Also, google docs is a horrible site, pastebin is much better for this sort of thing.

Sigh.... I'm looking in the CCC.dll files, and looking at the CompProperties_RestrictedPlacement, and there is no "allowed things defs". I mean comeon, all this time spent telling me how easy and simple the fix is, if you just told me where and what to fix, it would be done in 10min, but instead you guys have been looking down on me for 2 days straight now. I dont know how to edit .dll, I just found out how to open them, and inside it, there is no such thing of which you speak of.  http://pastebin.com/bG4gY1zA this is the CompProperties_RestrictedPlacement, and I have not a single clue as to what to do. I'm trying to understand, but you guys are so cryptic and talk like I know what I'm doing. I just simply want to be able to place a Vent in my hospital to keep it a the temperature I want without having a massive hole in the wall since I cant place a stupid vent in it.

kaptain_kavern

If I understand correctly it's not in the .DLL files you have to look in but the .XML ones

Kassidoo

Quote from: kaptain_kavern on August 31, 2016, 05:10:48 PM
If I understand correctly it's not in the .DLL files you have to look in but the .XML ones

Well it already got the wall def

            <li Class="CommunityCoreLibrary.CompProperties_RestrictedPlacement">
                <compClass>CommunityCoreLibrary.CompRestrictedPlacement</compClass>
                <thingDefs>
                    <li>Wall</li>
                </thingDefs>

kaptain_kavern

Quote from: skullywag on August 31, 2016, 09:35:40 AM
ok you need to look at the vent xml definition in redistheat and tell me what placeworkers it has set. Once I have that I can work out what you need.
In the google doc with SterileWall mod def there is
        <placeWorkers>
            <li>CommunityCoreLibrary.PlaceWorker_OnlyOnThing</li>
            <li>RedistHeat.PlaceWorker_WallChecker</li>
        </placeWorkers>


So for me, theoretically (I haven't used Redistheat nor look in the code), as long as CCL AND Redistheat are placed higher than SterileWall in the modlist it should works, right?

1000101

Nobody is looking down their nose at you and you were told on day one where and how to fix it when I said to look at the original mod thread.  I can explain it for you but I can't understand it for you.

You need to add whatever walls you want to the list of allowed thingDefs.  There is only one list - thingDefs.  Whether it's allowed or disallowed is based on the PlaceWorkers used.  Since it's PlaceWorker_OnlyOnThing the list is of allowed thingDefs.  If it was PlaceWorker_NotOnThing the list would be disallowed thingDefs.  Either way, the list is named thingDefs.  Add the walls to that.
(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