How to make a fabricator run on gas or electricity

@xSmokieMcPotx

I sent you a private message for git to download the source file. If you are still having issues please let me know.

@DefaultCoder
I also have problems with that I can not switch back, can you please give me also the link?
Thanks in advance

I have updated the top post with new graphs and zip file. There is one problem with it currently, for electricity it requires the power source to be turned off and back on while the fabricator is set to electricity. If anyone knows a solution please let me know

I found a way to check for power by running a timer for this event


You can ignore the clear timer and powered structures check.
The set active is to auto activate if powered (optional)

I’m having a problem finding the Powered Structures Check.

It’s a custom one I use to find a new junction if it becomes inactive. I have also since removed the clear timer and paused it in the function below.
After a sphere check add:

I also have a fuel check function in case you have fuel in the inventory before switching.

Add it in the on rep condition on the side you switch to fuel.

Updated top post with new functions, graphs and zip file.

I use a timer like so (because it wasn’t unpowering when the generator was turned off)

I’ve also updated my event and function now that I’ve had more time to play with it.

I moved the set is powered false to the beginning of the Check function

I’ve also found the select function useful to keep down the number of variables
(best found by dragging off the “use string”)

the attachment isn’t working says invalid and I can’t seem to find Auto Activate Local

I’ve updated it, and the fuel strings are backwards.