We already have LuaPlayer.clear_recipe_notifications() and LuaPlayer.add_recipe_notification() for managing those yellow boxes when you research a new technology. However it is impossible to clear a notification for a specific recipe. I propose adding LuaPlayer.clear_recipe_notification() to solve this issue.
This API feature would help us at pY solve the following bug report: https://github.com/pyanodon/pybugreports/issues/510
For certain recipes, we use a scripted recipe system that is separate from the research tree. However every time on_configuration_changed is ran we have to re-unlock the recipes which causes the boxes to appear. We are running LuaForce.reset_technology_effects() on every configuration change event. So the custom recipes have to be re-unlocked on top.
I believe this would be a helpful feature to anyone wanting to make a script-unlocked recipe system.
LuaPlayer.clear_recipe_notification()
- micromario
- Fast Inserter
- Posts: 114
- Joined: Thu Apr 05, 2018 11:53 am
- Contact:
-
- Fast Inserter
- Posts: 156
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: LuaPlayer.clear_recipe_notification()
+1, would be nice for when mods replace recipes like mentioned
If you need to reach me, message me on discord.
I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Re: LuaPlayer.clear_recipe_notification()
Added for the next release.
If you want to get ahold of me I'm almost always on Discord.