Posted 28 August 2012 - 06:25 PM
(This is on my tekkit server that I host)
Ok so here's what I'm trying to do…
I've made a factory that is running all of its red power from a single CC computer with a bundled cable in the back. I need help with a lua code that can add or subtract a single or group of colors that are currently on/off without having to write in every single possible combination of colors.
For example, I currently have the lights inside the factory running off of the white cable, the pumps sending items to macerators and electric furnaces running off of the magenta cable, and a light green cable that powers the pump leading to an automatic crafting table.
My goal is to have a user interface that will independently run a single color of cable without having to turn off the other colored cables, similar to levers but from a single point.
Here's an example of what I'd like the interface to look like… (this much I can do on my own)
Welcome, IceMan – i used a roaming profile program as a start up
IceNet Factory Interface
Iron Machines Interface [1]
Toggle iron ore pump [1]
Pumps are currently ()
Toggle macerator and induction pumps [2]
Pumps are currently ()
Toggle refined iron pump[3]
Pumps are currently ()
Back [4]
Cobble Generator Interface [2]
Toggle cobblestone generator timer [1]
Timer is currently ()
Set cobblestone timer increment [2]
Current timer increment is () seconds
Back [3]
Iron Furnace Table Interface [3]
Toggle iron pump [1]
Pump is currently ()
Toggle furnace pump [2]
Pump is currently ()
Toggle ironfurnace pump [3]
Pump is currently ()
Back [4]
Factory Door Interface [4]
Doors are currently ()
Open doors [1]
Close doors [2]
Back [3]
Lighting Interface [5]
Lights are currently ()
Turn on Lights [1]
Turn off Lights [2]
Back [3]
Master Interface [6]
Power on [1]
Power off [2]
Exit [3]
Any advice from the pros?
Ok so here's what I'm trying to do…
I've made a factory that is running all of its red power from a single CC computer with a bundled cable in the back. I need help with a lua code that can add or subtract a single or group of colors that are currently on/off without having to write in every single possible combination of colors.
For example, I currently have the lights inside the factory running off of the white cable, the pumps sending items to macerators and electric furnaces running off of the magenta cable, and a light green cable that powers the pump leading to an automatic crafting table.
My goal is to have a user interface that will independently run a single color of cable without having to turn off the other colored cables, similar to levers but from a single point.
Here's an example of what I'd like the interface to look like… (this much I can do on my own)
Welcome, IceMan – i used a roaming profile program as a start up
IceNet Factory Interface
Iron Machines Interface [1]
Toggle iron ore pump [1]
Pumps are currently ()
Toggle macerator and induction pumps [2]
Pumps are currently ()
Toggle refined iron pump[3]
Pumps are currently ()
Back [4]
Cobble Generator Interface [2]
Toggle cobblestone generator timer [1]
Timer is currently ()
Set cobblestone timer increment [2]
Current timer increment is () seconds
Back [3]
Iron Furnace Table Interface [3]
Toggle iron pump [1]
Pump is currently ()
Toggle furnace pump [2]
Pump is currently ()
Toggle ironfurnace pump [3]
Pump is currently ()
Back [4]
Factory Door Interface [4]
Doors are currently ()
Open doors [1]
Close doors [2]
Back [3]
Lighting Interface [5]
Lights are currently ()
Turn on Lights [1]
Turn off Lights [2]
Back [3]
Master Interface [6]
Power on [1]
Power off [2]
Exit [3]
Any advice from the pros?