Page 1 of 1
[Dominik] [0.16.5]Wrong order of techs in tech screen
Posted: Mon Dec 18, 2017 4:35 pm
by Bilka
Mining productivity 12 and logistic system both take the same science pack types. Mining productivity however takes more time than logistic system and also takes more science packs. So the expected order is: logistic system, mining productivity 12, the current order is the other way around.
To reproduce: Sandbox game, research everything, unresearch the two techs I'm talking about, observe wrong order.
Screenshots (from pre 0.16.0 release but the behaviour is still the same):
Re: [0.16.5]Wrong order of techs in tech screen
Posted: Mon Dec 18, 2017 6:37 pm
by riking
I don't think that's how science is ordered... is it?
Re: [0.16.5]Wrong order of techs in tech screen
Posted: Mon Dec 18, 2017 6:44 pm
by Bilka
riking wrote:I don't think that's how science is ordered... is it?
It is. Literally all science that isnt infinitely upgradable follows the order of: Whether it is currently researchable, locked or already researched; then science pack type; then science pack type ratio (1 red, 2 green for example); then time; then amount; then order string; then prototype name.
Re: [0.16.5]Wrong order of techs in tech screen
Posted: Wed Dec 20, 2017 12:02 pm
by Dominik
The current ordering, within same research state category, is 1) most expensive pack used (pack order string), 2) number of packs, 3) technology order string, 4) name.
By this it should indeed have different ordering.
Re: [Dominik] [0.16.5]Wrong order of techs in tech screen
Posted: Fri Dec 22, 2017 4:09 pm
by Dominik
The issue was that the sorting was done on prototypes and prototypes of multi-step technologies do not hold any explicit value of pack count, and could not even possibly know it. So now it is calculated from the technologies that have all the current data.