Draconic Evolution

Draconic Evolution

77M Downloads

Wrong output on Tier 7 Energy Core

Aragur opened this issue ยท 12 comments

commented

If you wrap the Peripheral with ComputerCraft you get returned wrong output (getMaxEnergyStorred or getEnergyStorred)

commented

@AragurLP first of all, "stored" has only one "R" not two! :P

commented

Sry, wrote it false. Of course I wrote it with 1 "R"

commented

ok, sadly bc I am not familiar with computercraft yet I won't test this yet

commented

Tomorrow I can test it, what excactly the problem is and I also will deliver screenshots.

commented

@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.

commented

So it's a Computercraft "Bug"?
Vor is there a way to fix it?

commented

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.

commented

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)

commented

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?

commented

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.

commented

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)

commented

Yes you need to connect the computer to a pylon. The peripheral name is
draconic_rf_storage
It has the following methods.
getEnergyStored and getMaxEnergyStored