Page 1 of 1

[0.11.17] onresearchfinished not triggering on console commands

Posted: Sun Mar 08, 2015 4:58 pm
by DaveMcW
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.

Re: [0.11.17] onresearchfinished not triggering on console commands

Posted: Mon Mar 09, 2015 9:21 am
by kovarex
Yes, it makes sense, fixed for 0.11.17.

Re: [0.11.17] onresearchfinished not triggering on console commands

Posted: Sun Mar 15, 2015 4:43 am
by DaveMcW
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.)