Cargo Ships


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.

Content
8 days ago
0.16 - 2.0
227K
Transportation Logistics Trains Mining Fluids Power

b Error Mod loading

4 months ago

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

4 months ago

Very strange, do you have a mod modifying Aquilo map gen?

4 months ago
(updated 4 months ago)

No. Aquilo map gen mods not installed.

I fixed this problem by completely reinstalling mods: Cargo Ships + Cargo Ship Graphics
after this manipulations The error does not happen again

4 months ago

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.

4 months ago

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.

New response