7 posts
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?
3057 posts
Location
United States of America
Posted 30 January 2015 - 03:39 AM
Since it's asking for a slot, presumably I would try a number. EI 1.
7 posts
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'
1080 posts
Location
In the Matrix
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
7083 posts
Location
Tasmania (AU)
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!