Page 1 of 1
[Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"
Posted: Fri Oct 25, 2024 6:12 pm
by ickputzdirwech
When I define a shortcut with
Code: Select all
action = "toggle-personal-logistic-requests",
technology_to_unlock = "name",
unavailable_until_unlocked = true,
unavailable_until_unlocked works as expected. When I instead define a shortcut with
Code: Select all
action = "lua",
technology_to_unlock = "name",
unavailable_until_unlocked = true,
the shortcut is always available.
Re: [Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"
Posted: Wed Oct 30, 2024 8:01 pm
by Rseding91
Thanks for the report. This is now fixed for the next release.
Re: [Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"
Posted: Sun Nov 03, 2024 8:15 pm
by ickputzdirwech
Hey, thanks for your work! I see that according to the changelog this should be fixed in version 2.0.13. I can't get it to work however.
Re: [Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"
Posted: Sun Nov 03, 2024 9:18 pm
by Rseding91
Please make a new report with a mod showing the behavior not working. It may be broken in a different way however I also made a test for the original report which is passing. So at least it works as far as I can tell.
Re: [Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"
Posted: Fri Nov 08, 2024 2:59 pm
by ickputzdirwech
ok I think I figured it out. If you at any time use
Code: Select all
set_shortcut_available(name, false)
it won't be enabled when the technology get's researched. Not a big deal.