[2.0.69] Space platform logistics provider Lua control not working until location change

Post your bugs and problems so we can fix them.
User avatar
rycieos
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed Feb 27, 2019 8:35 pm
Contact:

[2.0.69] Space platform logistics provider Lua control not working until location change

Post by rycieos »

When a LuaLogisticPoint of member type defines.logistic_member_index.space_platform_hub_provider has its enabled field toggled, no change happens until the space platform changes its location.
Reproduction steps:
1. Have a space platform in orbit above Nauvis.
2. Hover the space platform hub, and run the console command

Code: Select all

/c game.player.selected.get_logistic_point(defines.logistic_member_index.space_platform_hub_provider).enabled = false
3. Open the landing pad on Nauvis and add a request for some item that the space platform has available (and does not have its own request for).
Actual result:
The space platform will send down the requested item.
Expected result:
The space platform does not make its inventory available to the landing pad, and does not send any items down.
Additional information:
Attached is a save file with a space platform and landing pad ready for reproduction. However, the steps are simple enough that the save is not required.

If, in between steps 2 and 3, the platform is sent away from Nauvis, and then sent back, the expected result happens. This suggests that the enabled state of the logistics point is cached from when the platform enters a space location until it leaves.

Note this works as expected for the defines.logistic_member_index.space_platform_hub_requester member type, updating instantly.
Attachments
bug-repro.zip
(7.75 MiB) Downloaded 4 times
factorio-current.log
(8.46 KiB) Downloaded 5 times
Post Reply

Return to “Bug Reports”