Page 1 of 1

[1.1.73] LuaTechnology artillery upgrades has upgrade set to false

Posted: Thu Dec 01, 2022 11:38 pm
by Theis
The LuaTechnology artillery-shell-range-1 and artillery-shell-speed-1 has the field upgrade=false, while every other similar technology (eg. weapon-shooting-speed-1) has it set to true.

I was trying to filter non-infinite unfinished research, and the upgrade field gave a rough estimate of whether the technology was infinite or not. Except for the artillery upgrades.

Re: [1.1.73] LuaTechnology artillery upgrades has upgrade set to false

Posted: Sat Dec 03, 2022 4:25 pm
by FuryoftheStars
I think this may be related: viewtopic.php?f=23&t=103658

Re: [1.1.73] LuaTechnology artillery upgrades has upgrade set to false

Posted: Mon Dec 05, 2022 11:23 am
by Theis
FuryoftheStars wrote: Sat Dec 03, 2022 4:25 pm I think this may be related: viewtopic.php?f=23&t=103658
I can't see their relation, except they both mention artillery.

This report is of the discrepancy between [artillery-shell-range-1, artillery-shell-speed-1] and all other weapon upgrade technologies.

Re: [1.1.73] LuaTechnology artillery upgrades has upgrade set to false

Posted: Wed Dec 07, 2022 5:33 am
by Honktown
I wouldn't call this a bug - there is only one technology.

Code: Select all

upgrade = true
is for when there are multiple technologies and "they should be shown as one that keeps going".

https://wiki.factorio.com/Prototype/Technology#upgrade That's how upgrade's behavior is described, and that's how it's used.

To check if a technology is "infinite", the best answer is if the prototype has a max_level and it's 4294967295