Amator Phasma's Library


First of all: this is a resource and code library for my other mods. It self comes with extended functions for inserter: 1) make it possible that a inserter can handle the 'burnt result inventory' on all machines. 2) burner inserters can leech fuel from pickup and drop target. 3) burner inserters are capable to chain fuel through all burner type machines.

3 years ago
0.17 - 0.18
31

i Compatibility with other mods

3 years ago

Hello.
I got a report of incompatibility with this mod and after looking at it I have found that:
This mod has code that runs on configuration changes resetting recipes and technologies. Other mods that have conditional recipes and/or technologies (like https://mods.factorio.com/mod/fluid_permutations ) are broken because of this.
In order to fix this, https://lua-api.factorio.com/latest/LuaForce.html#LuaForce.reset_technology_effects should be called after the reset. This will raise the event https://lua-api.factorio.com/latest/events.html#on_technology_effects_reset letting other mods subscribe to it and handle their conditional technologies and recipes.
The code for it is actually in this library already, but it is commented out:
https://gitlab.com/AmatorPhasma/apm_factorio/-/blob/master/apm_lib/lib/script/init.lua#L201

It would be great if the call is added.

New response