[0.11.17] onresearchfinished not triggering on console commands

This subforum contains all the issues which we already resolved.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

[0.11.17] onresearchfinished not triggering on console commands

Post 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.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.11.17] onresearchfinished not triggering on console commands

Post by kovarex »

Yes, it makes sense, fixed for 0.11.17.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [0.11.17] onresearchfinished not triggering on console commands

Post 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.)
Post Reply

Return to “Resolved Problems and Bugs”