Posted 04 February 2013 - 05:36 AM
Hi currently trying to do a item sorter and i am now stuck at a little ticker. I have read all the wikis, but i can not figure out why it won't print this simple text on a monitor.
Tried everything, but i can't get it to work. Hope you can help me. I took most of it out, but it still stops after the "first Row with Item Names "
Tried everything, but i can't get it to work. Hope you can help me. I took most of it out, but it still stops after the "first Row with Item Names "
function ticker()
m = peripheral.wrap("left")
m.clear()
m.setCursorBlink(false)
m.setTextScale(1)
local file = fs.open("views","r")
local data = file.readAll()
file.close()
view = textutils.unserialize(data)
-- Row with Item Name
m.setCursorPos(3,2)
m.write("Cobblestone")
m.setCursorPos(3,4)
m.write("Dirt")
-- Row with Item amount
m.setCursorPos(18,2)
m.write(view[1])
m.setCursorPos(18,4)
m.write(view[2])
-- 2nd Row with Item Name
m.setCursorPos(40,2)
m.write("Cobblestone")
m.setCursorPos(40,4)
m.write("Dirt")
-- 2nd Row with Item amount
m.setCursorPos(55,2)
m.write(view[1])
m.setCursorPos(55,4)
m.write(view[2])
end