First of all, I feel very surprised if my mod has anything to do with fuel categories with reactors. This mod does NOT have a single line about fuel categories.
This mod has quite short code (esp. compared to Realistic Reactors). You can spend like 5-10 minutes exploring this mod and find this out. It is merely adding uranium concentrate, LEU and some recipe changes. Really, I have not touched the fuel categories.
If you highlight those reactors and fuel cells and see the tooltips, you can see what mods have modified them. This mod is totally not involved!
The test results are a bit strange. So let me list them out.
Set A:
- Factorio 0.18.18
- SchallUraniumProcessing_0.18.1
- RealisticReactors_2.18.14
- PlutoniumEnergy_1.1.7
MOX fuel can be used in RR Nuclear Reactor and Nuclear Breeder Reactor.
Set B:
- Factorio 0.18.22
- SchallUraniumProcessing_0.18.1
- RealisticReactors_2.18.14
- PlutoniumEnergy_1.1.10
MOX fuel CANNOT be used in RR Nuclear Reactor and Nuclear Breeder Reactor.
After some thought, I guess it seems to be related to mod load order, where there RR has placed it fuel categories code in the wrong data phase.
RR 2.18.14 does the fuel category addition in entities.lua
line 233:
table.insert(reactor_template.energy_source.fuel_categories,"PE-MOX")
However, it is loaded in data.lua
phase. That means that fuel categories added later than that will be missed.
PE has an optional dependency on this mod (SUP), so loaded after RR if SUP is present.
Solution:
1/ Move the fuel categories addition line to data-updates.lua
or data-final-fixes.lua
. It should NOT be in data.lua
phase in the first place!
2/ If not, then RR need to use optional dependencies on PE.
PS: Although I found out the bug and solution, I am the least related one among the three mods.