Page 1 of 1

[2.1.17] “on_rocket_launch_ordered” event no longer returns the player_index

Posted: Wed Sep 09, 2026 1:01 pm
by picklock
According to the documentation here, the “on_rocket_launch_ordered” event is supposed to return the player_index of the player riding the rocket. This worked in version 2.0. However, in the current version 2.1.17, the value “nil” is returned, as can be seen in the attached log file.

Attached are the log file, a save file, and a test mod designed to output the player_index to the console and write it to the log file.

Re: [2.1.17] “on_rocket_launch_ordered” event no longer returns the player_index

Posted: Wed Sep 09, 2026 1:29 pm
by boskid
Are you sure this is working in 2.0? It looks like player_index is not given by on_rocket_launch_ordered since 2.0.22 due to changes done in 121106 (#7126), it is just documentation artifact that it suggests player_index there while it is never provided.

Re: [2.1.17] “on_rocket_launch_ordered” event no longer returns the player_index

Posted: Wed Sep 09, 2026 1:30 pm
by Rseding91
I also noticed that in 2.0 it was not working. But it seems fine to add it (even if you could just get it from the rocket entity in the event). This is now fixed for the next release.

Re: [2.1.17] “on_rocket_launch_ordered” event no longer returns the player_index

Posted: Wed Sep 09, 2026 3:09 pm
by picklock
@Rseding91: Thank you.

@boskid: Thanks for pointing out when the feature was removed. I’ve been very busy with my real life. The last time I tested the feature was for the most recent release of my mod, in which I used it. That was with Factorio version 2.0.21. So one version before it was removed. I must have overlooked the note in the changelog for Factorio version 2.0.22; my apologies for that. However, I also didn’t receive any feedback from users of my mod indicating that the feature no longer works.