# How to make a fabricator run on gas or electricity

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [December 21, 2016, 10:43pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127 "2016-12-21T22:43:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkDelusions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkDelusions](https://forums.unrealengine.com/u/DarkDelusions)\
**Post date:** [December 21, 2016, 10:43pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/1 "2016-12-21T22:43:00Z")

</div>

I"m posting this since I haven’t found a clear answer on the forums for how to make a Fabricator run on gas or electricity.  
I’m not good at writing tutorials but hopefully this will help anyone having problems switching fuel sources. This may not be the best way to switch fuel sources but its working for me. This now works on dedicated servers and in single player.

I want to thank to @DefaultCoder and @Matt_Tuttle for helping with this.

First you’ll want to take a look at Mezzow’s thread here on how to add to the radial menu.  
[https://forums.unrealengine.com/showthread.php?95296-Tutorial-Example-Adding-custom-MultiUse(Radial)-menu-entry-action](https://forums.unrealengine.com/showthread.php?95296-Tutorial-Example-Adding-custom-MultiUse(Radial)-menu-entry-action)

All of these graphs are on the StorageBox\_Fabricator.  
To view the example in the editor extract [FabricatorTutorial.zip](https://forums.unrealengine.com/uploads/short-url/gN4zJnp2o1VYteo6z8z7TEGRbPX.zip) (105 KB) to the folder \Epic Games\ARKDevKit\Projects\ShooterGame\Content\Mods. Change the folder according to where you installed if its different.

I use a variable to set what string is displayed on the radial menu.  
[screenshot]

 ![BPGetMultiUse.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/3/83b43382ca847bb96c7a66aa56731639a1903c9c.png)&d=1501359458[/screenshot]

The event graph launches the OnRepCondition event when switching fuel sources is called upon, and has the custom event PoweredStructures (multicast and reliable).  
[screenshot]

 ![EventGraph.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/0/008f669954070df524874dc56afd9f7ed1257601.png)&stc=1&d=1501790137[/screenshot]

I set the string variable’s value according to the condition variable set in the BPTryMultiUse graph.  
[screenshot]

 ![BPTryMultiUse1.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/f/4f419cecd35f2667f003ec47a1a4998bb66aa4cf.png)&d=1501359464[/screenshot]  
[screenshot] ![BPTryMultiUse2.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/9/694437aabf8e7f1ddfd46a5f2c1e90518e26bf14.png)&stc=1&d=1501790092[/screenshot]

The OnRepCondition graph.  
[screenshot]

 ![OnRepCondition.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/d/3d9e556982e7bea368f2426ea8554b1d4df7afb5.png)&d=1501359490[/screenshot]

The PoweredStructuresCheck function.  
[screenshot]

 ![PoweredStructuresCheck.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/c/8c59558840ffed2a2a0c03a3eb9bc21bfa6c7a5d.png)&stc=1&d=1501789039[/screenshot]

The FuelCheck function.  
[screenshot]

 ![FuelCheck.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/6/8626add6ff80a2a59246a534c8725f35dad5d1f2.png)&stc=1&d=1501789031[/screenshot]

The variables used changes how the Fabricator is powered.  
**UseEntryString** sets what will be displayed on the radial menu. It is replicated and multicast to display on clients since it is run server side.  
**ActiveRequiresPower** boolean sets whether or not the Fabricator will require electricity.  
The variable **ActiveNoFuel** trashes the **ActiveRequiresFuelItems** setting.  
The variable **NoBurnTime** trashes the **FuelItemsConsumeInterval** setting.  
The variable **NoFuelGives** trashes the **FuelItemsConsumedGiveItems** setting.  
The variable **ElectricJunction** sets **PoweredNearbyStructureTemplate** to ElectricJunction  
The variable **NeedsFuel** sets **ActiveRequiresFuelItems** setting back to Gasoline  
The variable **BurnTime** sets **FuelItemsConsumeInterval** setting back to 3600  
The variable **FuelGives** sets **FuelItemsConsumedGiveItems** setting back to none  
The variable **NoElectricJunction** sets **PoweredNearbyStructureTemplate** to none  
The variable **Condition** is set last after the changes have been made.  
The **Set is powered** prevents the fabricator from remaining powered if it was powered when switching to gas then having shut off the generator and switching back to electricity.  
**Set Container Active** just turns the fabricator off when switching power sources.

To create the variables just drag off the node for the SET functions and promote to variable then set your variables accordingly.

---

<div class="post-metadata">

**Author:** ![Sgt.Morrigahn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sgt.Morrigahn](https://forums.unrealengine.com/u/Sgt.Morrigahn)\
**Post date:** [December 24, 2016, 1:36pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/2 "2016-12-24T13:36:49Z")

</div>

Nice one! I will add this to the list on my thread

> **[So you want to learn to mod? Here's a list of youtubers that give some good...](https://forums.unrealengine.com/showthread.php?130356-So-you-want-to-learn-to-mod-Here-s-a-list-of-youtubers-that-give-some-good-tutorials)**
>
> I as am following them all myself to learn to mod, I thought I’d put up my list of youtube tutorials of stuff and things (Sl1pG8r reference CHECK) so you all new to modding have a good setup to learn! Video Tutorials: Mystic Academy...

---

<div class="post-metadata">

**Author:** ![ZigaZG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZigaZG](https://forums.unrealengine.com/u/ZigaZG)\
**Post date:** [December 24, 2016, 5:45pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/3 "2016-12-24T17:45:03Z")

</div>

Can you plis upload your fabricator some where ?

---

<div class="post-metadata">

**Author:** ![DarkDelusions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkDelusions](https://forums.unrealengine.com/u/DarkDelusions)\
**Post date:** [December 25, 2016, 5:53am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/4 "2016-12-25T05:53:59Z")

</div>

You can see how it works with this it’s the StorageBox\_Fabricator blueprint which has all the graphs on it.

It’s now in top post.

---

<div class="post-metadata">

**Author:** ![ZigaZG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZigaZG](https://forums.unrealengine.com/u/ZigaZG)\
**Post date:** [December 25, 2016, 3:21pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/5 "2016-12-25T15:21:02Z")

</div>

> [@DarkDelusions;642497](#):
>
> You can see how it works with this it’s the StorageBox\_Fabricator blueprint which has all the graphs on it.

Thank you, i will try this o my auto turret

---

<div class="post-metadata">

**Author:** ![dreyn74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dreyn74](https://forums.unrealengine.com/u/dreyn74)\
**Post date:** [January 8, 2017, 9:26pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/6 "2017-01-08T21:26:22Z")

</div>

Thank you for sharing this!  
I used your fabricator\_BP, and used my PrimalItemStructure\_BP to place it, but when I tested it on a dedicated server, the “Entry Use String” does not change, and it does not become powered.  
[Screen capture - 96c470d05c17c17dd9982c76f4e72c73 - Gyazo](https://gyazo.com/96c470d05c17c17dd9982c76f4e72c73)

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [January 9, 2017, 12:10am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/8 "2017-01-09T00:10:22Z")

</div>

Looks like it’s switching to require power, but isn’t grabbing that nearby outlet. You have nearby power template pointed to an outlet?

---

<div class="post-metadata">

**Author:** ![dreyn74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dreyn74](https://forums.unrealengine.com/u/dreyn74)\
**Post date:** [January 9, 2017, 1:31am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/9 "2017-01-09T01:31:45Z")

</div>

> [@Huston850;648110](#):
>
> Looks like it’s switching to require power, but isn’t grabbing that nearby outlet. You have nearby power template pointed to an outlet?

Yes, there is a power template variable that get’s set in the Fabricator\_BP when it’s switched to “Electric Mode”.  
I got the “Entry Use String” to finally change by setting every variable in the BP to “replicated”, but it will not run on electricity once it has been switched from “Gas Mode”.

---

<div class="post-metadata">

**Author:** ![DarkDelusions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkDelusions](https://forums.unrealengine.com/u/DarkDelusions)\
**Post date:** [January 10, 2017, 9:42pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/10 "2017-01-10T21:42:50Z")

</div>

I’m still fairly new to modding myself so I don’t really know too much yet but I can do some testing on it to see if I have something not set right.

---

<div class="post-metadata">

**Author:** ![DarkDelusions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkDelusions](https://forums.unrealengine.com/u/DarkDelusions)\
**Post date:** [January 12, 2017, 2:37am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/11 "2017-01-12T02:37:33Z")

</div>

Okay after trying a lot of different things I managed to get it working on a dedicated server and single player. I have updated the top post with the new setup.

---

<div class="post-metadata">

**Author:** ![ZigaZG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZigaZG](https://forums.unrealengine.com/u/ZigaZG)\
**Post date:** [January 12, 2017, 4:56am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/12 "2017-01-12T04:56:21Z")

</div>

Did you update the zid file aswell ?

---

<div class="post-metadata">

**Author:** ![DarkDelusions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkDelusions](https://forums.unrealengine.com/u/DarkDelusions)\
**Post date:** [January 12, 2017, 5:21am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/13 "2017-01-12T05:21:10Z")

</div>

Yes I replaced the zip file

---

<div class="post-metadata">

**Author:** ![dreyn74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dreyn74](https://forums.unrealengine.com/u/dreyn74)\
**Post date:** [January 12, 2017, 2:34pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/14 "2017-01-12T14:34:05Z")

</div>

> [@DarkDelusions;649798](#):
>
> Okay after trying a lot of different things I managed to get it working on a dedicated server and single player. I have updated the top post with the new setup.

Works great. Again, thank you very much for sharing this.

---

<div class="post-metadata">

**Author:** ![DarkDelusions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkDelusions](https://forums.unrealengine.com/u/DarkDelusions)\
**Post date:** [January 12, 2017, 5:44pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/15 "2017-01-12T17:44:02Z")

</div>

Your welcome. I’m glad it’s helpful.

---

<div class="post-metadata">

**Author:** ![ZigaZG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZigaZG](https://forums.unrealengine.com/u/ZigaZG)\
**Post date:** [January 20, 2017, 2:37am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/16 "2017-01-20T02:37:54Z")

</div>

Dude , thank you very much finally i made my auto turrets to switch fro gas to power and otherwise

---

<div class="post-metadata">

**Author:** ![xSmokieMcPotx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSmokieMcPotx](https://forums.unrealengine.com/u/xSmokieMcPotx)\
**Post date:** [April 25, 2017, 11:34pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/17 "2017-04-25T23:34:16Z")

</div>

not sure if its just me but i can place the structure, put gasoline in it and turn it on and off, switch to electricity with a gen nearby and i can turn it on and off, but if i switch BACK to gasoline it doesnt allow me to turn it on. any ideas?

---

<div class="post-metadata">

**Author:** ![DefaultCoder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DefaultCoder](https://forums.unrealengine.com/u/DefaultCoder)\
**Post date:** [April 27, 2017, 4:51am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/18 "2017-04-27T04:51:58Z")

</div>

> [@xSmokieMcPotx;699745](#):
>
> not sure if its just me but i can place the structure, put gasoline in it and turn it on and off, switch to electricity with a gen nearby and i can turn it on and off, but if i switch BACK to gasoline it doesnt allow me to turn it on. any ideas?

There needs to be a kill switch before the initial switch to change from gas to electric as it bugs out… I found if left on while switching from gas to electric or vise versa it breaks…

_ **Edit** _ It however works as intended for testing and tutorial purposes… I think this is meant as a guide to get you started on your graph not as a completed mod.

---

<div class="post-metadata">

**Author:** ![DefaultCoder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DefaultCoder](https://forums.unrealengine.com/u/DefaultCoder)\
**Post date:** [May 7, 2017, 1:00am UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/20 "2017-05-07T01:00:14Z")

</div>

@xSmokieMcPotx

This is how I got mine to work… through various forum posts and videos and some trial and error on my end… The information is out there

**MultiUseEntry**

[screenshot] ![MUentry.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/3/a3766bf573aa5b4e4787016574f9a6878b1779bd.png)&stc=1&d=1494117644[/screenshot]

**EventGraph**

[screenshot] ![Event.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/b/8bf0c082dd02f0d3d0ea873127ef7655a5ad8460.png)&stc=1&d=1494117629[/screenshot]

**TryMultiUse Function**

[screenshot]

 ![TryMU.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/3/d388c022c52e4243c41055f8b7f0e0b4fad865b8.png)&stc=1&d=1494117263[/screenshot]

**OnReplicationCondition**

[screenshot]

 ![OnRepCondition.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/6/86b6ac1a6e89586d6e1de225ef99e57ed92648a5.png)&stc=1&d=1494117280[/screenshot]

I hope this helps…  
This works for my custom crafting station.

---

<div class="post-metadata">

**Author:** ![xSmokieMcPotx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSmokieMcPotx](https://forums.unrealengine.com/u/xSmokieMcPotx)\
**Post date:** [May 22, 2017, 10:42pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/21 "2017-05-22T22:42:25Z")

</div>

had to wipe everything due to a hdd failure so ill give it a go tonight, thank you so much!

---

<div class="post-metadata">

**Author:** ![xSmokieMcPotx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSmokieMcPotx](https://forums.unrealengine.com/u/xSmokieMcPotx)\
**Post date:** [May 23, 2017, 11:35pm UTC](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127/22 "2017-05-23T23:35:11Z")

</div>

is there anyway you could upload a copy of your structure so i could see the graphs? i know its asking a bit much but im completely lost lol @defaultcoder

[Next page](https://forums.unrealengine.com/t/how-to-make-a-fabricator-run-on-gas-or-electricity/81127.md?page=2)
