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
Long Handed Inserter
Long Handed Inserter
Posts: 60
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
Long Handed Inserter
Long Handed Inserter
Posts: 60
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.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: Add optional destination and player parameters to launch_rocket

Post by Gweneph »

Yay, destination got added!

Still would love to see player get added.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: Add optional destination and player parameters to launch_rocket

Post by Gweneph »

Excellent! Character added in 2.0.48.

This could be moved to implemented.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3945
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Add optional destination and player parameters to launch_rocket

Post by boskid »

Temporarily i will keep this in modding interface requests and not move to implemented because from feedback i am gathering, the character parameter may be slightly useless in some cases as it follows all the game checks including no items in inventory check. This may need some extra consideration what is expected: should it do standard checks or skip as its part of lua api for mods to use.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: Add optional destination and player parameters to launch_rocket

Post by Gweneph »

Makes sense. For Factorio Access, we're probably going to have to implement those checks ourselves anyway to read out useful error messages to the player, so I don't think it matters much to us.
Post Reply

Return to “Modding interface requests”