squidy5 / cargo_ships

factorio mod that adds cargo ships and other content to the game
25 stars 39 forks source link

AII Vehicles Support: Hauler #35

Closed Saevon closed 4 years ago

Saevon commented 5 years ago

The cargo ships are good early on, and being able to use them with AAI-vehicles would be fun (especially on a super-expensive map, where it takes a while before waterways)

Don't have my PC, or I'd make a pull-request... but heres how you do it

-- control.lua
remote.add_interface("cargo_ships", {
    hauler_types = function(data)
        return {
            'indep-boat',
        }
    end,
})
squidy5 commented 5 years ago

hey! i never used aai vehicles, therfore i dont really now how to test this. have you tested this?

Saevon commented 5 years ago

Yeah, I have a personal mod that adds this, works fine.

P.S. if you added more boats that are supposed to work when not on a rail, you just add them to the table