Wrong output on Tier 7 Energy Core
Aragur opened this issue ยท 12 comments
If you wrap the Peripheral with ComputerCraft you get returned wrong output (getMaxEnergyStorred or getEnergyStorred)
Tomorrow I can test it, what excactly the problem is and I also will deliver screenshots.
@AragurLP As far as I know the problem is that ComputerCraft uses a 32bit architecture and the number that the energy pylon is providing is too long / to high to be saved in a 32bit value.
It's not a bug, it's a limitation for the sake of compatibility. If ComputerCraft would use a 64bit architecture, you couldn't use it on a PC with a 32bit OS. There are as far as I can think of two solutions: dan200 releases a 64bit version of CC (which I doubt he would do because it would end in a disaster) or @brandon3055 changes the way the energy values are provided to CC. I will look at the code, perhaps I can come up with a solution.
Close. But its actually just a limitation of the RF API which handles all of its values as integers. At some point a will be adding computer craft integration so that the pylon will be a custom peripheral which allows you to read the full amount of stored energy. (Computronics has already done this)
It's been two years, and I'm still having this issue. Even when the energy stored is not maximum, it is still reported to be. (2147483647 or 2^32-1) Has there been a fix yet?
This will never be fixed because it is an unavoidable limitation of the RF API. If you are using a computer then use DE's energy peripheral interface.
Is that peripheral interface available in 1.7.10? I don't think I was able to find it. (The reason I'm using 1.7.10 is because we're running a custom modpack, made specifically to use mods we like which include discontinued ones)