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

Reactor+computer

Started by Radekva, 05 January 2013 - 06:48 AM
Radekva #1
Posted 05 January 2013 - 07:48 AM
Hello guys! I have got problem with my computer in tekkit.
i can't connect Bundled cable with pc, can someone edit this program for Bundled cable please I do it already third day and i can't do it.


reactors = rs.getOutput("bottom")
if reactors == false then
reactors = "Reactor zapnut"
end
if reactors == true then
reactors = "Reactors vypnut"
end
shell.run("clear")
local function centerText (text)
local x,y = term.getSize()
local x2,y2 = term.getCursorPos()
term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
print(text)
end
centerText("------------My Software-----------")
term.setCursorPos(1,3)
centerText("------Reactor Control Panel-------")
term.setCursorPos(1,4)
centerText("--------------V1.1----------------")
term.setCursorPos(1,6)
print("")
centerText("on : off")
print("")
centerText("--Online statistiky--")
print("")
centerText("Power",reactors)
centerText(reactors)
write("Prikaz zde: ")
input = read()
if input == "on" then
rs.setOutput("bottom", false)
print("Reactor zapnut! Dbejte zvysene opatrnosti!")
end
if input == "off" then
rs.setOutput("bottom",true)
print("Reactor vypnut! Do uplneho vypnuti zbyva 5min")
end
write("Copyright")
sleep(2)
shell.run("clear")
shell.run("startup")

I tried: rs.BundledOutput("bottom", colors.blue, false) and it did not work

Thank you very much!
n1ghtk1ng #2
Posted 05 January 2013 - 07:57 AM
Hello guys! I have got problem with my computer in tekkit.
i can't connect Bundled cable with pc, can someone edit this program for Bundled cable please I do it already third day and i can't do it.


reactors = rs.getOutput("bottom")
if reactors == false then
reactors = "Reactor zapnut"
end
if reactors == true then
reactors = "Reactors vypnut"
end
shell.run("clear")
local function centerText (text)
local x,y = term.getSize()
local x2,y2 = term.getCursorPos()
term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
print(text)
end
centerText("------------My Software-----------")
term.setCursorPos(1,3)
centerText("------Reactor Control Panel-------")
term.setCursorPos(1,4)
centerText("--------------V1.1----------------")
term.setCursorPos(1,6)
print("")
centerText("on : off")
print("")
centerText("--Online statistiky--")
print("")
centerText("Power",reactors)
centerText(reactors)
write("Prikaz zde: ")
input = read()
if input == "on" then
rs.setOutput("bottom", false)
print("Reactor zapnut! Dbejte zvysene opatrnosti!")
end
if input == "off" then
rs.setOutput("bottom",true)
print("Reactor vypnut! Do uplneho vypnuti zbyva 5min")
end
write("Copyright")
sleep(2)
shell.run("clear")
shell.run("startup")

I tried: rs.BundledOutput("bottom", colors.blue, false) and it did not work

Thank you very much!

I think I know what you're talking about, I'm guessing you would want to do rs.setBundledOutput("bottom", colors.blue)
Go on the ComputerCraft wiki, it's a big help! http://www.computercraft.info/wiki/Redstone_(API)

Also, this should be in the "Ask A Pro" section of the forums.
Radekva #3
Posted 05 January 2013 - 08:11 AM
thank you but unfortunately it does not work: (
doodle9008 #4
Posted 08 January 2013 - 11:33 AM
if you could expain a little on what exactly this programs is suppose to do i can set it where it would work. or you can try rs.setBundledOutput("bottom", 2048)
D3add3d #5
Posted 09 January 2013 - 04:27 AM
SpoilerHello guys! I have got problem with my computer in tekkit.
i can't connect Bundled cable with pc, can someone edit this program for Bundled cable please I do it already third day and i can't do it.


reactors = rs.getOutput("bottom")
if reactors == false then
reactors = "Reactor zapnut"
end
if reactors == true then
reactors = "Reactors vypnut"
end
shell.run("clear")
local function centerText (text)
local x,y = term.getSize()
local x2,y2 = term.getCursorPos()
term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
print(text)
end
centerText("------------My Software-----------")
term.setCursorPos(1,3)
centerText("------Reactor Control Panel-------")
term.setCursorPos(1,4)
centerText("--------------V1.1----------------")
term.setCursorPos(1,6)
print("")
centerText("on : off")
print("")
centerText("--Online statistiky--")
print("")
centerText("Power",reactors)
centerText(reactors)
write("Prikaz zde: ")
input = read()
if input == "on" then
rs.setOutput("bottom", false)
print("Reactor zapnut! Dbejte zvysene opatrnosti!")
end
if input == "off" then
rs.setOutput("bottom",true)
print("Reactor vypnut! Do uplneho vypnuti zbyva 5min")
end
write("Copyright")
sleep(2)
shell.run("clear")
shell.run("startup")

I tried: rs.BundledOutput("bottom", colors.blue, false) and it did not work

Thank you very much!

hoj :)/> false na bundled cable nefunguje
Upraveny kód:
Spoiler

reactors = redstone.getBundledOutput("bottom") -- alebo redstone.getBundledOutput("bottom", color.FARBA)
if reactors == false then
reactors = "Reactor zapnut"
end
if reactors == true then
reactors = "Reactors vypnut"
end
shell.run("clear")
local function centerText (text)
local x,y = term.getSize()
local x2,y2 = term.getCursorPos()
term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
print(text)
end
centerText("------------My Software-----------")
term.setCursorPos(1,3)
centerText("------Reactor Control Panel-------")
term.setCursorPos(1,4)
centerText("--------------V1.1----------------")
term.setCursorPos(1,6)
print("")
centerText("on : off")
print("")
centerText("--Online statistiky--")
print("")
centerText("Power",reactors)
centerText(reactors)
write("Prikaz zde: ")
input = read()
if input == "on" then
rs.setBundledOutput("bottom", 0) -- false pre vsetky farby... jednotlivo sa bohuzial nedaju
print("Reactor zapnut! Dbejte zvysene opatrnosti!")
end
if input == "off" then
rs.setBundledOutput("bottom", color.FARBA)
print("Reactor vypnut! Do uplneho vypnuti zbyva 5min")
end
write("Copyright")
sleep(2)
shell.run("clear")
shell.run("startup")
Dúfam že som pomohol :)/>
NLBlackEagle #6
Posted 15 January 2013 - 03:00 PM
I had the simmulair problem, Ill just post my code here which works, Hope it will help you out finding the problem :)/>

First of all, colors didnt worked for me either put in white "1" Orange "2" and so on, guess you know what i mean by this. Anyway here the code: