was looking at this issue - .. i'm probably missing something
Cloudy, i'll be on IRC tomorrow.
Posted 24 June 2012 - 06:03 PM
Posted 25 June 2012 - 12:39 PM
Posted 25 June 2012 - 08:24 PM
Posted 25 June 2012 - 10:10 PM
function stats()
REM get the details from the sensors ?? guessing at mo
mfsua == sensor.1
mfsub == sensor.2
mfsuc == sensor.3
mfsud == sensor.4
oilcap == sensor.5
oilact == sensor.6
fuelcap == sensor.7
fuelact == sensor.8
REM im guesing you need to set one sensor to detact the capacity of a tank stack and one to detect contents ?
oil == (oilact/oilcap)*100
fuel == (fuelact/fuelcap)*100
term.redirect(top)
term.clear
print("Power: Oil "),oil,("% ")
print("1) "),mfsua,(" eus fuel "),fuel,("%")
print("2) "),mfsub,(" eus ")
print("3) "),mfsuc,(" eus ")
print("4) "),mfsud,(" eus")
wait(5)
rem wait 5 secs to not overload it
stats()
rem the only way out is to shut down the computer..im ok with that
Posted 25 June 2012 - 10:10 PM
Posted 26 June 2012 - 07:29 PM
mrgreaper, on 26 June 2012 - 05:52 PM, said:
Posted 29 June 2012 - 06:00 PM
Posted 30 June 2012 - 05:30 AM
Posted 30 June 2012 - 07:14 PM
[FINER] Pre-initializing .../ccSensors-server-MC125-B017pr2 [FINE] Reading existing configuration file for mod_ccSensors : mod_ccSensors.cfg [FINE] Configuration for mod_ccSensors written to mod_ccSensors.cfg [SEVERE] Unexpected exception java.lang.StackOverflowError at java.lang.Integer.valueOf(Unknown Source) at forge.DimensionManager.getWorld(DimensionManager.java:53) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:741) at net.minecraft.server.MinecraftServer.initDimension(MinecraftServer.java:689) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:743) at net.minecraft.server.MinecraftServer.initDimension(MinecraftServer.java:689) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:743) at net.minecraft.server.MinecraftServer.initDimension(MinecraftServer.java:689) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:743) at net.minecraft.server.MinecraftServer.initDimension(MinecraftServer.java:689) ... ...
Posted 01 July 2012 - 05:32 PM
os.loadAPI("/rom/apis/sensors")
os.loadAPI("/rom/apis/sensorsUI")
local sensor="Reactortest"
local side = sensors.getController()
local sSide = "left"
local targets = sensors.getAvailableTargetsforProbe(side,sensor,"Reactor")
local e = sensorsData.getProbe("ic2","reactor")
local reactor = sensors.getSensorReadingAsDict(side,sensor,targets[1],"Reactor")
local Out=reactor.output
local Heat=reactor.heat
print ("Current Heat: " ..Heat)
print ("Output: " ..Out)
sleep (0.1)
os.loadAPI("/rom/apis/sensors")
os.loadAPI("/rom/apis/sensorsUI")
local sensor="Reactortest"
local side = sensors.getController()
local sSide = "left"
local targets = sensors.getAvailableTargetsforProbe(side,sensor,"Reactor")
local e = sensorsData.getProbe("ic2","reactor")
local reactor = sensors.getSensorReadingAsDict(side,sensor,targets[1],"Reactor")
local Out=reactor[e.energy.val]
local Heat=reactor[e.heat.val]
print ("Current Heat: " ..Heat)
print ("Output: " ..Out)
sleep (0.1)
Posted 02 July 2012 - 02:01 PM
local Out=reactor['output'] local Heat=reactor['heat']You don't need to get a Probe if you know what you're looking for!
Posted 03 July 2012 - 01:26 PM
Posted 05 July 2012 - 12:29 PM
Posted 05 July 2012 - 01:12 PM
Posted 05 July 2012 - 02:27 PM
Deathknight0897, on 05 July 2012 - 12:29 PM, said:
JadarMC, on 05 July 2012 - 01:12 PM, said:
Posted 05 July 2012 - 04:40 PM
Fokka, on 05 July 2012 - 02:27 PM, said:
Deathknight0897, on 05 July 2012 - 12:29 PM, said:
JadarMC, on 05 July 2012 - 01:12 PM, said:
Posted 05 July 2012 - 10:45 PM
Deathknight0897, on 05 July 2012 - 04:40 PM, said:
Fokka, on 05 July 2012 - 02:27 PM, said:
Deathknight0897, on 05 July 2012 - 12:29 PM, said:
JadarMC, on 05 July 2012 - 01:12 PM, said:
Fokka, on 05 July 2012 - 02:27 PM, said:
Deathknight0897, on 05 July 2012 - 12:29 PM, said:
JadarMC, on 05 July 2012 - 01:12 PM, said:
local data = sensors.getData()
Posted 06 July 2012 - 06:10 PM
JadarMC, on 05 July 2012 - 10:45 PM, said:
Deathknight0897, on 05 July 2012 - 04:40 PM, said:
Fokka, on 05 July 2012 - 02:27 PM, said:
Deathknight0897, on 05 July 2012 - 12:29 PM, said:
JadarMC, on 05 July 2012 - 01:12 PM, said:
Fokka, on 05 July 2012 - 02:27 PM, said:
Deathknight0897, on 05 July 2012 - 12:29 PM, said:
JadarMC, on 05 July 2012 - 01:12 PM, said:
0 members, 1 guests, 0 anonymous users