Angel's Addons - Krastorio2 Patch

by xg787

A Krastorio2 compatibility patch for Angel's Addons - C.A.B. and or Mass Transit

Tweaks
4 months ago
2.0 - 2.1
291

b Energy Absorber in Angel's grids

7 days ago

Seems there is a problem with simply making all equipment work in grids from krastorio -> angel's crawlers. Could you perchance look into the energy absorber/tesla coil. While you CAN equip the absorber in the wagon grids, they won't function unless you tag them as military (From raiguard):

I looked into it and the tesla coil is unable to detect those wagons because they do not have is_military_target set. K2 attempts to do this for all wagons which accept K2 equipment during data-final-fixes, but it is not applying to the Angels wagons because the compatibility mod doesn't add K2 equipment to them until its own data-final-fixes, which runs after K2's has already run. I would recommend that the compatibility mod add the kr-vehicle equipment category to the vehicle grids before data-final-fixes, which will allow K2's detection to pick them up.

The logic in question is here: https://git.raiguard.me/z_mirror/Krastorio2/ref/trunk/blob/prototypes/final-fixes/internal-turret-logic.lua

New response