This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jewelshisen's profile picture

OCS controlled carts

Started by jewelshisen, 13 March 2013 - 05:15 AM
jewelshisen #1
Posted 13 March 2013 - 06:15 AM
I'm needing a bit of help making a program. I'm wanting to use this to combine Railcraft, CC, OCS, and WR-CBE.

My idea is fairly simple. Have MFSU carts from Railcraft running from my nuclear power plant to my various bases to deliver power.
I want to have CC and OCS watching my MFSUs so that they cut off the supply after the box charges to a certain level. To do this I would have WR-CBE to let the computer trigger the holding rails to send the energy cart along.

My issue is this: How do I pull the storedPercentage value from the OCS sensor?
Lyqyd #2
Posted 13 March 2013 - 06:18 AM
What values does it give you for the cart? Hopefully Stored and Capacity, like a regular MFSU. You'd then be able to figure the percentage from those.
jewelshisen #3
Posted 13 March 2013 - 06:19 AM
What values does it give you for the cart? Hopefully Stored and Capacity, like a regular MFSU. You'd then be able to figure the percentage from those.

Not scanning the carts. Scanning the normal MFSU that the carts will empty into. Sorry about the confusion.
jewelshisen #4
Posted 13 March 2013 - 07:05 AM
Solved it.