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

CCSensor - EU Calculator

Started by DerD4nnY, 26 June 2015 - 09:49 PM
DerD4nnY #1
Posted 26 June 2015 - 11:49 PM
Hi there,

I want my Computer to be able to tell me how much time it takes to create 1 UU.

Then it would be like:

Reads Input Energy (like 25000 EU/tick) -> Reads Ticks -> Input x Ticks -> 1000000/EU per Second -> 1 UU each XX Seconds

AND 1 UU each XX Seconds (Scrap)


It is incredible hard for me to learn LUA so I would be really thankfull if you guys can help me out
KingofGamesYami #2
Posted 27 June 2015 - 12:43 AM
Do you have openperipherals? If so, does it support the version of IC2 you have? For that matter, what version of computercraft do you have?
DerD4nnY #3
Posted 27 June 2015 - 09:40 AM
I play Tekkit Lite with some friends and yes I have OpenPeri …. I aksi have the IC2 Sensor Card and the Sensor :)/>

Well… I dont have Adjustable Emitter so in the nights there wont be UU… so I guess it 39 minutes / hour where EU is….
Edited on 27 June 2015 - 10:04 AM
DerD4nnY #4
Posted 29 June 2015 - 02:00 PM
Can somebody help me ?
jerimo #5
Posted 29 June 2015 - 04:41 PM
Your logic seems sound and you seem to know what you need to do, so all you need now is to attempt the code.

Do exactly as you described,once you have code up we can help you improve it, and answer questions about lua.

I'd try to help more but not being an ic person i m not even sure what a uu is not what scrap has to do with it, but if you describe the math to calculating the uu we'll all be glad to help

Good luck
DerD4nnY #6
Posted 29 June 2015 - 10:17 PM
I dont know ANYTHING about programming with lua… thats why I n eed some help
HPWebcamAble #7
Posted 30 June 2015 - 02:00 AM
I dont know ANYTHING about programming with lua… thats why I n eed some help

Take a look at some tutorials then…

http://www.lua.org/manual/5.1/manual.html

If you find that one dull, look up some on Youtube