[0.10.x][kovarex] Bug with bonuses

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Reygan
Fast Inserter
Fast Inserter
Posts: 177
Joined: Tue Jan 28, 2014 8:42 pm
Contact:

[0.10.x][kovarex] Bug with bonuses

Post by Reygan »

There is the bug with technology bonuses of scenarios converted from saves - technologies stay researched, but bonuses is not preserves.
Scenario is here(example with robot speed bonuses).
Also if i doing:

Code: Select all

for _, tech in pairs(game.player.force.technologies) do
tech.researched = false
end
then

Code: Select all

game.player.force.researchalltechnologies()
Any bonuses not added anyway.
Daniel V. Lenskiy

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.10.x] Bug with bonuses

Post by kovarex »

Ok, so here is what I did to fix this problem:
  • Migrations are applied when using the map2scenario or opening map in map editor
  • The above allows me to avoid reloading technologies manually when doing this, so researched technologies will be preserved from now on
  • game.player.force.reset is fixed to reset all modifiers (few were omitted) as well as reset and unresearch alltechnologies and disable all recipes (apart those that are enabled from the start).
So once you have 0.10.9 you can use the reset method to correctly not only unresearch the technologies but completely reset the player to the starting state including modifiers.

So this is fixed for 0.10.9 I believe, thank you for the report.

Post Reply

Return to “Resolved Problems and Bugs”