# Movable generator

**URL:** <https://discourse.cataclysmdda.org/t/movable-generator/11724>\
**Category:** The Drawing Board\
**Created:** [April 19, 2016, 7:14am UTC](https://discourse.cataclysmdda.org/t/movable-generator/11724 "2016-04-19T07:14:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![justfortest](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/justfortest/32/450_2.png) [@justfortest](https://discourse.cataclysmdda.org/u/justfortest)\
**Post date:** [April 19, 2016, 7:14am UTC](https://discourse.cataclysmdda.org/t/movable-generator/11724/1 "2016-04-19T07:14:59Z")

</div>

Usually, survivor’s will use car part DIY for him self, so, I think, why not create some standard generator?  
This is it. add to “vehicles.json”

```auto
	{
        "type" : "vehicle",
        "id" : "small_gasoline_generator",
        "name" : "small generator",
        "blueprint" : "G",
        "parts" : [
            {"x": 0, "y": 0, "part": "xlframe_vertical_2"},
            {"x": 0, "y": 0, "part": "wheel_caster"},
            {"x": 0, "y": 0, "part": "battery_motorbike"},
            {"x": 0, "y": 0, "part": "engine_1cyl_small"},
            {"x": 0, "y": 0, "part": "alternator_motorbike"},
            {"x": 0, "y": 0, "part": "controls"},
            {"x": 0, "y": 0, "part": "gas_tank_small"}
        ]
    }
```

humm, a short test show it will cost debug text:  
"DEBUG: MAP:: board\_vehicle: boarding extra light frame (not boardable)"  
Press space, it work, but why? 😑

---

<div class="post-metadata">

**Author:** ![Rivet](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rivet/32/11_2.png) [@Rivet](https://discourse.cataclysmdda.org/u/Rivet)\
**Post date:** [April 19, 2016, 7:45am UTC](https://discourse.cataclysmdda.org/t/movable-generator/11724/2 "2016-04-19T07:45:15Z")

</div>

[quote=“justfortest, post:1, topic:11724”]humm, a short test show it will cost debug text:  
"DEBUG: MAP:: board\_vehicle: boarding extra light frame (not boardable)"  
Press space, it work, but why? :|[/quote]

That’s because it spawns under your feet, and in this vehicle’s case that causes you to be standing on a tile that can’t be boarded through normal means so it throws a debug error message.

Don’t worry about it; it doesn’t occur during normal usage or cause any harm.

---

<div class="post-metadata">

**Author:** ![justfortest](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/justfortest/32/450_2.png) [@justfortest](https://discourse.cataclysmdda.org/u/justfortest)\
**Post date:** [April 19, 2016, 7:48am UTC](https://discourse.cataclysmdda.org/t/movable-generator/11724/3 "2016-04-19T07:48:17Z")

</div>

[quote=“Rivet, post:2, topic:11724”]That’s because it spawns under your feet, and in this vehicle’s case that causes you to be standing on a tile that can’t be boarded through normal means so it throws a debug error message.

Don’t worry about it; it doesn’t occur during normal usage or cause any harm.[/quote]

😃  
thank you.

---

<div class="post-metadata">

**Author:** ![justfortest](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/justfortest/32/450_2.png) [@justfortest](https://discourse.cataclysmdda.org/u/justfortest)\
**Post date:** [April 22, 2016, 8:03am UTC](https://discourse.cataclysmdda.org/t/movable-generator/11724/4 "2016-04-22T08:03:29Z")

</div>

XD  
another one, I recommend connected by jumper cables.

```auto
{
        "type" : "vehicle",
        "id" : "solar_array",
        "name" : "3x3 basic solar array",
        "parts" : [
                        {"x": 0, "y": 0, "part": "xlframe_vertical"},
			{"x": 0, "y": 0, "part": "solar_panel"},
                        {"x": 1, "y": 0, "part": "xlframe_vertical"},
			{"x": 1, "y": 0, "part": "solar_panel"},
			{"x": -1, "y": 0, "part": "xlframe_vertical"},
			{"x": -1, "y": 0, "part": "solar_panel"},
			{"x": 0, "y": 1, "part": "xlframe_vertical"},
			{"x": 0, "y": 1, "part": "solar_panel"},
                        {"x": 0, "y": -1, "part": "xlframe_vertical"},
			{"x": 0, "y": -1, "part": "solar_panel"},
			{"x": 1, "y": 1, "part": "xlframe_vertical"},
			{"x": 1, "y": 1, "part": "solar_panel"},
			{"x": -1, "y": -1, "part": "xlframe_vertical"},
			{"x": -1, "y": -1, "part": "solar_panel"},
			{"x": 1, "y": -1, "part": "xlframe_vertical"},
			{"x": 1, "y": -1, "part": "solar_panel"},
			{"x": -1, "y": 1, "part": "xlframe_vertical"},
			{"x": -1, "y": 1, "part": "solar_panel"}
        ]
    }
```
