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
a month ago
2.0
26.7K
Logistics Circuit network

b [Fixed] Error loading mod

6 months 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

6 months 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?

6 months 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.

6 months ago

Understood, no problem. Thanks for finding the issue!

6 months ago

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

6 months ago

Hallelujah! 🥳

5 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

5 months ago

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

5 months ago

Still working fine for me somehow

5 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.

4 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