# Should house have innate wiring that we could plug a generator into?

**URL:** <https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386>\
**Category:** The Drawing Board\
**Created:** [August 27, 2018, 1:43am UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386 "2018-08-27T01:43:54Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![DominoVexx](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@DominoVexx](https://discourse.cataclysmdda.org/u/DominoVexx)\
**Post date:** [August 28, 2018, 11:31pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/21 "2018-08-28T23:31:17Z")

</div>

Would it be possible to treat it somewhat like a vehicle, meaning one part entering a reality bubble would cause the others to load?

So if Fridge1 loaded, it would automatically load Generator1 because they were somehow tagged to link them? Maybe even Fridge2 wouldn’t load automatically until it was in the reality, but it could also be linked to connect and thus auto spawn the generator on its own? Or even spawn all of it?

Or alternatively working within the framework of the vehicle system, add new components like indoor wiring that would not be mobile or restrict movement as much if waking over them? Maybe somehow connect through walls, or even be required to be placed in a wall? In essence, the vehicle system would become more of an electrical/power system that could be used to construct things of various uses?

Just rambling thoughts, not sure if it’s actually even possible 🙂

---

<div class="post-metadata">

**Author:** ![Duhuh123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/duhuh123/32/2786_2.png) [@Duhuh123](https://discourse.cataclysmdda.org/u/Duhuh123)\
**Post date:** [August 29, 2018, 1:03am UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/22 "2018-08-29T01:03:11Z")

</div>

Can we make everything a vehicle?

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [August 29, 2018, 3:06am UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/23 "2018-08-29T03:06:41Z")

</div>

I’m doing development in the vehicle code. It is necessarily a total hassle to do anything in the vehicle code. Something as simple as figuring out whether you have three parts of the same type in a row on adjacent tiles is surprisingly difficult to do, because of how the vehicle code is (mostly necessarily) set up.

Kevin will kill any attempt to merge code that uses the vehicle code more generally and I can’t say I blame him.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [August 29, 2018, 3:45am UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/24 "2018-08-29T03:45:21Z")

</div>

The plan is to make “appliances” that are vehicles under the hood, but have the vehicle modification menu disabled. They can use the vehicle power transmission code, use cargo spaces, have rich interactions, etc.

The only difference with what other people are proposing is they’d be wired together with cabling explicitly instead of being hooked up to building wiring.

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [August 30, 2018, 12:24pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/25 "2018-08-30T12:24:26Z")

</div>

So basically build a house out of a car and squelch the car menu? Instead using “construction” with interconnecting house parts?

Don’t forget to squelch NPCs auto sit function so they don’t go insane trying to find a seat.

---

<div class="post-metadata">

**Author:** ![Human\_Shield](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@Human\_Shield](https://discourse.cataclysmdda.org/u/Human_Shield)\
**Post date:** [August 30, 2018, 12:54pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/26 "2018-08-30T12:54:51Z")

</div>

What if houses had a fuse box that could be repaired. And only after repair does it create a new vehicle around the house.

With multiple floors there would be one box per floor if needed; so you could repair a basement fusebox and get lighting and power to the wet bar. Something like a mansion would be broken down into multiple fuse box segments.

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [August 30, 2018, 1:14pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/27 "2018-08-30T13:14:42Z")

</div>

Segmented building and each needing to be using a generator on it own? Reality bubble may bite you there as well.

---

<div class="post-metadata">

**Author:** ![Adam\_Dobry](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/adam_dobry/32/7183_2.png) [@Adam\_Dobry](https://discourse.cataclysmdda.org/u/Adam_Dobry)\
**Post date:** [February 15, 2019, 2:11pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/28 "2019-02-15T14:11:20Z")

</div>

Maybe give each appliance a small backup power storage which last for just enough to get everything else in the bubble? Or make a backup powercell appliance which stores little power and provides it only to appliances on its tile?

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [February 15, 2019, 2:40pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/29 "2019-02-15T14:40:26Z")

</div>

You gave me an idea for programming it a little easier. Everything runs off a car battery or something similar to a power source in a modular way. So that when the player character moves away. The objects are stamped with a time. The player character moves back to where the reality bubble is active with these objects and compares each object that enters the reality bubble with the the time stamp. The difference in time will be the gauge in how much energy units are consumed.

---

<div class="post-metadata">

**Author:** ![TheKobold](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thekobold/32/513_2.png) [@TheKobold](https://discourse.cataclysmdda.org/u/TheKobold)\
**Post date:** [February 17, 2019, 2:19am UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/30 "2019-02-17T02:19:05Z")

</div>

What if a terrain item was buildable that would permenately load a chunck of map at a minimum level. Some thing like minecraft having spawn point constantly active.

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [February 17, 2019, 2:39am UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/31 "2019-02-17T02:39:23Z")

</div>

The vehicles as buildings solution is simpler from a programming perspective.

---

<div class="post-metadata">

**Author:** ![munbeam](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@munbeam](https://discourse.cataclysmdda.org/u/munbeam)\
**Post date:** [February 17, 2019, 4:43pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/32 "2019-02-17T16:43:04Z")

</div>

I doubt I have the expertise to understand the difficulties. Not enough experience adding to established code to wrap my head around it.

The outlets of a building can be nodes in a tree. The tree represent an electrical system that can update outside of the bubble but only gets activated when part of the tree, an outlet, is in the bubble. Flipping the tree to active is as simple as using quick find to find the tree root of the outlet and turning it on. Even if smaller trees representing subsystems were used it should not take too long to find the root. As long as it does not go too deep. Assuming the wiring does not have separate circuits might make it even simpler. Separating a subtree to a new tree, due to outlet destruction, can be quick as well. It means creating two or three separate trees that now run on their own, and checking their nodes to see if at least one is in the bubble. Outlets do nothing beside representing a union so I assume it would simply slow the map loading in a bit.

The tree keeps track of the producers and consumers in the system. Those could also be a separate tree added to the outlets through quick union. They would probably need to be aware of which outlet they are on but adding to root is faster. If an outlet gets destroyed find its root, separate outlet trees, and make what was connected to the outlet it’s own tree again. Each producer adds to the tree’s total energy and each consumer reduces it. Since the tree handles the update of them, the difficulty of it might be in saving and loading data that comes from outside the bubble.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [February 17, 2019, 6:02pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/33 "2019-02-17T18:02:12Z")

</div>

> [@munbeam](#):
>
> the difficulty of it might be in saving and loading data that comes from outside the bubble.

You got it, stitching the parts together isn’t hard at all, the problem is managing interactions with components that are not loaded. _This has already been solved for vehicles._

---

<div class="post-metadata">

**Author:** ![TheKobold](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thekobold/32/513_2.png) [@TheKobold](https://discourse.cataclysmdda.org/u/TheKobold)\
**Post date:** [February 17, 2019, 7:40pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/34 "2019-02-17T19:40:24Z")

</div>

Is anyone working on converting building into vehicles?

---

<div class="post-metadata">

**Author:** ![Hof1993](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/hof1993/32/6251_2.png) [@Hof1993](https://discourse.cataclysmdda.org/u/Hof1993)\
**Post date:** [February 17, 2019, 10:22pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/35 "2019-02-17T22:22:41Z")

</div>

All I want is the ability to jumper cable a battery to flood lights. And light a whole room.

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [February 17, 2019, 10:34pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/36 "2019-02-17T22:34:19Z")

</div>

Would my idea for use of a time stamp help?  
(posted a few comments up)

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [February 17, 2019, 10:36pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/37 "2019-02-17T22:36:09Z")

</div>

That reminds me of irl off the grid living hobo style. No offense, but assuming your info is accurate. Isn’t that pretty much how most folks do it up in Barrow?

---

<div class="post-metadata">

**Author:** ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)\
**Post date:** [February 17, 2019, 11:50pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/38 "2019-02-17T23:50:41Z")

</div>

You can more-or-less do that right now. On the one hand, a heavy-duty flashlight + car battery mod can be set down to light a room. On the other hand, you can build a one-tile “vehicle” with a car battery, a set of electronic controls, and either aisle lights (flashlight) or a floodlight to make a lamp. The aisle lights option will give you about ~8-9 hours of light before you have to replace the battery. Plus it’s fun to drag it to where you need it. I haven’t tried the floodlight, but I can imagine you’d get a couple of hours where it would light a massive area.

---

<div class="post-metadata">

**Author:** ![Hof1993](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/hof1993/32/6251_2.png) [@Hof1993](https://discourse.cataclysmdda.org/u/Hof1993)\
**Post date:** [February 18, 2019, 2:53am UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/39 "2019-02-18T02:53:50Z")

</div>

More or less we have a town generator and whatnot but lots tend to daisy chain lines together. ![FB_IMG_1550429806990](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/8/8639da7d219863322027fd32cde29c98a0b2faf4.jpeg)

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [February 18, 2019, 3:04pm UTC](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386/40 "2019-02-18T15:04:24Z")

</div>

Ya know I’ve been playing this a while now and I have never figured out how to start scratch a “vehicle”. Is that under the construction menu? 0\_o

[Previous page](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386.md?page=1)

[Next page](https://discourse.cataclysmdda.org/t/should-house-have-innate-wiring-that-we-could-plug-a-generator-into/16386.md?page=3)
