[2.1.17] Properties UI text don't update after using "set_property" command
Posted: Sun Sep 06, 2026 12:32 pm
Issue:
It is possible in control stage to change surface property using command, but changing surface properties don't change displayed UI text, which will easly confuse player / make it more difficult to communicate if such mod would change property
Prerequisite: Base game + Space Age
How to replicate / how I found it:
1. make new empty save
2. enter a set of commands to make sure property was in fact changed
3. Attempt to place asteroid collector, crusher and biolab on nauvis to be 100% sure that property was in fact changed
4. You should be able to place asteroid collector, crusher and not biolab. So property was in fact changed in code.
5. Check descriptions in few places and see that it was not changed to reflect new property change
It is possible in control stage to change surface property using command, but changing surface properties don't change displayed UI text, which will easly confuse player / make it more difficult to communicate if such mod would change property
Prerequisite: Base game + Space Age
How to replicate / how I found it:
1. make new empty save
2. enter a set of commands to make sure property was in fact changed
Code: Select all
/c game.print(game.surfaces["nauvis"].get_property("pressure"))Code: Select all
/c game.surfaces["nauvis"].set_property("pressure", 0)Code: Select all
/c game.print(game.surfaces["nauvis"].get_property("pressure"))4. You should be able to place asteroid collector, crusher and not biolab. So property was in fact changed in code.
5. Check descriptions in few places and see that it was not changed to reflect new property change