ReactorCraft: can ComputerCraft read a hydrogen preheater's temperature?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Ieldra

Popular Member
Apr 25, 2014
1,810
733
129
I would like to have a temperature display in my fusion reactor's control room. If I can read the temperature from a preheater with a computer, I can send it out via wireless connection to another computer or convert it into an analogue redstone signal to be used by a column decrementer. Since I'm using export buses to put my fusion fuel into the preheater, I have a block left next to the actual preheater block in the multiblock structure where I can place a computer and access the preheater as a peripheral.

However, there is a problem: listMethods only gives me readTank and some other function, I think it was getAdvancedMethodsData, I don't know anything about. I don't know how to interpret this: does that mean a method does not exist that lets me export the preheater's temperature, or does it mean something may be hidden in getAdvancedMethodsData I can't access because I don't know how to use that method?

I've tried to download this program from pastebin in the hope for some more in-game documentation but my game told me it can't connect to pastebin, which I find odd since http is enabled in the config. Next step would be to copy that code into a dummy program's save file but I haven't gotten around to that yet, and anyway I would like to know why my download doesn't work, and perhaps someone here knows if I have any chance of success in the first place.
 

Reika

RotaryCraft Dev
FTB Mod Dev
Sep 3, 2013
5,079
5,331
550
Toronto, Canada
sites.google.com
I would like to have a temperature display in my fusion reactor's control room. If I can read the temperature from a preheater with a computer, I can send it out via wireless connection to another computer or convert it into an analogue redstone signal to be used by a column decrementer. Since I'm using export buses to put my fusion fuel into the preheater, I have a block left next to the actual preheater block in the multiblock structure where I can place a computer and access the preheater as a peripheral.

However, there is a problem: listMethods only gives me readTank and some other function, I think it was getAdvancedMethodsData, I don't know anything about. I don't know how to interpret this: does that mean a method does not exist that lets me export the preheater's temperature, or does it mean something may be hidden in getAdvancedMethodsData I can't access because I don't know how to use that method?

I've tried to download this program from pastebin in the hope for some more in-game documentation but my game told me it can't connect to pastebin, which I find odd since http is enabled in the config. Next step would be to copy that code into a dummy program's save file but I haven't gotten around to that yet, and anyway I would like to know why my download doesn't work, and perhaps someone here knows if I have any chance of success in the first place.
One thing to note: CC 1.6.2 or whatever that version is breaks compatibility with nearly every mod, my own included.
Also, the preheaters should have a temperature interface, but the peripheral would have to connect directly to the preheater block, which is impossible.
 

Ieldra

Popular Member
Apr 25, 2014
1,810
733
129
One thing to note: CC 1.6.2 or whatever that version is breaks compatibility with nearly every mod, my own included.
Also, the preheaters should have a temperature interface, but the peripheral would have to connect directly to the preheater block, which is impossible.
Er.....I can place a computer next to the preheater block without impeding its function, because I'm using an export bus to export both deuterium and tritium from the same side. Is that not a sufficient condition to access the preheater temperature interface?
 

Reika

RotaryCraft Dev
FTB Mod Dev
Sep 3, 2013
5,079
5,331
550
Toronto, Canada
sites.google.com
Er.....I can place a computer next to the preheater block without impeding its function, because I'm using an export bus to export both deuterium and tritium from the same side. Is that not a sufficient condition to access the preheater temperature interface?
That would be sufficient, yes.
 

Ieldra

Popular Member
Apr 25, 2014
1,810
733
129
So....I extracted the method data but didn't find anything about temperatures. Here's the output I got from a program that lists method info:

Code:
METHODMAN: Practical display for in game documentation of computercraft + addons

Peripheral found
   Side: back
   Type: reactorhydrogen_preheater

reactorhydrogen_preheater method list:

   getTankInfo
   listMethods
   getAdvancedMethodsData

Open Peripherals Advanced Method Data

1. getAdvancedMethodsData

Return Type: TABLE
Description: Get a complete table of information about all available methods

   Arguments: getAdvancedMethodsData()
   No Arguments

2. getTankInfo

Return Type: TABLE
Description: A table of tanks will be returned, each with a table of information

   Arguments: getTankInfo(direction)

     1. direction
     Description: The internal direction of the tank. If you're not sure, use 'unknown' (north, south, east, west, up, down or unknown)
     Type: STRING

3. listMethods

Return Type: STRING
Description: List all the methods available

   Arguments: listMethods()
   No Arguments

I tried calling getTankInfo() thinking maybe the temperature is hidden somewhere in there, but I get a text too long to read on the in-game monitor and all attempts to serialize the table in order to output it to a file have resulted in an indexing error. So....where is the temperature interface?
 

Reika

RotaryCraft Dev
FTB Mod Dev
Sep 3, 2013
5,079
5,331
550
Toronto, Canada
sites.google.com
So....I extracted the method data but didn't find anything about temperatures. Here's the output I got from a program that lists method info:

Code:
METHODMAN: Practical display for in game documentation of computercraft + addons

Peripheral found
   Side: back
   Type: reactorhydrogen_preheater

reactorhydrogen_preheater method list:

   getTankInfo
   listMethods
   getAdvancedMethodsData

Open Peripherals Advanced Method Data

1. getAdvancedMethodsData

Return Type: TABLE
Description: Get a complete table of information about all available methods

   Arguments: getAdvancedMethodsData()
   No Arguments

2. getTankInfo

Return Type: TABLE
Description: A table of tanks will be returned, each with a table of information

   Arguments: getTankInfo(direction)

     1. direction
     Description: The internal direction of the tank. If you're not sure, use 'unknown' (north, south, east, west, up, down or unknown)
     Type: STRING

3. listMethods

Return Type: STRING
Description: List all the methods available

   Arguments: listMethods()
   No Arguments

I tried calling getTankInfo() thinking maybe the temperature is hidden somewhere in there, but I get a text too long to read on the in-game monitor and all attempts to serialize the table in order to output it to a file have resulted in an indexing error. So....where is the temperature interface?
What CC version is this?
 

Ieldra

Popular Member
Apr 25, 2014
1,810
733
129
Hmph. Is there anything I can do about this? Downgrade to CC1.58 (1.6 was the last big upgrade, I guess that's the one causing the problem)? What exactly is the problem?
 

Ieldra

Popular Member
Apr 25, 2014
1,810
733
129
Downgraded to CC 1.58 and upgraded to OpenPeripherals 0.4.1 for CC 1.58. Method getTemperature now visible. Great. Thanks for the help.
 

RainbowTractor

New Member
Jul 29, 2019
4
0
0
I guess it's going to be better if I revive this thread instead of creating a new one as my problem is exact the same.

Anyway, I'm running FTB Monster 1.1.2 right now. I've updated Reika's mods to v25z and downgraded CC and OpenPeripherals to 0.4.1 and 1.58 - with this configuration I can't even wrap Rotary/ReactorCraft blocks and get any data from them. With CC 1.6+ I can wrap them but some methods are missing obviously. Am I missing something?
 

RainbowTractor

New Member
Jul 29, 2019
4
0
0
I guess it's going to be better if I revive this thread instead of creating a new one as my problem is exact the same.

Anyway, I'm running FTB Monster 1.1.2 right now. I've updated Reika's mods to v25z and downgraded CC and OpenPeripherals to 0.4.1 and 1.58 - with this configuration I can't even wrap Rotary/ReactorCraft blocks and get any data from them. With CC 1.6+ I can wrap them but some methods are missing obviously. Am I missing something?

I've just tried Monster 1.1.1 with v19b of Reika's mods as it is in this tutorial: http://lisimba.org/minecraft/howto_beginner_reactor/howto.html#toc-Subsubsection-5.3.6
Still nothing, whenever I try to wrap the peripheral it says "Attempt to index ? (a nil value)" just like there would be nothing attached to the computer. Machines from other mods work fine.
 

RainbowTractor

New Member
Jul 29, 2019
4
0
0
No support is given for old versions, especially ones over a year old.
Alright. Now I'm running 1.7.10 with the newest versions of mods. Everything is the same, other machines work but with Rotary/ReactorCraft ones the computer is throwing an "attempt to call nil" error
 

RainbowTractor

New Member
Jul 29, 2019
4
0
0
Can someone else test this?
I've just asked my friend to do it and it doesn't work for him as well. Right now I'm running these mods:
3423423424.PNG

Maybe I'm messing something in the game. I'm using an andvanced computer and when I try "openp/docs right" it says "No such program" and when I run this code:
Code:
local x = peripheral.wrap("right")
print(x.listMethods())
It throws a "test:2: attempt to call nil" whenever there's a ReactorCraft block attached. It works fine with other blocks.
 

Reika

RotaryCraft Dev
FTB Mod Dev
Sep 3, 2013
5,079
5,331
550
Toronto, Canada
sites.google.com
I've just asked my friend to do it and it doesn't work for him as well. Right now I'm running these mods:
3423423424.PNG

Maybe I'm messing something in the game. I'm using an andvanced computer and when I try "openp/docs right" it says "No such program" and when I run this code:
Code:
local x = peripheral.wrap("right")
print(x.listMethods())
It throws a "test:2: attempt to call nil" whenever there's a ReactorCraft block attached. It works fine with other blocks.
This needs input from the other developer.
 

Braidedheadman

New Member
Jul 29, 2019
83
0
0
I can confirm the error, attaching a computer above a pulse jet furnace and attempting to execute the following code:

Code:
local pjf = peripheral.wrap("down")
print(pjf.getTemperature())

And the error message:
Code:
PJFDutyCycle:2: attempt to index ? (a nil value)

Kind of put the breaks on using a computer to set up a duty cycle for the PJF in a real hurry when I couldn't get past this simple test! :D
 

Reika

RotaryCraft Dev
FTB Mod Dev
Sep 3, 2013
5,079
5,331
550
Toronto, Canada
sites.google.com
I can confirm the error, attaching a computer above a pulse jet furnace and attempting to execute the following code:

Code:
local pjf = peripheral.wrap("down")
print(pjf.getTemperature())

And the error message:
Code:
PJFDutyCycle:2: attempt to index ? (a nil value)

Kind of put the breaks on using a computer to set up a duty cycle for the PJF in a real hurry when I couldn't get past this simple test! :D
How does one best contact dan200?