With Thermal Expansion installed, using the Energy Sensor Kit on Energy devices like the MFSU or the MFE, the RF Energy Sensor Location card is given instead of the standard Energy Sensor Location card.
Probably the same issue with other IC2 energy storage devices which i didn't try.
Placing the RF Energy Sensor Location card (linked to the MFSU or MFE) into an industrial information panel will lead to a "Target Not Found" message.
Versions used :
Minecraft 1.7.10
Forge 1.7.10-10.13.4.1614-1.7.10
industrialcraft-2-2.2.822-experimental
IC2NuclearControl-2.4.1a
MicdoodleCore-1.7-3.0.12.375
ThermalFoundation-[1.7.10]1.2.5-115
ThermalExpansion-[1.7.10]4.1.3-246
To reproduce the problem :
Install IC2 Experimental, ThermalExpansion and NuclearControl mods.
In creative mode, place a MFSU device.
Place an Industrial Information Panel with redstone torch to power it.
Use an Energy Sensor Kit on the MFSU.
Place the obtained RF Energy Sensor Location card into the Industrial Information Panel.
Target Not Found should be displayed.
Also note that using the Energy Sensor Kit on EnergyCounter devices crashes the game.
After my investigation, i found the following code has been reworked lately :
Nuclear-Control-master\src\main\java\shedar\mods\ic2\nuclearcontrol\items\ItemKitEnergySensor.java
At Line 35 :
else if (Loader.isModLoaded(ModLib.TE) || storageData.type
== EnergyStorageData.TARGET_TYPE_RF) {
return new ItemStack(CrossTE.RFSensorCard);
}
The OR logical operand seems to explain the problem.
After looking at the file history, if found that in earlier builds, the EnergyStorageData type (TARGET_TYPE_RF) was checked before the presence of ThermalExpansion (Loader.isModLoaded(ModLib.TE)) which is no longer the case in v2.4.1a
So, knowing that, I made a test on my computer by replacing the OR condition by and AND :
else if (Loader.isModLoaded(ModLib.TE) && storageData.type == EnergyStorageData.TARGET_TYPE_RF) {
return new ItemStack(CrossTE.RFSensorCard);
}
Recompile the lib, install.
Then using the EnergyKit on the MFSU gives me an Energy Sensor Location card like old time and work as expected in the Industrial Information Panel.
I dunno if that change is sufficient to fix the lib cause of Mekanism integration (which i don't have) but
the minor change above solves my problem for EnergySensorKit when ThermalExpansion is installed.
I hope my investigation help you in an incoming fix.
With Thermal Expansion installed, using the Energy Sensor Kit on Energy devices like the MFSU or the MFE, the RF Energy Sensor Location card is given instead of the standard Energy Sensor Location card. Probably the same issue with other IC2 energy storage devices which i didn't try.
Placing the RF Energy Sensor Location card (linked to the MFSU or MFE) into an industrial information panel will lead to a "Target Not Found" message.
Versions used :
To reproduce the problem :
Also note that using the Energy Sensor Kit on EnergyCounter devices crashes the game.
After my investigation, i found the following code has been reworked lately : Nuclear-Control-master\src\main\java\shedar\mods\ic2\nuclearcontrol\items\ItemKitEnergySensor.java At Line 35 : else if (Loader.isModLoaded(ModLib.TE) || storageData.type == EnergyStorageData.TARGET_TYPE_RF) { return new ItemStack(CrossTE.RFSensorCard); }
The OR logical operand seems to explain the problem. After looking at the file history, if found that in earlier builds, the EnergyStorageData type (TARGET_TYPE_RF) was checked before the presence of ThermalExpansion (Loader.isModLoaded(ModLib.TE)) which is no longer the case in v2.4.1a
So, knowing that, I made a test on my computer by replacing the OR condition by and AND : else if (Loader.isModLoaded(ModLib.TE) && storageData.type == EnergyStorageData.TARGET_TYPE_RF) { return new ItemStack(CrossTE.RFSensorCard); }
Recompile the lib, install.
Then using the EnergyKit on the MFSU gives me an Energy Sensor Location card like old time and work as expected in the Industrial Information Panel.
I dunno if that change is sufficient to fix the lib cause of Mekanism integration (which i don't have) but the minor change above solves my problem for EnergySensorKit when ThermalExpansion is installed.
I hope my investigation help you in an incoming fix.