LuaPlayer.clear_recipe_notification()

User avatar
micromario
Fast Inserter
Fast Inserter
Posts: 114
Joined: Thu Apr 05, 2018 11:53 am
Contact:

LuaPlayer.clear_recipe_notification()

Post by micromario »

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.
protocol_1903
Fast Inserter
Fast Inserter
Posts: 156
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: LuaPlayer.clear_recipe_notification()

Post by protocol_1903 »

+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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14890
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaPlayer.clear_recipe_notification()

Post by Rseding91 »

Added for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”