Loaders Modernized


Compact 1x1 loader requiring electricity to run. There are options to enable or modify capabilities like stacking, disable power consumption, or recipe cost.

Content
15 days ago
2.0
32.1K
Logistics Circuit network

b [Fixed] Error loading mod

1 year, 9 days ago

I get this just after activating your mod:

Error loading mod: Error while loading mod-setting prototype "aai-loaders-mode" (string-setting): Default value (graphics-only) isn't a valid value based off the prototype limitations.
Modifications: AAI Loaders › AAI Loaders: Electric powered › Loaders Modernized › Noxys Extra Settings Info

1 year, 8 days ago

I have been unable to reproduce this error. Do you have a full list of mods that you have installed, perhaps a save game you can provide that I can test wtih?

1 year, 8 days ago

Scratch that. I was able to reproduce this. The mod AAI Loaders: Electric powered removes the "graphics-only" option of AAI Loaders. The mode doesn't provide the loaders and must have AAI loaders provide the actual loaders that it then modifies. Loaders Modernized is a loader mod that provides loaders. It only uses AAI Loaders for the graphics available.

It really is redundant to have Loaders Modernized and AAI Loaders: Electric powered since Loaders Modernized already use electric power. They are incompatible. I will add an incompatible flag to Loaders Modernized.

1 year, 7 days ago

Understood, no problem. Thanks for finding the issue!

1 year, 7 days ago

Another adjustment. :) Instead of marking it incompatible, I made them compatible. You will now be able to use both.

1 year, 7 days ago

Hallelujah! 🥳

11 months ago

hi, i still get the same error, my local fix is just changing settings-updates.lua into

local alm = data.raw["string-setting"]["aai-loaders-mode"]
-- if mods["aai-loaders"] and not mods["aai-loaders-electric"] then
-- alm.default_value = "graphics-only"
-- end

10 months ago

0.8.13 didnt't fix the issue, still commenting those 3 lines

10 months ago

Still working fine for me somehow

10 months ago

@fctrusr Can you provide the save game that is experiencing the issue. There must be other mods you have in play that are interacting.

10 months ago

hi again, i looked into the subject by myself and found the "culprit" ... the issue is caused by the mod "aai-loaders-reduced-cost".

the following entry is found in the settings-updates.lua:

local loaders_mode = data.raw["string-setting"]["aai-loaders-mode"]

loaders_mode.hidden = true
loaders_mode.allowed_values = {"expensive"}
loaders_mode.default_value = "expensive"

now i changed the if-statement in loaders-modernized_0.8.14/settings-updates.lua to

if mods["aai-loaders"] and not mods["aai-loaders-electric"] and not mods["aai-loaders-reduced-cost"] then

The game loads now successfully into the main menu.

Maybe for a more dynamic approach you may check the allowed_values table instead of hunting every interfering mod down ..

New response