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
5 months ago
0.16 - 1.1
192K
Transportation Logistics Trains Mining Fluids Power

b Oil rig bug

9 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>

9 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).

9 months ago

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

New response