Why did Krastorio 2 become incompatible?
In total, you need to add a few lines as the mod becomes fully operational with Krastorio 2.
if mods["Krastorio2"] then
data.raw["equipment-grid"]["car-equipment-grid"].equipment_categories = {"universal-equipment", "vehicle-equipment", "vehicle-motor", "vehicle-robot-interaction-equipment"}
data.raw["equipment-grid"]["tank-equipment-grid"].equipment_categories = {"universal-equipment", "vehicle-equipment", "vehicle-motor", "vehicle-robot-interaction-equipment"}
data.raw["equipment-grid"]["loco-equipment-grid"].equipment_categories = {"universal-equipment", "vehicle-equipment", "vehicle-motor", "vehicle-robot-interaction-equipment"}
data.raw["equipment-grid"]["wagon-equipment-grid"].equipment_categories = {"universal-equipment", "vehicle-equipment"}
data.raw["equipment-grid"]["artillery-wagon-equipment-grid"].equipment_categories = {"universal-equipment", "vehicle-equipment"}
end