Cargo Ships


Adds massive cargo ships to the game, that function similarly to trains. Also adds tanker ships, train bridges. NOTE: In 2.1, You Must Install Oil Rigs Separately!

Content
2 days ago
0.16 - 2.1
284K
Transportation Logistics Trains Fluids

b Error Mod loading

2 years 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

2 years ago

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

2 years ago
(updated 2 years 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

2 years 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.

2 years 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