Page 1 of 1

[0.17.2] Mining-productivity-12 level capped in lua but not in UI/game

Posted: Thu Feb 28, 2019 8:35 am
by quyxkh
Start a sandbox, start researching mining productivity with say this



the mining prod 12 llevel shown in `/c for k,v in pairs(game.player.force.technologies) do _=k:find'mining' and game.print(serpent.line{k,v.level}) end` stops incrementing at 15 and trying to set it in lua gets denied once you reach that, but you can keep researching it through the UI, the labs eat increasing amounts of red+green science per and mining productivity goes up 1%/research. The only effect of the cap seems to be on the value allowed in the lua copy, not the real level.

Re: [0.17.2] Mining-productivity-12 level capped in lua but not in UI/game

Posted: Fri Mar 01, 2019 12:19 am
by quyxkh
Okay, this can go to minor issues (if even that), it only happens when mining-prod-16 gets researched by some means other than finishing mining-prod-12 first, it's a glitch in the scripted-progression machinery, it doesn't happen in normal gameplay.