Adds massive cargo ships to the game, that function similarly to trains. Also adds deep sea oil, oil platforms, tanker ships, train bridges and other water based content.
Can't load mod: cargo-ships/prototypes/resources-new.lua:167: attempt to index field 'map_gen_settings' (a nil value)
stack traceback: cargo-ships/prototypes/resources-new.lua:167: in main chunk
[C]: in function 'require' cargo-ships/data-updates.lua:2: in main chunk
Do the DLC mods automatically get set as the first mods that load? This might be an issue if Cargo Ships loads before Space Age for some reason. That might explain why it's intermittent, as mod load order changes. We could add a hidden optional dependency on space-age to make sure the surface definition is complete before we modify it.
Yes adding an optional dep on space age is a good idea to ensure consistent load order relative to it. No need to make it hidden imo, having not hidden emphasises that it works with SA.
However I don’t see how this would be relevant here since the failing code runs in data-updates anyway.