I noticed that with Mobile Factory installed, dang0reus throws an error saying that surface.map_gen_settings.autoplace_controls[type] and surface.map_gen_settings.autoplace_controls[type].richness
is nil on line 247, and Mobile Factory bugs out.
However, if replaced with game.autoplace_control_prototypes[type] and game.autoplace_control_prototypes[type].richness
, it gets rid of the error and Mobile Factory can work properly.