Jump to content




energy cell help


  • You cannot reply to this topic
1 reply to this topic

#1 aredhone

  • New Members
  • 1 posts

Posted 10 August 2014 - 03:15 PM

hya my name is aredhone

and i need some help im working on a program for like a week now
i also got the mod a week ago
and i have some problems
i got the check max and check current stuff in it but for the love off...
i cant get the if emtey in it
also the on off buttons i tryde made it so that i got error atemting a nil value
so against my better zelf i am gona ask some help

could somone check if they can get a emtey state and a start on the ON OFF buttons
the tables are anoying and i dont get them

thanks allot in advanced




--Monitor------------------------------------------------------------------//\\
m0 = peripheral.wrap("monitor_0")----------------------------------\\//
m1 = peripheral.wrap("monitor_1")----------------------------------//\\
m2 = peripheral.wrap("monitor_2")----------------------------------\\//
m3 = peripheral.wrap("monitor_3")----------------------------------//\\
m4 = peripheral.wrap("monitor_4")----------------------------------\\//
m5 = peripheral.wrap("monitor_5")----------------------------------//\\
-----------------------------------------------------------------------------\\//
rednet.open("bottom")-------------------------------------------------//\\
--Energy_Storage------------------------------------------------------\\//
cE0 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_0")----//\\
cM0 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_0")----\\//
cE1 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_1")----//\\
cM1 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_1")----\\//
cE2 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_2")----//\\
cM2 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_2")----\\//
cE3 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_3")----//\\
cM3 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_3")----\\//
cE4 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_4")----//\\
cM4 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_4")----\\//
cE5 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_5")----//\\
cM5 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_5")----\\//
----------------------------------------------------------------------------------------//\\
m0.clear()---------------------------------------------------------\\//
m1.clear()---------------------------------------------------------//\\
m2.clear()---------------------------------------------------------\\//
m3.clear()---------------------------------------------------------//\\
m4.clear()---------------------------------------------------------\\//
m5.clear()---------------------------------------------------------//\\
-------------------------------------------------------------------\\//
while true do------------------------------------------------------//\\
--Cell_0-----------------------------------------------------------\\//
enE0 = cE0.getEnergyStored("south")-----------------------------//\\
m0.setTextColor(colors.green)-----------------------------------\\//
m0.setCursorPos(3,2)--------------------------------------------//\\
m0.write(enE0.." ")-----------------------------\\//
enM0 = cM0.getMaxEnergyStored("south")--------------------------//\\
m0.setTextColor(colors.red)-------------------------------------\\//
m0.setCursorPos(3,4)--------------------------------------------//\\
m0.write(enM0.." ")--------------------------\\//
if enE0 == enM0 then-----------------------------------------------//\\
m0.setTextColor(colors.green)-----------------------------------\\//
m0.setCursorPos(16,3)-------------------------------------------//\\
m0.write(" Full ")---------------------------------------------\\//
elseif enE0 < enM0 then--------------------------------------------//\\
m0.setTextColor(colors.yellow)----------------------------------\\//
m0.setCursorPos(16,3)-------------------------------------------//\\
m0.write("Filling")---------------------------------------------\\//
-- else m0.setTextColor(colors.red)--------------------------------//\\
-- m0.setCursorPos(16,3)-----------------------------------------\\//
-- m0.write(" DANGER ") ---------------------------------------//\\
-- rednet.broadcast(command)----------------------------------\\//
end----------------------------------------------------------------//\\
--Cell_1-----------------------------------------------------------\\//
enE1 = cE1.getEnergyStored("south")-----------------------------//\\
m1.setTextColor(colors.green)-----------------------------------\\//
m1.setCursorPos(3,2)--------------------------------------------//\\
m1.write(enE1.." ")-----------------------------\\//
enM1 = cM1.getMaxEnergyStored("south")--------------------------//\\
m1.setTextColor(colors.red)-------------------------------------\\//
m1.setCursorPos(3,4)--------------------------------------------//\\
m1.write(enM1.." ")--------------------------\\//
if enE1 == enM1 then-----------------------------------------------//\\
m1.setTextColor(colors.green)-----------------------------------\\//
m1.setCursorPos(16,3)-------------------------------------------//\\
m1.write(" Full ")---------------------------------------------\\//
elseif enE1 < enM1 then--------------------------------------------//\\
m1.setTextColor(colors.yellow)----------------------------------\\//
m1.setCursorPos(16,3)-------------------------------------------//\\
m1.write("Filling")---------------------------------------------\\//
end ---------------------------------------------------------------//\\
-------------------------------------------------------------------\\//
-------------------------------------------------------------------//\\
--Cell_2-----------------------------------------------------------\\//
enE2 = cE2.getEnergyStored("south")-----------------------------//\\
m2.setTextColor(colors.green)-----------------------------------\\//
m2.setCursorPos(3,2)--------------------------------------------//\\
m2.write(enE2.." ")----------------------------\\//
enM2 = cM2.getMaxEnergyStored("south")--------------------------//\\
m2.setTextColor(colors.red)-------------------------------------\\//
m2.setCursorPos(3,4)--------------------------------------------//\\
m2.write(enM2.." ")--------------------------\\//
if enE2 == enM2 then-----------------------------------------------//\\
m2.setTextColor(colors.green)-----------------------------------\\//
m2.setCursorPos(16,3)-------------------------------------------//\\
m.write(" Full ")----------------------------------------------\\//
elseif enE2 < enM2 then--------------------------------------------//\\
m2.setTextColor(colors.yellow)----------------------------------\\//
m2.setCursorPos(16,3)-------------------------------------------//\\
m2.write("Filling")---------------------------------------------\\//
end----------------------------------------------------------------//\\
-------------------------------------------------------------------\\//
--Cell_3-----------------------------------------------------------//\\
enE3 = cE3.getEnergyStored("south") ----------------------------\\//
m3.setTextColor(colors.green)-----------------------------------//\\
m3.setCursorPos(3,2)--------------------------------------------\\//
m3.write(enE3.." ")-----------------------------//\\
enM3 = cM3.getMaxEnergyStored("south")--------------------------\\//
m3.setTextColor(colors.red)-------------------------------------//\\
m3.setCursorPos(3,4)--------------------------------------------\\//
m3.write(enM3.." ")--------------------------//\\
if enE3 == enM3 then-----------------------------------------------\\//
m3.setTextColor(colors.green)-----------------------------------//\\
m3.setCursorPos(16,3)-------------------------------------------\\//
m3.write(" Full ")---------------------------------------------//\\
elseif enE3 < enM3 then--------------------------------------------\\//
m3.setTextColor(colors.yellow)----------------------------------//\\
m3.setCursorPos(16,3)-------------------------------------------\\//
m3.write("Filling")---------------------------------------------//\\
end----------------------------------------------------------------\\//
-------------------------------------------------------------------//\\
--Cell_4-----------------------------------------------------------\\//
enE4 = cE4.getEnergyStored("south")-----------------------------//\\
m4.setTextColor(colors.green)-----------------------------------\\//
m4.setCursorPos(3,2)--------------------------------------------//\\
m4.write(enE4.." ")-----------------------------\\//
enM4 = cM4.getMaxEnergyStored("south")--------------------------//\\
m4.setTextColor(colors.red)-------------------------------------\\//
m4.setCursorPos(3,4)--------------------------------------------//\\
m4.write(enM4.." ")--------------------------\\//
if enE4 == enM4 then-----------------------------------------------//\\
m4.setTextColor(colors.green)-----------------------------------\\//
m4.setCursorPos(16,3)-------------------------------------------//\\
m4.write(" Full ")---------------------------------------------\\//
elseif enE4 < enM4 then--------------------------------------------//\\
m4.setTextColor(colors.yellow)----------------------------------\\//
m4.setCursorPos(16,3)-------------------------------------------//\\
m4.write("Filling")---------------------------------------------\\//
end----------------------------------------------------------------//\\
-------------------------------------------------------------------\\//
--Cell_5-----------------------------------------------------------//\\
enE5 = cE5.getEnergyStored("south")-----------------------------\\//
m5.setTextColor(colors.green)-----------------------------------//\\
m5.setCursorPos(3,2)--------------------------------------------\\//
m5.write(enE5.." ")-----------------------------//\\
enM5 = cM5.getMaxEnergyStored("south")--------------------------\\//
m5.setTextColor(colors.red)-------------------------------------//\\
m5.setCursorPos(3,4)--------------------------------------------\\//
m5.write(enM5.." ")--------------------------//\\
if enE5 == enM5 then-----------------------------------------------\\//
m5.setTextColor(colors.green)-----------------------------------//\\
m5.setCursorPos(16,3)-------------------------------------------\\//
m5.write(" Full ")---------------------------------------------//\\
elseif enE5 < enM5 then--------------------------------------------\\//
m5.setTextColor(colors.yellow)----------------------------------//\\
m5.setCursorPos(16,3)-------------------------------------------\\//
m5.write("Filling")---------------------------------------------//\\
sleep(0.1)------------------------------------------------------\\//
end----------------------------------------------------------------//\\
end----------------------------------------------------------------\\//

#2 flaghacker

  • Members
  • 655 posts

Posted 10 August 2014 - 08:25 PM

Could you put your code in code tags ([ code] code here [ /code] without spaces) or post it on pastebin?

What is the "-----//\\-----" stuff after each line? I'm on my phone right now and this code is just unreadable.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users