This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
UmbraCharon's profile picture

[FTB Monster 1.6.4] Thermal Expansion energy cell "slot"

Started by UmbraCharon, 30 January 2015 - 02:36 AM
UmbraCharon #1
Posted 30 January 2015 - 03:36 AM
I have a Thermal expansion resonant energy cell hooked up to my computer by wired modem and when i call the methods getEnergyStored() it tells me "Parameter 'slot' is missing". I have tried puttin in up,down,south,west,east,north and top,bottom,left,right,back and front but all it is telling me is it returned a nil value. So any one know what i put in here for it to work?
KingofGamesYami #2
Posted 30 January 2015 - 03:39 AM
Since it's asking for a slot, presumably I would try a number. EI 1.
UmbraCharon #3
Posted 30 January 2015 - 03:46 AM
Since it's asking for a slot, presumably I would try a number. EI 1.

I just tried 0-10 still getting 'attempt to call a nil'
Dragon53535 #4
Posted 30 January 2015 - 04:11 AM
If it's giving you an attempt to call nil then getEnergyStored isn't real. Or perhaps you tried putting 1 just in the base code?

Also, it's a side. As shown in This post.


local cell = peripheral.wrap("cofh_thermalexpansion_energycell_Numberhere")
print(cell.getEnergyStored("unknown")) --#You CAN use unknown as well if memory serves
Bomb Bloke #5
Posted 30 January 2015 - 05:11 AM
I just tried 0-10 still getting 'attempt to call a nil'

That means something entirely different to what you wrote in your first post.

Be specific with error messages!