Posted 14 June 2016 - 05:13 PM
Hey guys,
maybe you already read my topic about my BuildCraft Engine Control Program.
Now I expand it and write it more "easier".
I wrote it in Singleplayer with Notepad++ (its easier to get the program file from appdata then from nitrado ^^) and yeah, everything works fine.
I uploaded it to nitrado and… it doesn't work. Okay it works, but the "Touchscreen" is displaced.
Modpack: Tekkit Lite
CC Version: 1.75
First of all my program: (I know, there is everywhere "lime" as cable colour ;-) )
And the Setup:
#####
I think, the monitor is not at Text Scale 0.5, because at "Engine 1" everything works fine.
Again, the Program and everything works fine in SINGLEplayer.
Greetings
#edit Version and Modpack :)/>
maybe you already read my topic about my BuildCraft Engine Control Program.
Now I expand it and write it more "easier".
I wrote it in Singleplayer with Notepad++ (its easier to get the program file from appdata then from nitrado ^^) and yeah, everything works fine.
I uploaded it to nitrado and… it doesn't work. Okay it works, but the "Touchscreen" is displaced.
Modpack: Tekkit Lite
CC Version: 1.75
First of all my program: (I know, there is everywhere "lime" as cable colour ;-) )
Spoiler
local white = 1
local orange = 2
local magenta = 4
local lightblue = 8
local yellow = 16
local lime = 32
local pink = 64
local gray = 128
local lightgray = 256
local cyan = 512
local purple = 1024
local blue = 2048
local brown = 4096
local green = 8192
local red = 16384
local black = 32768
local function addcol(col, side)
rs.setBundledOutput(side, colours.combine(rs.getBundledOutput(side),col))
end
local function remcol(col, side)
rs.setBundledOutput(side, colours.subtract(rs.getBundledOutput(side),col))
end
local function pushon (x,y,col,side)
addcol(col, side)
term.setTextColour(lime)
term.setCursorPos(x,y)
print("O [ON]")
term.setTextColour(red)
term.setCursorPos(x-10,y)
print("O [OFF]")
end
local function pushoff (x,y,col,side)
remcol(col, side)
term.setTextColour(lime)
term.setCursorPos(x,y)
print("O [OFF]")
term.setTextColour(red)
term.setCursorPos(x+10,y)
print("O [ON]")
end
local eng = 6
local sSide = "bottom"
local monitor = peripheral.wrap("top")
term.clear()
monitor.setTextScale(0.5)
term.setTextColour(white)
local x = 1
local y = 1
for i = 1, eng, 1 do
term.setCursorPos(x,y)
write("Engine "..i..":")
y = y + 1
end
term.setCursorPos(41,1)
write("Water:")
term.setCursorPos(41,2)
write("Fuel:")
term.setCursorPos(41,3)
write("Refinery:")
term.setTextColour(lime)
x = 15
y = 1
for i = 1, eng, 1 do
term.setCursorPos(x,y)
print("O [OFF]")
y = y + 1
end
x = 60
y = 1
for i = 1, 3, 1 do
term.setCursorPos(x,y)
print("O [OFF]")
y = y + 1
end
term.setTextColour(red)
x = 25
y = 1
for i = 1, eng, 1 do
term.setCursorPos(x,y)
print("O [ON]")
y = y + 1
end
x = 70
y = 1
for i = 1, 3, 1 do
term.setCursorPos(x,y)
print("O [ON]")
y = y + 1
end
while true do
event,side,x,y = os.pullEvent()
if event == "monitor_touch" then
if x == 15 and y == 1 then
pushoff(x,y,lime,sSide)
end
if x == 25 and y == 1 then
pushon(x,y,lime,sSide)
end
if x == 15 and y == 2 then
pushoff(x,y,lime,sSide)
end
if x == 25 and y == 2 then
pushon(x,y,lime,sSide)
end
if x == 15 and y == 3 then
pushoff(x,y,lime,sSide)
end
if x == 25 and y == 3 then
pushon(x,y,lime,sSide)
end
if x == 15 and y == 4 then
pushoff(x,y,lime,sSide)
end
if x == 25 and y == 4 then
pushon(x,y,lime,sSide)
end
if x == 15 and y == 5 then
pushoff(x,y,lime,sSide)
end
if x == 25 and y == 5 then
pushon(x,y,lime,sSide)
end
if x == 15 and y == 6 then
pushoff(x,y,lime,sSide)
end
if x == 25 and y == 6 then
pushon(x,y,lime,sSide)
end
if x == 60 and y == 1 then
pushoff(x,y,lime,sSide)
end
if x == 70 and y == 1 then
pushon(x,y,lime,sSide)
end
if x == 60 and y == 2 then
pushoff(x,y,lime,sSide)
end
if x == 70 and y == 2 then
pushon(x,y,lime,sSide)
end
if x == 60 and y == 3 then
pushoff(x,y,lime,sSide)
end
if x == 70 and y == 3 then
pushon(x,y,lime,sSide)
end
end
end
And the Setup:
Spoiler
#####
I think, the monitor is not at Text Scale 0.5, because at "Engine 1" everything works fine.
Again, the Program and everything works fine in SINGLEplayer.
Greetings
#edit Version and Modpack :)/>
Edited on 14 June 2016 - 03:42 PM