Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
Im tired of investing energy into relationships. 
I'm tired of being the one who makes sacrifices so others can be happy. 
More than anything, I'm tired of being left alone to figure life out. 

You were some of the best damn help I ever had 
And I will definitely miss the shit outta you. 
6089 6791 500
7191 62da 500
6935 341e 500
9650 7136 500
While cleaning going through old paperwork... 
8065 fb83

Progress bar - 4react1cap


  local reactor0 = peripheral.wrap("BigReactors-Reactor_0")
  local reactor5 = peripheral.wrap("BigReactors-Reactor_5")
  local reactor1 = peripheral.wrap("BigReactors-Reactor_1")
  local reactor2 = peripheral.wrap("BigReactors-Reactor_2")  
  local batcurrent = peripheral.wrap("tile_enderio_blockcapacitorbank_name_1")
  --local curpull = reactor0.getEnergyProducedLastTick()+reactor5.getEnergyProducedLastTick()+reactor1.getEnergyProducedLastTick()+reactor2.getEnergyProducedLastTick()
  local mon = peripheral.wrap("monitor_3")

term.clear()
term.setCursorPos(1,1)
--term.write(math.floor(reactor0.getEnergyProducedLastTick()+reactor5.getEnergyProducedLastTick()+reactor1.getEnergyProducedLastTick()+reactor2.getEnergyProducedLastTick()))


--confusing progress bar shit----------------------------------

monX, monY = mon.getSize()

function clear()
  mon.setBackgroundColor(colors.black)
  mon.clear()
  mon.setCursorPos(1,1)
end
 
function drawText(x, y, text, color_txt, color_bg)
  mon.setBackgroundColor(color_bg)
  mon.setTextColor(color_txt)
  mon.setCursorPos(x,y)
  mon.write(text)
end
 
function drawLine(x, y, length, size, color_bar)
  for yPos = y, y+size-1 do
    mon.setBackgroundColor(color_bar)
    mon.setCursorPos(x, yPos)
    mon.write(string.rep(" ", length))
  end
end
 
function drawProg(x, y, name, length, size, minVal, maxVal, color_bar, color_bg)
  drawLine(x, y, length, size, color_bg)
  local barSize = math.floor((minVal/maxVal)*length)
  drawLine(x, y, barSize, size, color_bar)
 local text = name.." "..math.floor((minVal/maxVal)*100).."%"
  if barSize > length/2+#text/2 then
    drawText(x+length/2-#text/2, y+size/2, text, colors.black, color_bar)
  elseif barSize > #text then
    drawText((x+barSize)-#text, y+size/2, text, colors.black, color_bar)
  else
    drawText(x+length/2-#text/2, y+size/2, text, colors.black, color_bg)
  end
end


--progress bar-----------------------------------------------
 
while true do

local curpull = reactor0.getEnergyProducedLastTick()+reactor5.getEnergyProducedLastTick()+reactor1.getEnergyProducedLastTick()+reactor2.getEnergyProducedLastTick()

--mon.clear()
term.clear()
term.setCursorPos(1,1)
mon.setBackgroundColor(colors.black)
 
--for i = batcurrent.getEnergyStored("unknown"), batcurrent.getMaxEnergyStored("unknown") do
  drawProg(3,1, "Capacitor", 46, 2, batcurrent.getEnergyStored("unknown"), batcurrent.getMaxEnergyStored("unknown"), colors.green, colors.gray)
    mon.setBackgroundColor(colors.black)
      term.setTextColor(colors.red)
        print((math.floor(curpull)))

--end

--for i = curpull, 7580 do
  drawProg(3,4, "Current Output", 46, 2, curpull, 7580, colors.red, colors.gray)
    mon.setBackgroundColor(colors.black)
      term.setTextColor(colors.blue)
        print((math.floor(curpull)))
          mon.setBackgroundColor(colors.black)

--end



sleep(.5)

end
--os.reboot()

Reactor Control based on Capacity Bank- rough

  local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
  local bat1 = peripheral.wrap("tile_enderio_blockcapacitorbank_name_0")
  local low = 5
  local high = 85


function clear()
  term.clear()
  term.setTextColor(colors.white)
  term.setCursorPos(1,1)
end

while true do

clear()
  term.setTextColor(colors.red)
  print("This is Computer No. 1")
    term.setTextColor(colors.white)
    term.write("Primary task is ")
    term.setTextColor(colors.blue)
    print("Monitoring Radditz")
      term.setTextColor(colors.white)
      term.write("Secondary task is ")
      term.setTextColor(colors.blue)
      print("Operations of Reactors ")
      term.setTextColor(colors.white)
      term.write("based on level of ")
      term.setTextColor(colors.red)
      print("Radditz")
      term.setTextColor(colors.white)
      
sleep(1)

 

  term.clear()

 
  --Begin Reactor 1




--end----------------------------------------------------

term.setTextColor(colors.gray)
term.setCursorPos(1,19)
term.write("Monitoring Reactor No. 1")

  term.setCursorPos(7,1)
  term.setTextColor(colors.blue)
  term.write("No. 1")

  term.setCursorPos(1,3)
  term.setTextColor(colors.white)
  term.write("Active: ")
  term.setTextColor(colors.blue)
  print(reactor1.getActive())

term.setCursorPos(1,4)
  term.setTextColor(colors.white)
  term.write("RF per Tick: ")
  term.setTextColor(colors.lime)
  term.write(math.floor(reactor1.getEnergyProducedLastTick()))

term.setCursorPos(1,5)
  term.setTextColor(colors.white)
  term.write("RF Buffer Stored: ")
  term.setTextColor(colors.red)
  term.write(math.floor(reactor1.getEnergyStored()))
  term.write("RF")

term.setCursorPos(1,6)
  term.setTextColor(colors.white)
  term.write("Casing Heat: ")
  term.setTextColor(colors.lime)
  term.write(math.floor(reactor1.getCasingTemperature()))  
  term.write(" Celsius")

term.setCursorPos(1,7)
  term.setTextColor(colors.white)
  term.write("Fuel Heat: ")
  term.setTextColor(colors.lime)
  term.write(math.floor(reactor1.getFuelTemperature()))
  term.write(" Celsius")

term.setCursorPos(1,8)
  term.setTextColor(colors.white)
  term.write("Current Fuel:  ")
  term.setTextColor(colors.lime)
  term.write(math.floor(reactor1.getFuelAmount()))

term.setCursorPos(1,9)
  term.setTextColor(colors.white)
  term.write("Current Waste:  ")
  term.setTextColor(colors.red)
  term.write(math.floor(reactor1.getWasteAmount()))

term.setCursorPos(1,10)
  term.setTextColor(colors.white)
  term.write("Fuel Limit:  ")
  term.setTextColor(colors.lime)
  term.write(math.floor(reactor1.getFuelAmountMax()))

term.setCursorPos(1,11)
  term.setTextColor(colors.white)
  term.write("Fuel Use per Tick: ")
  term.setTextColor(colors.yellow)
  term.write(math.floor(reactor1.getFuelConsumedLastTick()))

term.setCursorPos(1,12)
  term.setTextColor(colors.white)
  term.write("Fuel Rod Insertion:  ")
  term.setTextColor(colors.lime)
  term.write(math.floor(reactor1.getControlRodLevel(0)))
  term.write("%")

--test-----------------


term.setCursorPos(1,13)
  term.setTextColor(colors.white)
  term.write("Battery Bank:  ")
  term.setTextColor(colors.lightBlue)
  term.write(math.min(bat1.getEnergyStored("unknown"))/(bat1.getMaxEnergyStored("unknown"))*100)
  term.setTextColor(colors.white)
  term.write(" %")



--auto kill-------------------------------------------


  if (math.min(bat1.getEnergyStored("unknown"))/(bat1.getMaxEnergyStored("unknown"))*100) <= low 
    then
    reactor1.setAllControlRodLevels(0)
  end



 -- if reactor1.getEnergyStored() > 25000
  if (math.min(bat1.getEnergyStored("unknown"))/(bat1.getMaxEnergyStored("unknown"))*100) >= high 
    then  
    reactor1.setAllControlRodLevels(100)
  end

  sleep(1)




end
Is one in the hand still same as two in the bush if it's the same two I killed with a single stone?
1154 9493 500
Remember to smell the cheese often so you know whew it is getting old
7396 f10f 500
1563 edd2
9677 96df
9669 2bd4 500
8035 a438
'Time heals all wounds' but it also creates an opportunity for infection 
— I fucking said that
Reposted byBananaRamanerdanelSirenensang
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.

Don't be the product, buy the product!

Schweinderl