🌐Dea Dia System (ALPHA)


A group of planets still orbiting their dead star.

Content
9 days ago
2.0
14.9K
Factorio: Space Age Icon Space Age Mod
Planets Transportation Logistics Combat Armor Enemies Environment Mining Fluids Logistic network Manufacturing Power

g Error loading

23 days ago

I'm having issues loading this mod, it pops up with this error:

Failed to load mods: dea-dia-system/prototype/compat/cold-biters.lua:8: attempt to index field 'cb-cold-alien-tech' (a nil value)
stack traceback:
dea-dia-system/prototype/compat/cold-biters.lua:8: in main chunk
[C]: in function 'require'
dea-dia-system/prototype/compat/compat.lua:2: in main chunk
[C]: in function 'require'
dea-dia-system/data-updates.lua:3: in main chunk

Mods to be disabled:
• dea-dia-system (0.30.18)

23 days ago

That happens when cold warfare was turned off, even tough I have code turning it back on.

9 days ago
(updated 9 days ago)

Regarding this error, one thing I have recently learned about settings is that you can enforce certain values during settings stage, via something like:

data.raw["bool-setting"]["cb-enable-cold-warfare"].hidden = true
data.raw["bool-setting"]["cb-enable-cold-warfare"].forced_value = true

The hidden property is required for forced_value to take effect, and (as expected) hides the setting from the end user, preventing them from modifying it.

Not something I would recommend using very often, but when the alternative is an error on load (before the user can modify settings, in case they don't want to lose all of their other mod settings via reset), it might be the best option.

But yeah, if that setting is disabled (either by the user or some other mod setting its default value to false), then the error appears (I got a similar report here)

New response