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

Quarry, Tank and these others things

Started by Arektor, 20 July 2014 - 06:02 PM
Arektor #1
Posted 20 July 2014 - 08:02 PM
Hi,

I want to make a program for my friend, for accessing to all of his quarries, and see how many fuel is in the tank, but I don't have any idea how to proceed.
Is there any functions for the quarry or all of these others things like the tank, the rails of Railcraft, the blocks of Applied Energistics etc…

Does anyone know ?

EDIT: I've found OpenCCSensors but… Does it work with the quarry ? And Railcraft ?
Edited on 21 July 2014 - 05:05 AM
Writer #2
Posted 22 August 2014 - 04:45 PM
I did never worked with the BC/AE/RC - CC/OP integration, but if you are playing with Open Peripherals, you should be able to put a Proxy Peripheral pointing to the quarry, etc, conect a wired modem and connect it to the computer. Then turn on the modems. If you have success in activate the modem next to the peripheral, you should get a name(to make it easy, let's call this name quarry). Now go to your computer and open lua. Then write peripheral.getMethods("side"). Replace 'side' for the name(in this case 'quarry'). You should get all the methods from the quarry now. Tho I'm not sure this will work. But, hey, you'll never know if you don't try.
Bomb Bloke #3
Posted 22 August 2014 - 05:11 PM
This tutorial is a good start - among other things, it explains how to find out what functions a given peripheral might have.

OpenPeripheral adds functions to quite a few blocks (exactly which depends on the version numbers involved), and offers a script to make extracting information about them slightly less painful.