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

Need help with monitoring a gas turbine.

Started by Usiax100, 19 July 2015 - 03:01 PM
Usiax100 #1
Posted 19 July 2015 - 05:01 PM
Hello,
i want to read the gas turbine's (from RotaryCraft) tank and the amount of fuel that is inside of it with CC.
Is that possible or these mods are incompatible?

Sorry, I'm newbie in CC programming :(/>
KingofGamesYami #2
Posted 19 July 2015 - 09:02 PM
I have no idea if it's compatible. A good way to find out would be to attempt to place a wired modem on it - you can only place wired modems on peripherals CC can use.

Once you know if you can use it, you can use peripheral.getMethods( side ) to list the methods of the given peripheral.
Lyqyd #3
Posted 19 July 2015 - 09:27 PM
Wired modems can also only be placed on full-cube blocks, whereas a computer placed adjacent to the peripheral can use it regardless of whether or not it is a full-cube block.
HPWebcamAble #4
Posted 19 July 2015 - 09:53 PM
You can see what methods it has with a computer.

Place a computer next to the turbine, and run this command:

pastebin get sKLqTGrM gm
That downloads this program:
http://pastebin.com/sKLqTGrM

Then go ahead and run this:

gm <side of turbine>
It will give you all the methods, making pages if necessary.
(Valid sides: top, bottom, right, left, front, back)
Edited on 19 July 2015 - 07:54 PM