Page 1 of 1

Add optional destination and player parameters to launch_rocket

Posted: Mon Nov 25, 2024 4:38 pm
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.)

Re: Add optional destination and player parameters to launch_rocket

Posted: Fri Nov 29, 2024 8:58 pm
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

Re: Add optional destination and player parameters to launch_rocket

Posted: Sat Apr 05, 2025 5:06 pm
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.