Add on_research_cancelled event

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Muppet9010
Fast Inserter
Fast Inserter
Posts: 175
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Add on_research_cancelled event

Post by Muppet9010 » Mon Jun 24, 2019 9:34 pm

Can we add an on_research_cancelled event that includes which research was cancelled. It should be called for both the current research and for ones in the queue.

My use case is I react to the number of a specific infinite research being done/queued in relation to an ingame maximum. When there is as much research queued as the ingame maximum I disabled the technology. At present I can use completed and started to catch 90% of the use cases, but if a research is cancelled and another not started my mod is int he dark.
I use the events rather than polling to make it reactive and simplier code.

Post Reply

Return to “Modding interface requests”

Who is online

Users browsing this forum: No registered users