Jump to content




Get pressure from Pneumaticcraft


  • You cannot reply to this topic
2 replies to this topic

#1 it1p

  • Members
  • 4 posts

Posted 30 June 2014 - 03:35 PM

Hello,

I'm searching for a while now how to get the pressure from Pneumaticcraft.

On the website of the mod there is are some commands listed:

-getPressure(), getPressure(<side>) – Will get the pressure in the block. The side parameter is an optional parameter, and is currently only useful when getting the pressure from a Vacuum Pump, as it contains two different pressures.
-getDangerPressure() – This is a constant, it’ll be 5 bar for tier one machines, and 20 for tier two.
-getCriticalPressure() – This is a constant, it’ll be 7 bar for tier two machines, and 25 for tier two."


If I run the getPressure() thing i get the "attempt to call nil" error.

[SCREENSHOT]
Spoiler

Thanks in advance,
TIm

#2 GamerNebulae

  • Members
  • 216 posts
  • LocationNetherlands

Posted 30 June 2014 - 06:07 PM

We've had this problem on the forums before. The problem is that it's only possible with machines (as far as I am concerned) and to read the pressure from a pipe, you need to use the Pressure Gauge Tubes (as far as I know, I do not play with the mod) and convert the redstone signal to the pressure. In the tool-tip of the pipe it says the formula.

#3 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 01 July 2014 - 12:01 AM

I messed with CC 1.57 and the latest pneumatic craft myself, for some reason it hasn't worked at all ( for me ). Thus said, I'm pretty sure it's pneumatic craft's fault.
local comp = peripheral.wrap("left") --#duh, wrap a machine (specifically, I wrapped a compresser since the wiki directly says the method is available.
print( comp.getPressure() )  --#try this...
result: attempt to call nil O.o

Forum:

Quote

Every machine running on compressed air
You can get the following info from any PneumaticCraft block that runs on compressed air (including the Air Compressor, Pressure Tube):
-getPressure(), getPressure(<side>) – Will get the pressure in the block. The side parameter is an optional parameter, and is currently only useful when getting the pressure from a Vacuum Pump, as it contains two different pressures.
-getDangerPressure() – This is a constant, it’ll be 5 bar for tier one machines, and 20 for tier two.
-getCriticalPressure() – This is a constant, it’ll be 7 bar for tier two machines, and 25 for tier two.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users