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

MassFab Sensor

Started by DerD4nnY, 24 June 2015 - 03:40 PM
DerD4nnY #1
Posted 24 June 2015 - 05:40 PM
Hi guys,

I need help I am complete new. All I got is a Computer, that Sensor Thing and the IC2 Card for it.

I want a programm that tells me how many EU went to the MassFab and how much UU would be produced with and without Scrap.

Cna somebody help me how to setup this thing and so on ?
HPWebcamAble #2
Posted 25 June 2015 - 07:26 AM
Which mod is the 'Sensor Thing' from?
Dustmuz #3
Posted 25 June 2015 - 11:39 AM
most likely openperipherals..
For how much is used..
thats pretty simple

Var 1 = stored amount 1
sleep(1)
var 2 = stored amount 2
used = var 1 - var 2

that gives a rough idea how much is used pr second

For the rest.. check the IC2 forums, the info can be found there :)/>
DerD4nnY #4
Posted 25 June 2015 - 11:51 AM
Okay thanks a lot. I dont know really much about LUA.

Yes its OpenPeripherals /CCSensor

I put in the IC2 Card and I can check my sensor and by pressing G and N I can show the Information the Sensor Took

I prefer it like this:

[ EU USED ] = XXXXXXXXX
[ Time of Usage ] XX:XX
[ UU Produced - Power Only ] XXXXX
[ UU Produced - Scrap ] XXXXX

thats how it would be best shown on my monitor. Maybe less but the UU Produced is the key here :/
DerD4nnY #5
Posted 25 June 2015 - 12:54 PM
I really dont know about LUA.

Basic Thing would be this layout on my monitor:

[ UU added after player offline ]
[ Time offline ]

So the Computer checks If I am online, If I am not online the computer counts how much UU was added to the ME-System ( or DSU ) since the player left the server. The Counting stops as I go online…

somethign possible ?

somehow it worked first by using AE Sensor Card but now it only shows me other things and not the UU :/ ….