How to detect a load that has had items removed due to missing mods?
Posted: Fri May 10, 2019 6:55 am
Hi
I've got a mod that needs to recover from other mods being removed.
example situation:
1. you have mod A, B, C enabled at time of save.
2. you quit the world and disable mods B and C in Factorio.
3. you restart Factorio and reload the save.
4. Factorio removes the entities etc on loading of the save.
5. Mod A crashes because it relies on mod B and C.
How should I fix mod A so it can detect that mod B and C are no longer present?
What event should I have a handler to react to this situation?
thanks
I've got a mod that needs to recover from other mods being removed.
example situation:
1. you have mod A, B, C enabled at time of save.
2. you quit the world and disable mods B and C in Factorio.
3. you restart Factorio and reload the save.
4. Factorio removes the entities etc on loading of the save.
5. Mod A crashes because it relies on mod B and C.
How should I fix mod A so it can detect that mod B and C are no longer present?
What event should I have a handler to react to this situation?
thanks