Sorry for the multiple posts in advance. Also sorry for the incoming wall of text.
This section is about fixing the compatibility issue with Angel's. The AAI Industry compatibility problem is only caused by the amator library (which I already opened a discussion about how to fix them).
The first bug I posted here is an issue about recipe categories. Angel's renamed and removed some of them, which causes this bug here. To fix this, open this file:
__apm_power_ldinc__/prototypes/integrations/recipe-categories.lua
And at line 99 - 101 you will see this:
apm.lib.utils.assembler.mod.category.add('apm_crusher_machine_0', 'ore-sorting-t1')
apm.lib.utils.assembler.mod.category.add('apm_crusher_machine_1', 'ore-sorting-t1')
apm.lib.utils.assembler.mod.category.add('apm_crusher_machine_2', 'ore-sorting-t1')
You need to replace them with this:
apm.lib.utils.assembler.mod.category.add('apm_crusher_machine_0', 'ore-refining-t1')
apm.lib.utils.assembler.mod.category.add('apm_crusher_machine_1', 'ore-refining-t1')
apm.lib.utils.assembler.mod.category.add('apm_crusher_machine_2', 'ore-refining-t1')
After looking through angels code, I simply looked for items, that were also category "ore-sorting-t1". This included the crushed ores and crushed stones, aswell as the ore crusher, before they got changed to "ore-refining-t1". So this change should make sense, because the apm crusher should replace the angels crusher's functionality.
I didn't encounter second bug in this post anymore, which was something with the angels petrochem, so I guess we can ignore that for now.
The next bug is the same as the second post I posted in this discussion here. This was contributed by notnotmelon. To fix this, I suggest to go to the file:
__apm_power_ldinc__/prototypes/integrations/updates.lua
Scrolling to the end of the file, copy and paste this code in:
-- angels ---------------------------------------------------------------------
--
--
-- ----------------------------------------------------------------------------
if mods.angelsrefining then
data.raw['assembling-machine']['burner-ore-crusher'].next_upgrade = nil
end
This should incorporate all fixes done by notnotmelon up until the latest fork. I didn't figure out, what the change in the latest fork was. I guess it was just a change in the "info.json" file, but I am not really sure.
(The following section is just speculation, so ignore it if you want.)
Normally this bug fix was included in the "data-update.lua", where some of angels compatibilty patch code was. On first glance, this code was redundant, because it "changed" the first wood production result in the "greenhouse.lua". "Changed", because the changed result number was the same as before (namely 14). So the redundant code got removed and the wood results in "greenhouse" got adjusted, so they don't have two wood results, with the second one being a random count between 1 and 6. But at this stage, I am not sure, if it was really redundant code. Maybe it was there, because angels had its own wood production recipe, so amator tried to overwrite it again in data-update-stage ? I didn't try it, so I might post something related to that, if the removal of the redundant code had an effect somewere balance-wise. Anyway, in case you want to know, what I am talking about, here is how the original code for this bug fix at the end of "data-update.lua"-file looked like:
if mods.angelsrefining then
data.raw.recipe.apm_wood_0.normal.results[1].amount = 14
data.raw.recipe.apm_wood_0.expensive.results[1].amount = 14
data.raw['assembling-machine']['burner-ore-crusher'].next_upgrade = nil
end
Again, if you are 100% sure this code was redundant, just ignore this part
Edit: I tested it with Angels. The wood recipe stayed the same, so the wood recipe changes above can be ignored.
With these bug fixes, angels mods should work properly with all the angels related compatibility patches enabled. This took me some time to figure out, I would appreciate if the fixes were implemented. I also wrote some bug fix suggestions in amator nuclear and amator library discussion section.
Have a nice day!
Edit2:
Version 0.23.09 fixed the issues. Thank you very much!