Page 1 of 1

[0.17.34] Using upgrade planner if upgrading more than 601 items of a given type, alerts continue to show 601 remaining

Posted: Sat Apr 27, 2019 3:25 am
by cemeyer2
Using upgrade planner, if upgrading more than 601 items of a given type, alerts continue to show 601 remaining

To reproduce:

Make 800 red belts.
Use an upgrade planner to upgrade red to blue.
Select all 800 belts and upgrade them.
Notice the alerts is only showing 601 belts to upgrade until > 200 have been upgraded from red to blue, then the count will start to decrease

In the screenshot attached, i have selected over 2k belts to upgrade but the alert count is stuck at 601
Screen Shot 2019-04-26 at 22.15.02.png
Screen Shot 2019-04-26 at 22.15.02.png (12.75 MiB) Viewed 851 times

Re: [0.17.34] Using upgrade planner if upgrading more than 601 items of a given type, alerts continue to show 601 remain

Posted: Sat Apr 27, 2019 4:00 am
by DaleStan
For performance reasons, Factorio only checks a limited number of ghosts per tick. I'm going to bet that it's supposed to be 600 ghosts, but there's a fencepost error.

Do you see the same behavior if you copy and paste 800 blue belts?

Re: [0.17.34] Using upgrade planner if upgrading more than 601 items of a given type, alerts continue to show 601 remain

Posted: Sat Apr 27, 2019 5:52 am
by Rseding91
Thanks for the report however that's not a bug. The game checks 1 ghost per tick and if it fails to find what it needs makes an alert. The alert times out after some number of ticks (600) and so you see 600 alerts + 1 checked that tick (601 alerts).