Event to detect when a cargo pod is launched
-
- Fast Inserter
- Posts: 113
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
Event to detect when a cargo pod is launched
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.)
Re: Event to detect when a cargo pod is launched
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.
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.
-
- Fast Inserter
- Posts: 113
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
Re: Event to detect when a cargo pod is launched
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.
-
- Inserter
- Posts: 49
- Joined: Wed Dec 04, 2024 4:33 am
- Contact:
Re: Event to detect when a cargo pod is launched
+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.
Sad to see that we need some hackey solutions.
-
- Fast Inserter
- Posts: 113
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
Re: Event to detect when a cargo pod is launched
Bumping this with a polite FYI. I’d like to point out that tens of thousands of players are running find_entitites_filtered on every space platform above Cerys, Rubia, etc multiple times per second due to this missing API, which hurts performance of modded games.
Since (as mentioned above) cargo pods immediately being destroyed after an attempted launch is the best UX in the current API, this will likely rise to >100k players through PlanetsLib.
Since (as mentioned above) cargo pods immediately being destroyed after an attempted launch is the best UX in the current API, this will likely rise to >100k players through PlanetsLib.