The onresearchfinished event does not trigger on the following commands:
/c game.player.force.researchalltechnologies()
/c game.player.force.technologies["automated-construction"].researched = true
This makes it harder to test my mod, and breaks functionality if a player uses cheat codes.
[0.11.17] onresearchfinished not triggering on console commands
Re: [0.11.17] onresearchfinished not triggering on console commands
Yes, it makes sense, fixed for 0.11.17.
Re: [0.11.17] onresearchfinished not triggering on console commands
onresearchfinished now fires before game.player.force.technologies[] is updated. This makes it impossible to check whether a specific force has the new tech. (Not a big problem now, but it will be a problem when we have multiple player forces.)