Mekanism

Mekanism

111M Downloads

OC integration problems

tacnuke opened this issue ยท 8 comments

commented

under open-computers 1.7.0.40 m.c. version 1.11.2 the fusion reactor, induction matrix, energy cubes, and laser amplifier all show up as energy_device when you pull a components list when they are attached by an adapter(which is required)

commented

Do you have any OpenComputers addons installed? Such as something that lets your read RF capacity?

commented

It's probably due to the fact that we haven't changed the ModID of OpenComputers, it's now lowercased to opencomputers. In the code we still use the old OpenComputers.
Used in Mekanism.java & MekanismHooks.java

(currently not able to open a PR / push a commit)

commented

ok would that also cause getEnergyStored() and getMaxEnergyStored() methods to have the same value?
the first method should be what is currently stored and the second obviously should be the max storable. and no the induction matrix is not full but getEnergyStored() pulls the max value.

commented

I think Aidan fixed that in a recent commit (I'd forgotten about the modid thing). Not sure if it made it to release yet.

commented

Partially solved, in MekanismHooks it's lowercased, Mekanism not:
https://github.com/aidancbrady/Mekanism/blob/1.12/src/main/java/mekanism/common/Mekanism.java#L791

--Edit-- Also, it's not in release yet ;)

commented

Right you are as usual :P

commented

It could cause them to return the same value, as the "driver" needed to communicate isn't loaded and it falls back to a default one.

Should be fixed in the next release

commented

If it has more than 2,147,483,647RF then it's likely a limitation of the Java data type ;)