Page 1 of 1

Commercial tankers

Posted: Sat Jul 11, 2026 12:54 pm
by bladesinger79
How do I fill these with fuel for transportation as cargo? I want to simulate loading/unloading at ports, and what happens if one catches fire.

Or is it no big deal in the grand scheme of CMO?

Re: Commercial tankers

Posted: Sat Jul 11, 2026 1:27 pm
by Nikel
There are tank containers that can be edited with different oil, gas or fuel types.

I do not think the fire is simulated differently, but never tried :)

Re: Commercial tankers

Posted: Sat Jul 11, 2026 1:35 pm
by bladesinger79
I tried that. After a few containers, I realized it would take me many many many hours to fill a commercial fuel tanker, especially a supertanker of 420K DWT size.

Re: Commercial tankers

Posted: Sat Jul 11, 2026 1:53 pm
by Nikel
Yes, you can only edit one at a time.

Re: Commercial tankers

Posted: Sat Jul 11, 2026 5:08 pm
by Nikel
OK, this can be done via lua.


Only after some trial and error with the Ai, enough for the new limit to appear :lol:

LL.png
LL.png (26.07 KiB) Viewed 447 times


This code will add tanker containers to a tanker. 2000, if less are allowed due to the size of the tanker, it will stop there.
local u = ScenEdit_GetUnit({guid='CWVLA7-0HNMVC5FRQ4T4'})

for i=1,2000 do
u:createUnitCargo(4,14)
end

print(#u.cargo[1].cargo)


In this case the limit was 322.


This code will fill all of them with Diesel fuel.

local u = ScenEdit_GetUnit({guid='CWVLA7-0HNMVC5FRQ4T4'})
local cargoList = u.cargo[1].cargo

for i=1,#cargoList do
local c = u:getUnitCargo(cargoList.guid)
c:createContainerContentFuel(3001,33750)
end



FTC.gif
FTC.gif (249.7 KiB) Viewed 444 times


More fuel codes in the game.

2001 = AviationFuel
3001 = DieselFuel
3002 = OilFuel
3003 = GasFuel
4001 = Battery