making an object that doesn't take up a build slot

Started by Igabod, December 16, 2014, 01:08:52 AM

Previous topic - Next topic

Igabod

I'm making a heated flooring object and have everything working perfectly except one thing. You can't build tables or beds or anything on top of them. I figured maybe it might be possible to make it so you can build objects on top of it now with Alpha 8 though since you no longer remove power conduits when building things like walls (even non-conduit walls) over them. I can't figure out how to do this though and was hoping maybe someone else might have encountered a way to do this.

RawCode

Copypast conduit def.
Set field you like to values you like, it will work correctly (not hardcoded)

Compare conduit to any 1*1 building like stool to get information about what field used to check placement.
Check source code of billgenerator class to check how it resolve "canbuild" request.

mrofa

Having a item thingclass or subclass works to :D
Half of my mod work on it :)
All i do is clutter all around.

Haplo

I think what you want is the new Edifice stuff the power conduits use, don't you?
You should ask our local rug dealer ItchyFlea how it works ;)

But I think all you really need is this line in your xml:

<isEdifice>false</isEdifice>


Igabod

#4
ah so the isEdifice tag is the one I need? That one was one I wasn't sure about. That tag is very unclear as to what it does. Thanks for the help guys. I'll try that out. :)

[edit to add]
That was exactly what I was looking for, thanks :)