[2.0.55] Crash when launching rocket by command on custom surface
Posted: Sun Jun 15, 2025 6:19 pm
Hello,
the current API for launching rockets should allow launching rockets with custom target, this usually works well, however I found a case when it causes a crash.
Steps to do:
1) start new game
2) use /editor to be able to cheat some stuff
3) on map view, create a space platform and let it be built up
4) move to the space platform and do something like /c storage.hub = game.player.selected while hovering over the platform hub.
5) In editor, create new surface that isn't a planet
6) go to this surface and build there rocket silo, make it ready for launch (power, parts, ...)
7) use this command: /c game.player.selected.launch_rocket({type = defines.cargo_destination.station, station = storage.hub})
8) the game crashes
the log file is attached, and the savefile from freeplay that is ready to just use the launching command is attached too.
the current API for launching rockets should allow launching rockets with custom target, this usually works well, however I found a case when it causes a crash.
Steps to do:
1) start new game
2) use /editor to be able to cheat some stuff
3) on map view, create a space platform and let it be built up
4) move to the space platform and do something like /c storage.hub = game.player.selected while hovering over the platform hub.
5) In editor, create new surface that isn't a planet
6) go to this surface and build there rocket silo, make it ready for launch (power, parts, ...)
7) use this command: /c game.player.selected.launch_rocket({type = defines.cargo_destination.station, station = storage.hub})
8) the game crashes
the log file is attached, and the savefile from freeplay that is ready to just use the launching command is attached too.