Event to detect when a cargo pod is launched

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Event to detect when a cargo pod is launched

Post by thesixthroc »

This seems the biggest gap in the cargo pod APIs and prevents mods from restricting cargo pod launches from space platforms (except by rapidly checking the surface for cargo pods or reacting late to the cargo pod leaving to space platform surface.)
Rseding91
Factorio Staff
Factorio Staff
Posts: 15592
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Event to detect when a cargo pod is launched

Post by Rseding91 »

There is no current (and likely never will be) way to stop cargo pods from launching. The entire purpose of platforms with cargo bays is to 1: extend the hub size, and 2: launch/receive cargo pods.

You can simply remove the cargo hatch definitions from the cargo bay to remove functionality #2. But, when it exists - it's going to get used by the engine.
If you want to get ahold of me I'm almost always on Discord.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: Event to detect when a cargo pod is launched

Post by thesixthroc »

Very well. I have several popular mods which restrict cargo drops under certain conditions and 'right after launch' proved to be the best UX, and while there is performance cost they seem to work fine by scanning the surface and intercepting pods.
Loup&Snoop
Inserter
Inserter
Posts: 24
Joined: Wed Dec 04, 2024 4:33 am
Contact:

Re: Event to detect when a cargo pod is launched

Post by Loup&Snoop »

+1 Blocking (specific) cargo pod drops to a specific surface would be useful for mod planets.
Sad to see that we need some hackey solutions.
Post Reply

Return to “Modding interface requests”