Page 1 of 1

[boskid][2.0.52] game.take_technology_screenshot's selected_technology argument doesn't do anything

Posted: Thu May 29, 2025 3:07 am
by petrathekat
Hello. The docs claim that LuaGame::take_technology_screenshot has a selected_technology argument for "The technology to highlight". However, passing this argument doesn't appear to do anything.

Attached are three screenshots. without-selected.png is the result of take_technology_screenshot without selected_technology provided at all. with-selected.png has selected_technology="logistics-system", and with-selected-bad has selected_technology="techthatdoesntexist". All of these are on a brand-new save with only Space Age, Quality, and Elevated Rails mods.
without-selected.png
with-selected.png
with-selected-bad.png

Re: [boskid][2.0.52] game.take_technology_screenshot's selected_technology argument doesn't do anything

Posted: Thu May 29, 2025 6:25 am
by boskid
Thanks for the report. Issue is now fixed for 2.0.53.

It looks that during one of cleanups around parsing data from lua i did a copy-paste mistake and take_technolog_screenshot was incorrectly looking for that value in a parameter "technology" (not "selected_technology"), so as a workaround you can use the "technology", but it will stop working in 2.0.53 as it will be renamed to match documentation.