Page 1 of 1

[2.0.19] a hidden platform still shows in the remote view sidebar

Posted: Sat Nov 16, 2024 4:17 pm
by Quezler
running this command to set the platform hidden, and then reading if its hidden both run as expected, but the platform doesn't get hidden from the sidebar:

/c game.player.force.set_surface_hidden(game.player.surface, true)
/c game.print(game.player.force.get_surface_hidden(game.player.surface))

the expected behavior is that it hides the platform from the sidebar, but clicking on an alert or gps ping tags still taking you to view that platform surface.

Re: [2.0.19] a hidden platform still shows in the remote view sidebar

Posted: Mon Dec 30, 2024 3:25 pm
by Rseding91
Thanks for the report. Platforms were designed to always be visible and as such they do not interact with the hidden surface logic in any way from what I can find.

Re: [2.0.19] a hidden platform still shows in the remote view sidebar

Posted: Fri Mar 07, 2025 2:44 am
by thesixthroc
Being unable to hide platforms restricts the possibilities with rocket silo mods.

It seems currently impossible to seamlessly make rocket silos that have custom launch behavior (eg to other planets) or can support logistic requests to other entities in the game.

Re: [2.0.19] a hidden platform still shows in the remote view sidebar

Posted: Fri Mar 07, 2025 3:09 am
by Rseding91
You can make a rocket launch to another planet with the existing Lua API for cargo pods.

Re: [2.0.19] a hidden platform still shows in the remote view sidebar

Posted: Fri Mar 07, 2025 10:52 pm
by thesixthroc
To clarify, I already have two mods [1, 2] which launch directly from planet to planet.

They suffer from two limitations relating to the GUI:
1. Although it is possible to make script-controlled space platforms whose inventory and logistic requests mimic a cargo landing pad on another planet (thereby allowing rockets to fulfil those logistic requests), since these scripted platforms cannot be hidden in the sidebar GUI they clutter the UI.
2. It is impossible to make custom launch GUIs, as players cannot be made to enter a launching rocket by script. The first mod above resorts to creating one scripted platform for each destination. This is really a separate request, and has its own thread: viewtopic.php?p=662451#p662451

EDIT: Since this is really a feature request, I have created a thread: viewtopic.php?t=127359