LuaSpacePlatform.send_drop_pod(), receive_drop_pod()

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 525
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

LuaSpacePlatform.send_drop_pod(), receive_drop_pod()

Post by Mylon »

Code: Select all

send_drop_pod{
  target=surface,
  payload=Itemstack,
  abort_if_missing_item=bool (default true),
  now=bool (wait until destination can receive, default false),
  void=bool (default false, destroy items, replaces need for target.)
}
Returns true if successful, or false if aborted. It might be helpful to document that platform.space_location and target.space_location do not have to match.

Code: Select all

receive_drop_pod{
  payload=itemstack,
  force=bool (catch it even if hub is busy, otherwise wait),
  delay=int (number of ticks before drop pod spawns on the surface to simulate a rocket launch, default is same as ground launch)
}
Use case, I want space platforms to be able to send items to each other and do this in a way that triggers the pretty animations, keeps the behavior synced with the animations, and uses other mechanics like limited needing additional cargo bays to support higher throughput.

Either send_drop_pod could enable this mod on its own, or send_drop_pod{void=true} + receive_drop_pod{}
redplasticstraw
Inserter
Inserter
Posts: 20
Joined: Fri Sep 15, 2023 12:01 pm
Contact:

Re: LuaSpacePlatform.send_drop_pod(), receive_drop_pod()

Post by redplasticstraw »

+1 to this.

would be interesting as well if this could also send items between space platforms in some way, which could enable more interesting space platform exclusive processing.
Post Reply

Return to “Modding interface requests”