Page 1 of 1

[0.15.5] LuaTechnology::researched = true doesn't change top right display

Posted: Mon May 01, 2017 8:31 am
by die_8_
[0.15.5] LuaTechnology::researched = true => Research progress bar is not completed

(LuaTechnology::upgrade == true) target research only (Especially mining-productivity-1 ~ 16)

When starting the research and carrying out the above process, the internal processing is completed but the display is not done correctly.

Re: [0.15.5] LuaTechnology::researched = true

Posted: Sat May 13, 2017 12:58 am
by Rseding91
Can you post steps to reproduce the problem you're having and screenshots showing what's wrong? When I set researched = true it correctly resets the research progress bar.

Re: [0.15.5] LuaTechnology::researched = true

Posted: Sat May 13, 2017 10:04 am
by daniel34
I've experienced this aswell.
When dealing with infinite (or staged) research the text/bar on the top right doesn't update when you complete the research using Lua.
  • Mining productivity x is researching (I tested with >=17 after research_all_technologies)
  • use /c game.player.force.current_research.researched = true
  • although the effect (bonus) is applied properly the text and bar on the top right doesn't update (stays the same)
  • if there was some progress on the bar before it will just continue that bar without resetting it, I'm not sure if/how that influences progress

Re: [0.15.5] LuaTechnology::researched = true doesn't change top right display

Posted: Sat May 13, 2017 1:51 pm
by Rseding91
Ahh, infinite research.

Re: [0.15.5] LuaTechnology::researched = true doesn't change top right display

Posted: Sat May 13, 2017 4:45 pm
by die_8_
Image
Image

Re: [0.15.5] LuaTechnology::researched = true doesn't change top right display

Posted: Sun May 14, 2017 5:22 pm
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.15.