I'm trying to create a system that transfers cargo containers from ship to station, empties them, and then returns either the original or a different container to the ship. I've run into a number of hurdles, and I'd appreciate the communities collective think in figuring out any one of them.
Let me start by explaining the setup thus far. Ships carry docked cargo containers. Each container's storage module pulls from the docking block to fill from the ship's inventory. The cargo containers can be ejected from the ship.
1.) The only thing standardized in the system (so far) is the cargo container. Players design ships however they like, as long they use cargo containers for their inventory storage. How do I get the container from ship to station when the ship can be of any size and shape, and the container can be anywhere and in any orientation?
My best solution is to create a docking point for the ship that can be manipulated by rails to adjust a ship's location and orientation with regards for the cargo collection point. Once the ship is properly aligned, the cargo would be ejected, and caught by the station. The station either drains the container and ejects it back to the ship, or moves it out of the way to send a new capsule back.
2.) Given that entities tend to collide and bounce off of ships when they are undocked from rails, and that there is a 4 second gap whenever an item undocks before it can dock again, I've been setting up the ship to eject cargo containers with acceleration rails. This has them moved away from any hull they would collide with, and move away from the ship's pick-up rail, and float towards a pick-up rail on the station that they should reach just after the 4 seconds has passed. The reverse would occur from station to ship for receiving empty containers. Is there any easier way of moving an entity from one rail to another?
3.) The cargo container is set to pull inventory from the ship - how do I automatically switch that off while it's on the station so that the station can pull inventory from it?
These are the problems I've identified so far - thanks for any help you may offer.
Let me start by explaining the setup thus far. Ships carry docked cargo containers. Each container's storage module pulls from the docking block to fill from the ship's inventory. The cargo containers can be ejected from the ship.
1.) The only thing standardized in the system (so far) is the cargo container. Players design ships however they like, as long they use cargo containers for their inventory storage. How do I get the container from ship to station when the ship can be of any size and shape, and the container can be anywhere and in any orientation?
My best solution is to create a docking point for the ship that can be manipulated by rails to adjust a ship's location and orientation with regards for the cargo collection point. Once the ship is properly aligned, the cargo would be ejected, and caught by the station. The station either drains the container and ejects it back to the ship, or moves it out of the way to send a new capsule back.
2.) Given that entities tend to collide and bounce off of ships when they are undocked from rails, and that there is a 4 second gap whenever an item undocks before it can dock again, I've been setting up the ship to eject cargo containers with acceleration rails. This has them moved away from any hull they would collide with, and move away from the ship's pick-up rail, and float towards a pick-up rail on the station that they should reach just after the 4 seconds has passed. The reverse would occur from station to ship for receiving empty containers. Is there any easier way of moving an entity from one rail to another?
3.) The cargo container is set to pull inventory from the ship - how do I automatically switch that off while it's on the station so that the station can pull inventory from it?
These are the problems I've identified so far - thanks for any help you may offer.