Add optional destination and player parameters to launch_rocket

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Gweneph
Inserter
Inserter
Posts: 48
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Add optional destination and player parameters to launch_rocket

Post by Gweneph »

Right now the LauEntity.launch_rocket() function doesn't take any parameters. So with Space Age enabled, when it launches a rocket, the contents are lost to the ether.
I'd like the ability to launch a rocket to a particular platform just like the launch cargo button allows.

Additionally, I'd like the ability to launch a player character just like the button on the silo UI allows.

These requests are for the Factorio Access Mod making alternative accessible interfaces.

(the make new platform button functionality is already available elsewhere.)
ActionJackson
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sun Jul 24, 2016 6:00 pm
Contact:

Re: Add optional destination and player parameters to launch_rocket

Post by ActionJackson »

+1

I'd like to also suggest that the dropdown that becomes visible when you click Launch Rocket to choose a destination is instead its own dropdown that's always available/visible that can be given its own RW point
Gweneph
Inserter
Inserter
Posts: 48
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: Add optional destination and player parameters to launch_rocket

Post by Gweneph »

With the cargo_pod additions in the API in version 2.0.34, setting the destination is now possible. Yay! This allows for launching cargo to a space platform (you just have to set the destination of the cargo pod after launching as launching will overwrite whatever destination was there before. It still might be a convenient option to add to the silo.launch_rocket function.

There still doesn't appear to be a way to get a player into a cargo_pod, so IFAIK that remains impossible to emulate.
Post Reply

Return to “Modding interface requests”