Posted 01 October 2013 - 08:02 PM
Title: Output log file to monitor
Enviroment:
Minecraft 1.5.2
FTB Unleashed
I've bee looking for the better part of 2 hours and I'm trying to figure out how to output the contents of a file in the root of the turtle created by a program on the same turtle to a monitor.
I've been trying to use the fs API, Term API, and Peripheral API, to no avail…
I know I'm missing something, maybe that it just can't be done, but here's what I got so far:
The reason I want to do this is because I am running a Bee breeding program (not built by me) (http://www.computerc...olf20-for-idea/), and I want to be able to see the status of the breeding from a monitor (the program already output's a log file). I have had points where, the log is so long, it scrolls past much to quickly for anyone to see it. A monitor with all the information from the current run would make it so much simpler.
I haven't done lua in a while so I'm a little rusty, I know I'm missing something, I just don't know what.
Enviroment:
Minecraft 1.5.2
FTB Unleashed
I've bee looking for the better part of 2 hours and I'm trying to figure out how to output the contents of a file in the root of the turtle created by a program on the same turtle to a monitor.
I've been trying to use the fs API, Term API, and Peripheral API, to no avail…
I know I'm missing something, maybe that it just can't be done, but here's what I got so far:
mon = peripheral.wrap("top")
fs.open("test.log, "r")
mon.clear()
mon.setCursorPos(1,1)
mon.write("=====TESTING=====")
mon.write(fs.read(test.log))
The reason I want to do this is because I am running a Bee breeding program (not built by me) (http://www.computerc...olf20-for-idea/), and I want to be able to see the status of the breeding from a monitor (the program already output's a log file). I have had points where, the log is so long, it scrolls past much to quickly for anyone to see it. A monitor with all the information from the current run would make it so much simpler.
I haven't done lua in a while so I'm a little rusty, I know I'm missing something, I just don't know what.