[Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"

This subforum contains all the issues which we already resolved.
User avatar
ickputzdirwech
Filter Inserter
Filter Inserter
Posts: 794
Joined: Sun May 07, 2017 10:16 am
Contact:

[Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"

Post 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.
Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
Rseding91
Factorio Staff
Factorio Staff
Posts: 14674
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
User avatar
ickputzdirwech
Filter Inserter
Filter Inserter
Posts: 794
Joined: Sun May 07, 2017 10:16 am
Contact:

Re: [Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"

Post 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. :(
Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
Rseding91
Factorio Staff
Factorio Staff
Posts: 14674
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
ickputzdirwech
Filter Inserter
Filter Inserter
Posts: 794
Joined: Sun May 07, 2017 10:16 am
Contact:

Re: [Rseding91] [2.0.11] unavailable_until_unlocked doesn't work for shortcuts with action = "lua"

Post 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.
Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
Post Reply

Return to “Resolved Problems and Bugs”