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

Energy Consumption meter

Started by TrollMaster, 21 September 2017 - 05:03 PM
TrollMaster #1
Posted 21 September 2017 - 07:03 PM
Hello
I play on a roleplay server, I own the energy company and I have been getting into trouble when it comes to billing my costumers for the energy they use. So I thought about writing a program to log how much energy they have consumed during a determined time. Think on it as an energy meter, it would measure how much energy has passed through it and log that in the form of a number, it should also be able to run on a terminal in my power plant and input the consumption of each player on a monitor so I can correctly bill them. There is only one thing impeaching me of writing this thing, I suck at programming I don't know LUA even though I have been watching tons of tutorials I can't seem to get it. I would like to know, is there another program that does this or if it is even possible to do this. If it is possible can I get the name of the function that does it.
Thank You.
pokl1234567890 #2
Posted 12 October 2017 - 10:30 AM
Well, if it uses IC2 (mod) then there are 2 or 3 possible ways i can think of.
1. ( requires ccSensors ) - Check for EUs in mfsu + if EUs flow ( EU reader cable or something like that )
2. Only if flows energy ( but u cant say how much )
3. Tax them by time like gave them f.e. 2kk eu ( energy units ) for 1h and it's up to them if they use it or not.