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

This subforum contains all the issues which we already resolved.
petrathekat
Inserter
Inserter
Posts: 26
Joined: Fri Apr 19, 2024 7:12 pm
Contact:

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

Post 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
Attachments
factorio-current.log
(7.47 KiB) Downloaded 33 times
Last edited by petrathekat on Thu May 29, 2025 5:00 am, edited 1 time in total.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3938
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post 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.
Post Reply

Return to “Resolved Problems and Bugs”