Posted 24 May 2014 - 02:47 PM
So I want to write a simple program to control reactors and turbines with ComputerCraft Computers via wired modem and also some other questions if it possible. But first I run into a problem with the output in the screen:
I wrote 2-3 lines of code so I can start getting the hang of the API of these mods but I run in a bit of problem. This is what I wrote :
local reactor = peripheral.wrap ("back")
print ("The reactor fuel level is ", reactor.getFuelAmount)
and this is what I got :
The reactor fuel level is function:43aa55c5
which is totaly wrong according to Big Reactor's Computer Port API, it supposed to show some amount in mB. I run the latest update of Tekkit mod pack + Mekanism which I added myself.
As for the rest of the questions are,
1) How I use the wired modem in order to control the Reactors and Turbines without the need to attach computers directly on them ?
2) If I want to use a monitor in order to get some info regarding some values and the program runs on loop, how I can print various informations without the program printing every line while looping ?
3) Can I write a library of functions in order, for examble get various info, without writing pages of functions in the main program like I can do in C++ ?
4) Do I ask dumb questions ?
I wrote 2-3 lines of code so I can start getting the hang of the API of these mods but I run in a bit of problem. This is what I wrote :
local reactor = peripheral.wrap ("back")
print ("The reactor fuel level is ", reactor.getFuelAmount)
and this is what I got :
The reactor fuel level is function:43aa55c5
which is totaly wrong according to Big Reactor's Computer Port API, it supposed to show some amount in mB. I run the latest update of Tekkit mod pack + Mekanism which I added myself.
As for the rest of the questions are,
1) How I use the wired modem in order to control the Reactors and Turbines without the need to attach computers directly on them ?
2) If I want to use a monitor in order to get some info regarding some values and the program runs on loop, how I can print various informations without the program printing every line while looping ?
3) Can I write a library of functions in order, for examble get various info, without writing pages of functions in the main program like I can do in C++ ?
4) Do I ask dumb questions ?