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
7 days ago
0.16 - 2.0
214K
Transportation Logistics Trains Mining Fluids Power

b Oil rig bug

1 year, 3 months ago

Hi I got this error after installing an oil rig:

Мод Cargo Ships (0.2.2) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event cargo-ships::on_built_entity (ID 6)
cargo-ships/control.lua:82: bad argument #1 of 3 to 'insert' (table expected, got nil)
stack traceback:
[C]: in function 'insert'
cargo-ships/control.lua:82: in function <cargo-ships/control.lua:16>

1 year, 3 months ago

Generally global.or_generators would be created if it didn't exist tick by powerOilRig, but that doesn't get called if global.deep_oil_enabled is false, which happens if settings.startup["deep_oil"].value is false. Do you have the startup setting "Enable offshore oil and oil rig" disabled? (Presumably if it is, then you wouldn't be placing oil rigs though... so I'm not sure how this could happen).

1 year, 3 months ago

Today the bug is gone, everything works fine. Thanks @Xorimuth for the reply, post can be deleted :)

New response