[2.0.48] launch_rocket can fail to launch rocket

This subforum contains all the issues which we already resolved.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 97
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

[2.0.48] launch_rocket can fail to launch rocket

Post by thesixthroc »

Two bugs with launch_rocket are observed in the mod https://mods.factorio.com/mod/Planet-Hopper:

* In the attached save, launch_rocket fails to launch the player and returns false. The documentation is not exactly clear on when false will be obtained, but the player is standing near the rocket and prepared for launch as they normally are in Space Age.
* If the Planet-Hoppers mod is adjusted to remove the second argument to launch_rocket (character) in control.lua, the game experiences a hardcrash on launch (logfile attached.)

In both cases the launch_rocket destination field is set as follows:

Code: Select all

{
    type = defines.cargo_destination.surface,
    surface = game.surfaces[destination_name],
}
Attachments
factorio-current.log
(13.9 KiB) Downloaded 9 times
planet-hopper-launch.zip
(1.35 MiB) Downloaded 9 times
Last edited by thesixthroc on Wed May 14, 2025 7:49 pm, edited 2 times in total.
Genhis
Factorio Staff
Factorio Staff
Posts: 825
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [2.0.48] Failures of launch_rocket

Post by Genhis »

Regarding your second issue, the crash when omitting the second argument of `launch_rocket()` is already fixed for 2.0.49.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 97
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: [2.0.48] Two issues with launch_rocket

Post by thesixthroc »

Thanks.

Attached is the mod Planet-Hoppers 3.0.0 since I have just removed that release from the Portal.
Attachments
Planet-Hopper_3.0.0.zip
(1.07 MiB) Downloaded 12 times
Genhis
Factorio Staff
Factorio Staff
Posts: 825
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [2.0.48] Rocket fails to launch with launch_rocket

Post by Genhis »

In 2.0.48/49, you can launch players only to space platforms which are in orbit of their surface. I will keep this in bug reports.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15627
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.48] launch_rocket can fail to launch rocket

Post by Rseding91 »

I've changed launch_rocket to allow launching a character to any destination for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”