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.)
Add optional destination and player parameters to launch_rocket
-
- Burner Inserter
- Posts: 18
- Joined: Sun Jul 24, 2016 6:00 pm
- Contact:
Re: Add optional destination and player parameters to launch_rocket
+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
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
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.
There still doesn't appear to be a way to get a player into a cargo_pod, so IFAIK that remains impossible to emulate.
Re: Add optional destination and player parameters to launch_rocket
Yay, destination got added!
Still would love to see player get added.
Still would love to see player get added.
Re: Add optional destination and player parameters to launch_rocket
Excellent! Character added in 2.0.48.
This could be moved to implemented.
This could be moved to implemented.
Re: Add optional destination and player parameters to launch_rocket
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.
Re: Add optional destination and player parameters to launch_rocket
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.