Sir, we got a new problem.
The function count cargo doesn't work anymore.
With the news cargos types, their names change and we have more cargos.
It's not "cargo1" but "uh1h_cargo".
See line 5785:
if _unit.type == "Cargo1" and _unit.canCargo == true then
Can you update your script and add the new types ?