Krastorio 2 AAI Loaders Compact


Compatibility mod between Krastorio 2 and AAI Loaders so Krastorio 2 uses AAI Loader graphics without changing Krastorio loader recipes. No need to change any AAI loader configs, they are all internally configured and disabled.

Tweaks
4 months ago
1.1 - 2.0
8.23K
Logistics

i Spaced Out

4 months ago

Can you make the K2 Dependency optional so that this mod can also be used with Krastorio 2 Spaced Out?

https://mods.factorio.com/mod/Krastorio2-spaced-out?from=trending

2 months ago

I'm hesitant to fork without more time passing, so if wanting a quick fix for your own needs, you can simple go to the mod folder (usually AppData/Roaming/Factorio/mods/), unzip this mod into its own folder, and go into it to change two files:

info.json: add a ? before Krastorio in dependencies (and krastorio spaced out if you want)

  "dependencies": [
    "base >= 2.0.0",
    "? Krastorio2 >= 2.0.3",
    "aai-loaders >= 0.2.6"
  ]
}

This will break it, as being optional it cannot rely on grabbing Krastorio belts. Hence go into data-final-fixes.lua, around line 184, add:

if mods["krastorio-2"] or mods["krastorio-2-spaced-out" ] then

And add an end after the two Krastorio belts.
If you also want Space Exploration, add that under the Space Exploration section too around the Krastorio-specific ones.

Not sure if wrong approach, as this DOES allow a potential game-crashing error on load if you have neither krastorio spaced out nor base krastorio, but it's an obvious and quick error, just not "streamlined" -- I'm not sure if there is a way to specify "optional, but must have at least one of these".

23 days ago

I made a quick little "fork" of the mod so that it works with spaced out. All I really did was make it require spaced out instead of regular K2.
https://mods.factorio.com/mod/krastorio-so-aai-loaders-compact

New response