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. Also Compatible with Space Exploration.

Tweaks
10 months ago
1.1
7.01K
Logistics

g Tip

10 months ago

Youc can force AAI Loaders to graphics only.

10 months ago

How can I do that?

As far as I know, a mod does not have access to other mod settings. They are isolated.
And checking loader mod, the graphics mode setting is checking during prototype load, since my mod requires AAI loader, mine runs after AAI loader and by that time prototypes are already created, so even if I could change the setting in memory, its already too late.

10 months ago
(updated 10 months ago)

settings-updates.lua

data.raw["string-setting"]["aai-loaders-mode"].forced_value = "graphics-only"

Should work. Also, sorry you waited so long.

10 months ago
(updated 10 months ago)

Wait im dumb

10 months ago
(updated 10 months ago)

It should look like this:

data.raw["string-setting"]["aai-loaders-mode"].allowed_values = {"graphics-only"}
data.raw["string-setting"]["aai-loaders-mode"].default_value = "graphics-only"
data.raw["string-setting"]["aai-loaders-mode"].hidden = true
10 months ago

Ohh... I never noticed this info on the settings wiki page.
I always thought that the settings were scope isolated and not changeable by other mods.

I can think of a couple mods that could make use of this and maybe they are also not aware this is possible.

Either way, thanks for the tip, mod is updated!

New response